思科Nexus系列交换机配置VPC

思科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

配置相同的地方就偷懒不一一列举啦

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值