Maybe they are really in the odm already? They get recreated at reboot,
which if they are already in the odm you do not need in the rc.net file….
You could check the netstat -rn and see if the routes exist after reboot?
Do they have a c next to them meaning cloned routes? If so you can
turn off cloned routing (see below)
Check to see if there are there in the ODM? Did someone add them through smit mkroute?
lsattr -El inet0 to see if they are in the database……
If they are not in the database, you should be able to add them
in the rc.net file… If they are not in the ODM, and you still can't add them, well I don't know...that is strange.....
.But if they exist in the ODM you can delete them first
if you want to do it manually in the rc.net file.
-----------------------------------------
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.
================================================
Cloning routes in 4.3.3
add to rc.net also......They need to be before /usr/lib/methods/definet.
#no -o tcp_pmtu_discover=0
#no -o udp_pmtu_discover=0
. This values are set to 1 by default in AIX 4.3.3.
Which means clone routes....if you don't want cloned
routes change to zero.
Here is where it is (near the bottom) in the rc.net file:
at the very bottom..... /usr/sbin/no -o extendednetstats=0 >>/dev/null 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
#-)