순서
net show config -> 묶어줄 포트 2개 확인 (running 상태가 아닌 포트)
net create virtual veth[5] -> 묶어준 포트를 할당할 가상 인터페이스 생성
net aggregate add veth[5] interfaces [ethMe] [ethMf] mode [lacp hash] [xor-L2] -> aggregate 생성
개요
Linux에서 bonding 중 모듈 LACP를 사용했다면, DD에서는 net aggregate이나 net failover를 사용한다
DDVE에는 없고, 실물 DD에만 있는 기능
종류 2개
- aggregate : 10GB 링크 2개를 묶어서 20GB로 쓰는 대신, 이중화가 안 된다 (Active - Active. 한 링크 장애 시 연결 X)
- failover : 10GB 링크 2개를 묶었지만 여전히 10GB인 대신, 이중화 제공 (Active - Standby. 한 링크 장애 시 Standby 링크가 Active로 전환)
Aggregate
명령어
mode 종류
- roundrobin : 권장하지 않음. 패킷을 순차적으로 전송
- (balanced, lacp) hash : 전송 해시를 사용하여 인터페이스 전체에 패킷을 배포
- xor-L2 : 소스 및 타겟 MAC 주소의 XOR
- xor-L3L4 (권장) : 소스 및 타겟 MAC 주소와 IP 주소의 XOR
- xor-L2L3 : 소스 및 타겟 IP 주소와 TCP의 XOR
L2 : Mac Address
L3 : IP Address
L4 : TCP / UDP port
묶어줄 포트 확인
net show config
net show hardware
ethMe와 ethMf를 묶으려고 한다
Aggregate를 하려면 활성화 되어 있지 않은 포트를 선택해야 한다! (State가 running이나 up이면 안 된다)
veth 생성
veth 생성
net create virtual veth5
veth : Virtual Ethernet Interface
veth 확인
net show config veth5
Aggregate
Aggregate 설정
net aggregate add veth[5] interfaces [ethMe] [ethMf] mode [lacp hash] [xor-L2]
Aggregate 확인
net aggregate show
Aggregate 수정
net aggregate modify [veth5] mode [lacp hash] [xor-L3L4]
ip 할당
net config [ifname] [ip address] netmask [netmask]
Aggregate 삭제
net aggregate del veth5 interfaces all
veth 삭제
net destroy veth5
failover
명령어
primary :
묶어줄 포트 확인
net show config
net show hardware
ethMe와 ethMf를 묶으려고 한다
Aggregate를 하려면 활성화 되어 있지 않은 포트를 선택해야 한다! (State가 running이나 up이면 안 된다)
veth 생성
veth 생성
net create virtual veth5
veth : Virtual Ethernet Interface
veth 확인
net show config veth5
failover 생성
net failover add [veth5] interfaces [ethMe] [ethMf]
failover 확인
net failover show
failover 수정
net failover modify [veth5] primary [ethMe]
ip 할당
net config [ifname] [ip address] netmask [netmask]
failover 삭제
net failover del veth5 interfaces all