# route delete -net 10.0.0.0 -netmask 255.255.255.0 192.168.0.1Īgain, confirm with the netstat -nr command that the route indeed has been removed. To remove that route again, simply change the route command from "add" to "delete": # route add -net 10.0.0.0 -netmask 255.255.255.0 192.168.0.1Īfter running this command, you can use the netstat -nr command to confirm that the route indeed has been set up: To temporarily add a route on a system for this network, use the following route command: Obviously, please adjust this to your own situation. Finally, the gateway that can be used to access this network is 192.168.0.1. And that network uses a netmask of 255.255.255.0 (or "24" for the short mask notation). Let's say you have a need to add a route on a system to network 10.0.0.0. When this command is used, the route will persist during reboots, as this command writes to information of the route in to the ODM of AIX. The second command is chdev -l inet0 that can be used to permanently add a route on an AIX system. Meaning, if the system is rebooted, after the route has been added, the route will be lost again after the reboot. The first one is route, and can be used to temporarily add a route to an AIX system. There are two commands that can be used to add a route on an AIX system. Topics: AIX, Networking ↑ Adding and deleting a static network route using the command line Now run the entstat command again to determine the active channel: You may also notice messages being logged in the error report by running the errpt command in the form of "ETHERCHANNEL FAILOVER". Please note that it is best to run this command from the console, as you may temporarily lose network connectivity when the Etherhannel is failing over. # /usr/lib/methods/ethchan_config -f ent4 Now, force it to fail over to the primary adapter: To see the defined adapters for both primary and backup, run: # entstat -d ent4 | grep "Active channel"Īs you can see, the Etherchannel is currently active on the backup adapter. For example, if the Etherchannel is called ent4, run: To do this, first check what the currently active adapter is within the Etherchannel. When an Etherchannel has been configured on AIX, using a primary and a backup adapter for failover purposes, it is possible to force a failover between these adapters. Topics: AIX, Networking Etherchannel failover testing
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |