Matthew Boeckman <[EMAIL PROTECTED]> writes:

> I think the best answer is 'man route'
>
> route add -net 192.168.2.1 netmask 255.255.255.0 dev eth1
> route add -net 192.168.1.1 netmask 255.255.255.0 dev eth0
>
Matthew,  I posted a similar answer in this thread.  Although I think
yours is clearer.  But a question I've had about this.  That is, a
machine with two nics and therefor two gate ways.  However the output
of netstat -nr only shows one.

Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.1.0     0.0.0.0         255.255.255.0   U        40 0          0 eth1
192.168.0.0     0.0.0.0         255.255.255.0   U        40 0          0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U        40 0          0 lo
0.0.0.0         192.168.0.1     0.0.0.0         UG       40 0          0 eth0

In fact one never really sees the actual ip address reflected in
netstat -nr or `route' output.  Only the network addresses are
visisble.  except the default route which is spelled out.

Hard to see how a route can exist without an address on both ends.

In the above output eth1 also has a gateway (192.168.1.1) but it
doesn't show.



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to