AIX Creating EtherChannel Devices from Command Line

I needed to create some EtherChannel devices on several AIX LPARs, and did not want to go through the smit panels every time.

I was testing network performance and wanted to add these to a script, so I could test standalone adapter configurations vs EtherChannel configurations, and leave my scripts running over night.

Here are the steps to create an EtherChannel device on AIX.

 

Create the eth device.  My primary Ethernet adapter is ent1 and the backup adapter is ent3.  This EtherChannel device will fail-over to the backup adapter and fail-back to the primary automatically.  The netaddr supplied is a reliable network device to ping to confirm which adapters are up or down, so I used the default gateway.

mkdev -c adapter -s pseudo -t ibm_ech -a adapter_names='ent1' -a backup_adapter='ent3' -a netaddr='192.168.2.1' -a num_retries='2' -a retry_time='1'

 

Create the et and en devices.

/usr/lib/methods/defif

 

Now add the IP address to the EtherChannel device.

chdev -l en4 -a netaddr=192.168.2.100 -a netmask=255.255.255.0 -a state=up

 

To clean up and delete the EtherChannel, just rmdev the ent, en and et devices, then configure one of the standalone adapters with the servers IP address as needed.

 

0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
What is OS Watcher Utility and How to use it for Database Troubleshooting ?
Viewed 31501 times since Thu, Jun 21, 2018
Installation of the Virtual I/O Server directly from the HMC
Viewed 23084 times since Tue, Jun 4, 2019
replacing (hot-swap) failed disk in rootvg
Viewed 9821 times since Thu, Sep 20, 2018
Working with Virtual media library on VIO servers
Viewed 17343 times since Thu, Feb 21, 2019
DISK OPERATION ERROR in AIX
Viewed 15532 times since Thu, Feb 21, 2019
Secure Secure Shell
Viewed 12015 times since Fri, Aug 21, 2020
Remove disk from volumegroup in AIX
Viewed 7995 times since Tue, Apr 16, 2019
AIX - How to monitor memory usage
Viewed 6780 times since Fri, Jun 8, 2018
Recovery AIX system when hang on boot (554 code error).
Viewed 17940 times since Thu, Feb 21, 2019
AIX HA / HACMP, System Admin↑ Mountguard
Viewed 8178 times since Mon, Jun 3, 2019