Sambo <(E-Mail Removed)> wrote:
> habibielwa7id wrote:
> > force your system to go through a specific interface when you want to
> > reach specific host through this interface with the route command
> > like, route add -host 11.22.33.44 gw 192.168.1.2, This way your system
> > will go to 11.22.33.44 through 192.168.1.2 interface. I wish I could
> > help someway.
> >
> AHA !! busted!!! LOL.
> I was under the impression that gateway needs to be an IP on the
> other side of the wire? Which is used to address that interface with
> MAC??
When a "system local" IP address is used as a gateway (with a metric
of 0 IIRC) the system will then ARP for the remote IP address. This
will "work" if one of the routers on that LAN is configured to support
"proxy ARP" and is willing to send an ARP reply.
If you don't have routers which support "proxy ARP" you would have to
add an entry to the local system's ARP cache which associated the
remote IP address with the MAC address of the router.
Some systems/oses/stacks, if they are configured to run under what is
called the "strong es model" (es == end system) will include the
source IP address when performing route lookups and may (will?) prefer
routes with a matching source IP. On such systems, 99 times out of 10
it may be sufficient to bind to the IP assigned to the desired egress
interface - assuming suitable routes are in the routing table. Such
systems can even have (the moral equivalent to) per-interface
"default" routes. A system configured for the strong es model will
accept traffic for a local IP only if it is received on an interface
which was assigned that IP.
By default at least, "Linux" operates under a very "weak" end system
model, all the way down to ARP, which can make configuring multiple
interfaces, even into separate IP subnets, very interesting when
they are connected to the same broadcast domain (switches)...
> Although this doesn't quite fit when I look at my windows routing
> table and an entry for my LAN/nic reads:
Um, if you are running windows, why are you asking in a Linux group?-)
> Destination Netmask Gateway Interface
> 192.168.1.0 255.255.255.255 192.168.1.25 192.168.1.25
> and why is the mask 255 at the end?
> the multicast I think I understand , no destination ever
> 224.0.0.0 224.0.0.0 192.168.1.25 192.168.1.25 1
--
web2.0 n, the dot.com reunion tour...
these opinions are mine, all mine; HP might not want them anyway...

feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...