4006交换机简明配置手册(中文)(6)

2019-04-02 21:56

Step 3 switchport trunk encapsulation {isl | dot1q | negotiate} switchport mode trunk exit end show running-config show vlan 配置封装 Step 4 Step 5 Step 6 Step 7 Step 8 Step 9 配置Trunk,缺省是ISL封装 退回 在F0/2口上重复2-4步骤 退出 验证配置 验证switch1已经学到Vlan 进入配置状态 进入F0/1 Step 10 configure terminal Step 11 interface fastethernet 0/1 Step 12 spanning-tree vlan 2 cost 30 Step 13 spanning-tree vlan 3 cost 30 Step 14 spanning-tree vlan 4 cost 30 Step 15 end Step 16 设置Vlan2生成树路径值为30 设置Vlan3生成树路径值为30 设置Vlan4生成树路径值为30 退出 在switch1的F0/2上重复9-11步骤设置VLAN8,9,10生成树路径值为30 退出 验证配置 Step 17 exit Step 18 show running-config Step 19 copy running-config startup-config

保存配置 配置EtherChannel

以太通道捆绑几个以太端口为一个独立的逻辑链路。在三代引擎的确4006与其它交换机之间,可提供达1600Mbps(百兆双工以太通道)或16Gbps(千兆以太通道)的带宽。一台4006交换机最多可支持64个以太通道。

你可以捆绑在4006任何模块上最多8个兼容的具有相同速率的端口。 每个以太通道具有一个port-channel端口号。要捆绑一个以太通道时,会产生一个逻辑port-channel端口,逻辑端口下的配置可影响与之捆绑的物理端口,但物理端口下的配置不能影响逻辑端口的配置。

三层以太通道配置

Command Purpose Step 1 configure terminal 进入Switch 1配置状态 产生一个逻辑端口 Step 2 Switch(config)# interface port-channel port_channel_number Step 3 Switch(config-if)# ip address ip_address mask Step 4 end Step 5 Switch# show running-config interface port-channel port_channel_number 配置IP地址 退出 确认配置 例子:

Switch# configure terminal

Switch(config)# interface port-channel 1

Switch(config-if)# ip address 172.32.52.10 255.255.255.0

Switch(config-if)# end

Switch# show running-config interface port-channel 1 Building configuration... Current configuration: !

interface Port-channel1

ip address 172.32.52.10 255.255.255.0 no ip directed-broadcast end Switch#

三层物理端口配置

Command Purpose Step 1 configure terminal Step 2 Switch(config)# interface {fastethernet |gigabitethernet} 进入Switch 1配置状态 进入物理端口配置模式 slot/port Step 3 Switch(config-if)# no switchport Step 4 Switch(config-if)# no ip address 改变该端口为三层接口 确认接口没有配置IP地址 将该物理端口加入一个以太通道中,并确定PagP模式 退出 Step 5 Switch(config-if)# channel-group port_channel_number mode {auto | desirable | on} Step 6 end Step 7 Switch# show running-config interface port-channel 确认配置 port_channel_number Switch# show running-config interface {fastethernet | gigabitethernet} slot/port Switch# show interfaces {fastethernet | gigabitethernet} slot/port etherchannel Switch# show etherchannel 1 port-channel 例子:

Switch# configure terminal

Switch(config)# interface range fastethernet 5/4 - 5 (Note: Space is mandatory.) Switch(config-if)# no switchport Switch(config-if)# no ip address

Switch(config-if)# channel-group 1 mode desirable Switch(config-if)# end

二层以太通道配置

Command Purpose Step 1 configure terminal 进入Switch 1配置状态 进入物理端口 Step 2 Switch(config)# interface {fastethernet | gigabitethernet}slot/port Step 3 Switch(config-if)# channel-group port_channel_number mode {auto | desirable | on} 将该物理端口加入一个以太通道中,并确定PagP模式 退出 确认配置 Step 4 end Step 5 Switch# show running-config interface {fastethernet |gigabitethernet} slot/port Switch# show interface {fastethernet | gigabitethernet}slot/port etherchannel 例子:

Switch# configure terminal

Switch(config)# interface range fastethernet 5/6 - 7 (注意: 空格是必需的) Switch(config-if-range)# channel-group 2 mode desirable

Switch(config-if-range)# end

Switch# show running-config interface port-channel 2 Building configuration... Current configuration: !

interface Port-channel2 switchport access vlan 10 switchport mode access end

Switch#

下面两个例子是如何确认Fast Ethernet interface 5/6的配置的: Switch# show running-config interface fastethernet 5/6 Building configuration... Current configuration: !

interface FastEthernet5/6 switchport access vlan 10 switchport mode access

channel-group 2 mode desirable end

Switch# show interfaces fastethernet 5/6 etherchannel Port state = EC-Enbld Up In-Bndl Usr-Config

Channel group = 1 Mode = Desirable Gcchange = 0 Port-channel = Po1 GC = 0x00010001 Port indx = 0 Load = 0x55

Flags: S - Device is sending Slow hello. C - Device is in Consistent state.

A - Device is in Auto mode. P - Device learns on physical port. Timers: H - Hello timer is running. Q - Quit timer is running. S - Switching timer is running. I - Interface timer is running. Local information:

Hello Partner PAgP Learning Group

Port Flags State Timers Interval Count Priority Method Ifindex Fa5/6 SC U6/S7 30s 1 128 Any 56 Partner's information:

Partner Partner Partner Partner Group Port Name Device ID Port Age Flags Cap.

Fa5/6 JAB031301 0050.0f10.230c 2/47 18s SAC 2F Age of the port in the current state: 00h:10m:57s 下面例子显示如何确认接口配置后的port-channel interface 2 配置的: Switch# show etherchannel 2 port-channel Port-channels in the group: ---------------------- Port-channel: Po2


4006交换机简明配置手册(中文)(6).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:西南政法大学优秀硕士学位论文汇总表

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: