On Wed, 14 Aug 2002, Lou Hamilton wrote: > List: > > I am having an issue with my local routing table on my RH7.3 > Workstation. I have some extra lines in my routing table that I am > having difficulties removing.
[snip] > > My 'ifconfig' is showing that I am getting an IP address from the DHCP > and it is valid on my network. > > 'route -n', however, is showing that I have too many routes in my table > and seems to be confusing the packets and sending everything to the > default gateway. I do not even know where these routes came from. I > never entered anything in manually. I only activated the eth0 interface. > > My results of '/sbin/route -n' are: > > Destination Gateway Genmask Flags Metric Ref Use > Iface > 0.0.0.0 192.168.1.1 255.255.255.255 UGH 0 0 0 eth0 > 192.168.1.0 192.168.1.1 255.255.255.0 UG 0 0 0 eth0 > 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 > 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth0 > 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 > > My new issue is getting rid of the unwanted routes (lines 1 and 2). I > have tried the 'route del' command to no avail. If anyone has any ideas > on a syntax that will make this work, it would be greatly appreciated. I don't think you need to delete the first route entry, because that only routes packets to host 0.0.0.0 to the DHCP router. The one you want to delete is #2: route del -network 192.168.1.0 gw 192.168.1.1 should work. As a side note, but perhaps not part of your problem, the route for 127.0.0.0 is wrong. It should NOT point to "eth0" but the "lo" Jim -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list