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!

How to delete a static route!

Status
Not open for further replies.
Jan 15, 2001
80
US
How do ya delete a static route when route delete and smit can't? Both appear to have
deleted it, but the suckers are stll there
after re-boot.

Thanks!
 
Well is it possible that it was added to the rc.net file? a lot of people add it there
so it is there at the next reboot? The other thing is that it has to be removed pretty much as it was added....try to put the entire info in as well. check the lsattr when you are done to see if it is really gone...........

A drastic way besides the route flush
is to delete the settings and card
Remember the settings and gateways...then

do ifconfig en0 down
ifconfig en0 detach
ifconfig et0 down
ifconfiget0 detach
rmdev -dl en0
rmdev -dl et0
rmdev -dl ent0 (remove the card)
cfgmgr
Then go in and redo everything...
----------------------------------

Routes Routes You have to Have Routes!
To create/delete routes in AIX.
the chinet command (which smitty route uses) stores the route in the ODM.
These types of routes will be automatically recreated upon reboot.
OR the route add/delete command
Which creates the route, but does not store them in the ODM and hence
are lost upon reboot (unless a script is run from /etc/inittab to recreate
them or add to /etc/rc.net).


How do you tell if a route is in the ODM or not (besides rebooting to
see if it comes back)?
lsattr -El inet0

How do you clear a routing table? route -f (flush)

To establish a default gateway, enter:
route add 0 192.100.13.7

Add static routes with smitty smit mkroute or :
chdev -l inet0 -a addroute=XXXXXXXXXXXXXXXXXX

Remove static routes with smitty smit rmroute :
chdev -l inet0 -a delroute=XXXXXXXXXXXXXXXXXX

chdev -l inet0 -a delroute=net,destination_address,gateway,subnet_mask -
chdev calls a routine that will delete the route from the ODM.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top