Here is a quick guide on how to create an LACP etherchannel and add VLANs to that etherchannel.
Current System
root@csu-s:~# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
e1000g0: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
inet 0.0.0.0 netmask 0
ether 0:50:56:a9:e9:f8
e1000g1: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 5
inet 0.0.0.0 netmask 0
ether 0:50:56:a9:e9:f9
root@csu-s:~# dladm show-link
e1000g0 type: non-vlan mtu: 1500 device: e1000g0
e1000g1 type: non-vlan mtu: 1500 device: e1000g1
e1000g2 type: non-vlan mtu: 1500 device: e1000g2
e1000g3 type: non-vlan mtu: 1500 device: e1000g3
First, unplumb the interfaces
root@csu-s:~# ifconfig e1000g0 unplumb
root@csu-s:~# ifconfig e1000g1 unplumb
Create the etherchannel number 1 with both interfaces
root@csu-s:~# dladm create-aggr -d e1000g0 -d e1000g1 1
dladm: create operation failed: Device busy (invalid interface name)
root@csu-s:~#
Make sure no application is using the interfaces
root@csu-s:~# ps -ef | grep dhcp
root 26064 1 1 14:45:00 ? 0:29 /usr/local/sbin/dhcpd
root@csu-s:~# kill 26064
root@csu-s:~# dladm create-aggr -d e1000g0 -d e1000g1 1
root@csu-s:~#
root@csu-s:~# dladm show-link
e1000g0 type: non-vlan mtu: 1500 device: e1000g0
e1000g1 type: non-vlan mtu: 1500 device: e1000g1
e1000g2 type: non-vlan mtu: 1500 device: e1000g2
e1000g3 type: non-vlan mtu: 1500 device: e1000g3
aggr1 type: non-vlan mtu: 1500 aggregation: key 1
root@csu-s:~# dladm show-aggr 1
key: 1 (0x0001) policy: L4 address: 0:50:56:a9:e9:f8 (auto)
device address speed duplex link state
e1000g0 0:50:56:a9:e9:f8 1000 Mbps full unknown standby
e1000g1 0:50:56:a9:e9:f9 1000 Mbps full unknown standby
root@csu-s:~#
root@csu-s:~#
Make aggr LACP and short time interval
root@csu-s:~# dladm modify-aggr -l active -T short 1
root@csu-s:~#
root@csu-s:~# ifconfig aggr347001 plumb
root@csu-s:~# ifconfig aggr349001 plumb
root@csu-s:~# dladm show-link
e1000g0 type: non-vlan mtu: 1500 device: e1000g0
e1000g1 type: non-vlan mtu: 1500 device: e1000g1
e1000g2 type: non-vlan mtu: 1500 device: e1000g2
e1000g3 type: non-vlan mtu: 1500 device: e1000g3
aggr1 type: non-vlan mtu: 1500 aggregation: key 1
aggr347001 type: vlan 347 mtu: 1500 aggregation: key 1
aggr349001 type: vlan 349 mtu: 1500 aggregation: key 1
root@csu-s:~#
root@csu-s:~# cd /etc
root@csu-s:~# mv hostname.e1000g0 hostname.aggr349001
root@csu-s:~# mv hostname.e1000g1 hostname.aggr347001
root@csu-s:~#
Cisco
rt-10-sf#sh run int po98
Building configuration…
Current configuration : 212 bytes
!
interface Port-channel98
description RT-10-10-544-A trunk RT-1001
switchport
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 347,349
switchport mode trunk
no snmp trap link-status
end
rt-10-sf#sh run int g1/9/48
Building configuration…
Current configuration : 249 bytes
!
interface GigabitEthernet1/9/48
description RT-10-10-544-A trunk RT-1001
switchport
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 347,349
switchport mode trunk
no snmp trap link-status
channel-group 98 mode active
end
rt-10-sf#sh run int g2/9/3
Building configuration…
Current configuration : 248 bytes
!
interface GigabitEthernet2/9/3
description RT-10-10-553-C trunk RT-1001
switchport
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 347,349
switchport mode trunk
no snmp trap link-status
channel-group 98 mode active
end
rt-10-sf#
1 comment
Nemtallah,
Thank you very much for this quick and conceise guide. You always express things in a simple way, as in the KISS principle. Thank you again.