SW2:
vpc domain x
role priority 1
system-priority 2500
peer-keepalive destination sw3_ip source sw2_ip
int f0/3 f0/4
channel-group 20 mode active
no shutdown
int port-channel 20
switchport mode trunk
vpc peer-link
SW3:
vpc domain x
role priority 2
system-priority 2500
peer-keepalive destination sw2_ip source sw3_ip
int f0/3 f0/4
channel-group 20 mode active
no shutdown
int port-channel 20
switchport mode trunk
vpc peer-link
SW1:
int f0/1 f0/2
channel-group 30 mode active
inter port-channel 30
switchport mode trunk
查看VPC:show vpc
vpc類似華為M-LAG,非搶占,但在主設備宕機后,備設備可以成為主設備。反之,依然。
vpc的優先級是范圍是從1到65636,並且缺省值是32667,越小越優。
vpc想對於堆疊更加利於設備升級。