Steve's Power Systems BlogPower BlogContactLog inRegister
  • Power Blog
  • Contact

  • Register

IBM Power Systems Blog

Power Systems
  • Front Page
  • Categories
  • Archives
  • Latest comments
  • « Configure 40GbE RoCE Converged Ethernet Adapter
  • Building a PowerHA Cluster with vscsi disks »

Creating EtherChannel Devices from Command Line

Posted by steve on 09 Sep 2016 in AIX Tips

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.

 

 

Tags: AIXEtherChannelmkdev

2 comments

Comment from: nicu Visitor

nicu

Big thanks. Did you determine the _-s pseudo -t ibm_ech_ via odm ?

07/07/17 @ 06:48 pm

Comment from: steve Member


Fatal error: Uncaught Error: Call to undefined function finfo_open() in /home4/capacity/public_html/AIX_Blog/inc/files/model/_file.funcs.php:379 Stack trace: #0 /home4/capacity/public_html/AIX_Blog/inc/files/model/_file.funcs.php(405): is_image_file('/home4/capacity...') #1 /home4/capacity/public_html/AIX_Blog/inc/files/model/_file.class.php(1019): imgsize('/home4/capacity...', 'widthheight') #2 /home4/capacity/public_html/AIX_Blog/inc/files/model/_file.class.php(1037): File->load_lastmod_ts() #3 /home4/capacity/public_html/AIX_Blog/inc/files/model/_file.class.php(2499): File->get_lastmod_ts() #4 /home4/capacity/public_html/AIX_Blog/inc/files/model/_file.class.php(2715): File->get_thumb_url('crop-top-64x64', '&', 1) #5 /home4/capacity/public_html/AIX_Blog/inc/files/model/_file.class.php(2558): File->get_img_attribs('crop-top-64x64', '', NULL, 1, NULL) #6 /home4/capacity/public_html/AIX_Blog/inc/users/model/_user.class.php(5244): File->get_thumb_imgtag('crop-top-64x64', 'bCommentAvatar', '', '', NULL) #7 /home4/capacity/pu in /home4/capacity/public_html/AIX_Blog/inc/files/model/_file.funcs.php on line 379