Network/Arista

[Network] Arista Switch VRRP TEST 및 특이사항

치즈잼 2024. 12. 2. 09:57
728x90
아리스타 스위치의 VRRP 이중화 테스트 및 특이사항에 대해 정리해 보았습니다.

테스트 환경 : EVE-NG

스위치 버전 : EVE-NG Arista 4.28.3M

 

구성 환경

특이사항 :

 

1. ip routing 명령어를 넣지 않으면 VRRP가 활성화 되지 않음

2. ntp serve

- ntp serve라는 명령어가 있으며 이는 스위치가 NTP Server 역할을 하게 한다.

- ntp serve all 명령어를 입력하면 모든 Interface vlan에 ntp serve가 들어가게 됨 [ NTP Server가 있는경우 해당 기능 disable 할 것]

 

3. Configure 모드에서도 show 명령어가 입력 됨 [ do 명령어 필요 X]

 

4. VRRP Preempt가 Default enable

 

5. Arista 7060SX2 실장비 Config 입력 시 저장을 해야 적용되는 것 확인

Config

 

vEOS5 

localhost#sh run
! Command: show running-config
! device: localhost (vEOS-lab, EOS-4.28.3M)
!
! boot system flash:/vEOS-lab.swi
!
no aaa root
!
transceiver qsfp default-mode 4x10G
!
service routing protocols model ribd
!
spanning-tree mode mstp
!
vlan 10
!
interface Ethernet1
   switchport trunk allowed vlan 10
   switchport mode trunk
!
interface Ethernet2
   switchport trunk allowed vlan 10
   switchport mode trunk
!
interface Ethernet3
   switchport access vlan 10
!
interface Ethernet4
   switchport access vlan 10
!
interface Ethernet5
!
interface Ethernet6
!
interface Ethernet7
!
interface Ethernet8
!
interface Management1
!
interface Vlan10
   ip address 1.1.1.252/24
   vrrp 1 ipv4 1.1.1.254
!
ip routing
!
end

 

vEOS6

localhost#sh run
! Command: show running-config
! device: localhost (vEOS-lab, EOS-4.28.3M)
!
! boot system flash:/vEOS-lab.swi
!
no aaa root
!
transceiver qsfp default-mode 4x10G
!
service routing protocols model ribd
!
spanning-tree mode mstp
!
vlan 10
!
interface Ethernet1
   switchport mode trunk
!
interface Ethernet2
   switchport mode trunk
!
interface Ethernet3
   switchport access vlan 10
!
interface Ethernet4
   switchport access vlan 10
!
interface Ethernet5
!
interface Ethernet6
!
interface Ethernet7
!
interface Ethernet8
!
interface Management1
!
interface Vlan10
   ip address 1.1.1.253/24
   vrrp 1 ipv4 1.1.1.254
!
ip routing
!
end

 

R25

Switch#sh run
Building configuration...

Current configuration : 892 bytes
!
! Last configuration change at 09:09:18 KST Mon Dec 2 2024
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
service compress-config
!
hostname Switch
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
clock timezone KST 9 0
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Ethernet0/0
 switchport access vlan 10
 switchport mode access
!
interface Ethernet0/1
 switchport access vlan 10
 switchport mode access
!
interface Ethernet0/2
!
interface Ethernet0/3
!
interface Vlan10
 ip address 1.1.1.100 255.255.255.0
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
!
!
control-plane
!
!
line con 0
 logging synchronous
line aux 0
line vty 0 4
!
!
end

 

R26

Switch#sh run
Building configuration...

Current configuration : 892 bytes
!
! Last configuration change at 09:09:10 KST Mon Dec 2 2024
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
service compress-config
!
hostname Switch
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
clock timezone KST 9 0
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Ethernet0/0
 switchport access vlan 10
 switchport mode access
!
interface Ethernet0/1
 switchport access vlan 10
 switchport mode access
!
interface Ethernet0/2
!
interface Ethernet0/3
!
interface Vlan10
 ip address 1.1.1.200 255.255.255.0
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
!
!
control-plane
!
!
line con 0
 logging synchronous
line aux 0
line vty 0 4
!
!
end

 

 

현재 vrrp 상태 [vEOS5 가 Master]

 

TEST 방법

1. 1호기가 Master인 상태에서 R26에서 R25로 핑을 쏜 상태로 2호기로 Master 변경, 핑 끊기는 것 확인

2. 1호기가 Master인 상태에서 R26에서 R25로 핑을 쏜 상태로 1호기 모든 포트 Shutdown, 핑 끊기는 것 확인

3.  1호기가 Master인 상태에서 R26에서 R25로 핑을 쏜 상태로 1호기 전원 종료, 핑 끊기는 것 확인

 

 

TEST1

1호기가 Master인 상태에서 R26에서 R25로 핑을 쏜 상태로 2호기로 Master 변경, 핑 끊기는 것 확인

 

2호기에서 Priority-level 110으로 변경 / Master 바뀌는 것 확인

 

R26 에서 R25로 핑

7211중 1개 빠지는 순단 확인

2호기로 MAC 잡히는 것 확인

 

TEST2

1호기가 Master인 상태에서 R26에서 R25로 핑을 쏜 상태로 1호기 모든 포트 Shutdown, 핑 끊기는 것 확인

 

1호기 모든 포트 Shutdown

 

2호기 Master 확인

R26에서 R25로 핑

 

1515개중 26개가 핑이 빠지는 것 확인

2호기로 MAC 잡히는 것 확인

TEST3

1호기가 Master인 상태에서 R26에서 R25로 핑을 쏜 상태로 1호기 전원 종료, 핑 끊기는 것 확인

 

1호기 전원종료

 

2호기 Master 확인

 

R26에서 R25로 핑

2839개 중 25개 빠지는 것 확인

2호기로 MAC 잡히는 것 확인

결과

- Preempt를 통한 Master 변환에는 통신에 거의 영향이 없음

- 실장비와의 차이로 인한 통신 복구 속도 차이 있음

- Preempt 정상 동작 확인

- Master 전환은 잘 되며 통신이 정상 복구되는 것 확인

728x90