实验目标:
了解VPC的基本功能
实验步骤:
NXOS1/2 mgmt0 为peer link 链接
NXOS1/2 E1/1-2 为keepalive link
NXOS1# sh run vpc
feature lacp
feature vpc
vpc domain 200
role priority 1
peer-keepalive destination 10.10.10.11 source 10.10.10.10
interface port-channel10
switchport mode trunk
vpc 10
interface port-channel200
switchport mode trunk
spanning-tree port type network
vpc peer-link
interface mgmt0
vrf member management
ip address 10.10.10.10/24
interface Ethernet1/1
switchport mode trunk
channel-group 200 mode active
interface Ethernet1/2
switchport mode trunk
channel-group 200 mode active
interface Ethernet1/3
switchport mode trunk
channel-group 10 mode active
interface Ethernet1/4
switchport mode trunk
channel-group 10 mode active
成功截图
NXOS1# show vpc role
vPC Role status
----------------------------------------------------
vPC role : primary
Dual Active Detection Status : 0
vPC system-mac : 00:23:04:ee:be:c8
vPC system-priority : 32667
vPC local system-mac : 50:00:00:01:00:07
vPC local role-priority : 1
NXOS1# show vpc role
vPC Role status
----------------------------------------------------
vPC role : primary
Dual Active Detection Status : 0
vPC system-mac : 00:23:04:ee:be:c8
vPC system-priority : 32667
vPC local system-mac : 50:00:00:01:00:07
vPC local role-priority : 1
NXOS1# show vpc brief
Legend:
(*) - local vPC is down, forwarding via vPC peer-link
vPC domain id : 200
Peer status : peer adjacency formed ok
vPC keep-alive status : peer is alive
Configuration consistency status : success
Per-vlan consistency status : success
Type-2 consistency status : success
vPC role : primary
Number of vPCs configured : 1
Peer Gateway : Disabled
Dual-active excluded VLANs : -
Graceful Consistency Check : Enabled
Auto-recovery status : Disabled
Delay-restore status : Timer is off.(timeout = 30s)
Delay-restore SVI status : Timer is off.(timeout = 10s)
Operational Layer3 Peer-router : Disabled
vPC Peer-link status
---------------------------------------------------------------------
id Port Status Active vlans
-- ---- ------ -------------------------------------------------
1 Po200 up 1,100,200,300
vPC status
----------------------------------------------------------------------------
Id Port Status Consistency Reason Active vlans
-- ------------ ------ ----------- ------ ---------------
10 Po10 up success success 1,100,200,300
Please check "show vpc consistency-parameters vpc <vpc-num>" for the
consistency reason of down vpc and for type-2 consistency reasons for
any vpc.
NXOS2# sh run vpc
feature vpc
feature lacp
vpc domain 200
peer-keepalive destination 10.10.10.10 source 10.10.10.11
interface port-channel10
switchport mode trunk
vpc 10
interface port-channel200
switchport mode trunk
spanning-tree port type network
vpc peer-link
NXOS2# show vpc role
vPC Role status
----------------------------------------------------
vPC role : secondary
Dual Active Detection Status : 0
vPC system-mac : 00:23:04:ee:be:c8
vPC system-priority : 32667
vPC local system-mac : 50:00:00:02:00:07
vPC local role-priority : 32667
NXOS2# show vpc role
vPC Role status
----------------------------------------------------
vPC role : secondary
Dual Active Detection Status : 0
vPC system-mac : 00:23:04:ee:be:c8
vPC system-priority : 32667
vPC local system-mac : 50:00:00:02:00:07
vPC local role-priority : 32667
NXOS2# show vpc brief
Legend:
(*) - local vPC is down, forwarding via vPC peer-link
vPC domain id : 200
Peer status : peer adjacency formed ok
vPC keep-alive status : peer is alive
Configuration consistency status : success
Per-vlan consistency status : success
Type-2 consistency status : success
vPC role : secondary
Number of vPCs configured : 1
Peer Gateway : Disabled
Dual-active excluded VLANs : -
Graceful Consistency Check : Enabled
Auto-recovery status : Disabled
Delay-restore status : Timer is off.(timeout = 30s)
Delay-restore SVI status : Timer is off.(timeout = 10s)
Operational Layer3 Peer-router : Disabled
vPC Peer-link status
id Port Status Active vlans
1 Po200 up 1,100,200,300
vPC status
Id Port Status Consistency Reason Active vlans
10 Po10 up success success 1,100,200,300
Please check "show vpc consistency-parameters vpc " for the
consistency reason of down vpc and for type-2 consistency reasons for
any vpc.
实验总结:
VPC可以跨设备的port-channel 技术,可以解决spannning-tree 出现的链路使用率问题,增加链路冗余,当网络出现问题或者变化时可以更快的收敛。
VPC必须有peer link and keepalive link
show vpc brief 可以看到整个VPC的状态,哪个是primary,哪个是secondary。