EtherChannel

[i] Jelentése, felhasználása: azonos portokat képes egy csatornába rendelni. A csatornában lévő fizikai interfészek között így van lehetőségünk terheléselosztást beállítani. Egy port csatornába maximum 8 fizikai interfészt lehet bevonni. Két fő fajtája van, egyik a CISCO által fejlesztett PAgP(Port Aggregation Protocol), a másik az LACP(802.3ad, Link Aggregation Control Protocol)

LACP (2*1Gbit/s)

SW1

interface range gigabitEthernet 0/1-2
channel-group 1 mode active
channel-protocol lacp
interface port-channel 1
switchport mode trunk
end

SW2

interface range gigabitEthernet 0/1-2
channel-group 1 mode passive
channel-protocol lacp
interface port-channel 1
switchport mode trunk
end

Load balancing

port-channel load-balance [options]

PGaP (3*100Mbit/s)

SW3

interface range 0/22-24
channel-group 2 mode desirable
channel-protocol pagp
interface port-channel 2
switchport mode trunk
end

SW4

interface range 0/22-24
channel-group 2 mode auto
channel-protocol pagp
int port-channel 2
switchport mode trunk
end

Interfész eltávolítása a portcsatornából

SW3

interface fa0/24
no channel-group 2

SW4

interface fa0/24
no channel-group 2

3. lehetőség

Ha az interfészek költsége ugyanaz, akkor a portszám alapján dönt, a magasabb portszámú lesz letiltva.

4. lehetőség, komplex EtherChannel feladat

VLAN10 Server

IP: 10.1.1.3, M: 255.255.255.240, G: 10.1.1.24

VLAN10 Laptop

IP: 10.1.1.4, M: 255.255.255.240, G: 10.1.1.24

VLAN20 Server

IP: 10.1.1.19, M: 255.255.255.240, G: 10.1.1.30

VLAN20 PC

IP: 10.1.1.20, M: 255.255.255.240, G: 10.1.1.30

VLAN30 Laptop

IP: 10.1.1.35, M: 255.255.255.240, G: 10.1.1.46

VLAN30 Server

IP: 10.1.1.36, M: 255.255.255.240, G: 10.1.1.46

ROUTER

int g0/0/0
no sh
int g0/0/0.1
encapsulation dot1Q 1
ip add
ip add 10.1.1.60 255.255.255.240
ex
int g0/0/0.10
encapsulation dot1Q 10
ip add 10.1.1.14 255.255.255.240
ex
int g0/0/0.20
encapsulation dot1Q 20
ip add 10.1.1.30 255.255.255.240
ex
int g0/0/0.30
encapsulation dot1Q 30
ip add 10.1.1.46 255.255.255.240
ex

Felső Switch

int vlan 1
ip add 10.1.1.59 255.255.255.240
no sh
ex
ip default-gateway 10.1.1.60

Alsó Switch

int vlan 1
ip add 10.1.1.58 255.255.255.240
no sh
ex
ip default-gateway 10.1.1.60

Felső Switch

vlan 10
ex
vlan 20
ex
vlan 30
ex

int fa0/1
switchport mode access
spanning-tree portfast
switchport access vlan 10
int fa0/2
switchport mode access
spanning-tree portfast
switchport access vlan 20
int fa0/3
switchport mode access
spanning-tree portfast
switchport access vlan 30

Alsó Switch

vlan 10
ex
vlan 20
ex
vlan 30
ex

int fa0/2
switchport mode access
spanning-tree portfast
switchport access vlan 10
int fa0/1
switchport mode access
spanning-tree portfast
switchport access vlan 20
int fa0/3
switchport mode access
spanning-tree portfast
switchport access vlan 30
int g0/1
switchport mode trunk

EtherChannel konfigurálása

Felső sw

int range fa0/20-21
channel-group 3 mode active
ex
in port-channel 3
switchport mode trunk

Alsó sw

int range fa0/20-21
channel-group 3 mode passive
ex
in port-channel 3
switchport mode trunk