Matthew Boeckman <[EMAIL PROTECTED]> writes:
> I'm not entirely sure what you are asking.
>
>> 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 the above output eth1 also has a gateway (192.168.1.1) but it
>> doesn't show.
>
> why do you say that it does? Are you sure that you don't mean that
> eth1 has an address of 192.168.1.1 _bound_ to it? If you specify an
> explicit gateway for a given interface, it will report in netstat -rn
> (route -v). If what you mean is that eth1 is 192.168.1.1, there is no
> need for a route statment. An IP address and a subnet are all that is
> needed to define a network segment. Gateways are only necessary when
> traversing subnets. If your address was 192.168.1.1 /23
> (255.255.252.0), you would be able to ping 192.168.2.1 without a
> gateway.
I'm confusing things here, but not on purpose. I mean that I have
assigned a gateway to both eth0 and eth1 in this way:
These files are on machine6 in diagram below:
cat /etc/sysconfig/network-scripts/ifcfg-eth0:
USERCTL='no'
NETMASK='255.255.255.0'
BOOTPROTO='none'
HWADDR='00:03:47:fa:4b:13'
DEVICE='eth0'
IPADDR='192.168.0.7'
GATEWAY='192.168.0.1'
TYPE='Ethernet'
ONBOOT='yes'
NETWORK='192.168.0.0'
BROADCAST='192.168.0.255'
cat /etc/sysconfig-networkscripts/ifcfg-eth1:
USERCTL='no'
NETMASK='255.255.255.0'
BOOTPROTO='none'
HWADDR='00:04:75:9b:e5:0d'
DEVICE='eth1'
IPADDR='192.168.1.5'
GATEWAY='192.168.1.1'
TYPE='Ethernet'
ONBOOT='yes'
NETWORK='192.168.1.0'
BROADCAST='192.168.1.255'
Without that second one (192.168.1.1) a machine 192.168.1.6 was
unable to ping 192.168.0.1 (the firewall) and ssh connections between
192.168.0 and 192.168.1 took several minutes find a route
There was no particular good reason for the setup below but this is
where I am running into what I described:
Calling GW1 192.168.0.1
GW2 192.168.1.1
INTERNET
|
dsl modem <static ip address>
|
ROUTER (GW1 192.168.0.1) NETGEAR FR314
|
--------------------------------
| |eth0 192.168.0.5
eth0=> | rh7.1 Mach5
| |eth1 GW2 192.168.1.1
mach6 |
eth1=> | |
----------------------------
| | | |
m1 m2 m3 m4
192.168.0.7
rh 7.3
Where machine 5 is gatewayed to the router 192.168.0.1
And m1 m2 m3 m4 are gatewayed to Mach5 (eth1)
Machine 6 is a sort of hybrid that has a connection to both 192.168.0
and 192.168.1. That is the machine with two designated gateways
Yet a netstat -nr on mach 6 shows only:
Kernel IP routing table
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
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list