0% found this document useful (0 votes)
11 views4 pages

UxxxxxxxxxxxxxxUnix Route

Uploaded by

raj0000kaml
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views4 pages

UxxxxxxxxxxxxxxUnix Route

Uploaded by

raj0000kaml
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Route

Thursday, November 10, 2022 5:35 PM

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

# netstat -nr | grep 192.168.0.1


172.30.224/24 192.168.0.1 UG 0 0 en1 - -
To remove that route again, simply change the route command from "add" to "delete":
# route delete -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

chdev -l inet0 -a route=net,-netmask,[your-netmask-goes-here],-static,[your-network-addres


gateway-goes-here]

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

Remove a static route (ibm.com)

Remove a static route


From <https://www.ibm.com/support/pages/remove-static-route>
Remove a static route
From <https://www.ibm.com/support/pages/remove-static-route>

You might also like