1. 1 Catalyst Switch 4006



tải về 0.8 Mb.
trang3/8
Chuyển đổi dữ liệu14.08.2016
Kích0.8 Mb.
#18836
1   2   3   4   5   6   7   8

 

3.3.2            Cấu hình Gigabit Ethernet

Cấu hình Gigabit Ethernet tương tự nhu cấu hình FastEthernet và bao gồm các phần sau:

 

·       Gán tên cho port



 

Task

Command

Step 1 Assign a name to a port.

set port name mod_num/port_num [name_string]

Step 2 Verify that the port name is configured.

show port [mod_num[/port_num]]

 

Ví dụ:


 

Console> (enable) set port name 2/1 Backbone Connection

Port 2/1 name set.

Console> (enable) set port name 2/2 Wiring Closet

Port 2/2 name set.

Console> (enable) show port 2

Port  Name                                           Status          Vlan       Level    Duplex    Speed  Type

----- ------------------                             ----------        ---------- ------      ------        -----       ------------

 2/1  Backbone Connection                  connected   trunk      normal    full         1000     1000BaseSX

 2/2  Wiring Closet           notconnect  1            normal    full         1000     1000BaseSX

 

<...output truncated...>

 

Last-Time-Cleared



--------------------------

Tue Dec 22 1998, 13:42:04

Console> (enable)

 

·       Gán port priority



 

Task

Command

Step 1 Xc định mức priority cho port

set port level mod_num/port_num {normal | high}

Step 2 Xc nhận lại cấu hình

show port [mod_num[/port_num]]

 

Ví dụ


 

Console> (enable) set port level 2/1 high

Port 2/1 level set to high.

Console> (enable) show port 2/1

Port  Name                                           Status        Vlan       Level  Duplex  Speed    Type

----- ------------------                             ----------      ---------- ------     ------     -----         ------------

 2/1  Backbone Connection                  connected  trunk      high    full        1000       1000BaseSX

 

<...output truncated...>

 

Last-Time-Cleared



--------------------------

Tue Dec 22 1998, 13:42:04

Console> (enable)

 

·       Cấu hình flow control



 

Task

Command

Step 1 Cấu hình flow-control cho Gigabit Ethernet port.

set port flowcontrol {receive | send} mod_num/port_num {off | on | desired}

Step 2 Xác nhận cấu hình

show port flowcontrol

 

Ví dụ:


 

Console> (enable) set port flowcontrol send 2/1 on

Port 2/1 flow control send administration status set to on

(port will send flowcontrol to far end)

Console> (enable) set port flowcontrol receive 2/1 on

Port 2/1 flow control receive administration status set to on

(port will require far end to send flowcontrol)

Console> (enable) show port flowcontrol 2/1

 

Port   Send      FlowControl    Receive   FlowControl   RxPause  TxPause      Unsupported



          admin    oper                admin      oper                                                    opcodes

-----  --------      --------             --------      --------             -------         -------          -----------

 2/1   on           on                   on             on                  0                0                0

Console> (enable)

 

·       Cấu hình auto negotiation:



 

Task

Command

Step 1 Cho phép khả năng autonegotiation trên Gigabit Ethernet port.

set port negotiation mod_num/port_num enable

Step 2 Xác nhận cấu hình

show port negotiation [mod_num/port_num]

 

Ghi ch: version này không hỗ trợ cho việc cấu hình port negotiation cho module 1000BaseT.

 

Ví dụ



 

Console> (enable) set port negotiation 2/1 enable

Port 2/1 negotiation enabled

Console> (enable) show port negotiation 2/1

Port   Link Negotiation

-----  ----------------

 2/1   enabled

Console> (enable)

 

Để bỏ chế độ auto port negotiation:



Task

Command

Step 1 Không cho phép khả năng auto negotiation trên Gigabit Ethernet port

set port negotiation mod_num/port_num disable

Step 2 Xác nhận cấu hình

show port negotiation [mod_num/port_num]

 

Ví dụ:


 

Console> (enable) set port negotiation 2/1 disable

Port 2/1 negotiation disabled

Console> (enable) show port negotiation 2/1

Port   Link Negotiation

-----  ----------------

 2/1   disabled

Console> (enable)

 

·       Thay đổi trạng thái port.



Xin tham khảo phần Thay đổi trạng thái port của FastEthernet.

 

·       Kiểm tra kết nối



Xin tham khảo phần Kiểm tra kết nối của FastEthernet.

3.4           Cấu hình FastEtherChannel và GigabitEtherChannel.

FastEtherChannel và GigabitEtherChannel  là tính năng của các thiết bị mạng của Cisco , thường được gọi tắt là EtherChannel, cung cấp khả năng tạo các liên kết tốc độ cao giữa các thiết bị bằng cách kết hợp nhiều liên kết lại thành một liên kết duy nhất có tốc dộ bằng tổng tốc độ của các liên kết tạo thành. Tính năng này hỗ trợ khả năng cân bằng tải trên liên kết giữa cac thiết bị cũng như hỗ trợ khả năng dự phòng cao.

3.4.1            Cấu hình EtherChannel mặc định

 


Tính năng

Gi trị  mặc định

Fast EtherChannel

Catalyst 4000, 2948G và  2980G: chế độ auto silent cho tất cả các  port Fast Ethernet.

Gigabit EtherChannel

Catalyst 4000, 2948G và  2980G: chế độ auto silent cho tất cả các  port Gigabit Ethernet.

Frame-distribution method

Source và destination MAC

 

3.4.2            Hardware hỗ trợ cho EtherChannel

Tính năng EtherChannel phụ thuộc vào phần cứng. Có thể sử dụng lệnh show port capabilities để xác định xem hardware có hỗ trợ cho Etherchannel hay không.

Các hardware sau hỗ trợ cho Etherchannel:

Hầu hết  Catalyst 5000 family module,  Switch 2926G mỗi nhóm EtherChannel port phải bao gồm 02 hay 04 port kề nhau trên cùng một module. Các port trong EtherChannel phải thuộc cùng một Port Group (port sử dụng chung một EtherChannel controller). Tùy thuộc vào hardware mà có thể có các điều kiện khác nhau. Ví dụ như trong một số module, bạn không thể tạo một  EtherChannel với 2 port sau cng của port group nếu hai port đầu tin chưa tạo EtherChannel.

Đối với Catalyst 4000 switch, Catalyst 2948G switch, và Catalyst 2980G switch một  EtherChannel có thể bao gồm từ  hai đến port bất kỳ. Các port trong EtherChannel không nhất thiết phải liên tục nhau và không nhất thiết phải trên cùng một module.

3.4.3            Các ghi chú khi cấu hình EtherChannel

Nếu cấu hình sai, một số port trong EtherChannel sẽ tự động bị disable để tránh tình trạng lặp trên mạng và các sự cố khác. Nêu theo cac ghi chú sau đây để tránh việc cấu hình sai:

·       Gán tất cả cc port trong EtherChannel vo cùng một VLAN hay cấu hình nó như một trunk. Nếu bạn cấu hình EtherChannel như một trunk, hãy cấu hình tất cả các port ở cùng trunk mode trên cả hai đầu của EtherChannel.

·       Cấu hình tất cả các port trong EtherChannel với cùng tốc độ và duplex mode

·       Nếu bạn cấu hình broadcast limit trên port, hy cấu hình dưới dạng percentage limit, trnh  cấu hình dưới dạng packets-per-second broadcast limit

·       Khơng cấu hình các port trong  EtherChannel như một dynamic VLAN port

·       Không cấu hình port security trên các port thuộc EtherChannel.

 

3.4.4            Cấu hình EtherChannel



 

Task

Command

Step 1 Xem xét lại tính năng của port.

show port capabilities [mod_num[/port_num]]

Step 2 Tạo channel trên các port.

set port channel port_list {on | off | auto | desirable}

Step 3 Xác nhận cấu hình

show port channel [mod_num[/port_num]]

 

 

 



Ví dụ:

 

Console> (enable) set port channel 2/1-2 desirable



Port(s) 2/1-2 are assigned to admin group 21.

Port(s) 2/1-2 channel mode set to desirable.

Console> (enable) show port channel

Port  Status      Channel              Admin   Ch

                         Mode                  Group   Id

-----  ----------      --------------------  -----       -----

 2/1  connected  desirable silent        21   833

 2/2  connected  desirable silent        21   833

----- ---------- -------------------- ----- -----

 

Port  Device-ID                       Port-ID                   Platform



----- ------------------------------- ------------------------- ----------------

 2/1  003812064                       1/1                       WS-C5509

 2/2  003812064                       1/2                       WS-C5509

----- ------------------------------- ------------------------- ----------------

Console> (enable)

 

·       Xóa một EtherChannel.



 

Task

Command

Step 1 Xóa một channel (phải được thực hiện trên cả hai đầu của channel)

set port channel port_list mode auto

Step 2 Xác nhận cấu hình.

show port channel [mod_num[/port_num]]

 

Ví dụ:


 

Console> (enable) set port channel 7/5-6 mode auto

Port(s) 7/5-6 channel mode set to auto.

Console> (enable) show port channel

No ports channelling

Console> (enable)

 

·       Hiển thị thông tin cấu hình EtherChannel



 

Task

Command

Hiển thị thông tin về EtherChannel theo từng port.

show port channel [mod_num[/port_num]] info [spantree | trunk | protocol | gmrp | gvrp | qos]

Hiển thị thông tin về EtherChannel theo EtherChannel administrative group.

show channel group [admin_group] info [spantree | trunk | protocol | gmrp | gvrp | qos]

Hiển thị thông tin về EtherChannel theo EtherChannel ID.

show channel [channel_id] info [spantree | trunk | protocol | gmrp | gvrp | qos]

 

Ví dụ:


 

Console> (enable) show port channel info

Switch Frame Distribution Method: mac both

 

Port  Status     Channel              Admin Channel  Speed  Duplex Vlan



                        mode                 group    id

----- ----------     -------------------- -----       -------      -----       ------     ----

 7/5  connected  on                      56       835         a-100    a-full    1

 7/6  connected  on                      56       835         a-100    a-full    1

----- ---------- -------------------- ----- ------- ----- ------ ----

 

Port  ifIndex Oper-group   Neighbor      Oper-Distribution  PortSecurity/



                                         Oper-group   Method                 Dynamic port

----- -------       ----------        ----------         -----------------        -------------

 7/5  377              1                                         mac both                      

 7/6  377              1                                mac both                       

----- ------- ---------- ---------- ----------------- -------------

 

Port  Device-ID                       Port-ID                   Platform



----- ------------------------------- ------------------------- ----------------

 7/5  069003103(5500)                 3/5                       WS-C5500

 7/6  069003103(5500)                 3/6                       WS-C5500

----- ------------------------------- ------------------------- ----------------

 

Port  Trunk-status Trunk-type    Trunk-vlans



-----    ------------      ------------- -----------------------------------------------

 7/5  not-trunking    negotiate     1-1005

 7/6  not-trunking    negotiate     1-1005

 

Port  Portvlancost-vlans



----- --------------------------------------------------------------------------

 7/5 


 7/6 

----- --------------------------------------------------------------------------

 

Port  Port       Portfast    Port        Port



         priority                  vlanpri     vlanpri-vlans

----- --------     --------       ------- ------------------------------------------------

 7/5        32   disabled       0

 7/6        32   disabled       0

 

Port  IP       IPX      Group



----- -------- -------- --------

 7/5  on       auto-on  auto-on

 7/6  on       auto-on  auto-on

----- -------- -------- --------

       

Port  GMRP     GMRP         GMRP

         status      registration  forwardAll

----- --------        ------------     ----------

 7/5  enabled   normal         disabled 

 7/6  enabled   normal         disabled 

 

Port  GVRP     GVRP            GVRP



         status     registeration   applicant

----- --------      -------------       ---------

 7/5  disabled normal        normal  

 7/6  disabled normal        normal  

 

Port  Qos-Tx   Qos-Rx    Qos-Trust    Qos-DefCos



-----   ------       ------         ------------      ----------

 7/5      -           -               untrusted       0

 7/6      -           -               untrusted       0

 

Console> (enable)



 

·       Hiển thị EtherChannel Traffic Statistics

 

Task

Command

Hiển thị EtherChannel traffic statistics

show channel [channel_id] mac

 

Ví dụ:


 

Console> show channel 835 mac

Channel  Rcv-Unicast          Rcv-Multicast        Rcv-Broadcast

--------      --------------------     --------------------     --------------------

835                         0               119200                    0

 

Channel   Xmit-Unicast         Xmit-Multicast       Xmit-Broadcast



--------       --------------------     --------------------     --------------------

835                         0               184171                    0

 

Channel  Rcv-Octet            Xmit-Octet



--------      --------------------   --------------------

835          11283708            14942104

 

Channel  Dely-Exced MTU-Exced  In-Discard Lrn-Discrd I n-Lost    Out-Lost



--------       ----------      ----------        ----------      ----------      ----------   ----------

835               0              0                 0                0                0             0

Console>

 

3.4.5            Ví dụ về cấu hình EtherChannel



·       Ví dụ về 04-Port Fast EtherChannel

 

 



 

Hình 3-1: Ví dụ về Fast EtherChannel Port



 

Step 1 Bảo đảm cho tất cả các port trên Switch A và Switch B có cùng cấu hình port bao gồm cấu hình  VLAN, tốc độ và trạng thái duplex.

 

Switch_A> (enable) set vlan 50 1/1-4



VLAN 50 modified.

VLAN 1 modified.

VLAN  Mod/Ports

----      -----------------------

50      1/1-4

          2/1-2

          3/1-3

     


Switch_A> (enable) set port speed 1/1-4 100

Ports 1/1-4 transmission speed set to 100Mbps.

Switch_A> (enable) set port duplex 1/1-4 full

Ports 1/1-4 set to full-duplex.

Switch_A> (enable)

 

Switch_B> (enable) set vlan 50 3/1-4



VLAN 50 modified.

VLAN 1 modified.

VLAN  Mod/Ports

----      -----------------------

50       3/1-4

     


Switch_B> (enable) set port speed 3/1-4 100

Ports 3/1-4 transmission speed set to 100Mbps.

Switch_B> (enable) set port duplex 3/1-4 full

Ports 3/1-4 set to full-duplex.

Switch_B> (enable)

 

Step 2 Xác nhận trang thái của channel

 

Switch_A> (enable) show port channel



No ports channelling

Switch_A> (enable)

 

Switch_B> (enable) show port channel



No ports channelling

Switch_B> (enable)

 

Step 3 Cấu hình port trên Switch A để tự động nhận biết  Fast EtherChannel với switch B.Giả sử rằng các port trên Switch B ở chế độ EtherChannel auto.

.

Switch_A> (enable) set port channel 1/1-4 desirable



Port(s) 1/1-4 channel mode set to desirable.

Switch_A> (enable) %PAGP-5-PORTFROMSTP:Port 1/1 left bridge port 1/1

%PAGP-5-PORTFROMSTP:Port 1/2 left bridge port 1/2

%PAGP-5-PORTFROMSTP:Port 1/3 left bridge port 1/3

%PAGP-5-PORTFROMSTP:Port 1/4 left bridge port 1/4

%PAGP-5-PORTFROMSTP:Port 1/2 left bridge port 1/2

%PAGP-5-PORTFROMSTP:Port 1/3 left bridge port 1/3

%PAGP-5-PORTFROMSTP:Port 1/4 left bridge port 1/4

%PAGP-5-PORTTOSTP:Port 1/1 joined bridge port 1/1-4

%PAGP-5-PORTTOSTP:Port 1/2 joined bridge port 1/1-4

%PAGP-5-PORTTOSTP:Port 1/3 joined bridge port 1/1-4

%PAGP-5-PORTTOSTP:Port 1/4 joined bridge port 1/1-4

 

Switch_B> (enable) %PAGP-5-PORTFROMSTP:Port 3/1 left bridge port 3/1



%PAGP-5-PORTFROMSTP:Port 3/2 left bridge port 3/2

%PAGP-5-PORTFROMSTP:Port 3/3 left bridge port 3/3

%PAGP-5-PORTFROMSTP:Port 3/4 left bridge port 3/4

%PAGP-5-PORTFROMSTP:Port 3/2 left bridge port 3/1-4

%PAGP-5-PORTFROMSTP:Port 3/3 left bridge port 3/1-4

%PAGP-5-PORTFROMSTP:Port 3/4 left bridge port 3/1-4

%PAGP-5-PORTTOSTP:Port 3/1 joined bridge port 3/1-4

%PAGP-5-PORTTOSTP:Port 3/2 joined bridge port 3/1-4

%PAGP-5-PORTTOSTP:Port 3/3 joined bridge port 3/1-4

%PAGP-5-PORTTOSTP:Port 3/4 joined bridge port 3/1-4

 

Step 4 Sau khi Etherchannel được nhận biết, dạng lệnh  show port channel để xác nhận cấu hình

 

Switch_A> (enable) show port channel



Port  Status     Channel   Channel     Neighbor                                   Neighbor

                        mode       status         device                                       port

-----   ----------   ---------     -----------     -------------------------                  ----------

 1/1  connected  desirable channel     WS-C4003    JAB023806(Sw   3/1      

 1/2  connected  desirable channel     WS-C4003    JAB023806(Sw   3/2      

 1/3  connected  desirable channel     WS-C4003    JAB023806(Sw   3/3      

 1/4  connected  desirable channel     WS-C4003    JAB023806(Sw   3/4      

 

Switch_A> (enable)



 

Switch_B> (enable) show port channel

Port  Status     Channel   Channel     Neighbor                               Neighbor

                        mode        status        device                                   port

-----  ----------    ---------     -----------     -------------------------               ----------

 3/1  connected  auto      channel     WS-C5000    009979082(Sw   1/1      

 3/2  connected  auto      channel     WS-C5000    009979082(Sw   1/2      

 3/3  connected  auto      channel     WS-C5000    009979082(Sw   1/3      

 3/4  connected  auto      channel     WS-C5000    009979082(Sw   1/4      

----- ---------- --------- ----------- ------------------------- ----------

Switch_B> (enable)

 

·       Ví dụ về 02 port Gigabit EtherChannel.



 

Hình 3-2: Ví dụ về Gigabit EtherChannel



 



tải về 0.8 Mb.

Chia sẻ với bạn bè của bạn:
1   2   3   4   5   6   7   8




Cơ sở dữ liệu được bảo vệ bởi bản quyền ©hocday.com 2024
được sử dụng cho việc quản lý

    Quê hương