본문 바로가기
네트워크/Cisco

[네트워크] Cisco Nexus HSRP/VRRP 설정

by WYYOON 2023. 6. 30.
728x90
반응형
SMALL

inter vlan 1에 IP 설정을 하겠습니다.

 

- HSRP 설정

NX9K-1(config)# feature interface-vlan
NX9K-1(config)# feature hsrp

NX9K-1(config)# interface vlan 1
NX9K-1(config)# ip add 192.168.10.2/24
NX9K-1(config-if)# hsrp 1
NX9K-1(config-if-hsrp)# ip 192.168.10.1
NX9K-1(config-if-hsrp)# priority 110
NX9K-1(config-if-hsrp)# preempt
NX9K-1(config-if-hsrp)# no sh

 

NX9K-2(config)# feature interface-vlan
NX9K-2(config)# feature hsrp
NX9K-2(config)# interface vlan 1
NX9K-2(config)# ip add 192.168.10.3/24
NX9K-2(config-if)# hsrp 1
NX9K-2(config-if-hsrp)# ip 192.168.10.1
NX9K-2(config-if-hsrp)# preempt
NX9K-2(config-if-hsrp)# no sh

 

NX9K-3(config)# feature interface-vlan

NX9K-3(config)# interface vlan 1
NX9K-3(config-if)# ip add 192.168.10.4/24

 

- HSRP 확인

NX9K-1(config-if)# sh hsrp brief
*:IPv6 group   #:group belongs to a bundle
                     P indicates configured to preempt.
                     |
Interface   Grp    Prio P State    Active addr      Standby addr     Group addr
  Vlan1        1         110  P Active   local                   192.168.10.3       192.168.10.1

 

 

NX9K-2(config-if)# sh hsrp brief
*:IPv6 group   #:group belongs to a bundle
                     P indicates configured to preempt.
                     |
Interface   Grp    Prio P State      Active addr      Standby addr     Group addr
  Vlan1        1      100  P Standby  192.168.10.2     local                     192.168.10.1 

 

 

1,2,3번 장비 초기화

반응형

- VRRP 설정

NX9K-1(config)# feature interface-vlan
NX9K-1(config)# feature vrrp

NX9K-1(config)# interface vlan 1
NX9K-1(config)# ip add 192.168.10.2/24
NX9K-1(config-if)# vrrp 1
NX9K-1(config-if-vrrp)# address 192.168.10.1
NX9K-1(config-if-vrrp)# priority 110
NX9K-1(config-if-vrrp)# preempt
NX9K-1(config-if-vrrp)# no sh

 

NX9K-2(config)# feature interface-vlan
NX9K-2(config)# feature vrrp

NX9K-2(config)# interface vlan 1
NX9K-2(config)# ip add 192.168.10.3/24
NX9K-2(config-if)# vrrp 1
NX9K-2(config-if-vrrp)# address 192.168.10.1
NX9K-2(config-if-vrrp)# preempt
NX9K-2(config-if-vrrp)# no sh

 

NX9K-3(config)# feature interface-vlan

NX9K-3(config)# interface vlan 1
NX9K-3(config-if)# ip add 192.168.10.4/24

 

- VRRP 확인

NX9K-1(config)# show vrrp
      Interface  VR IpVersion Pri   Time Pre State   VR IP addr
---------------------------------------------------------------
          Vlan1    1      IPV4          110    1 s    Y  Master 192.168.10.1

 

NX9K-2(config)# show vrrp
      Interface  VR IpVersion Pri   Time Pre State   VR IP addr
---------------------------------------------------------------
          Vlan1    1    IPV4           100    1 s    Y   Backup 192.168.10.1

728x90
반응형
SMALL