Ok, I tried on the enigma list with no luck, so I'm going to try here. Basic question is: Does anyone have any idea what I might be doing wrong that I would get multiple duplicate default routes when I boot up? I have to remove all but one of them by doing "route del -net 0.0.0.0" to get things back to normal.
The message below provides a bit more detail on my /etc/network-scripts/ifcfg-* files... -t. > -----Original Message----- > From: Furnish, Trever G > Sent: Tuesday, March 19, 2002 4:25 PM > To: '[EMAIL PROTECTED]' > Subject: Why do I get duplicate default routes? > > I'm obviously doing something wrong, but I'm not sure what - any advice > would be appreciated. I'm certain this'll be an easy question for > someone... > > When I bring up the system in question, which has two ethernet cards and > several interface aliases ("eth0:0", "eth0:1", "eth1:0", etc), it comes up > with multiple default route entries for the same gateway (as shown by > /sbin/route -n). This seems to produce erratic (but definitely broken) > behavior. > > I have the following files that I think are relevant under /etc/sysconfig: > (addresses and hostnames have been changed to protect the innocent) > > network: > Defines NETWORKING=yes, HOSTNAME=foo, GATEWAY=1.2.3.4 > > network-scripts/ifcfg-eth0: > Defines DEVICE=eth0, BOOTPROTO,BROADCAST, IPADDR, NETMASK, NETWORK, > ONBOOT, TYPE, USERCTL, PEERDNS, GATEWAY=... > > network-scripts/ifcfg-eth0:0 > Defines DEVICE=eth0:0, USERCTL, ONBOOT, BOOTPROTO, BROADCAST, > NETWORK, NETMASK, IPADDR > > network-scripts/ifcfg-eth0:1 > Defines DEVICE=eth0:1, USERCTL, ONBOOT, BOOTPROTO, BROADCAST, > NETWORK, NETMASK, IPADDR > > network-scripts/ifcfg-eth1 > Defines DEVICE=eth1, BOOTPROTO, BROADCAST, IPADDR, NETMASK, NETWORK, > ONBOOT, TYPE, USERCTL, PEERDNS, GATEWAY > > network-scripts/ifcfg-lo > Defines BROADCAST, ONBOOT, NAME=loopback > > I've chopped out most of the actual numbers for brevity but I'll > summarize: eth0's gateway is the same as the one in > /etc/sysconfig/network. Eth1's gateway is specific for its network. Each > interface and alias is on a seperate subnet but the default gateway is > actually fine for all of the source addresses - it'll route for all of the > interfaces. > > Can anyone tell me why I get the duplicate default route lines? If I > repeatedly do "route del -net 0.0.0.0" until there's only one left, > everything works again, but I need to prevent the duplicates from coming > back the next time the box starts. Am I defining something in the wrong > spot? > > It should probably be noted that I'm avoiding using redhat network config > tool because when I used it from stock 7.2 it screwed up network settings > a lot on another system. Also note all released redhat errata patches for > 7.2 have been installed - otherwise the system is pure enigma. > > -- > Trever > _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list