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
'네트워크 > Cisco' 카테고리의 다른 글
[네트워크] cisco Nexus 9000 시리즈 tcpdump 확인방법 (0) | 2023.07.04 |
---|---|
[네트워크] Cisco Nexus(NX-OS) 팁 및 요령 (0) | 2023.06.30 |
[네트워크] Cisco Nexus에서 wr 명령어 사용 방법 (0) | 2023.06.30 |
[네트워크] Cisco Nexus 계정 (0) | 2023.06.30 |
[네트워크] Cisco Nexus 9000 telnet, ssh 설정 (0) | 2023.06.30 |