cisco交換機上的鏈路聚合

2021-06-10 07:33:28 字數 4932 閱讀 4022

一、2層 ethernet channel

(inte***ce)#channel-group number mode

on 使用ethernetchannel 但不傳送pagp分組

off 禁用ethernetchannel

desirable 交換機主動要求形成乙個ethernetchannel 傳送pagp分組

auto 交換機被動形成乙個ethernetchannel 不傳送pagp分組 預設取值

往往可能ethernetchannel的一端(一台伺服器或者是網路分析儀)#沒有產生pagp分組或者說是保持

「沉默",可以使用關鍵字silent在15秒的延遲之後,讓對端成為ethernetchannel.起對端為」沉默「

使用non-silent關鍵字則要求在啟用ethernetchannel之前現進行pagp協商、

catalyst 2900 3500xl 平台上沒有pagp 只有 on off不進行協商

ios (global)# port-channel load-balance method

——源位址 src-ip

——目的位址 dst-ip

——源和目的 src-dst-ip

——源mac位址 src-mac

——目的mac位址 dst-mac

——源和目的mac src-dst-mac

——源埠號 src-port

——目的埠號 dst-port

——源和目的埠號 src-dst-port

example

(global)# inte***ce fastethernet 4/1

(inte***ce)#channel-group 100 mode desirable non-silent

(global)# inte***ce fastethernet 4/2

(inte***ce)#channel-group 100 mode desirable non-silent

(global)# inte***ce fastethernet 5/1

(inte***ce)#channel-group 100 mode desirable non-silent

(global)# inte***ce fastethernet 5/2

(inte***ce)#channel-group 100 mode desirable non-silent

(global)#port-channel load-balance src-dst-ip

show etherchannel [channel-group] load-balance

繫結到一起的埠必須具有相同的屬性如:速度 雙工模式 vlan 幹路模式 允許的vlan範圍

3層 etherchannel

1建立邏輯埠通道

inte***ce port-channel number

2.配置埠通道上的協議資訊

ip address address netmask

3.把物理3層介面分配給通道

inte***ce type mod/port

選擇的埠必須是乙個3層介面 no switchport

4.刪除任何協議位址

no ip address

5.把介面分配給通道組

channel-group number mode

6.核實介面已經啟用

no shutdown

7核實通道

show ethernetchannel number port-channel

show inte***ce type number etherchannel

show ethernetchannel summary

example

分布層交換機上

(config)#inte***ce channel-group 1

(config-if)#ip address 192.168.1.1 255.255.255.0

(config-if)#inte***ce gigabitethernet 1/1

(config-if)#no switchport

(config-if)#no ip address

(config-if)#channel-group 1 mod on

(config-if)#no shutdown

(config-)#inte***ce gigabitethernet 1/2

(config-if)#no switchport

(config-if)#no ip address

(config-if)#channel-group 1 mode on

(config-if)#end

copy run start

接入層交換機(3500xl)#

(config)#inte***ce gigabitethernet 0/1

(config-if)#port group 1

(config)#inte***ce gigabitethernet 0/2

(config-if)#port group 1

(config)#end

#copy run start

我的試驗3750配置例項 castlyst 3750g

switch#config t

switch(config)#int gigabitethernet 1/0/23

switch(config-if)#channel-group 10 mode ?

active enable lacp unconditionally

auto enable pagp only if a pagp device is detected

desirable enable pagp unconditionally

on enable etherchannel only

passive enable lacp only if a lacp device is detected

switch(config-if)#channel-group 10 mode desirable non-silent

switch(config)#int gigabitethernet 1/0/24

switch(config-if)#channel-group 10 mode desirable non-silent

switch(config)#port-channel ?

load-balance load balancing method

switch(config)#port-channel load-balance ?

dst-ip dst ip addr

dst-mac dst mac addr

src-dst-ip src xor dst ip addr

src-dst-mac src xor dst mac addr

src-ip src ip addr

src-mac src mac addr

switch(config)#port-channel load-balance src-dst-ip

switch#write

switch#show inte***ces gigabitethernet 1/0/23 etherchannel

port state = up sngl-port-bndl mstr not-in-bndl

channel group = 10 mode = desirable-nonsl gcchange = 0

port-channel = null gc = 0x000a0001 pseudo port-channel = po10

port index = 0 load = 0x00 protocol = pagp

flags: s - device is sending slow hello. c - device is in consistent state.

a - device is in auto mode. p - device learns on physical port.

d - pagp is down.

timers: h - hello timer is running. q - quit timer is running.

s - switching timer is running. i - inte***ce timer is running.

local information:

hello partner pagp learning group

port flags state timers interval count priority method ifindex

gi1/0/23 u4/s4 h 30s 0 128 any 10123

age of the port in the current state: 00d:00h:03m:30s

switch#show etherchannel summary

flags: d - down p - 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

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

Cisco交換機 鏈路聚合

我們在交換機之間提供多條鏈路,這種設計具有冗餘性和彈性 如果兩台交換機之間有多條鏈路,那麼stp會阻斷其中一條鏈路 為了充分利用交換機之間的多條鏈路,可使用埠通道化技術,ether channel就是一種,cisco開發它的初衷是用於在交換機之間將多條快速乙太網或吉位元乙太網鏈路組合成一條邏輯通道 ...

華三交換機的鏈路聚合

int b25 port link type trunk undo port trunk permit vlan 1 port trunk permit vlan 354 398 undo stp enable quit int ran ten 1 0 25 ten 1 0 26 undo port...

華為交換機鏈路聚合配置命令

手工負載分擔模式鏈路聚合 介紹了手工負載分擔模式鏈路聚合配置場景 step及注意事項。1.1.1 建立配置任務 1.1.2 建立eth trunk 1.1.3 可選 配置eth trunk 工作模式為手工負載分擔模式 1.1.4 向eth trunk 中加入成員介面 1.1.5 可選 配置負載分擔方...