1. 思科三層交換機之間的鏈路聚合 配置命令
1、使用eNSP創建網路拓撲圖,客戶埠訪問server有很大數據流量,為了防止web伺服器正常訪問受限,進行鏈路聚合配置。
2. CISCO 鏈路聚合的怎麼回事求原理 求配置命令!
鏈路聚合是將兩個或更多數據信道結合成一個單個的信道,該信道以一個單個的更高帶寬的邏輯鏈路出現。鏈路聚合一般用來連接一個或多個帶寬需求大的設備,例如連接骨幹網路的伺服器或伺服器群
一、 實驗要求
設備 IP Mask 埠
交換機 A 192.168.1.11 255.255.255.0 0/0/1-2 trunking
交換機 B 192.168.1.12 255.255.255.0 0/0/3-4 trunking
PC1 192.168.1.101 255.255.255.0 交換機 A0/0/23
PC2 192.168.1.102 255.255.255.0 交換機 B0/0/24
如果鏈路聚合成功,則 PC1 可以ping 通 PC2。
二、 實驗步驟
第一步:正確連接網線,交換機全部恢復出廠設置,做初始配置,避免廣播風暴出現
交換機A: switch#config
switch(Config)#hostname switchA
switchA(Config)#interface vlan 1
switchA(Config-If-Vlan1)#ip address 192.168.1.11 255.255.255.0
switchA(Config-If-Vlan1)#no shutdown
switchA(Config-If-Vlan1)#exit
switchA(Config)#spanning-tree
MSTP is starting now, please wait...........
MSTP is enabled successfully.
switchA(Config)#
交換機B: switch#config
switch(Config)#hostname switchB
switchB(Config)#interface vlan 1
switchB(Config-If-Vlan1)#ip address 192.168.1.12 255.255.255.0
switchB(Config-If-Vlan1)#no shutdown
switchB(Config-If-Vlan1)#exit
switchB(Config)#spanning-tree
MSTP is starting now, please wait...........
MSTP is enabled successfully.
switchB(Config)#
第二步:創建port group
交換機A: switchA(Config)#port-group 1
switchA(Config)#
驗證配置: switchA#show port-group detail Sorted by the ports in the group 1: --------------------------------------------
switchA#show port-group brief Port-group number : 1 Number of ports in port-group : 0 Maxports in port-channel = 8 Number of port-channels : 0 Max port-channels : 1 switchA#
交換機B
switchB(Config)#port-group 2
switchB(Config)#
第三步:手工生成鏈路聚合組(第三、四步任選其一操作)
交換機A: switchA(Config)#interface ethernet 0/0/1-2
switchA(Config-Port-Range)#port-group 1 mode on
switchA(Config-Port-Range)#exit
switchA(Config)#interface port-channel 1
switchA(Config-If-Port-Channel1)#
驗證配置: switchA#show vlan VLAN Name Type Media Ports ---- ------------ ---------- --------- ------------------- 1 default Static ENET Ethernet0/0/3 Ethernet0/0/4 Ethernet0/0/5 Ethernet0/0/6 Ethernet0/0/7 Ethernet0/0/8 Ethernet0/0/9 Ethernet0/0/10 Ethernet0/0/11 Ethernet0/0/12 Ethernet0/0/13 Ethernet0/0/14 Ethernet0/0/15 Ethernet0/0/16 Ethernet0/0/17 Ethernet0/0/18 Ethernet0/0/19 Ethernet0/0/20 Ethernet0/0/21 Ethernet0/0/22 Ethernet0/0/23 Ethernet0/0/24 Port-Channel1 switchA# !port-channel1已經存在 交換機B: switchB(Config)#int e 0/0/3-4 switchB(Config-Port-Range)#port-group 2 mode on switchB(Config-Port-Range)#exit switchB(Config)#interface port-channel 2 switchB(Config-If-Port-Channel2)# 驗證配置: switchB#show port-group brief Port-group number : 2 Number of ports in port-group : 2 Maxports in port-channel = 8 Number of port-channels : 1 Max port-channels : 1 switchB# 第四步: LACP動態生成鏈路聚合組(第三、四步任選其一操作) switchA(Config)#interface ethernet 0/0/1-2 switchA(Conifg-Port-Range)#port-group 1 mode active switchA(Config)#interface port-channel 1 switchA(Config-If-Port-Channel1)# 驗證配置: switchA#show vlan VLAN Name Type Media Ports ---- ------------ ---------- --------- ------------------- 1 default Static ENET Ethernet0/0/3 Ethernet0/0/4 Ethernet0/0/5 Ethernet0/0/6 Ethernet0/0/7 Ethernet0/0/8 Ethernet0/0/9 Ethernet0/0/1 Ethernet0/0/11 Ethernet0/0/1 Ethernet0/0/13 Ethernet0/0/1 Ethernet0/0/15 Ethernet0/0/1 Ethernet0/0/17 Ethernet0/0/1 Ethernet0/0/19 Ethernet0/0/2 Ethernet0/0/21 Ethernet0/0/2 Ethernet0/0/23 Ethernet0/0/2 Port-Channel1 switchA# !port-channel1已經存在 交換機B: switchB(Config)#interface ethernet 0/0/3-4 switchB(Conifg-Port-Range)#port-group 2 mode passive switchB(Config)#interface port-channel 2 switchB(Config-If-Port-Channel2)# 驗證配置: switchB#show port-group brief Port-group number : 2 Number of ports in port-group : 2 Maxports in port-channel = 8 Number of port-channels : 1 Max port-channels : 1 switchB# 第五步:使用ping命令驗證 使用PC1 ping PC2 交換機A 交換機B 結果 原因 0/0/1 0/0/3 通 鏈路聚合組連接正確 0/0/2 0/0/4 0/0/1 0/0/3 通 拔掉交換機B埠4的網線,仍然可 0/0/2 以通(需要一點時間),此時用show
3. 思科交換機鏈路聚合命令是什麼還有順帶說下意思。謝謝哈。 扣扣314527726
尤其在核心交換機之間很容易出現帶寬瓶頸,因為全部的流量都通過它。
解決方法:
1、更換為高速埠 (增加了成本)
2、交換機間增加鏈路 (技術支持)
Cisco提供捆綁多條平行鏈路成一條邏輯鏈路來幾乎成倍增加帶寬
此技術有很多名稱
乙太網通道、乙太網捆綁、乙太網匯聚、鏈路捆綁、鏈路匯聚、鏈路聚合
命令
int rang f0/12-13
sw mode trunk
channel-group 1 mode on
兩端交換機都要做 (組號"1"必須相同)
亦可指定協議(即兩端協議要一樣)
channel-p pagp (Cisco私有)
channel-p lacp (標准協議)
默認不配是pagp協議
4. 思科三層交換機之間的鏈路聚合怎樣配置
還是說一下你的需求吧。。先給你幾個基本的
上面說到的 我就不說了 既然是三層交換機 肯定埠可以2層3層轉化
轉換模式的時候 用到這個命令:在想要修改的埠下輸入 no switchport(開啟三層埠)要想恢復回來輸入:switchport 就可以了 默認三層交換機埠都為2層
一般用交換機要配置Vlan,比如說1~12埠都要畫在Vlan2里(Vlan1是默認的,所有埠都在Vlan1里)用命令:vlan 1 創建(根據IOS版本不同命令有所不同)然後用rang命令進入這12個埠 int f0/1 - 12 (根據交換機不同 埠字元可能不同)輸入 switchport mode access 然後回車 輸入 switchport access vlan2 就OK 了 如果還有級聯的話 比如說24口級聯交換機了 用命令:switchport trunk en dot1q 回車輸入 switchport mode trunk(根據交換機不同 有的不用設置 封裝.1q)
5. 思科三層交換機與二層交換機之間如何做鏈路聚合請賜教詳細配置方法。
還是說一下你的需求吧。。先給你幾個基本的 上面說到的 我就不說了 既然是三層交換機 肯定埠可以2層3層轉化 轉換模式的時候 用到這個命令:在想要修改的埠下輸入 no switchport(開啟三層埠)要想恢復回來輸入:switchport 就可以了 默認三層交換機埠都為2層 一般用交換機要配置Vlan,比如說1~12埠都要畫在Vlan2里(Vlan1是默認的,所有埠都在Vlan1里)用命令:vlan 1 創建(根據IOS版本不同命令有所不同)然後用rang命令進入這12個埠 int f0/1 - 12 (根據交換機不同 埠字元可能不同)輸入 switchport mode access 然後回車 輸入 switchport access vlan2 就OK 了 如果還有級聯的話 比如說24口級聯交換機了 用命令:switchport trunk en dot1q 回車輸入 switchport mode trunk(根據交換機不同 有的不用設置 封裝.1q)