cancel
Showing results for 
Search instead for 
Did you mean: 

netstat show void route

SOLVED
Go to solution
Hakki Aydin Ucar
Honored Contributor

netstat show void route

zprev01# netstat -rn
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
192.168.35.12 192.168.35.12 UH 0 lan0 4136
192.168.35.0 192.168.35.12 U 2 lan0 1500
192.168.34.0 192.168.35.5 UG 0 lan0 1500
10.0.0.0 192.168.35.5 UG 0 lan0 1500
192.168.6.0 192.168.35.5 UG 0 lan0 1500
192.168.25.0 192.168.35.5 UG 0 lan0 1500
192.168.61.0 192.168.35.5 UG 0 lan0 1500
172.26.0.0 192.168.35.5 UG 0 lan0 1500
192.168.244.0 192.168.35.1 UG 0 lan0 1500
192.168.245.0 192.168.35.1 UG 0 lan0 1500
127.0.0.0 127.0.0.1 U 0 lo0 4136
192.168.42.0 192.168.35.1 UG 0 lan0 1500
default 192.168.35.1 UG 0 lan0 1500
zprev01# telnet 192.168.245.1 7
Trying...
zprev01# route delete 192.168.42.0 192.168.35.1
delete net 192.168.42.0: gateway 192.168.35.1: no such route

What can I do to delete this ghost route ?
6 REPLIES
Michal Kapalka (mikap)
Honored Contributor

Re: netstat show void route

hi,

could you try this :

route delete net

route delete net 192.168.42.0 netmask 255.255.255.0 192.168.35.1

mikap
Hakki Aydin Ucar
Honored Contributor

Re: netstat show void route

>Mikap:

# route delete net 192.168.42.0 netmask 255.255.255.0 192.168.35.1
delete net 192.168.42.0: gateway 192.168.35.1: no such route

again same error..
Matti_Kurkela
Honored Contributor

Re: netstat show void route

Try this command instead:
route delete 192.168.42.0 192.168.35.1 1
(note the extra 1 at the end)

In HP-UX, the route command has traditionally been a bit dumb: for all routes involving a gateway you must always include the hop count value. If the value is not included, the route command assumes it's 0 = no gateway involved.

If you try to manipulate a route that has a gateway and don't specify a hop count, the HP-UX route command will always display an error.

Some other Unix-style systems have a more intelligent default for the hop count value: "if the route parameters include a gateway specification, the default hop count is 1; else it's 0".

MK
MK
Hakki Aydin Ucar
Honored Contributor

Re: netstat show void route

>Matti: Try this command instead:
route delete 192.168.42.0 192.168.35.1 1
(note the extra 1 at the end)

again;

zprev01# route delete 192.168.42.0 192.168.35.1 1
delete net 192.168.42.0: gateway 192.168.35.1: no such route
Hakki Aydin Ucar
Honored Contributor

Re: netstat show void route

>Mikap: like Shannon says

first I run;
# /usr/sbin/route -f

then network disconnected ## Watch out you have to remote console OR you have to work backup server is able to rlogin ..


logon again and watched netstat -r ,problem solved.
run /sbin/init.d/net start ## to re-build routing table again.

Thanks everybody.