思科Nexus系列交换机配置VPC
初始化交换机
Abort Power On Auto Provisioning [yes - continue with normal setup, skip - bypass password and basic configuration, no - continue with Power On Auto Provisioning] (yes/skip/no)[no]:
选择yes
Enter the password for "admin":
Confirm the password for "admin":
输入两次密码
Would you like to enter the basic configuration dialog (yes/no): no
输入no
进入交换机进行初始化设置
switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
switch(config)# feature lacp
switch(config)# feature vpc
switch(config)#
开启lacp和vpc功能
interface mgmt 0
ip address 192.168.4.252/24
设置管理接口IP地址
vrf context management
ip route 0.0.0.0/0 192.168.4.1
设置管理口的路由
vpc domain 10
role priority 8192
peer-keepalive destination 192.168.4.253
peer-gateway
auto-recovery
设置vpc的基本配置
vlan 101-103
interface port-channel21
description vpc-link
switchport mode trunk
spanning-tree port type network
vpc peer-link
设置vpc的peer-link接口
interface port-channel23
switchport mode trunk
switchport trunk allowed vlan 101-113
vpc 23
设置port-channel接口
interface Ethernet1/21
switchport
no shutdown
switchport mode trunk
channel-group 21 mode active
peer-link接口配置
interface Ethernet1/22
switchport
no shutdown
switchport mode trunk
channel-group 21 mode active
channel-group接口配置
interface Ethernet1/23
switchport mode trunk
switchport trunk allowed vlan 101-113
channel-group 23 mode active
channel-group接口配置
interface Ethernet1/24
switchport mode trunk
switchport trunk allowed vlan 101-113
channel-group 23 mode active
channel-group接口配置
copy running-config startup-config
保存配置
-------------------------------------------------------------------------------------------------------------
第二台交换机配置(不同的地方)
interface mgmt 0
ip address 192.168.4.253/24
vpc domain 10
role priority 4096
peer-keepalive destination 192.168.4.252
peer-gateway
auto-recovery
最后别忘了保存配置copy running-config startup-config
配置相同的地方就偷懒不一一列举啦