Operating System - HP-UX
1829690 Members
7916 Online
109992 Solutions
New Discussion

deleting route address hpux

 
WilliamSmith11
Super Advisor

deleting route address hpux

Hi
I want delete a route address
# netstat -rn
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
172.16.180.43 172.16.180.43 UH 0 lan0 4136
172.16.0.0 172.16.180.43 U 2 lan0 1500
127.0.0.0 127.0.0.1 U 0 lo0 0
I am using the command
route delete 172.16.0.0 172.16.180.43

when I do a netstat -rn again the
# netstat -rn
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
172.16.180.43 172.16.180.43 UH 0 lan0 4136
127.0.0.0 127.0.0.1 U 0 lo0 0

the route does not appear , that is ok ,
but when i do a reboot the route addres is there again

how I do remove it permanently?

Thank you

w.s
rperez
3 REPLIES 3
Patrick Wallek
Honored Contributor

Re: deleting route address hpux

Check your /etc/rc.config.d/netconf file for the definitions of that route.

Either comment them out, or remove them from the file. I would recommend just commenting them out so you can reference it in the future if you need to.
A. Clay Stephenson
Acclaimed Contributor

Re: deleting route address hpux

Look in /etc/rc.config.d/netconf. The entry is probably in the ROUTE_DESTINATION[N]=,ROUTE_MASK[N]=, ... section of this configuration file.
If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: deleting route address hpux

I should add that while the entry is probably in the netconf file, it is possible that it is in a custom file in /sbin/init.d so if you don't find it in the standard location, /etc/rc.config.d/netconf then grep the scripts in /sbin/init.d/ for "route".
If it ain't broke, I can fix that.