配置戴尔M6220交换模块
通过终端连接CMC,进入CMC输入connect switch-1 (连接交换机1,连接交换机2类似)
1、创建VLAN 10
console(config)#vlan database
console(config-vlan)#vlan 10
console(config-vlan)#exit
2、把端口加入VLAN 10
console(config)#interface range gigabitethernet 1/0/1-16
console(config-if)#switchport mode access
console(config-if)#switchport access vlan 10
console(config-if)#exit
3、端口绑定(17-20)
console(config)#interface range gigabitethernet 1/0/17-20
console(config-if)#channel-group 1 mode on
console(config-if)#spanning-tree disable
console(config-if)#exit
4、端口绑定模式为Trunk
console(config)#interface port-channel 1
console(config-if-Po1)#switchport mode trunk
console(config-if-Po1)#switchport trunk allowed vlan except 1
console(config-if-Po1)#switchport trunk allowed vlan add 10
console(config-if-Po1)#exit
5、端口依赖
console(config)#link-dependency group 1
console(config-if-gr1)#add gigabitethernet 1/0/1-1/0/16
console(config-if-gr1)#depends-on port-channel 1
console(config-if-gr1)#exit
console(config)#exit
6、保存配置
console#write
This operation may take a few minutes.
Management interfaces will not be available during this time.
Are you sure you want to save? (y/n) y
Configuration Saved!
7、断开CMC或重启交换机退出CMC控件台
console#reload