网口做trunk
首先发现这个服务器的两个网口对应的交换机端口
ailixin-asw2960>en
ailixin-asw2960#terminal monitor
查看端口的状态
ailixin-asw2960#sho run int g0/10
Building configuration...
Current configuration : 112 bytes
!
interface GigabitEthernet0/10
switchport access vlan 20
switchport mode access
spanning-tree portfast
end
然后进入特权模式,进入对应的端口
ailixin-asw2960#configure termina
ailixin-asw2960(config)#int rang g0/10,g0/11
查看交换机有几组绑定过
ailixin-asw2960(config-if)#do sh ip int b
ailixin-asw2960(config-if)#sh 关掉端口
GigabitEthernet0/49 unassigned YES unset down down
GigabitEthernet0/50 unassigned YES unset down down
Port-channel1 unassigned YES unset up up
ailixin-asw2960(config-if)#switchport mode trunk
ailixin-asw2960(config-if)#sh interfaces trunk (查看up状态的trunk 端口)
ailixin-asw2960(config-if)# channel-group 2 mode active
ailixin-asw2960(config-if)# channel-protocol lac
ailixin-asw2960(config-if)#no sh 开启端口
ailixin-asw2960(config-if)#exit
ailixin-asw2960(config)#do wr