1753768 Members
5077 Online
108799 Solutions
New Discussion юеВ

Unable to delete route

 
Ceesjan van Hattum
Esteemed Contributor

Unable to delete route

Hi,
I'm trying to delete a simple route, but am
unable to do it.... what is it that i do not see.

(hp-ux 11.11)
$> netstat -rnv
172.x.y.z/255.255.255.224 10.126.a.b UG 0 lan0 0

$> route delete 172.x.y.z 10.126.a.b
delete host 172.x.y.z gateway 10.126.a.b: no such route

Strange... i've seen it before, so i also tried
to make some variations:

route delete net 172.x.y.z 10.126.a.b
route delete net 172.x.y.z netmask 255.255.255.224 10.126.a.b

all refuse to do what i want...

Please help me out.
Points will be reward.

Greetings,
Ceesjan
5 REPLIES 5
Geoff Wild
Honored Contributor

Re: Unable to delete route

route delete 10.126.a.b 172.x.y.z

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Mridul Shrivastava
Honored Contributor

Re: Unable to delete route

Deleting a Route
A route is deleted using the route command. The following example deletes a network route through
gateway 192.168.2.1.
# route delete net 192.168.4.0 192.168.2.1
delete net 192.168.4.0: gateway 192.168.2.1
#
An entire routing table may be flushed using the route -f command.
Time has a wonderful way of weeding out the trivial
Franky_1
Respected Contributor

Re: Unable to delete route

Hi Ceesjan,

normally it should go with

route delete net

I just tried and it worked

Regards

Franky
Don't worry be happy
Ceesjan van Hattum
Esteemed Contributor

Re: Unable to delete route

Hi,

For some reason, the command:
route delete net 172.x.y.z netmask 255.255.255.224 10.126.a.b
worked fine just now.

Still have no clue about what went wrong,
but anyway, thanks for your help.

Greetings,
Ceesjan
Ceesjan van Hattum
Esteemed Contributor

Re: Unable to delete route

Thnx