快速业务通道

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 native command and configure the IP addresses for

! -- 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 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号