2swan

EtherChannel 생성/제거 본문

AIX

EtherChannel 생성/제거

2swan 2024. 6. 7. 10:52

*참고

현재 네트워크 인터페이스 확인

# netstat -in

 

사용할 수 있는 port 확인

# lsdev -Cc adapter | grep ent

 

어떤 포트로 이더채널 구성되었는지 확인

# netstat -v ent4 | grep -i ether

 

이더채널의 링크 속도 확인

# netstat -v ent4 | grep Speed

 

Active channel과 speed를 동시에 확인하는 명령어

# netstat -v ent4 | egrep -i "active|speed"

 

 

▶ Etherchannel 생성

 

1. Network Adapter 확인

# lsdev -Cc adapter

# lsdev -Cc if

 

 

 

2. EhterChannel 구성

# smitty ehterchannel

 

 

 

3. ent0 선택

 

 

 

4. Add An EherChannel

- Backup으로 작동할 ent3 : primary가 문제 생기면 ent3가 대체

 

- Automatically Recover to Main Channel

   Yes : Failover 발생 후 Recover 될 때, 자동으로 Active 채널로 복원

   no : Failover 발생 후 Recover 될 때, Active 채널로 복원하지 않고 Backup 채널 사용

- Mode 구성

   Standard : Default로 설정된 mode로 0과 1로 들어오는 패킷을 0과 1을 분리해서 각각의 어댑터로 송수신하게 된다.

   Round-Robin : 들어오는 패킷을 정확히 둘로 나누어 송수신한다.

   8023ad : loard balance 기능은 없고, active-standby 방식. 하나의 interface가 멈추면 대기하던 다른 interface가 작동.

Alternate Address : 기본적으로 해당 어댑터에 주어진 MAC을 사용하지만 사용자가 원할 경우 다른 MAC Address를 할당해서 사용 가능

 

Enable Gigabit Ethernet.. : Network상의 다른 장비도 모두 9000을 지원하고 Gigabit Network을 사용하는 상황이라면 어느정도의 성능 향상을 기대할 수 있지만, 아니라면 성능이 저하될 가능성이 있다. (MTU가 9000으로 변경되니 사용에 신중을 가한다.)

Mode는 EtherChannel용으로 선택한 ent 사용 형태를 결정

 

IEEE 802.3ad Interval : Link Aggregation 기능을 사용하여 대역폭을 넓힌 형태. 이 기능을 사용하려면, LACP(Link Aggregation ControlProtocol) 기능이 있는 스위치를 사용 해야 함

 

Internet Address to Ping : 물리적인 어댑터를 통한 통신에 문제가 없는 지를 확인하기 위해 외부 IP를 주기적으로 Ping하여 응답을 받기 위한 목적. 만약 전체 네트워크에는 문제가 없지만, Ping 의 대상이 되는 장비만 장애인 경우 EtherChannel 어댑터의 현재 사용 중인 물리적 어댑터에 문제가 있다고 생각하여 다른 어댑터로 Failover를 시도하는 경우가 발생할 수 있다. 결과적으로 Ping 대상 장비의 정상화가 되기 전까지는 EtherChannel 내부에서 물리적 어댑터끼리 주거니 받거니 하는 상황이 벌어지게 될 수 있다.

 

Number of Retries, Retry Timeout(Sec) : Internet Address to Ping에 IP가 있고, 백업 어댑터가 있는 경우에만 해당된다.

 

 

 

5. Etherchannel 구성 확인

# lsdev -Cc adapter : Etherchannel en4 생성 확인

 

 

 

6. 생성한 Etherchannel 구성 확인

# smitty mktcpip : en4 선택

Hostname, IP, 서브넷 마스크, 게이트웨이 설정 해준다.

백업의 IP의 경우 chinet으로 진행해도 된다.

 

 

 

7. ip, subnet, gateway 작성 후 'Start Nowyes

 

 

 

8. Etherchannel 구성 확인

# lsdev -Cc adapter

# lsdev -Cc if

 

 

 

9. Etherchannel 정보 확인

# entstat -d ent4 or entstat -d ent4 | grep Active 

Active channel : primary channel 나오는지 확인

 

# topas -E

 

# lsattr -El ent4

- 활성화된 Interfaace : ent0

- Backup Interface : ent3

- Etherchannel Mode : Standard

 

 

Automatically Recover to Main Channel 항목을 no로 설정 하였을 때 예시상황

1. ent0 포트케이블 제거 후 확인

# entstat -d ent4 or entstat -d ent4 | grep -i active

Active channel : backup channel ( 백업 포트가 활성 상태 )

 

# topas -E

 

 

 

2. primary인 ent0을 다시 복구 

ent0 다시 꽂아도 primary로 대체 안된다. 이더채널 생성할 때 Automatically Recover to Main Channel 항목을 no로 설정하였기 때문에

 

▶해결방안

# smit etherchannel

> Force A Failover In An EtherChannel / Link Aggregation

>> ent4

(작업 시 핑이 끊기면 안되는 어플리케이션의 있는 지 여부를 확인하고 작업한다.)

 

# entstat -d ent4 or entstat -d ent4 | grep  -i active

Active channel : Primary channel ( Primary 포트가 활성 상태 )

 

 

 

3. 이더채널 장치 제거

# smitty chinet

> en4

>> Curremt STATE를 detach

 

※ LACP(Link Aggregation Control Protocol) Mode :

LACP, 802.3ad, link aggregation 같은 말이며, 두 개 이상의 NIC를 하나로 묶어서 대역폭을 늘리는 것.

예를 들어 10G 6개를 LACP 모드로 묶으면 60G 대역폭을 사용할 수 있고 만약 1개의 인터페이스가 문제 생길시 1/6 성능만 저하된다

이 모드는 VM에서 많이 사용하고, 성능이 중요한 서버는 LACP를 사용

 

 

※ smit mktcpip, smit chinet 차이점

     mktcpip는 초기 IP 설정 시 사용 ( default 게이트 웨이, 호스트 네임 설정 )

     hinet는 다른 IP로 변경 시 사용 ( dafault 게이트 웨이, 호스트 네임 설정 없음)


 

▶ Etherchannel 제거

1. Etherchannel Backup adapter 제거

# smitty etherchannel

 

 

 

2. Change / Show Characteristics of an EtherChannel / Link Aggregation

 

 

 

3. Delete Backup Adapter

 

 

 

상황1)

4. adapter를 제거 한 후, 일반 adapter 교체 절차

- rmdev -dl 'Error Adapter' (물리적 어댑터 중 장애가 발생한 것 제거)

- diag -> Taks Manager -> Hot Plug Task -> PCI Hot Plug Manager (어댑터 교체)

- cfgmgr 명령으로 교체한 어댑터를 다시 인식

 

*Etherchannel 내의 Active / Backup adapter 추가 절차

- Add Main adapter 또는 Backup adapte에 넣어주고자 하는 adapter를 선택

 

 

 

상황2)

4. Interface를 시스템에서 분리 작업 (물리적으로 Cable 제거하지 않고 Network Interface비활성화)

# smitty chinet : en0, en4 detach

 

 

 

5. Remove an EtherChannel / Link Aggregation

# smitty etherchannel

 

 

 

6. IP 재구성

# smitty mktcpip : 적용이 끝나고 난 뒤 반드시 'START NOW'  yes로 변경

 

 

 

 

'AIX' 카테고리의 다른 글

폴더 및 파일 단위 용량 보기  (0) 2024.06.10
기타  (0) 2024.06.10
errpt  (0) 2024.06.05
dev  (0) 2024.06.05
hdisk 순서 / 번호 변경  (0) 2024.06.03