###### tags: `Nexus` `cisco` # **Cisco N3K VPC+HSRP+ospf 配置** https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus3000/sw/unicast/503_u3_1/l3_nx-os/l3_hsrp.pdf ## 1、全局下開啟 VPC + HSRP+ospf ``` bash= feature vpc feature hsrp feature ospf ``` 2、VPC peer-link 接口配置 ``` bash= interface Ethernet1/49 switchport mode trunk channel-group 49 mode active interface Ethernet1/50 switchport mode trunk channel-group 49 mode active interface port-channel49 speed 40000 description vPc peer-link switchport mode trunk spanning-tree port type network vpc peer-link ``` 3、下聯接口配置 ``` bash= interface Ethernet1/51/1 speed 10000 switchport mode trunk channel-group 50 mode active no shutdown interface port-channel50 speed 10000 switchport mode trunk vpc 50 #兩臺N3K 的VPC ID 必須一致 ``` 4、hsrp配置 ``` bash= N3k_1: interface Vlan10 no shutdown ip address 192.168.0.2/24 hsrp version 2 hsrp 10 preempt priority 105 ip 192.168.0.1 track 1 track 1 interface Ethernet1/48 line-protocol N3k_2: interface Vlan10 no shutdown ip address 192.168.0.3/24 hsrp version 2 hsrp 10 ip 192.168.0.1 track 1 track 1 interface Ethernet1/48 line-protocol ``` 5查看配置 ``` bash= show vpc show vpc statistics peer-link show hsrp brief ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up