快速业务通道

Cisco交换机以太网经典配置

作者 佚名技术 来源 网络技术 浏览 发布时间 2012-07-01

很经典啊,我用的。

Configurations

The configurations in this document were implemented in an isolated lab environment. The configurations were cleared by issuing the write erase command on the routers, and the clear config all command on the switches to ensure that all devices have a default configuration. Make sure you understand the potential impact of any configuration or command on your network before using it.

Catalyst 6500 Switch

Note: The following screen captures show the commands that were entered on the Catalyst 6500 switch. Comments between the commands are added in blue italics to explain certain commands and steps.

!-- Set the IP address and default gateway for VLAN 1 for management purposes.

Catalyst6500> (enable) set int sc0 10.10.10.2 255.255.255.0

Interface sc0 IP address and netmask set.

Catalyst6500> (enable) set ip route default 10.10.10.1

Route added.

!-- Set the VTP mode.

!-- In our example, we have set the mode to be transparent. !-- Depending on your network, set the VTP mode accordingly. !-- For details on VTP, refer to Understanding and Configuring VLAN Trunk Protocol (VTP).

Catalyst6500> (enable) set vtp mode transparent

VTP domain modified

!-- Adding VLAN 2. VLAN 1 already exists by default.

Catalyst6500> (enable) set vlan 2

VLAN 2 configuration successful

!-- Adding port 3/4 to VLAN 2. Port 3/3 is already in VLAN 1 by default.

Catalyst6500> (enable) set vlan 2 3/4

VLAN 2 modified.

VLAN 1 modified.

VLAN Mod/Ports

---- -----------------------

2 3/4

! -- Set the port speed and duplex at 100 and full. One of

!-- the requirements for EtherChannel to work is for speed and duplex to be the same on

!-- both sides. To guarantee this, we will hard code both speed and duplex on ports 3/1 and 3/2.

Catalyst6500> (enable) set port speed 3/1-2 100

Ports 3/1-2 transmission speed set to 100Mbps.

Catalyst6500> (enable) set port duplex 3/1-2 full

Ports 3/1-2 set to full-duplex.

! -- Enable FEC on ports 3/1 and 3/2.

! -- Becuase routers do not understand Port Aggregation Protocol(PAgP),

! -- we set the channel mode to on which causes ports to channel,

! -- but not generate PAgP frames.

Catalyst6500> (enable) set port channel 3/1-2 on

Port(s) 3/1-2 are assigned to admin group 105.

Port(s) 3/1-2 channel mode set to on.

! -- Enable trunking on ports 3/1 and 3/2.

! -- Becuase routers do not understand Dynamic Trunking Protocol(DTP),

! -- we set the trunking mode to nonegotiate which causes ports to trunk,

! -- but not generate DTP frames.

! -- Notice that becuase we configured EtherChannel first,

! -- any trunk settings applied now to one port automatically apply to all other ports in the channel.

! -- Enter the trunking encapsulation as either isl ...

Catalyst6500> (enable) set trunk 3/1 nonegotiate isl Port(s) 3/1-2 trunk mode set to nonegotiate.

Port(s) 3/1-2 trunk type set to isl.

! -- ... or as dot1q.

! -- Make sure the native VLAN(default is VLAN 1) matches across the link.

! -- For more information on the na

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站: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号