1. EtherChannel 이란?
스위치의 여러개의 포트를 묶어 하나의 포트처럼 작동하게 하는 기술로, 넓은 대역폭을 확보하거나, 하나의 포트가 고장나도 작동하는데 이상이 없도록하는 기술이다. 스위치 제조사에 따라서, port trunking, port aggregation, teaming, bonding 등 여러가지 이름으로 사용된다.
2. Aix에서 etherchannel 구성.
구성환경
기계: IBM P570
OS: AIX 6.1.10
etherchannel을 구성하기 위해서는 최소한 2개 이상의 NIC이 필요하다. 아래는 ent0, ent1 두개의 NIC가 있음을 확인 가능하다.
# lsdev -Cc adapter ent0 Available 0K-08 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902) ent1 Available 0K-09 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902) fcs0 Defined 0V-08 FC Adapter ...
구성하기전에 ent0, ent1을 define 상태로 만든다.
# rmdev -l ent0 ent0 Defined # rmdev -l ent1 ent1 Defined
ether channel 구성
# smitty etherchannel
EtherChannel / IEEE 802.3ad Link Aggregation Move cursor to desired item and press Enter. List All EtherChannels / Link Aggregations Add An EtherChannel / Link Aggregation Change / Show Characteristics of an EtherChannel / Link Aggregation Remove An EtherChannel / Link Aggregation Force A Failover In An EtherChannel / Link Aggregation
Add An EtherChannel / Link Aggregation 선택
Available Network Interfaces x x x x Move cursor to desired item and press Esc+7. x x ONE OR MORE items can be selected. x x Press Enter AFTER making all selections. x x x x ent0 x x ent1 x
ent0를 선택하고,
Add An EtherChannel / Link Aggregation
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
EtherChannel / Link Aggregation Adapters ent0 +
Enable Alternate Address no +
Alternate Address [] +
Enable Gigabit Ethernet Jumbo Frames no +
Mode 8023ad +
IEEE 802.3ad Interval long +
Hash Mode default +
Backup Adapter ent1 +
Automatically Recover to Main Channel yes +
Perform Lossless Failover After Ping Failure yes +
Internet Address to Ping []
Number of Retries [] +#
Retry Timeout (sec) [] +#
backup adapter에 ent1을 선택한 후,
5번째 Mode를 선택하면 아래와 같은 화면을 볼 수 있다.
x Mode x x x x Move cursor to desired item and press Enter. x x x x standard x x round_robin x# x 8023ad x# x x
standard : 어떤 packet이 어떤 interface를 통해 나갈지를 hash방식으로 결정.
round_robin: packet이 순서대로 interface를 통해서 나감. standard에 비해 load balance가 잘 됨.
802.3ad: loard balance 기능은 없고, active-standby 방식. 하나의 interface가 멈추면 대기하던 다른 interface가 작동.
여기서는 세번째 방식으로 구성해 본다.
8023ad를 선택하고 실행하면 새 인터페이스 ent2가 만들어진다. lsdev 커맨드로 확인해 보면 아래와 같이 ent2가 만들어진 것을 확인 할 수 있다.
# lsdev -Cc adapter ent0 Available 0K-08 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902) ent1 Available 0K-09 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902) ent2 Available EtherChannel / IEEE 802.3ad Link Aggregation
만들어진 ent2에 ip주소를 할당하고 사용한다.
# smitty chinet
Change / Show a Standard Ethernet Interface
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
Network Interface Name en2
INTERNET ADDRESS (dotted decimal) [192.168.0.200]
Network MASK (hexadecimal or dotted decimal) [255.255.255.0]
Current STATE up +
Use Address Resolution Protocol (ARP)? yes +
BROADCAST ADDRESS (dotted decimal) []
Interface Specific Network Options
('NULL' will unset the option)
rfc1323 []
tcp_mssdflt []
tcp_nodelay []
tcp_recvspace []
tcp_sendspace []
Apply change to DATABASE only no +
ip 주소를 설정하고 확인해본다.
# ifconfig -a
en2: flags=5e080862,c0<BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),PSEG,LARGESEND,CHAIN>
inet 192.168.0.200 netmask 0xffffff00 broadcast 192.168.0.255
tcp_sendspace 131072 tcp_recvspace 65536 rfc1323 0
lo0: flags=e08084b,c0<UP,BROADCAST,LOOPBACK,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,LARGESEND,CHAIN>
inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
inet6 ::1%1/0
tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1
etherchannel 상태 확인
# entstat -d en2 | grep -i "number of adapters"
Number of adapters: 2
# entstat -d en2 | grep -i link
Device Type: IEEE 802.3ad Link Aggregation
Statistics for every adapter in the IEEE 802.3ad Link Aggregation:
IEEE 802.3ad Link Aggregation Statistics:
Link Status : Up
Link Status : Up
# entstat -d en2 | grep -i active
Active channel: backup adapter
LACP activity: Active
LACP activity: Active