(2008-08-03 19:03:44)
转载 标签: 分类: 学习资料
杂谈
Port-Channel配置
port-channel分为2类.一类为2层的port-channel.一类为3层的
port-channel. 2层的port-channel只需要配physical interface就行了,可以是static access,也可以使trunk,但是必须一样。不需要create port-channel。
3层的port-channel要首先create port-channel,然后no switchport把port-channel变成L3 interface,加上IP地址。再进入physical interface,必须no ip address去掉physical interface的IP信息,然后直接channel-group加入EtherChannel就行了 example:
For L2 static access EtherChannel: Switch# configure terminal
Switch(config)# interface range gigabitethernet0/1 -2 Switch(config-if-range)# switchport mode access Switch(config-if-range)# switchport access vlan 10
Switch(config-if-range)# channel-group 5 mode desirable Switch(config-if-range)# end
For L2 trunk EtherChannel: Switch# configure terminal
Switch(config)# interface range gigabitethernet0/1 -2
Switch(config-if-range)# switchport trunk encapsulation isl Switch(config-if-range)# switchport mode trunk
Switch(config-if-range)# channel-group 5 mode desirable Switch(config-if-range)# end
For L3 EtherChannel:
Switch# configure terminal
Switch(config)# interface port-channel 5 Switch(config-if)# no switchport
Switch(config-if)# ip address 172.10.20.10 255.255.255.0 Switch(config-if)# interface range gigabitethernet0/1 -2 Switch(config-if-range)# no ip address
Switch(config-if-range)# channel-group 5 mode desirable
Switch(config-if-range)# end
因篇幅问题不能全部显示,请点此查看更多更全内容
Copyright © 2019-2025 awee.cn 版权所有 湘ICP备2023022495号-5
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务