Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

deleteing a route

Status
Not open for further replies.

noelsita

Technical User
Apr 28, 2009
2
GB
I am trying to delete a route from the routing table on an aix server. The route is as follows :-

192.168.112.111/32 fcxxrs_abcdb UG 0 0 en2 - - =>

what is the correct route delete command to do this?

Thanks.
 
Another command that can be used is the chdev

Code:
chdev -l inet0 -a delroute=XXXXXXXXXXXXXXXXXX



Code:
To delete a static route:

# route delete [ net | host ] destination gateway [args]

To delete a static route for network 172.26.13.0/24 via 172.26.13.1:

# route delete net 172.26.13.0 172.26.13.1

To delete a static route to host 172.26.14.5 via 172.26.13.1:

# route delete host 172.26.14.5 172.26.13.1 
Example

route delete net 172.26.13.0 172.26.13.1


Regards,
Khalid
 
Thanks for the info.

I have been able to delete routes without too much bother in the past. However, if you look at the routing entry as displayed by netstat you can see that the destination address id :-

192.168.112.111/32

Is this a host or a network address!!??

I have tried the following but none seem to work :-

route delete 192.168.112.111 fcxxrs_abcdb
route delete 192.168.112.111/32 fcxxrs_abcdb
route delete -net 192.168.112.111 fcxxrs_abcdb
route delete -host 192.168.112.111/32 fcxxrs_abcdb
route delete -host 192.168.112.111 fcxxrs_abcdb

lsattr -El inet0 does not show this route so cannot use chdev command to delete it
 
Hello Noelsita,

Can you try with smitty tcpip - Further Confguration - Static Routes- than First list than attempt to remove if it's listed ..?

Good luck !

Regards :)
 
also just throwing this out there but if its not showing up in lsattr then do you have it being created in some rc script at boot or was this just a one time oops?

 
Subnetting for 32!?!?! Never had this before! it is a wrong subnet!

Have you tried the chdev? how about flushing the routing table (route -f)?

Regards,
Khalid

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top