3.把Catalyst 4000及以后系列物理接口配置为三层以太网通道
在Catalyst 4000及以后系列中,配置物理接口作为以太网通道端口成员的方法要简单一些,可以在一个过程中完成,但总体配置思路还是与以前系列类似,具体如表9-17所示。
表9-17 配置物理接口为三层以太网通道的步骤
步骤
|
用途说明
| |
1
|
Switch#configure terminal
|
进入全局配置模式
|
2
|
Switch(config)#interface
{fastethernet |
gigabitethernet
| tengigabitethernet} slot/port
|
选择要配置的物理接口,
并进入接口配置模式
|
3
|
Switch(config-if)#no switchport
|
把物理接口转成三层可路由端口
|
4
|
Switch(config-if)#no ip address
|
确保该物理接口上没
有分配
IP
地址
|
5
|
Switch(config-if)#
channel-group ort_channel_
number mode {active
| on | auto | passive | desirable} |
配置端口通道中的接口,
并指定采用
PAgP
还是
LACP
汇聚模式。
如果采用 PAgP 模式,则键
入
auto
或
desirable
关键字。
如果采用 LACP 模式,则键入
active
或
passive
关键字。
有关这些关键字的具体功
能参见表
9-16
|
6
|
Switch(config-if)#end
|
退出接口配置模式,
返回到特权模式
|
续表
步骤
|
命令
|
用途说明
|
7
|
Switch#show running-config interface port- channel port_channel_number Switch#show running-config interface {fastethernet | gigabitethernet | tengigabitethernet} slot/port Switch#show interfaces {fastethernet | gigabitethernet | tengigabitethernet} slot/port etherchannel Switch#show etherchannel 1 port-channel |
校验以上配置
|
以下示例显示了如何配置Catalyst 4500系列交换机的Fast Ethernet interfaces 5/4和Fast Ethernet interfaces 5/5这两个端口作为PAgP desirable模式端口通道成员。
- Switch# configure terminal
- Switch(config)# interface range fastethernet 5/4 - 5
- Switch(config-if)# no switchport
- Switch(config-if)# no ip address
- Switch(config-if)# channel-group 1 mode desirable
- Switch(config-if)# end
以下示例显示了如何校验上一示例中Catalyst 4500系列交换机Fast Ethernet interface 5/4端口的配置。
- Switch# show running-config interface fastethernet 5/4
- Building configuration...
- Current configuration:
- !
- interface FastEthernet5/4
- no ip address
- no switchport
- no ip directed-broadcast
- channel-group 1 mode desirable
- end
- Switch# show interfaces fastethernet 5/4 etherchannel
- Port state = EC-Enbld Up In-Bndl Usr-Config
- Channel group = 1 Mode = Desirable Gcchange = 0
- Port-channel = Po1 GC = 0x00010001 Pseudo-port-channel = Po1
- 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/4 SC U6/S7 30s 1 128 Any 55
- Partner's information:
- Partner Partner Partner Partner Group
- Port Name Device ID Port Age Flags Cap.
- Fa5/4 JAB031301 0050.0f10.230c 2/45 1s SAC 2D
- Age of the port in the current state: 00h:54m:52s
- Switch#
转载于:https://blog.51cto.com/jianweiit/360670