快速业务通道

Cisco交换机以太网经典配置

作者 佚名技术 来源 网络技术 浏览 发布时间 2012-07-01
tive VLAN and 802.1q trunking, refer to

! -- Trunking Between Catalyst 4000, 5000, and6000 Family Switches Using 802.1q Encapsulation.

Catalyst6500> (enable) set trunk 3/1 nonegotiate dot1q

Port(s) 3/1-2 trunk mode set to nonegotiate.

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

Catalyst6500> (enable) show config

This command shows non-default configurations only.

Use ''show config all'' to show both default and non-default configurations.

.........

..................

..

begin

!

# ***** NON-DEFAULT CONFIGURATION *****

!

!

#time: Thu May 2 2002, 01:26:26

!

#version 5.5(14)

!

!

#system

set system name Catalyst6500

!

#!

#vtp

set vtp mode transparent

set vlan 1 name default type ethernet mtu 1500 said 100001 state active

set vlan 2 name VLAN0002 type ethernet mtu 1500 said 100002 state active

set vlan 1002 name fddi-default type fddi mtu 1500 said 101002 state active

set vlan 1004 name fddinet-default type fddinet mtu 1500 said 101004 state active stp ieee

set vlan 1005 name trnet-default type trbrf mtu 1500 said 101005 state active stp ibm

set vlan 1003 name token-ring-default type trcrf mtu 1500 said 101003 state active

mode srb aremaxhop 7 stemaxhop 7

backupcrf off

!

#ip

set interface sc0 1 10.10.10.2/255.255.255.0 10.10.10.255

set ip route 0.0.0.0/0.0.0.0 10.10.10.1 !

#set boot command

set boot config-register 0x2102

set boot system flash bootflash:cat6000-sup.5-5-14.bin

!

#port channel

set port channel 3/1-2 105

!

# default port status is enable

!

!

#module 1 empty

!

#module 2 : 2-port 1000BaseX Supervisor

!

#module 3 : 48-port 10/100BaseTX Ethernet

set vlan 2 3/4

set port disable 3/5

set port speed 3/1-2 100

set port duplex 3/1-2 full

set trunk 3/1 nonegotiate isl 1-1005

set trunk 3/2 nonegotiate isl 1-1005

!-- If IEEE 802.1q is configured,

!-- you will see the following output instead:

set trunk 3/1 nonegotiate dot1q 1-1005

set trunk 3/2 nonegotiate dot1q 1-1005

set port channel 3/1-2 mode on

!

#module 4 : 24-port 100BaseFX MM Ethernet

!

#module 5 empty

!

#module 6 empty

!

#module 15 empty

!

#module 16 empty

end

Cisco 7500 Router

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

! -- Configure a port-channel interface to enable FEC.

7500#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

7500(config)#int port-channel 1

01:34:10: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed

state to down

! -- Configure full-duplex to match the duplex setting on the Catalyst switch side.

7500(config-if)#full-duplex

7500(config-if)#exit

! -- If using ISL trunking, configure two port-channel sub-interfaces and enable ISL trunking

! -- by issuing the encapsulation isl command.

! -- Configure IP addresses for InterVLAN routing.

7500(config)#int port-channel 1.1

7500(config-subif)#encapsulation isl 1

7500(config-subif)#ip address 10.10.10.1 255.255.255.0

7500(config-subif)

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