Catalyst 6509 交換機配置手冊

目錄
1 基礎配置 
1.1 建立到控制檯的連接 
1.2 配置交換機的地址 
1.3 配置 Ethernet 口 
1.4 配置交換機的全局參數 
1.5 測試網絡的連通性 
2 其它參數的配置 
2.1 配置 Login Banner 
2.2 配置 DNS 
2.3 配置 CDP協議 
3 VLAN的配置 
3.1 配置VTP協議(VLAN Trunk Protocol) 
3.2 配置 VLAN 
3.2.1 創建 VLAN 
3.3 將交換端口配置到VLAN中 
3.4 配置 VLAN Trunks 
3.5 在MSFC上配置IP InterVLAN路由 
3.5.1 從Console口進入MSFC 
3.5.2 通過Telnet Session 進入MSFC 模塊 
3.5.3 在MSFC上配置IP InterVLAN路由 
3.6 配置HSRP協議 
3.7 配置以太通道 
 
 

1 基礎配置
1.1 建立到控制檯的連接
在進行配置和將交換機接入網絡前必須通過控制檯來進入交換機的CLI,對交換機進行配置。在進入CLI後,通過命令enable 進入到 privileged 模式。
通過以下步驟將終端連接到交換機的控制口
描述 命令
Step 1 終端的參數配置如下: 9600 baud, 8 data bits, no parity, 2 stop bits. -
Step 2 打開交換機電源,出現交換機的啓動信息. -
Step 3 在提示輸入密碼的提示符下輸入回車. -
Step 4 進入privileged 模式. enable
Step 5 在提示輸入密碼的提示符下輸入回車. -
例如:
<... output truncated ...>
 
Cisco Systems Console
 
 
Enter password:
Console> enable
Enter password:
Console> (enable)
1.2 配置交換機的地址
在遠程登錄交換機前你必須爲交換機配置地址,掩碼和網關等信息
在你第一次配置交換機時,將sc0口配置到default VLAN,即VLAN 1中,在你配置了其他VLAN以後,你可以將sc0口配置到其他VLAN中,但是sc0口的地址和網關必須與所在的VLAN的網段對應.
配置IP地址和網關的步驟如下
描述 命令
Step 1 配置sc0口的地址/掩碼 set interface sc0 ip_addr/netmask
Step 2 (可選) 將sc0口配置到對應的VLAN中 set interface sc0 vlan_num
Step 3 配置網關 set ip route default gateway
Step 4 檢查sc0口地址 show interface
Step 5 檢查網關地址 show ip route
Step 6 測試網絡連通性 ping [-s] host [packet_size] [packet_count]
例如:
Console> (enable) set interface sc0 10.1.1.50/255.0.0.0
Interface sc0 IP address and netmask set.
Console> (enable) set interface sc0 100
Interface sc0 vlan set.
Console> (enable) set ip route default 10.1.1.1
Route added.
Console> (enable) show interface
sl0: flags=51<UP,POINTOPOINT,RUNNING>
        slip 0.0.0.0 dest 0.0.0.0
sc0: flags=63<UP,BROADCAST,RUNNING>
        vlan 100 inet 10.1.1.50 netmask 255.0.0.0 broadcast 10.255.255.255
Console> (enable) show ip route
Fragmentation   Redirect   Unreachable
-------------   --------   -----------
enabled         enabled    enabled
Destination             Gateway                 Flags   Use         Interface
----------------------- ----------------------- ------  ----------  ---------
default                 10.1.1.1                UG               0  sc0
10.0.0.0                10.1.1.50               U                0  sc0
default                 default                 UH               0  sl0
Console> (enable) ping 10.1.1.100
10.1.1.100 is alive
Console> (enable)
1.3 配置 Ethernet 口
在一條連路兩端的Ethernet, Fast Ethernet和 Gigabit Ethernet 口的端口速率了工作方式必須相同。Ethernet 和Fast Ethernet 會自動配置工作方式,10/100-Mbps Fast Ethernet 口可以自動檢測連路速率。. Gigabit Ethernet總是在 full duplex方式下工作。
配置步驟如下
任務  命令
Step 1 對10/100-Mbps Fast Ethernet 口配置端口速率,使用AUTO配置自適應模式. set port speed mod_num/port_num {10 | 100| auto}
Step 2 配置Ethernet ,Fast Ethernet 口的工作方式,使用AUTO配置自適應模式. set port duplex mod_num/port_num {full| half | auto}
Step 3 如果需要,可以Enable 端口. set port enable mod_num/port_num
Step 4 配置端口名稱. set port name mod_num/port_num name_string
Step 5 檢查端口配置. show port mod_num/port_num
注:對10/100-Mbps Fast Ethernet 口,當端口的速率是AUTO時,你不能手動改變工作方式。
例如:
Console> (enable) set port speed 2/12 auto
Port 2/12 speed set to auto detect.
Console> (enable) set port name 2/12 NT Server 12
Port 2/12 name set.
Console> (enable) show port 2/12
Port  Name               Status     Vlan       Level  Duplex Speed Type
----- ------------------ ---------- ---------- ------ ------ ----- ------------
 2/12 NT Server 12       connect    1          normal a-half a-100 10/100BaseTX
<... output truncated ...>
Console> (enable)
1.4 配置交換機的全局參數
配置步驟和命令如下:
描述 命令
Step 1 配置系統名稱. set system name name_string
Step 2 配置時間參數. set time mm/dd/yy hh:mm:ss
Step 3 配置提示符. (一般,如果配置了系統的名稱,系統名稱被缺省的用作提示符,但可以用該命令來修改提示符) set prompt prompt_string
Step 4 配置進入CONSOLE密碼. set password
Step 5 配置 enable 密碼. set enablepass
例如:
Console> (enable) set system name Catalyst 6000
System name set.
Catalyst 6000> (enable) set time 08/18/98 10:08:00
Sat Apr 18 1998, 10:08:00
Catalyst 6000> (enable) set password
Enter old password:
Enter new password:
Retype new password:
Password changed.
Catalyst 6000> (enable) set enablepass
Enter old password:
Enter new password:
Retype new password:
Password changed.
Catalyst 6000> (enable)
1.5 測試網絡的連通性
在你配置了交換機的地址和網關以後,你就可以與網絡上的其它節點連通了。
測試方法如下:
任務  命令
Step 1 PING其它節點. ping [-s] host [packet_size] [packet_count]
Step 2 Trace 網絡上的其他節點 traceroute [-q nqueries] host [data_size]
Step 3 檢查端口配置 show interface
Step 4 檢查網關配置 show ip route
Ping和traceroute 的例子如下
Console> (enable) ping -s 172.20.52.20 1200 4
PING 172.20.52.20: 1200 data bytes
1208 bytes from 172.20.52.20: icmp_seq=0. time=6 ms
1208 bytes from 172.20.52.20: icmp_seq=1. time=6 ms
1208 bytes from 172.20.52.20: icmp_seq=2. time=6 ms
1208 bytes from 172.20.52.20: icmp_seq=3. time=5 ms
 
----172.20.52.20 PING Statistics----
4 packets transmitted, 4 packets received, 0% packet loss
round-trip (ms)  min/avg/max = 5/5/6
Console> (enable) traceroute 172.20.52.20 1400
traceroute to 172.20.52.20 (172.20.52.20), 30 hops max, 1440 byte packets
 1 172.20.52.33 (172.20.52.33)  2 ms  3 ms  1 ms
 2 172.20.52.20 (172.20.52.20)  4 ms  * 4 ms
Console> (enable)

2 其它參數的配置
2.1 配置 Login Banner
login banner或 message of the day是在你登陸到交換機時出現在屏幕上的提示信息,最多可以配置255 個字符。
配置步驟:
描述 命令
Step 1 配置login banner. set banner motd c [text] c
Step 2 如果你是通過控制太進入CLI的,你可以通過中斷會話來檢查login banner的配置. exit
Step 3 如果你是通過TELNET,你可以通過檢查配置和重新登錄來檢查login banner配置 show configuration
例如: (通過控制口):
Console> (enable) set banner motd *Catalyst 6000
Software Release 5.4(1)
IP address 10.1.1.20
*
MOTD banner set
Console> (enable) exit
 
 
Cisco Systems Console
 
 
Catalyst 6000
Software Release 5.4(1)
IP address 10.1.1.20
 
 
 
Enter password:
2.2 配置 DNS
域名系統(Domain Name System,DNS) 可以讓你使用主機名來代替交換機的IP地址。在使用DNS前,你必須有一個或一個以上的域名服務器(DNS server) .
步驟:
任務  命令
Step 1 配置域名服務器地址. 第一個配置的地址是主服務器地址,你也可以通primary參數來指定某個服務器爲主服務器 set ip dns server ip_addr [primary]
Step 2 配置域名. set ip dns domain name
Step 3 啓用DNS. set ip dns enable
Step 4 檢查DNS配置.參數 noalias可用IP地址代替服務器名字顯示。 show ip dns [noalias]
例如:
Console> (enable) set ip dns server 10.1.1.100 primary
10.1.1.100 added to DNS server table as primary server.
Console> (enable) set ip dns server 10.1.1.122
10.1.1.122 added to DNS server table as backup server.
Console> (enable) set ip dns domain bigcorp.com
Default DNS domain name set to bigcorp.com
Console> (enable) set ip dns enable
DNS is enabled
Console> (enable) show ip dns
DNS is currently enabled.
The default DNS domain name is: bigcorp.com
 
DNS name server                            status
----------------------------------------   -------
10.1.1.100                                 primary
10.1.1.122
Console> (enable)
2.3 配置 CDP協議
Cisco Discovery Protocol (CDP) 是一種協議和介質無關的協議。它可以運行與所有CISCO設備上,它可以發現網絡上相鄰的其他CISCO設備的信息。
爲了配置CDP,在特權模式下執行下面的步驟:
任務  命令
Step 1 在某個端口上啓動CDP。 set cdp enable [mod_num/port_num]
Step 2 (可選) 配置CDP發消息的間隔. 範圍是5-900 秒,缺省60秒。 set cdp interval interval
Step 3 (可選) 配置CDP幀的保持時間既CDP消息的失效時間. 範圍10-255秒,缺省180. set cdp holdtime interval
Step 4 檢查CDP配置 show cdp port [mod_num[/port_num]]
Step 5 顯示CDP信息 show cdp neighbors [mod_num[/port_num]] [vlan |  duplex | capabilities | detail]
例如:
Console> (enable) set cdp enable
CDP enabled for all ports.
Console> (enable) set cdp interval 100
CDP message interval set to 100 seconds for all ports.
Console> (enable) show cdp port
Port      CDP Status  Message-Interval
--------  ----------  ----------------
 1/1      enabled     100
 1/2      enabled     100
 2/1      enabled     100
Console> (enable) show cdp neighbors
* - indicates vlan mismatch.
# - indicates duplex mismatch.
 
Port     Device-ID                       Port-ID                   Platform
-------- ------------------------------- ------------------------- ------------
3/5      002267619(cat1.cisco.com)       3/6 *                     WS-C5000 
3/6      002267619(cat1.cisco.com)       3/5                       WS-C5000
4/1      002267619(cat1.cisco.com)       4/2                       WS-C5000
4/2      002267619(cat1.cisco.com)       4/1 #                     WS-C5000
4/20     069000057(cat2.cisco.com)       8/5                       WS-C5500
5/1      005763872(cat3.cisco.com)       2/1                       WS-C5000
5/1      066506245(cat4.cisco.com)       2/1                       WS-C5505
5/1      066508595(cat5.cisco.com)       5/12 *#                   WS-C5505
5/1      066508596(cat6.cisco.com)       5/1                       WS-C5505
Console> (enable)

3 VLAN的配置
在 Catalyst 6500 系列交換機上配置VLAN要經過如下步驟:
Step 1 配置VTP協議(VLAN Trunk Protocol)---在交換機上創建VTP域和配置VTP模式
Step 2 配置 VLANs—在VTP域中創建VLAN將交換機的端口配置到VLAN中.
Step 3 配置 VLAN Trunks---配置在多個VLAN間進行流量交換的的端口。
3.1 配置VTP協議(VLAN Trunk Protocol)
配置交換機爲VTP Server
在你配置一臺交換機爲VTP server時,你必須先定義一個 VTP域,才能建立VLAN.
步驟:
描述 命令
Step 1 配置VTP名字 set vtp domain name
Step 2 設置VTP模式 set vtp mode server
Step 3 檢查VTP配置. show vtp domain
例如:
Console> (enable) set vtp domain BigCorp
VTP domain BigCorp modified
Console> (enable) set vtp mode server
VTP domain BigCorp modified
Console> (enable) show vtp domain
Domain Name                      Domain Index VTP Version Local Mode  Password
-------------------------------- ------------ ----------- ----------- ----------
BigCorp                          1            2           server      -
 
Vlan-count Max-vlan-storage Config Revision Notifications
---------- ---------------- --------------- -------------
9          1023             0               enabled
 
Last Updater    V2 Mode  Pruning  PruneEligible on Vlans
--------------- -------- -------- -------------------------
172.20.52.40    disabled disabled 2-1000
Console> (enable)
 
 
3.2 配置 VLAN
當正確配置了VTP以後,就可以在交換機上開始創建,修改和刪除VLAN了。
3.2.1 創建 VLAN
任務  命令
Step 1 通過指定VLAN號來創建VLAN,同時也可以指定VLAN name. set vlan vlan_num [name name]
Step 2 V檢查VLAN配置 show vlan vlan_num

例如:
Console> (enable) set vlan 100 name Pubs
Vlan 100 configuration successful
Console> (enable) show vlan 100
VLAN Name                             Status    Mod/Ports, Vlans
---- -------------------------------- --------- ----------------------------
100  Pubs                             active
 
 
VLAN Type  SAID       MTU   Parent RingNo BrdgNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ ------ ---- -------- ------ ------
100  enet  100100     1500  -      -      -      -    -        0      0
 
 
VLAN AREHops STEHops Backup CRF
---- ------- ------- ----------
Console> (enable)
3.3 將交換端口配置到VLAN中
創建了VLAN以後,需要將相應的交換端口配置到VLAN中,我們可以將一個或多個端口配置到一個VLAN中。
配置方法:
任務  命令
Step 1將一個或多個端口配置到VLAN中 set vlan vlan_num mod_num/port_num
Step 2 檢查端口被正確配置到VLAN中 show vlan vlan_num
Step 3 檢查VLAN包含的端口情況 show port [mod_num /port_num]
例如:
Console> (enable) set vlan 100 2/1-4
VLAN 100 modified.
VLAN 1 modified.
VLAN  Mod/Ports
---- -----------------------
100   2/1-4
 
Console> (enable) show vlan 100
VLAN Name                             Status    Mod/Ports, Vlans
---- -------------------------------- --------- ----------------------------
100  Pubs                             active    2/1-4
 
 
VLAN Type  SAID       MTU   Parent RingNo BrdgNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ ------ ---- -------- ------ ------
100  enet  100100     1500  -      -      -      -    -        0      0
 
 
VLAN AREHops STEHops Backup CRF
---- ------- ------- ----------
 
 
Console> (enable) show port 2
Port  Name               Status     Vlan       Level  Duplex Speed Type
----- ------------------ ---------- ---------- ------ ------ ----- ------------
 2/1                     notconnect 100        normal   half   100 100BaseTX
 2/2                     notconnect 100        normal   half   100 100BaseTX
 2/3                     notconnect 100        normal   half   100 100BaseTX
 2/4                     notconnect 100        normal   half   100 100BaseTX
 2/5                     notconnect 1          normal   half   100 100BaseTX
<... output truncated ...>
Console> (enable)
 
3.4 配置 VLAN Trunks
VLAN trunks 是一個點到點的連接,它可以使不同VLAN之間進行通信。所有的Ethernet 口可以使用Inter-Switch Link (ISL) 或 IEEE 802.1Q 的TRUNK封裝。缺省的,如果一個端口設置成negotiate就會試圖採用ISL封裝。.
如果兩個相連的端口,一端設置爲desirable 或 on,另一端配置爲 auto ,那麼它就會自動成爲TRUNK.
配置步驟:
描述 命令
Step 1  將一個端口配置爲TRUNK。配置的結果會在終端屏幕上顯示。 set trunk mod_num/port_num {on | desirable | auto} {isl | dot1q | negotiate}
Step 2 檢查配置情況 show trunk
例如: (假設連路的另外一端配置爲auto):
Console> (enable) set trunk 1/2 desirable
Port(s) 1/2 trunk mode set to desirable.
Console> (enable) 07/22/1998,10:16:58:DTP-5:Port 1/2 has become isl trunk
07/22/1998,10:16:58:PAGP-5:Port 1/2 left bridge port 1/2.
07/22/1998,10:17:09:PAGP-5:Port 1/2 joined bridge port 1/2.
Console> (enable) show trunk 1/2
Port      Mode         Encapsulation  Status        Native vlan
--------  -----------  -------------  ------------  -----------
 1/2      desirable    isl            trunking      523
Port      Vlans allowed on trunk
--------  ---------------------------------------------------------------------
 1/2      1-1005
Port      Vlans allowed and active in management domain
--------  ---------------------------------------------------------------------
 1/2      1,10,105,152,521-524
Port      Vlans in spanning tree forwarding state and not pruned
--------  ---------------------------------------------------------------------
 1/2      1,10,105,152,521-524
Console> (enable)
3.5 在MSFC上配置IP InterVLAN路由
3.5.1 從Console口進入MSFC
我們可以通過switch console直接從supervisor engine的控制口進入MSFC 模塊的CLI,離開MSFC時鍵入^C^C^C 。
命令格式:
描述 命令
進入MSFC Console> (enable) switch console [mod_num]
主用交換模塊上的MSFC卡的mod_num爲15,備用模塊上的MSFC的mod_num爲16。
注: 要進入備用的MSFC,將CONSOLE線連到備用的交換處理模塊上.
例如:
Console> (enable) switch console 15
Trying Router-15...
Connected to Router-15.
Type ^C^C^C to switch back...
Router>^C^C^C
Console> (enable)
3.5.2 通過Telnet Session 進入MSFC 模塊
我們可以通過 session mod_num 命令進入到MSFC 的CLI界面。離開CLI使用 exit 命令。
例如:
Console> (enable) session 15
Router> exit
Console> (enable)
3.5.3 在MSFC上配置IP InterVLAN路由
爲了使VLAN之間能夠相互通訊,我們必須爲每個我們需要與外界通訊的VLAN配置  IP InterVLAN 路由。配置步驟如下(假設已經在交換几上進行了前面的配置):
任務  命令
Step 1 (可選) 啓動IP如由1.
Router(config)#ip routing
Step 2 在MSFC上配置VLAN端口. Router(config)#interface vlan id
Step 3 爲VLAN配置IP地址 Router(config-if)# ip address n.n.n.n mask
Step 4 退出配置模式. Router(config-if)# Ctrl-Z
例如:
Router# configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)# ip routing
Router(config)# interface vlan 100
Router(config-if)# ip address 10.1.1.1 255.0.0.0
Router(config-if)# ^Z
Router#

3.6  配置HSRP協議
我們可以通過在MSFC VLAN端口上上配置一個或多個HSRP 組來提供自動路由備份。同一組中的所有VLAN 端口在公用一個虛擬的MAC和IP地址。我們將節點的網關配置爲HSRP地址,這樣當這個組中的任何一端口DOWN掉時,都不會影響這些節點的正常使用。同一組中,端口的HSRP的優先級高的端口是活動端口。
配置步驟:
描述 命令
Step 1 啓動e HSRP,指定HSRP IP 地址. 如果不指定組,默認爲0。 Router(config-if)# standby [group-number] ip [ip-address]
Step 2 指定HSRP端口的優先級 缺省爲100。 Router(config-if)# standby [group-number] priority priority
Step 3 配置端口爲搶佔模式,當端口的優先級高於當前網絡中同組的活動端口時,就搶佔爲活動端口。 Router(config-if)# standby [group-number] preempt [delay delay]
Step 4 (可選) 配置HSRP 發送包hello和保持的時間  Router(config-if)# standby [group-number] timers hellotime holdtime
Step 5 (可選) 指定HSRP端口驗證密碼,同一組中的端口密碼必須相同。 Router(config-if)# standby [group-number] authentication string

例如:單個交換機上配有雙Supervisor Engines 和 MSFC。

Console> (enable) switch console 15
Trying Router-15...
Connected to Router-15.
Type ^C^C^C to switch back...
Router# configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)# interface vlan10
Router(config-if)# standby 10 ip 172.20.100.10
Router(config-if)# standby 10 priority 110
Router(config-if)# standby 10 preempt
Router(config-if)# standby 10 timers 5 15
Router(config-if)# standby 10 authentication Secret
Router(config-if)# interface vlan21
Router(config-if)# standby 21 ip 192.20.100.21
Router(config-if)# standby 21 priority 109
Router(config-if)# standby 21 preempt
Router(config-if)# standby 21 timers 5 15
Router(config-if)# standby 21 authentication Secret
Router(config-if)# ^Z
Router# ^C^C^C
 
Console> (enable) switch console 16
Trying Router-16...
Connected to Router-16.
Type ^C^C^C to switch back...
Router# configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)# interface vlan10
Router(config-if)# standby 10 ip 172.20.100.10
Router(config-if)# standby 10 priority 109
Router(config-if)# standby 10 preempt
Router(config-if)# standby 10 timers 5 15
Router(config-if)# standby 10 authentication Secret
Router(config-if)# interface vlan21
Router(config-if)# standby 21 ip 172.20.100.21
Router(config-if)# standby 21 priority 110
Router(config-if)# standby 21 preempt
Router(config-if)# standby 21 timers 5 15
Router(config-if)# standby 21 authentication Secret
Router(config-if)# ^Z
Router# ^C^C^C
3.7 配置以太通道
以太通道將多個單獨的以太鏈路綁定成一個邏輯的鏈路,以此在6000系列交換機和另外一臺交換機或主機之間提供1600Mbps(全雙工快速以太通道)或16Gbps(千兆以太通道)的速率。
一臺6000系列的交換機最多支持128個通道。你可以在一臺6000系列的交換機的任何一個模塊上最多將8個兼容的以太口綁定成一個以太通道。每個通道中的所有端口速率必須是一樣的。
如果配置不當,一些以太通道端口爲了避免網絡循環或其它一些問題將自動disable。爲了避免錯誤,請按下面的提示進行配置:
 將一個以太通道中的所有端口分配到同一個VLAN中,或將它們配置成幹道端口。
 如果你將以太端口配置成幹道,則在以太通道的所有端口上配置相同的幹道模式。
 在幹道以太通道中,以太通道在所有的端口上支持相同的VLAN範圍。如果每個端口所允許的VLAN範圍不一樣,即使用命令set port channel的參數是auto或 desirable,這些端口也不會形成以太通道。
 不要將以太通道中的端口配置成動態VLAN端口。
 將一個以太通道中的所有端口配置成相同的速率和雙工模式。
 如果端口的安全特性打開,以太通道則不會形成。
 如果一個端口是SPAN的destination端口,則以太通道不會形成。
 如果端口上設置了不同的協議過濾,則以太通道不會形成。
 激活以太通道中的所有端口。如果你“disable”了以太通道中的一個端口,將被認爲是這條鏈路失敗了,流量將通過通道中的其它端口進行傳輸。
配置以太通道
在特權模式下,執行:
set port channel mod/ports... [admin_group]
set port channel mod_num/port_num mode
{on | off | desirable | auto} [silent | non-silent]
下面的例子演示瞭如何將將一個7端口的以太通道配置在一個新的管理組裏:
Console> (enable) set port channel 2/2-8 desirable
Ports 2/2-8 left admin_group 1.
Ports 2/2-8 joined admin_group 2.
Console> (enable)
要設置一個端口的以太通道模式,在特權命令下執行下面的步驟:
set port channel mod/ports... [admin_group]
set port channel mod_num/port_num mode
{on | off | desirable | auto} [silent | non-silent]
下面的例子演示瞭如何將端口2/1設置成auto模式:
Console> (enable) set port channel 2/1 mode auto
Ports 2/1 channel mode set to auto.
Console> (enable)
設置以太通道端口路徑開銷
爲了設置以太通道端口路徑開銷,請在特權模式下執行下面的步驟:
描述 命令
Step 1 使用管理組號顯示以太通道ID show channel group admin_group
Step 2 使用以太通道ID設置以太通道端口路徑開銷 set channel cost {channel_id | all} cost
下面的例子演示瞭如何爲通道ID 768設置以太通道端口開銷:
Console> (enable) show channel group 20
Admin Port  Status     Channel   Channel
group                  Mode      id
----- ----- ---------- --------- --------
  20    1/1 notconnect on             768
  20    1/2 connected  on             768
 
Admin Port  Device-ID                       Port-ID                   Platform
group
----- ----- ------------------------------- ------------------------- ----------
  20    1/1 
  20    1/2  066510644(cat26-lnf(NET25))     2/1                       WS-C6009
Console> (enable)
 
Console> (enable) set channel cost 768 12
Port(s) 1/1,1/2 port path cost are updated to 31.
Channel 768 cost is set to 12.
Warning:channel cost may not be applicable if channel is broken.
Console> (enable)
設置以太通道VLAN開銷
在特權模式下執行:
描述 命令
Step 1 使用管理組號顯示以太通道ID show channel group admin_group
Step 2 使用以太通道ID設置以太通道VLAN開銷 set channel vlancost channel_id cost
下面的例子演示瞭如何爲通道ID768設置以太通道VLAN開銷
Console> (enable) show channel group 20
Admin Port  Status     Channel   Channel
group                  Mode      id
----- ----- ---------- --------- --------
  20    1/1 notconnect on             768
  20    1/2 connected  on             768
 
Admin Port  Device-ID                       Port-ID                   Platform
group
----- ----- ------------------------------- ------------------------- ----------
  20    1/1 
  20    1/2  066510644(cat26-lnf(NET25))     2/1                       WS-C6009
Console> (enable)
 
Console> (enable) set channel vlancost 768 12
Channel 768 vlancost set to 12.
Console> (enable)
要配置以太通道幀分佈,在特權模式下執行:
set port channel all distribution {ip | mac} [source | destination | both]
下面的例子演示瞭如何利用MAC源地址配置以太通道:
Console> (enable) set port channel all distribution mac source
Channel distribution is set to mac source.
Console> (enable)
要禁止以太通道,在特權模式下執行:
set port channel mod_num/port_num mode off
下面的例子演示瞭如何禁止以太通道:
Console> (enable) set port channel 2/2-8 mode off
Ports 2/2-8 channel mode set to off.
Console> (enable)
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章