Question & Answer
Question
How do you make changes to an existing etherchannel from the command line(ex. Add adapter, add backup adapter, delete adapter, change mode of adapter)?
Answer
Add Adapter to existing Etherchannel
To add an adapter to an etherchannel from the command line you can do the following from the command line:
COMMAND
/usr/lib/methods/ethchan_config -a ent2 ent1
ent2 etherchannel
ent1 adapter to add
-a Flag to use for adding an adapter
This command is just to verify what we have configured before we add ent1 to the etherchannel:
lsattr -El ent2 It only shows ent0 as primary

After we added the adapter we ran the same command to verify what we have after the addition of ent1

Add Adapter as backup to the existing Etherchannel
To add an adapter to an etherchannel as a backup from the command line you can do the following from the command line:
COMMAND:
/usr/lib/methods/ethchan_config -a -b ent2 ent1
ent2 etherchannel
ent1 adapter to add
-a Flag to use for adding an adapter
-b Flag to use for adding as a backup adapter
To verify what we had before we made any changes we ran the following command:
lsattr -El ent2

To verify what we have after we added the backup adapter we run the same lsattr command.

Remove an adapter from an exsisting Etherchannel
To remove an adapter from an etherchannel from the command line you can do the following:
COMMAND:
/usr/lib/methods/ethchan_config -d ent2 ent1
ent2 etherchannel
ent1 adapter to remove
-d Flag to use for removing an adapter
This will only remove ent1 from the etherchannel. To verify what we have before we remove ent1 we can run the following command:
lsattr -El ent2

Now we run the same command above to verify that ent1 has been removed:

Change mode of an existing Etherchannel
To change the mode of an etherchannel from the command line you can do the following:
COMMAND:
/usr/lib/methods/ethchan_config -c ent2 mode 8023ad
ent2 etherchannel
-c Flag to use for changing the mode of an etherchannel
I will change the mode from standard to 8023ad. To verify what we have it set to now run the following command:

Now we run the same command above to verify that the mode has been changed to 8023ad.

Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
isg3T1011763