class="layout-aside-right paging-number">
본문 바로가기
Network/Switching

Cisco Nexus HSRP/VRRP 설정

by JSANG9 2022. 5. 14.
반응형

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

 

 

잘못된 부분이 있으면 댓글 남겨주시면 감사하겠습니다.

반응형

'Network > Switching' 카테고리의 다른 글

Cisco ACL  (0) 2022.04.25
Cisco DHCP Secondary 사용  (0) 2022.04.24
Cisco Nexus 9000 telnet, ssh 설정  (0) 2022.04.20
Cisco Nexus 계정  (0) 2022.04.18
Cisco Nexus에서 wr 명령어 사용 방법  (0) 2022.04.18