Re: two system eth, chooses one w/o a gateway, makes up gateway



On Tue, 2008-12-02 at 18:47 -0500, Chuck Anderson wrote:
> I have two system connections from ifcfg-eth0 and ifcfg-eth1.  The 
> first one is DHCP to the main Internet/LAN, and the second is 
> statically configured and goes to a private LAN that has no gateway to 
> the Internet:
> 
> # Broadcom Corporation NetXtreme BCM5751 Gigabit Ethernet PCI Express
> DEVICE=eth0
> BOOTPROTO=dhcp
> HWADDR=00:13:72:74:da:15
> ONBOOT=yes
> SEARCH="WPI.EDU"
> #DNS1=130.215.32.18
> #DNS2=2001:468:616:827::10
> #DNS3=2001:468:616:820::10
> 
> # Lite-On Communications Inc LNE100TX
> DEVICE=eth1
> HWADDR=00:a0:cc:da:ed:04
> BOOTPROTO=static
> ONBOOT=yes
> IPADDR=172.27.120.22
> NETMASK=255.255.0.0
> GATEWAY=
> 
> This worked fine in Fedora 9 and Fedora 10 I think until I upgraded 
> from this:
> 
> Nov 19 23:14:47 Updated: 1:NetworkManager-glib-0.7.0-0.12.svn4296.fc10.i386
> Nov 19 23:15:17 Updated: 1:NetworkManager-0.7.0-0.12.svn4296.fc10.i386
> Nov 19 23:15:22 Updated: 1:NetworkManager-gnome-0.7.0-0.12.svn4296.fc10.i386
> 
> to this:
> 
> Nov 25 11:32:08 Updated: 1:NetworkManager-glib-0.7.0-0.12.svn4326.fc10.i386
> Nov 25 11:32:10 Updated: 1:NetworkManager-0.7.0-0.12.svn4326.fc10.i386
> Nov 25 11:32:12 Updated: 1:NetworkManager-gnome-0.7.0-0.12.svn4326.fc10.i386
> 
> Now NetworkManager activates eth1 as the primary interface, and makes 
> up a default gatway.  As you can see, I specified a blank GATEWAY= in 
> the ifcfg-eth1 file.  I also tried commenting this out as #GATEWAY= so 
> no gateway was specified at all.

Do you have a gateway in /etc/sysconfig/networking at all?

Can you post some bits from /var/log/messages that show NM bringing up
the connection so I can see where the bogus gateway might be coming
from?

Dan

> >netstat -nr
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
> 130.215.201.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0
> 172.27.0.0      0.0.0.0         255.255.0.0     U         0 0          0 eth1
> 0.0.0.0         172.27.120.22   0.0.0.0         UG        0 0          0 eth1
> 
> I stopped NetworkManger and nm-system-settings and ran this manually:
> 
> >sudo /usr/sbin/nm-system-settings --debug --config /etc/NetworkManager/nm-system-settings.conf
> ** Message: Loaded plugin ifcfg-fedora: (c) 2007 - 2008 Red Hat, Inc.  
> To report bugs please use the NetworkManager mailing list.
> ** Message:    ifcfg-fedora: parsing 
> /etc/sysconfig/network-scripts/ifcfg-eth0 ... 
> ** Message:    ifcfg-fedora:     read connection 'System eth0'
> ** Message:    ifcfg-fedora: parsing 
> /etc/sysconfig/network-scripts/ifcfg-lo ... 
> ** Message:    ifcfg-fedora:     error: Ignoring loopback device 
> config.
> ** Message:    ifcfg-fedora: parsing 
> /etc/sysconfig/network-scripts/ifcfg-eth1 ... 
> ** Message:    ifcfg-fedora:     read connection 'System eth1'
> 
> Is this a known bug, or should I report this in RH bugzilla?  How can 
> I smack this around so my Internet works again?  Right now I've been 
> just doing this as a workaround:
> 
> sudo ip route del default
> sudo route add default gw 130.215.201.1
> 
> Thanks.
> 
> _______________________________________________
> NetworkManager-list mailing list
> NetworkManager-list gnome org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]