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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deleting Routes 1

Status
Not open for further replies.

dcomit

Technical User
Jun 20, 2001
115
0
0
GB
I am trying to delete some routes using SMIT but it won’t let me do it. The routes as displayed in the routing table are something like:

Destination Gateway Flags Refs Use If PMTU Exp Groups
192.164.17/24 195.114.12.2 UGc 0 0 en1 - -
194.148.16.4/32 195.114.12.2 UGc 0 0 en1 - -

Can anybody help?
 
Have you tried using route delete <IP address> from the command line? HTH.
 
I need to use SMIT otherwise the route will be re-instated after a reboot. I can delete host routes but I'm having problems with those followed by /32 or /24
 
the /24 is a network of 255.255.255.0. You will have to delete it as 'net'. The /32 is a host that appears to have been entered as a network of 255.255.255.255. (You would do that for a VPN, maybe.) Delete is as 'net' as well.
 
The above is correct...BUT also..

I believe the c at the end of the flag means cloned routes....
You might also check to see if cloned routes are turned off....the default is to be on...
you check with the no command. If it is not turned off, it will reappear each time.
--------------------

Cloning routes in 4.3.3

This values os set to 1 by default in AIX 4.3.3.
Which means clone routes....if you don't want cloned
routes change to zero. From command line......
#no -o tcp_pmtu_discover=0
#no -o udp_pmtu_discover=0

Here is where it is (near the bottom) in the rc.net file:
at the very bottom..... /usr/sbin/no -o extendednetstats=0 >>/dev/nulloute 2>&1
if [ -f /usr/sbin/no ] ; then
/usr/sbin/no -o tcp_sendspace=65536
/usr/sbin/no -o tcp_recvspace=65536
/usr/sbin/no -o ipforwarding=1
/usr/sbin/no -o tcp_pmtu_discover=0
/usr/sbin/no -o udp_pmtu_discover=0
fi
------------------------------------------------
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)

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