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
Problems with NFS on an AIX Reboot? Then Go Single
Viewed 7415 times since Wed, May 30, 2018
Mirroring the rootvg Volume Group for AIX
Viewed 4079 times since Mon, May 21, 2018
View mksysb content & restore individual files
Viewed 1950 times since Tue, Jul 17, 2018
AIX - How to monitor CPU usage
Viewed 27562 times since Fri, Jun 8, 2018
Script to show Total, Free and Used Memory on AIX
Viewed 3467 times since Thu, Nov 29, 2018
Script to download TL and SP for AIX using NIM and SUMA
Viewed 9239 times since Thu, Feb 21, 2019
IBM AIX multipath I/O (MPIO) resiliency and problem determination
Viewed 13638 times since Wed, May 30, 2018
Replacing a failed disk (rootvg)
Viewed 3011 times since Mon, May 21, 2018
0516-404 allocp: This system cannot fulfill the allocation request. [AIX]
Viewed 5334 times since Thu, Sep 20, 2018
How to enable Large Pages for a specific user on AIX?
Viewed 2636 times since Thu, Nov 29, 2018