UxxxxxxxxxxxxxxUnix Route
UxxxxxxxxxxxxxxUnix Route
To temporarily add a route on a system for this network, use the following route command:
# route add -net 10.0.0.0 -netmask 255.255.255.0 192.168.0.1
To make things permanent, use the chdev command. This command takes the following form
For example:
# chdev -l inet0 -a route=net,-netmask,255.255.255.0,-static,10.0.0.0,
192.168.0.1
inet0 changed
This time, again, you can confirm with the netstat -nr command that the route has been set
also confirm that the route has been added to the ODM, by using this command:
# lsattr -El inet0 -a route | grep 192.168.0.1
route net,-netmask,255.255.255.0,-static,10.0.0.0,192.168.0.1 Route True
At this point, you can reboot the system, and you'll notice that the route is still there, by rep
nr and lsattr -El inet0 commands.
To remove this permanent route from the AIX system, simply change the chdev command ab
"delroute":
# chdev -l inet0 -a delroute=net,-netmask,255.255.255.0,-static,10.0.0.0,
192.168.0.1
inet0 changed