[L3-A]
interface GigabitEthernet0/0
switchport access vlan 20
switchport mode access
media-type rj45
negotiation auto
!
interface GigabitEthernet0/1
switchport access vlan 10
switchport mode access
media-type rj45
negotiation auto
!
interface Vlan10
ip address 192.168.10.10 255.255.255.0
standby 1 ip 192.168.10.254
standby 1 timers 1 3
standby 1 priority 103
standby 1 preempt
!
interface Vlan20
ip address 192.168.20.10 255.255.255.0
standby 1 timers 1 3
standby 2 ip 192.168.20.254
standby 2 priority 103
standby 2 preempt
4개의 L3 스위치에 우선순위를
그림과 같이 바꾸는고 각각의 ip 주소를 넣어주고,
그 이외에는 동일하게 넣어준다.
L3-A show standby brief
L3-B show standby brief
L3-A의 우선순위가 제일 높으므로 ACTIVE모드가 되고, priority 102는 standby 상태를 유지하지만 나머지 101과 100인 L3-C,D는 Listen상태가 됩니다.
L3-C,D standby brief