1、初始化配置:
N5K-3# write era
Warning: This command will era the startup-configuration.
阳澄湖大闸蟹吃法Do you wish to proceed anyway? (y/n) [n] y
N5K-3# reload
WARNING: There is unsaved configuration!!!
WARNING: This command will reboot the system
优秀书籍Do you want to continue? (y/n) [n] y
2、交换机管理配置:
N5K-1(config)#vrf context management
N5K-1(config-vrf)#ip route 0.0.0.0/0 10.75.58.1
N5K-1(config-vrf)#interface mgmt0
N5K-1(config-if)#ip address 10.75.58.24/24
N5K-1(config-if)#no shutdown
3、启用SSH:
N5K-1(config)# no ssh rver enale
N5K-1(config)# no ssh key
N5K-1(config)# ssh key rsa 1024
N5K-1(config)# ssh rver enable
4、STP配置:
N5K-1(config)# spanning-tree vlan 101-104 root primary(根桥)
N5K-1(config)# spanning-tree vlan 101-104 root condary(备份根桥)
5、N5K/N2K部署配置:
周政坤>EtherChannel(最大可以支持四条链路)游金华
>static pinning
----------EtherChannel方式----------------
N5K-1(config)#feature fex
N5K-1(config)# fex 100
N5K-1(config-fex)# pinning max-links 1
N5K-1(config-fex)# description "fex 100 n5k-1 "
N5K-1(config-fex)# interface e1/7-8
N5K-1(config-if-range)# channel-group 100
N5K-1(config-if-range)# int port-channel 100
N5K-1(config-if)# switchport mode fex-fabric
烦恼N5K-1(config-if)# fex associate 100
--------配置下连服务器接口----------------
N5K-1(config)# vlan 101
N5K-1(config-vlan)# name PODX_VLAN
N5K-1(config-vlan)# int ethernet 100/1/1
硕士论文N5K-1(config-if)# switchport access vlan 101
N5K-1(config-if)# no shutdown
-----------static pinning方式-------------
N5K-1(config)#feature fex
N5K-1(config)# fex 100
N5K-1(config-fex)# pinning max-links 2
N5K-1(config-fex)# description "N5k1 FEX 100 "
N5K-1(config-fex)# interface e1/7-8
N5K-1(config-if)# switchport mode fex-fabric
N5K-1(config-if)# fex associate 100
-----------------配置下连主机VLAN及接口-------------------------
N5K-1(config)# vlan 101
N5K-1(config-vlan)# interface e100/1/1
N5K-1(config-if)# switchport access vlan 101
N5K-1(config-if)# no shut
6、N5K/N2K双宿主环境中部署VPC配置
N5K-1(config)#feature vpc
N5K-1(config)#feature lacp
N5K-1(config)#vpc domain 1
N5K-1(config-vpc-domain)#role priority 1 (优先级低的为主)
N5K-1(config-vpc-domain)# peer-keepalive destination 10.75.58.25 vrf management
N5K-1(config-vpc-domain)# interface ethernet 1/17-18
N5K-1(config-if-range)# channel-group 93 mode active
N5K-1(config-if-range)# interface port-channel 93
N5K-1(config-if)#vpc peer-link
N5K-1(config-if)#switchport mode trunk
N5K-1(config-if)#switchport trunk allowed vlan 1,101
N5K-1(config-if)#exit
N5K-1(config)#feature fex
N5K-1(config)#fex 100
N5K-1(config-fex)# pinning max-links 1
N5K-1(config-fex)# description "FIRST_FEX_IN_1 "
N5K-1(config-fex)# interface e1/7-8
N5K-1(config-if-range)# channel-group 100
N5K-1(config-if-range)# int port-channel 100
N5K-1(config-if)# switchport mode fex-fabric
奉若神明N5K-1(confi
g-if)# fex associate 100
N5K-1(config-if)# vpc 100
N5K-1(config)#fex 101
N5K-1(config-fex)# pinning max-links 1
拼魔方的教程N5K-1(config-fex)# description "SECOND_FEX_IN_1 "
N5K-1(config-fex)# interface e1/9-10
N5K-1(config-if-range)# channel-group 101
N5K-1(config-if-range)# int port-channel 101
N5K-1(config-if)# switchport mode fex-fabric
N5K-1(config-if)# fex associate 101
N5K-1(config-if)# vpc 101
7、N5K/N2K单宿主环境中部署VPC配置,服务器启用LACP
N5K-1(config)#feature fex
N5K-1(config)#fex 100
N5K-1(config-fex)# pinning max-links 1
N5K-1(config-fex)# interface e1/7-8
N5K-1(config-if-range)# channel-group 100
N5K-1(config-if-range)# int port-channel 100
N5K-1(config-if)# switchport mode fex-fabric
N5K-1(config-if)# fex associate 100
N5K-1(config)#feature vpc
N5K-1(config)#feature lacp
N5K-1(config)#vpc domain 1
N5K-1(config-vpc-domain)#role priority 1
N5K-1(config-vpc-domain)# peer-keepalive destination 10.75.58.25 vrf management
N5K-1(config-vpc-domain)# interface ethernet 1/17-18
N5K-1(config-if-range)# channel-group 93 mode active
N5K-1(config-if-range)# interface port-channel 93
N5K-1(config-if)#vpc peer-link
N5K-1(config-if)#switchport mode trunk
N5K-1(config-if)#switchport trunk allowed vlan 1,101
N5K-1(config-if)#exit
N5K-1(config)# vlan 101
N5K-1(config-vlan)# name POD1_VLAN
N5K-1(config)# interface ethernet 100/1/1
N5K-1(config-if)# channel-group 10 mode active
N5K-1(config-if)# int po10
N5K-1(config-if)# switchport access vlan 101
N5K-1(config-if)# vpc 10