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

Re: deleting route?



Duane wrote:

Hi,

This really isn't an RedHat install issue but I'm hoping someone can clear up what I thought was a quite simple issue.

I have a route on eth1 (my internal interface) that I think is wrong. I can't reach userfriendly.org which may or may not be caused by the questionable route
BUT HERE GOES


netstat -rn shows:
# netstat -rn
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 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0


I think (could be wrong) that the destination 169.254.0.0 on eth1 is wrong so I've tried to delete it via route (I think)
I tried (and the result):
# route del 169.254.0.0
SIOCDELRT: No such process


so I thought maybe:
# route del -net 169.254.0.0
SIOCDELRT: Invalid argument

then maybe:
# route del -host 169.254.0.0
SIOCDELRT: No such process

Obviously I have just enough knowledge to be dangerous, my question:

What is the right command to delete a route?
Actually, what is the right command to clean this up?





_______________________________________________
Redhat-install-list mailing list
Redhat-install-list redhat com
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
redhat-install-list-request redhat com
Subject: unsubscribe

I've got that route configured as well...I believe thats an AutoIP address route (system for automatic address allocation when no DHCP available).

If you want to remove it try:

route del -net 169.254.0.0 -netmask 255.255.0.0 dev eth1

and if that was a bad move then:

route add -net 169.254.0.0 -netmask 255.255.0.0 dev eth1

should put it back. (you can change dev to appropriate device)

Stu C




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