Cisco交换机以太网经典配置
作者 佚名技术
来源 网络技术
浏览
发布时间 2012-07-01
#exit 7500(config)#int port-channel 1.2 7500(config-subif)#encapsulation isl 2 7500(config-subif)#ip address 10.10.11.1 255.255.255.0 7500(config-subif)#exit ! -- If using 802.1q trunking, configure two port-channel sub-interfaces, enable 802.1q trunking ! -- by issuing the encapsulation dot1Q ! -- InterVLAN routing. Note: The encapsulation dot1Q 1 native command was added in Cisco IOS version 12.1(3)T. If you are using an earlier version of Cisco IOS, refer to the 802.1Q Configuration for Cisco IOS Versions Earlier than 12.1(3)T section of this document to configure 802.1Q trunking on the router. ! -- Make sure the native VLAN(default is VLAN 1) matches across the link. ! -- For more information on the native VLAN and 802.1q trunking, refer to ! -- Trunking Between Catalyst 4000, 5000, and 6000 Family Switches Using 802.1q Encapsulation. 7500(config)#int port-channel 1.1 7500(config-subif)#encapsulation dot1Q 1 native 7500(config-subif)#ip address 10.10.10.1 255.255.255.0 7500(config-subif)#exit 7500(config)#int port-channel 1.2 7500(config-subif)#encapsulation dot1Q 2 7500(config-subif)#ip address 10.10.11.1 255.255.255.0 7500(config-subif)#exit ! -- Configure the FastEthernet interfaces for speed 100 depending on the port adapter. ! -- Some FastEthernet port adapters can autonegotiate speed(10 or 100) and duplex(half or full). ! -- Others are only capable of 100 (half or full). 7500(config)#int fa5/1/0 7500(config-if)#speed 100 ! -- Configure the FastEthernet interfaces to be members of port-channel 1 by issuing the channel-group command. 7500(config-if)#channel-group 1 %Interface MTU set to channel-group MTU 1500. 7500(config-if)#no shut 7500(config-if)# %Interface MTU set to channel-group MTU 1500. FastEthernet5/1/0 added as member-1 to port-channel1 01:46:09: %LINK-3-UPDOWN: Interface FastEthernet5/1/0, changed state to up 01:46:10: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet5/1/0, changed state to up 01:46:12: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed state to up Router(config-if)#exit Router(config)#int fa 5/1/1 Router(config-if)#speed 100 Router(config-if)#channel-group 1 %Interface MTU set to channel-group MTU 1500. Router(config-if)#no shut Router(config-if)# %Interface MTU set to channel-group MTU 1500. FastEthernet5/1/1 added as member-2 to port-channel1 01:54:52: %LINK-3-UPDOWN: Interface FastEthernet5/1/1, changed state to up 01:54:53: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet5/1/1, changed state to up Router(config-if)#exit ! -- Remember to save the configuration. 7500#write memory Building configuration... [OK] 7500# Note: In order to make this setup work, and to successfully ping between Workstation 1 and Workstation 2, you need to make sure that the default gateways on the workstations are setup properly. For Workstation 1, the default gateway should be 10.10.10.1 and for Workstation 2, the default gateway should b |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
上一篇: 2900XLVLAN配置实例下一篇: 教您识别Cisco交换机型号
关于Cisco交换机以太网经典配置的所有评论