[CentOS] Problem deleting an active route
lists at ehome.net
Fri Sep 22 14:41:24 UTC 2006
Thanks for the reply, I have pasted my complete routing table below.
Email Lists wrote:
> -> -----Original Message-----
> -> From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On
> -> Behalf Of Dale
> -> Sent: Friday, September 22, 2006 12:01 AM
> -> To: CentOS mailing list
> -> Subject: Re: [CentOS] Problem deleting an active route
> -> Hello,
> -> Distro is a standard CentOS 4.4. Nothing unusual is installed or is
> -> running on this box as it was just setup a couple of weeks ago.
> -> As root, I type:
> -> ./route del -net 169.254.0.0
> -> which returns an error of:
> -> SIOCDELRT: Invalid argument
> -> This route shows up in Webmin as well as when I type: ./route
> -> This is not configured as a network interface anyplace I can see. eth0
> -> has a legitimate, public IP assigned to it
> -> Dale
> Im pretty sure if you want to delete a route that you need to use a more
> verbose syntax with netmask and gw and etc.
> When I do a route on one of my boxes it comes up
> [root at srv ~]# route
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> 10.0.0.0 * 255.255.255.0 U 0 0 0 eth1
> 18.104.22.168 * 255.255.255.0 U 0 0 0 eth0
> 169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
> default br1.abbacomm.ne 0.0.0.0 UG 0 0 0 eth0
> eth0 is active and up. Eth1 is not active and not plugged into anything.
Here is my complete route table:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
22.214.171.124 * 255.255.255.192 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 126.96.36.199 0.0.0.0 UG 0 0 0 eth0
The big difference between mine and yours is that the 169.254.0.0 route
is showing up on eth0 - which is the only port connected. I can get into
the box, but the box can not get out to anyplace. I could be looking in
the wrong place for the solution, I figured that this looks wrong to
have this apparent self-assigned IP on my only active ethernet port.
> I show the route as well only because I have an inactive interface meaning
> it is not admin up and so there really is no route because the interface
> isn't talking to another external interface.
> There is no reason to delete it that I can think of.
> If it is not on your active interface, down the other one as long as you can
> get back in the machine and forget about it???
This is my only active port. If I shut it down, the machine goes away.
> What does your routing table say?
> What does ifconfig say?
eth0 Link encap:Ethernet HWaddr 00:30:48:89:09:EC
inet addr:188.8.131.52 Bcast:184.108.40.206 Mask:255.255.255.192
inet6 addr: fe80::230:48ff:fe89:9ec/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:301425 errors:0 dropped:0 overruns:0 frame:0
TX packets:39974 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:21343464 (20.3 MiB) TX bytes:8486082 (8.0 MiB)
Base address:0x2000 Memory:c8200000-c8220000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2627 errors:0 dropped:0 overruns:0 frame:0
TX packets:2627 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:3340381 (3.1 MiB) TX bytes:3340381 (3.1 MiB)
> - rh
> Robert - Abba Communications
> Computer & Internet Services
> (509) 624-7159 - www.abbacomm.net
More information about the CentOS