Operating System - HP-UX
1833771 Members
2227 Online
110063 Solutions
New Discussion

Static routes move to lo0

 
Hector Vargas
Frequent Advisor

Static routes move to lo0

I have a problem with hpux11.11.

I define static routes on /etc/rc.config.d/netconf and reboot my server but when I try to delete the route, I get a meesages "route does not exist.

dsudsas1:/etc/rc.config.d/OLDNETCONF # netstat -rn
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
10.194.13.194 10.194.13.194 UH 0 lan2 4136
10.194.13.209 10.194.13.209 UH 0 lan0 4136
198.226.35.93 198.226.35.93 UH 0 lan1 4136
10.194.13.208 10.194.13.209 U 2 lan0 1500
198.226.35.80 198.226.35.93 U 2 lan1 1500
10.194.13.192 10.194.13.194 U 2 lan2 1500
10.0.0.0 10.194.13.193 UG 0 lan2 0
127.0.0.0 127.0.0.1 U 0 lo0 0
default 198.226.35.81 UG 0 lan1 0
dsudsas1:/etc/rc.config.d/OLDNETCONF # route delete 10.0.0.0 10.194.13.193
delete net 10.0.0.0: gateway 10.194.13.193: no such route
dsudsas1:/etc/rc.config.d/OLDNETCONF #
8 REPLIES 8
IT_2007
Honored Contributor

Re: Static routes move to lo0

what it shows with ifconfig lan2 ? Try to take lan2 down if it is not in use.

ifconfig lan2 unplumb

netstat -rn

IT_2007
Honored Contributor

Re: Static routes move to lo0

Just saw your subject line that you want to move static routes to lo0?

Routes for any 127.*.*.* loopback destination cannot be added or
deleted.
Hector Vargas
Frequent Advisor

Re: Static routes move to lo0

Here is:
dsudsas1:/etc/rc.config.d/OLDNETCONF # ifconfig lan2 unplumb
dsudsas1:/etc/rc.config.d/OLDNETCONF # netstat -rn
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
10.194.13.209 10.194.13.209 UH 0 lan0 4136
198.226.35.93 198.226.35.93 UH 0 lan1 4136
10.194.13.208 10.194.13.209 U 2 lan0 1500
198.226.35.80 198.226.35.93 U 2 lan1 1500
10.0.0.0 10.194.13.193 UG 0 lan1 0
127.0.0.0 127.0.0.1 U 0 lo0 0
default 198.226.35.81 UG 0 lan1 0
Hector Vargas
Frequent Advisor

Re: Static routes move to lo0

Yes, during troubleshooting I connect on the serial connection and unplumb all the interfaces and I notice that the default route move to lo0 interface and will not allow me to delete it.
IT_2007
Honored Contributor

Re: Static routes move to lo0

Here is:
dsudsas1:/etc/rc.config.d/OLDNETCONF # ifconfig lan2 unplumb
dsudsas1:/etc/rc.config.d/OLDNETCONF # netstat -rn
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
10.194.13.209 10.194.13.209 UH 0 lan0 4136
198.226.35.93 198.226.35.93 UH 0 lan1 4136
10.194.13.208 10.194.13.209 U 2 lan0 1500
198.226.35.80 198.226.35.93 U 2 lan1 1500
10.0.0.0 10.194.13.193 UG 0 lan1 0
127.0.0.0 127.0.0.1 U 0 lo0 0
default 198.226.35.81 UG 0 lan1 0
==================

It shows it removed entries for lan2 now. So what are trying to do now?
Hector Vargas
Frequent Advisor

Re: Static routes move to lo0

Here is an example of what I see.

unplumb interface lan1 and the default route moves to lo0

sudsas1:/sbin/init.d # netstat -rn
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
10.194.13.194 10.194.13.194 UH 0 lan2 4136
10.194.13.209 10.194.13.209 UH 0 lan0 4136
198.226.35.93 198.226.35.93 UH 0 lan1 4136
10.194.13.208 10.194.13.209 U 2 lan0 1500
198.226.35.80 198.226.35.93 U 2 lan1 1500
10.194.13.192 10.194.13.194 U 2 lan2 1500
10.0.0.0 10.194.13.193 UG 0 lan2 0
127.0.0.0 127.0.0.1 U 0 lo0 0
default 198.226.35.81 UG 0 lan1 0
dsudsas1:/sbin/init.d # ifconfig lan1 unplumb
dsudsas1:/sbin/init.d # netstat -rn
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
10.194.13.194 10.194.13.194 UH 0 lan2 4136
10.194.13.209 10.194.13.209 UH 0 lan0 4136
10.194.13.208 10.194.13.209 U 2 lan0 1500
10.194.13.192 10.194.13.194 U 2 lan2 1500
10.0.0.0 10.194.13.193 UG 0 lan2 0
127.0.0.0 127.0.0.1 U 0 lo0 0
default 198.226.35.81 UG 0 lo0 0
IT_2007
Honored Contributor

Re: Static routes move to lo0

If you network cables properly hooked up and netconf configured well then it would be cache. Clear cache using arp -d command.

restart network.
Hector Vargas
Frequent Advisor

Re: Static routes move to lo0

I need to add "host" on my netconf file.