1836617 Members
2351 Online
110102 Solutions
New Discussion

Re: unable delete route

 

unable delete route

Hello to everybody,

I'm facing a problem with a Server HP (HP-UX 11.11) because I can not delete a static route:
#netstat -rn
10.200.32.0 10.201.32.33 (flag UHG)

I used many ways to do it using route delete command but nothing,the Gateway 10.201.32.33 does no longer exist and it seens this the poblem from my point of view.

I checked /etc/rc.netconfig.d/netconf and this route doesn't exist.

Please, could anyone help me?
in there a force way to remove it?

Note: I understand EN/ES/FR so feels free to use any 3 laguages

Thanks

Raciel Quesada
8 REPLIES 8
Roopesh Francis_1
Trusted Contributor

Re: unable delete route

please try this command
#route delete host 10.200.32.0 10.201.32.33 1
you flush the route using route -f also
Mel Burslan
Honored Contributor

Re: unable delete route

the command on the first response should work. If does not, please provide output from

netstat -rnf

command.
________________________________
UNIX because I majored in cryptology...

Re: unable delete route

Thanks so much frans2008 and Melburslan

Please, could you tell if I launch:
route delete -f net 10.200.32.0 10.201.32.33
all routes in routing table will be removed or just that route?

I checked "man route" but -f is not still clear for me!!!

I will try your recommendation as soon as possible!!!

thanks
Roopesh Francis_1
Trusted Contributor

Re: unable delete route

if you run route with -f option,it will
Delete all route table entries that specify a remote host for a gateway. If this is used with one of the subcommands, the entries are deleted before the subcommand is processed.

Mel Burslan
Honored Contributor

Re: unable delete route

If I were you, I would avoid using the -f option. It covers too big of a blanket of routes for my comfort level. If you leave the -f switch out, it will remove the network route you specify perfectly fine as long as you provide a network mask (netmask). If you are not sure which mask is being used for this network, just run

netstat -rnv

(my previous post mistakenly said -rnf which is wrong. it should have read -rnv as the command switches)

in the output you will see the netmask. At this point you can run something like

route delete net 10.200.32.0 netmask 255.255.255.0 10.201.32.33

which will delete your route (assuming you have a 24 bit netmask specified in the command line)

hope this helps
________________________________
UNIX because I majored in cryptology...

Re: unable delete route

Hello,

I removed the route using your advices, below trail of done it:

#netstat -rnv
#route delete net 10.200.34.0 netmask 255.255.255.0 10.201.34.33

really thank you so much for your help and keep helping people.

Raciel
Mel Burslan
Honored Contributor

Re: unable delete route

I'm glad that your problem has been resolved. Now, if you could please take time to assign points to the answers you have received, you will, first and foremost help others looking for the same answers, knowing a solution is provided in this question, second, you will reward those who took time from their daily tasks to answer your question. Thank you for reading this.
________________________________
UNIX because I majored in cryptology...
Suraj K Sankari
Honored Contributor

Re: unable delete route

Hi,

Please assign some points who give there valuable time for your problem.

To know how to assign points please go through the below link.


http://forums13.itrc.hp.com/service/forums/helptips.do?#33

Suraj