思科C3750端口汇聚聚合

1.进入端口配置#interface range GigabitEthernet1/1/1-4

创建虚拟通道并配置trunk

#channel-group 2 mode auto   模式为auto

#switchport trunk encapsulation dot1q

#switchport mode trunk


生成如下配置:

interface GigabitEthernet1/1/1

 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 2 mode auto
!
interface GigabitEthernet1/1/2
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 2 mode auto
!
interface GigabitEthernet1/1/3
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 2 mode auto
!
interface GigabitEthernet1/1/4
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 2 mode auto

!

同时在全局模式下,自动生成

!
interface Port-channel2
 switchport trunk encapsulation dot1q
 switchport mode trunk

!

2.同样方法在另一台交换机相应的端口上做如上同样的配置


3.在交换机上查看聚合信息

NST3750#sh etherchannel summary 
Flags:  D - down        P - bundled in port-channel
        I - stand-alone s - suspended
        H - Hot-standby (LACP only)
        R - Layer3      S - Layer2
        U - in use      f - failed to allocate aggregator

        M - not in use, minimum links not met
        u - unsuitable for bundling
        w - waiting to be aggregated
        d - default port

Number of channel-groups in use: 1

Number of aggregators:           1

Group  Port-channel  Protocol    Ports
------+-------------+-----------+-----------------------------------------------
2      Po2(SU)         PAgP      Gi1/1/1(P)  Gi1/1/2(P)  Gi1/1/3(D)  
                                 Gi1/1/4(D)  


NST3750#sh etherchannel port-channel 


Channel-group listing: 

----------------------
Group: 2 
----------
Port-channels in the group: 
---------------------------
Port-channel: Po2
------------

Age of the Port-channel   = 8d:19h:28m:54s
Logical slot/port   = 10/2          Number of ports = 2
GC                  = 0x00020001      HotStandBy port = null
Port state          = Port-channel Ag-Inuse 
Protocol            =   PAgP
Port security       = Disabled


Ports in the Port-channel: 


Index   Load   Port     EC state        No of bits
------+------+------+------------------+-----------
  0     00     Gi1/1/1  Automatic-Sl       0
  0     00     Gi1/1/2  Automatic-Sl       0


Time since last port bundled:    0d:00h:05m:01s    Gi1/1/2
Time since last port Un-bundled: 0d:00h:05m:27s    Gi1/1/2


聚合模式选择:

思科C3750端口汇聚聚合