[PIOLINK] L4스위치 SLB 설정 방법
1.Port-Boundary 설정
(config)# port-boundary 1 – port-boundary ID값 지정(1-16) 낮을수록 우선순위 높음
(config-port-boundary[1])# port ge1,ge2 – 물리적으로 연결 된 포트 지정
(config-port-boundary[1])# apply
2. Health-Check 설정
(config)# health-check 1 – health-check ID값 지정
(config-health-check[1])# type tcp – health-check 대상 프로토콜 종류 지정(ex icmp,tcp,udp)
(config-health-check[1])# port 80 – health-check 대상 실제 포트 지정
(config-health-check[1])# apply
3. Real Server 설정
(config)# real 1 – Real Server ID값 지정
(config-real[1])# name real-1 – Real Server 이름 설정
(config-real[1])# rip 1.1.1.101 – Real Server IP 설정
(config-real[1])# apply
4. SLB 설정
(config)# slb test – SLB 서비스 이름 설정
(config-slb[test])# vip 1.1.1.100 protocol tcp vport 80 – PAS-K에서 생성한 가상 ip,port 및 프로토콜 지정
(config-slb[test])# nat-mode dnat – NAT 방식 설정(dnat,lan-to-lan)
(config-slb[test])# lb-method rr – 부하부산 방식 설정(rr,rc,sh)
(config-slb[test])# real 1 – 해당 SLB 서비스 real server 지정
(config-slb[test])# health-check 1 – 해당 SLB 서비스 health-check 지정
(config-slb[test])# apply
5. 동작 확인
# show info slb
# show statistics slb
# show summary
# show entry, show persist