Matthew Boeckman <[EMAIL PROTECTED]> writes:

> I could be terribly wrong here, but my thinking is that the GW
> statement in eth1 on m6 is being ignored (maybe check dmesg). I have
> never assigned a static route in linux that did not show up in netstat

It turns out your suggested experiment showed absolutely no difference
with 192.168.1.1 knocked down as gateway from 192.168.1.5.  Pinging ssh'
ing etc, no problem.  In fact route didn't know anything about it being
up so it wasn't, just as you said.

a simpler diagram:

Not bothering with addresses for 1-4, illustrates what I tried out.
Apparently I've been seized with temporary insanity (I hope its
temporary anyway), because I don't see the odd behavior I reported now
with a more structured experiment.

XX=192.168
 
              INTERNET
                 |
           DSL MODEM <STATIC IP>
                 |    
     NETGEAR router/firewall XX.0.1
     |                        |
eth0 | XX.0.7           eth0  | XX.0.5
   mach6                   mach5
eth1 | XX.1.5           eth1  | XX.1.1      
  ------ XX.1.1/24hub ---------------
  |          |           |          |
mach1       mach2      mach3      mach4 

Mach5 has gateway set to XX.0.1 (the netgear router)

If, on mach 6 I knock down any gateway, netstat -nr  shows:
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

In that config I can ping ssh etc to all 1-6 machines and the router
XX.0.1 from mach 6 but can't get to the internet of course.

====================================================================

Now setting XX.0.1(router)  as default gateway, netstat now shows

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

In this config I can ping ssh etc to all machine,router and internet 
>From mach 6

===================================================================
Knocking down XX.0.1 as gateway and putting up XX.1.1

netstat -nr now shows:
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.1.1 0.0.0.0         UG       40 0        0 eth1


I can still ping, ssh and get the internet.



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

Reply via email to