交换机间Port-channel命令的使用

参考了网上众多的教程后决定做一个关于Port-channel命令的简单实验
 
实验环境是使用小凡的DynamipsGUI摸拟出来的两台交换机
 
接口情况如下:
Switch1 F0/2 <----> Switch2 F0/2
Switch1 F0/3 <----> Switch2 F0/3
VPCS V0/1 <----> Switch1 F0/5
VPCS V0/2 <----> Switch2 F0/5
 
 
具体命令如下:
 
interface port-channe1 
   switchport mode trunk
   switchport trunk encapsulation dot1q
   switchport trunk allowed vlan all
   no shutdown
   exit
 
interface range fastEthernet 0/2 - 3
   switchport mode trunk
   switchport trunk encapsulation dot1q
   switchport trunk allowed vlan all
   channel-group 1 mode on
   no shutdown
   exit
 
end
 
vlan database
   vlan 3
   exit
 
interface fastEthernet 0/5
   switchport access vlan 3
   exit
 
interface vlan 3
   no shutdown
   exit
 
end
 
第一台交换机配置完成....第二台交换机配置跟第一台一样就可以了
 
设置虚拟计算机
 
vpcs 1的ip 192.168.20.2
vpcs 2的ip 192.168.20.3
 
测试互相能够ping 通
 
实验完成
 
 
这是本人第一次做port-channel命令的实验,如果有不对的地方请大家指出来

你可能感兴趣的:(职场,休闲)