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
Remove disk from volumegroup in AIX
Viewed 6379 times since Tue, Apr 16, 2019
Install and configure GNU’s screen on AIX
Viewed 8565 times since Thu, Feb 21, 2019
Getting list users and groups in AIX
Viewed 3166 times since Mon, May 28, 2018
Processes and Devices—It’s All About the Children
Viewed 1971 times since Wed, May 30, 2018
AIX snap - Prevent dump collection
Viewed 12137 times since Mon, Sep 17, 2018
AIX, user gets “pwd: The file access permissions do not allow the specified action.”
Viewed 10493 times since Tue, Mar 16, 2021
AIX - How to monitor CPU usage
Viewed 25983 times since Fri, Jun 8, 2018
AIX 6/7 Script to create a file with commands to remove missing and failed paths
Viewed 2931 times since Tue, Jun 14, 2022
Checking HBA status on AIX
Viewed 17575 times since Fri, Oct 5, 2018
Top 4 Reasons for Node Reboot or Node Eviction in Real Application Cluster (RAC) Environment
Viewed 80600 times since Thu, Jun 21, 2018