cisco vpc
vpc domain 1
peer-switch -----stp默认是主的发bpdu,开启peer-switch就会在两台N3K上虚拟出一个mac去发BPDU,当发现生成树主备切换的时候,能快速收敛
role priority 2000 ------越小越优
system-priority 2000 ------ Domain中设备的system-priority值必须相同,这是vPC当中对于LACP的配置
peer-keepalive destination 192.168.1.2 source 192.168.1.1 ------通过管理口来实现心跳
delay restore 120 ---当一个vpc重启并且恢复后,路由协议需要时间收敛三层链接重新建立之前,会成为访问层访问核心层的路由黑洞当系统重新启动后 延时“n”秒激活VPC端口口
auto-recovery--------重启后Peer Link 处于“down”的状态并且持续默认的超时时间240秒(可修改 ),软件会重新初始化VPC,并且激活本地端口
ip arp synchronize ----- 保证两边的arp表相同
peer-gateway ------二层转三层时,由vpc主转发
!
interface port-channel10
switchport mode trunk
switchport trunk allowed vlan 1-254,256-4094
spanning-tree port type network -----默认自动更改网络类型
vpc peer-link
!
interface port-channel100
switchport mode trunk
speed 40000
vpc 100
!
interface Ethernet1/47
description Link-N3K-2
switchport mode trunk
switchport trunk allowed vlan 1-254,256-4094
channel-group 10 mode active
interface Ethernet1/48
description Link-N3K-2
switchport mode trunk
switchport trunk allowed vlan 1-254,256-4094
channel-group 10 mode active
!
interface Ethernet1/49
description Link-DELLZ9100
switchport mode trunk
channel-group 100 mode active
no shutdown
interface Ethernet1/50
description Link-DELLZ9100
switchport mode trunk
channel-group 100 mode active
no shutdown
查看命令:
sh port-channel summary 查看portchannel成员及状态
sh vpc consistency-parameters interface po100 查看成员端口及对端一致性
show vpc bri