Operating System - HP-UX
1836484 Members
2392 Online
110101 Solutions
New Discussion

Re: How to delete a static network route

 
SOLVED
Go to solution
heb
Occasional Advisor

How to delete a static network route

using HP_UX 11i
static route was set up wrongly, the wrong netmask was entered.
netstat -rvn displays
10.3.0.0/255.255.255.0 2.5.9.252 UG 0 lan0 0
when using the command
route delete net 10.3.0.0 2.5.9.252 1
the error
delete net 10.3.0.0: gateway 2.5.9.252: no such route is displayed.
How can I delete this route and only this route and set it correctly?
5 REPLIES 5
Harmanjit_1
Frequent Advisor

Re: How to delete a static network route

Hi,

Can you please try

delete 10.3.0.0:gateway 2.5.9.252

thanks
heb
Occasional Advisor

Re: How to delete a static network route

Sorry but it doesn't like the word "gateway".

Thanks

heb
Enrico P.
Honored Contributor
Solution

Re: How to delete a static network route

Hi,
try:

route delete net 10.3.0.0 netmask 255.255.255.0 2.5.9.252

Enrico
heb
Occasional Advisor

Re: How to delete a static network route

Excellent.

That worked perfectly.

Thanks for your help

regards
heb
Occasional Advisor

Re: How to delete a static network route

Entering the netmask allowed the route command to work successfully