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/4Fast Ethernet interfaces 5/5这两个端口作为PAgP desirable模式端口通道成员。
  1. Switch# configure terminal   
  2. Switch(config)# interface range fastethernet 5/4 - 5  
  3. Switch(config-if)# no switchport   
  4. Switch(config-if)# no ip address   
  5. Switch(config-if)# channel-group 1 mode desirable   
  6. Switch(config-if)# end  
以下示例显示了如何校验上一示例中Catalyst 4500系列交换机Fast Ethernet interface 5/4端口的配置。
  1. Switch# show running-config interface fastethernet 5/4   
  2. Building configuration...  
  3. Current configuration:  
  4. !  
  5. interface FastEthernet5/4  
  6.  no ip address  
  7.  no switchport  
  8.  no ip directed-broadcast  
  9.  channel-group 1 mode desirable  
  10. end  
  11. Switch# show interfaces fastethernet 5/4 etherchannel   
  12. Port state    = EC-Enbld Up In-Bndl Usr-Config  
  13. Channel group = 1           Mode = Desirable     Gcchange = 0 
  14. Port-channel  = Po1         GC   = 0x00010001    Pseudo-port-channel = Po1 
  15. Port indx     = 0           Load = 0x55 
  16. Flags:  S - Device is sending Slow hello.  C - Device is in Consistent state.  
  17.         A - Device is in Auto mode.        P - Device learns on physical port.  
  18. Timers: H - Hello timer is running.        Q - Quit timer is running.  
  19.   S - Switching timer is running.    I - Interface timer is running.  
  20. Local information:  
  21.    Hello    Partner  PAgP     Learning  Group  
  22. Port      Flags State   Timers  Interval Count   Priority   Method  Ifindex  
  23. Fa5/4     SC    U6/S7           30s      1        128        Any      55  
  24. Partner's information:  
  25.  Partner              Partner          Partner         Partner Group  
  26. Port      Name                 Device ID        Port       Age  Flags   Cap.  
  27. Fa5/4     JAB031301            0050.0f10.230c   2/45         1s SAC     2D  
  28. Age of the port in the current state: 00h:54m:52s  
  29. Switch#