本文共 3865 字,大约阅读时间需要 12 分钟。
拓扑:
vlan 1-500
vrf context APP
vrf context CTRIXvrf context DBvrf context Keep_alivevrf context VMvrf context managementvpc domain 1000peer-switchrole priority 65535peer-keepalive destination 172.16.1.2 source 172.16.1.1 vrf Keep_aliveauto-recoveryinterface Vlan1
interface Vlan10
no shutdownvrf member VMip address 10.10.1.251/24hsrp 10 ip 10.10.1.254hsrp 20 preempt priority 110interface Vlan20
no shutdownvrf member VMip address 10.10.2.251/24hsrp 20 preempt priority 110ip 10.10.2.254interface Vlan30
no shutdownvrf member APPip address 10.10.3.251/24hsrp 30 preempt priority 110ip 10.10.3.254interface Vlan40
no shutdownvrf member APPip address 10.10.4.251/24hsrp 40 preempt priority 110ip 10.10.4.254interface Vlan50
no shutdownvrf member CTRIXip address 10.10.5.251/24hsrp 50 preempt priority 110ip 10.10.5.254interface Vlan60
no shutdownvrf member CTRIXip address 10.10.6.251/24hsrp 60 preempt priority 110ip 10.10.6.254interface Vlan70
no shutdownvrf member DBip address 10.10.7.251/24hsrp 70 preempt priority 110ip 10.10.7.254interface Vlan80
no shutdownvrf member DBip address 10.10.8.251/24hsrp 80 preempt priority 110ip 10.10.8.254interface port-channel10
no switchportvrf member Keep_aliveip address 172.16.1.1/30interface port-channel20
switchport mode trunkspanning-tree port type networkvpc peer-linkinterface port-channel30
switchport mode trunkvpc 101interface Ethernet1/1
no switchportchannel-group 10 mode activeno shutdowninterface Ethernet1/2
no switchportchannel-group 10 mode activeno shutdowninterface Ethernet1/3
switchport mode trunkchannel-group 20 mode activeinterface Ethernet1/4
switchport mode trunkchannel-group 20 mode activeinterface Ethernet1/5
switchport mode trunkchannel-group 30 mode activeN9K-2:cfs eth distribute
feature interface-vlanfeature hsrpfeature lacpfeature vpcvlan 1-500
vrf context APP
vrf context CTRIXvrf context DBvrf context Keep_alivevrf context VMvrf context managementvpc domain 1000peer-switchpeer-keepalive destination 172.16.1.1 source 172.16.1.2 vrf Keep_aliveauto-recoveryinterface Vlan1
interface Vlan10
no shutdownvrf member VMip address 10.10.1.252/24hsrp 10 ip 10.10.1.254interface Vlan20
no shutdownvrf member VMip address 10.10.2.252/24hsrp 20 ip 10.10.2.254interface Vlan30
no shutdownvrf member APPip address 10.10.3.252/24hsrp 30 ip 10.10.3.254interface Vlan40
no shutdownvrf member APPip address 10.10.4.252/24hsrp 40 ip 10.10.4.254interface Vlan50
no shutdownvrf member CTRIXip address 10.10.5.252/24hsrp 50 ip 10.10.5.254interface Vlan60
no shutdownvrf member CTRIXip address 10.10.6.252/24hsrp 60 ip 10.10.6.254interface Vlan70
no shutdownvrf member DBip address 10.10.7.252/24hsrp 70 ip 10.10.7.254interface Vlan80
no shutdownvrf member DBip address 10.10.8.252/24hsrp 80 ip 10.10.8.254interface port-channel10
no switchportvrf member Keep_aliveip address 172.16.1.2/30interface port-channel20
switchport mode trunkspanning-tree port type networkvpc peer-linkinterface port-channel30
switchport mode trunkvpc 101interface Ethernet1/1
no switchportchannel-group 10 mode activeno shutdowninterface Ethernet1/2
no switchportchannel-group 10 mode activeno shutdowninterface Ethernet1/3
switchport mode trunkchannel-group 20 mode activeinterface Ethernet1/4
switchport mode trunkchannel-group 20 mode activeinterface Ethernet1/5
switchport mode trunkchannel-group 30 mode activeN5K:vlan 1-500vrf context management
interface port-channel30
switchport mode trunkinterface Ethernet1/1
switchport mode trunkchannel-group 30 mode activeinterface Ethernet1/2
switchport mode trunkchannel-group 30 mode active在N9K上查看VPC状态如下:转载于:https://blog.51cto.com/shenzhenvc/2311614