Вы находитесь на странице: 1из 14

Cho mng sau:

YU CU: Thc hin trn 2 protocol: PAgP v LACP 1. Cu hnh Etherchanel. 2. V cu trc cy STP. 3. Ping 2 cp PC thuc VLAN 10 sang core switch v ct dy Group etherchanel, quan st v gii thch ping c b nh hng hay khng. (thay i load balancing) 4. Thm 1 port khng cng tc v xem ether chanel chp nhn port hay khng. THC HIN

I. GIAO THC LACP


1. Cu hnh cho cc switch: a) Core switch. - Cu hnh VTP, chn Core lm server:
Switch>en Switch#conf t Switch(config)#hostname C0 C0(config)#vtp mode server C0(config)#vtp domain ETHER C0(config)#vtp pass vp09 C0(config)#vlan 10 C0(config-vlan)#name FINANCE C0(config-vlan)#vlan 20 C0(config-vlan)#name TECHNIQUE C0(config-vlan)#exit

Cu hnh priority cho Core lm root bridge cho VLAN 10 v VLAN 20:
C0(config)#spanning-tree vlan 10 priority 4096 C0(config)#spanning-tree vlan 20 priority 4096

Cu hnh Etherchannel 1 vi 2 cng fastethernet 0/1 v 0/2:


C0(config)#port-channel load-balance dst-mac C0(config)#int range f0/1-2 C0(config-if-range)#channel-group 1 mode passive C0(config-if-range)#exit C0(config)#int port-channel 1 C0(config-if)#switchport mode trunk C0(config-if)#exit

Cu hnh Etherchannel 2 cho ba cng fastethernet 0/11, 0/12 v 0/13:


C0(config)#int range f0/11-13 C0(config-if-range)#channel-group 2 mode passive C0(config-if-range)#exit C0(config)#int port-channel 2 C0(config-if)#switchport mode trunk C0(config-if)#exit

b) Cu hnh Distributor 1: Cu hnh VTP:


Switch>en Switch#conf t Switch(config)#hostname D1 D1(config)#vtp mode client D1(config)#vtp domain ETHER D1(config)#vtp pass vp09

Cu hnh Etherchannel 1 cho 2 cng fastethernet 0/1 v 0/2.


D1(config)#port-channel load-balance dst-mac D1(config)#int range f0/1-2 D1(config-if-range)#channel-group 1 mode active D1(config-if-range)#exit D1(config)#int port-channel 1 D1(config-if)#switchport mode trunk D1(config-if)#exit

c) Cu hnh Distributor 2: Tng t nh distributor 1


Switch#conf t Switch(config)#hostname D2 D2(config)#vtp mode client D2(config)#vtp domain ETHER D2(config)#vtp pass vp09

D2(config)#port-channel load-balance dst-mac D2(config)#int range f0/1-3 D2(config-if-range)#channel-group 2 mode active D2(config-if-range)#exit D2(config)#int port-channel 2 D2(config-if)#switchport mode trunk D2(config-if)#exit

d) Cu hnh cc switch Access: ch cn cu hnh VTP v cc port access vlan.


Switch>en Switch#conf t Switch(config)#hostname A1 A1(config)#vtp mode client A1(config)#vtp domain ETHER A1(config)#vtp pass vp09 A1(config)#int f0/24 A1(config-if)#switchport mode trunk A1(config-if)#int range f0/1-2 A1(config-if-range)#switchport mode acc A1(config-if-range)#switchport access vlan 10

2. Spanning - tree ca mng. a) Core switch: Thng tin Spanning-tree:


C0#show spanning-tree VLAN0010 Spanning tree enabled protocol ieee Root ID Priority 4106 Address 00D0.FF67.9004 This bridge is the root Hello Time 2 sec Max Age 20 sec Bridge ID Priority Address Hello Time Aging Time Role ---Desg Desg

Forward Delay 15 sec

4106 (priority 4096 sys-id-ext 10) 00D0.FF67.9004 2 sec Max Age 20 sec Forward Delay 15 sec 20 Cost --------4 8 Prio.Nbr -------128.27 128.28 Type --------------------------Shr Shr

Interface ---------------Po1 Po2

Sts --FWD FWD

VLAN0020 Spanning tree enabled protocol ieee Root ID Priority 4116 Address 00D0.FF67.9004 This bridge is the root Hello Time 2 sec Max Age 20 sec Bridge ID Priority Address Hello Time Aging Time Role ---Desg Desg

Forward Delay 15 sec

4116 (priority 4096 sys-id-ext 20) 00D0.FF67.9004 2 sec Max Age 20 sec Forward Delay 15 sec 20 Cost --------4 8 Prio.Nbr -------128.27 128.28 Type ---------------------------Shr Shr

Interface ---------------Po1 Po2

Sts --FWD FWD

V cu hnh priority thp nht nn Core l root bridge cho vlan 10 v vlan 20. N xem nh mnh c designated port l Po1 v Po2, l hai knh Ethernet channel m ta cu hnh trn. Vy ta cu hnh etherchannel thnh cng cho mng.
C0#show etherchannel port-channel Channel-group listing: ---------------------Group: 1 ---------Port-channels in the group: --------------------------Port-channel: Po1 (Primary Aggregator) -----------Age of the Port-channel = 00d:00h:05m:00s Logical slot/port = 2/1 Number of ports = 2 GC = 0x00000000 HotStandBy port = null Port state = Port-channel Protocol = LACP Port Security = Disabled Ports in the Port-channel: Index Load Port EC state No of bits ------+------+------+------------------+----------0 00 Fa0/2 Passive 0 0 00 Fa0/1 Passive 0 Time since last port bundled: 00d:00h:00m:19s Fa0/1 Group: 2 ---------Port-channels in the group: --------------------------Port-channel: Po2 -----------(Primary Aggregator)

Age of the Port-channel = 00d:00h:05m:00s Logical slot/port = 2/2 Number of ports = 3 GC = 0x00000000 HotStandBy port = null Port state = Port-channel Protocol = LACP Port Security = Disabled Ports in the Port-channel: Index Load Port EC state No of bits ------+------+------+------------------+----------0 00 Fa0/13 Passive 0 0 00 Fa0/11 Passive 0 0 00 Fa0/12 Passive 0

b) Distributor 1: Thng tin STP:


D1#show spanning-tree VLAN0010 Spanning tree enabled protocol ieee Root ID Priority 4106

Address Cost Port Hello Time Bridge ID Priority Address Hello Time Aging Time Role ---Desg Desg Root

00D0.FF67.9004 4 27(Port-channel 1) 2 sec Max Age 20 sec

Forward Delay 15 sec

32778 (priority 32768 sys-id-ext 10) 0040.0B6C.73B9 2 sec Max Age 20 sec Forward Delay 15 sec 20 Cost --------19 19 4 Prio.Nbr -------128.4 128.3 128.27 Type ---------------------------P2p P2p Shr

Interface ---------------Fa0/4 Fa0/3 Po1

Sts --FWD FWD FWD

VLAN0020 Spanning tree enabled protocol ieee Root ID Priority 4116 Address 00D0.FF67.9004 Cost 4 Port 27(Port-channel 1) Hello Time 2 sec Max Age 20 sec Bridge ID Priority Address Hello Time Aging Time Role ---Desg Desg Root

Forward Delay 15 sec

32788 (priority 32768 sys-id-ext 20) 0040.0B6C.73B9 2 sec Max Age 20 sec Forward Delay 15 sec 20 Cost --------19 19 4 Prio.Nbr -------128.4 128.3 128.27 Type ---------------------------P2p P2p Shr

Interface ---------------Fa0/4 Fa0/3 Po1

Sts --FWD FWD FWD

Distributor xem mnh c mt knh etherchannel Po1 cu hnh etherchannel thnh cng:
D1#show etherchannel port-channel Channel-group listing: ---------------------Group: 1 ---------Port-channels in the group: --------------------------Port-channel: Po1 (Primary Aggregator) -----------Age of the Port-channel = 00d:00h:10m:35s Logical slot/port = 2/1 Number of ports = 2 GC = 0x00000000 HotStandBy port = null Port state = Port-channel Protocol = LACP Port Security = Disabled Ports in the Port-channel: Index Load Port EC state No of bits ------+------+------+------------------+-----------

0 00 Fa0/2 Active 0 00 Fa0/1 Active Time since last port bundled:

0 0 00d:00h:00m:08s

Fa0/1

Xem cu hnh switch Distributor 2, ta cng nhn c kt qu tng t:


D2#show etherchannel port-channel Channel-group listing: ---------------------Group: 2 ---------Port-channels in the group: --------------------------Port-channel: Po2 (Primary Aggregator) -----------Age of the Port-channel = 00d:00h:13m:04s Logical slot/port = 2/2 Number of ports = 3 GC = 0x00000000 HotStandBy port = null Port state = Port-channel Protocol = LACP Port Security = Disabled Ports in the Port-channel: Index Load Port EC state No of bits ------+------+------+------------------+----------0 00 Fa0/1 Active 0 0 00 Fa0/3 Active 0 0 00 Fa0/2 Active 0 Time since last port bundled: 00d:00h:13m:04s Fa0/2

c) Access switch 1: Kt qu STP:


A1#show spanning-tree VLAN0010 Spanning tree enabled protocol ieee Root ID Priority 4106 Address 00D0.FF67.9004 Cost 23 Port 24(FastEthernet0/24) Hello Time 2 sec Max Age 20 sec Bridge ID Priority Address Hello Time Aging Time Role ---Desg Desg Root

Forward Delay 15 sec

32778 (priority 32768 sys-id-ext 10) 0000.0C5D.08EC 2 sec Max Age 20 sec Forward Delay 15 sec 20 Cost --------19 19 19 Prio.Nbr -------128.1 128.2 128.24 Type ---------------------------P2p P2p P2p

Interface ---------------Fa0/1 Fa0/2 Fa0/24

Sts --FWD FWD FWD

VLAN0020 Spanning tree enabled protocol ieee Root ID Priority 4116 Address 00D0.FF67.9004

Cost Port Hello Time Bridge ID Priority Address Hello Time Aging Time

23 24(FastEthernet0/24) 2 sec Max Age 20 sec

Forward Delay 15 sec

32788 (priority 32768 sys-id-ext 20) 0000.0C5D.08EC 2 sec Max Age 20 sec Forward Delay 15 sec 20

Interface Role Sts Cost Prio.Nbr Type ---------------- ---- --- --------- -------- ---------------------------Fa0/24 Root FWD 19 128.24 P2p

Cc switch Access cng c cu hnh STP tng t.

**Kt lun: nh cu hnh etherchannel m khi cc switch chy STP bu chn root bridge, cc kt ni gia Distributor v Core khng b block m c xem l mt ng truyn duy nht. 3. Quan st s thay i load blancing khi ngt 1 kt ni trong b etherchannel.

4. Gn thm ng dy khc tc . Ta ni distributor1 v Core thm mt link Gigabit Ethernet v cu hnh cho n tham gia vo channel-group 1:
C0(config)#int g1/1 C0(config-if)#channel-protocol lacp C0(config-if)#channel-group 1 mode passive

D1(config)#int g1/1 D1(config-if)#channel-protocol lacp D1(config-if)#channel-group 1 mode active

a) Kt qu cu hnh ti Core

b) Kt qu cu hnh ti switch Distributor 1:


D1(config-if)#do show ether port Channel-group listing: ---------------------Group: 1 ---------Port-channels in the group: --------------------------Port-channel: Po1 (Primary Aggregator) -----------Age of the Port-channel = 00d:00h:03m:55s

Logical slot/port GC Port state Protocol Port Security

= = = = =

2/1 Number of ports = 3 0x00000000 HotStandBy port = null Port-channel LACP Disabled

Ports in the Port-channel: Index Load Port EC state No of bits ------+------+------+------------------+----------0 00 Fa0/2 Active 0 0 00 Fa0/1 Active 0 0 00 Gig1/1 Active 0 Time since last port bundled: 00d:00h:00m:43s Gig1/1

Thng tin STP:


C0#show spanning-tree VLAN0010 Spanning tree enabled protocol ieee Root ID Priority 4106 Address 00D0.FF67.9004 This bridge is the root Hello Time 2 sec Max Age 20 sec Bridge ID Priority Address Hello Time Aging Time Role ---Desg Desg

Forward Delay 15 sec

4106 (priority 4096 sys-id-ext 10) 00D0.FF67.9004 2 sec Max Age 20 sec Forward Delay 15 sec 20 Cost --------4 8 Prio.Nbr -------128.27 128.28 Type ---------------------------Shr Shr

Interface ---------------Po1 Po2

Sts --FWD FWD

VLAN0020 Spanning tree enabled protocol ieee Root ID Priority 4116 Address 00D0.FF67.9004 This bridge is the root Hello Time 2 sec Max Age 20 sec Bridge ID Priority Address Hello Time Aging Time Role ---Desg Desg

Forward Delay 15 sec

4116 (priority 4096 sys-id-ext 20) 00D0.FF67.9004 2 sec Max Age 20 sec Forward Delay 15 sec 20 Cost --------4 8 Prio.Nbr -------128.27 128.28 Type ---------------------------Shr Shr

Interface ---------------Po1 Po2

Sts --FWD FWD

**Kt lun: interface gi1/1 tham gia thnh cng vo etherchannel trc ch c cc fast ethernet m khng lm thay i cu trc cy STP

Ta c th cu hnh etherchannel cho cc port c tc truyn d liu khc nhau.

II. GIAO THC PAgP


1. Cu hnh cc switch. - Thc hin tng t nh giao thc LACP, vi cc mode tng ng: PAgP Desirable Auto On LACP Active Passive On

a) Switch Core Tng t nh cu hnh LACP, ta cng cu hnh vlan v etherchannel cho core vi protocol PagP.
Switch>en Switch#conf t Switch(config)#hostname C0 C0(config)#vtp mode server C0(config)#vtp domain ETHER C0(config)#vtp pass vp09 C0(config)#vlan 10 C0(config-vlan)#name FINANCE C0(config-vlan)#vlan 20 C0(config-vlan)#name TECHNIQUE C0(config-vlan)#exit C0(config)#spanning-tree vlan 10 priority 4096 C0(config)#spanning-tree vlan 20 priority 4096 C0(config)#int range f0/1-2 C0(config-if-range)#channel-protocol pagp C0(config-if-range)#channel-group 1 mode auto C0(config-if-range)#exit C0(config)#int port-channel 1 C0(config-if)#switchport mode trunk C0(config-if)#exit C0(config)#int range f0/11-13 C0(config-if-range)#channel-protocol pagp C0(config-if-range)#channel-group 2 mode auto C0(config-if-range)#exit C0(config)#int port-channel 2 C0(config-if)#switchport mode trunk C0(config-if)#exit

b) Switch Distributor
Switch#conf t Switch(config)#hostname D1 D1(config)#vtp mode client D1(config)#vtp domain ETHER D1(config)#vtp pass vp09 D1(config)#int range f0/1-2 D1(config-if-range)#channel-group 2 mode desirable D1(config-if-range)#channel-protocol pagp

D1(config-if-range)#exit D1(config)#int port-channel 2 D1(config-if)#switchport mode trunk D1(config-if)#int f0/3 D1(config-if)#switchport mode trunk D1(config-if)#int f0/4 D1(config-if)#switchport mode trunk D1(config-if)#exit

Cu hnh switch Distributor 2 tng t nh Distributor 1 c) Cu hnh switch Acess. Cu hnh ging nh LACP
Switch#conf t Switch(config)#hostname A1 A1(config)#vtp mode client A1(config)#vtp domain ETHER A1(config)#vtp pass vp09 A1(config)#int f0/24 A1(config-if)#switchport mode trunk A1(config-if)#int range f0/1-2 A1(config-if-range)#switchport mode acc A1(config-if-range)#switchport access vlan 10

2. Cu trc cy STP. a) Thng tin STP Core:


C0#show spanning-tree VLAN0010 Spanning tree enabled protocol ieee Root ID Priority 4106 Address 00D0.FF67.9004 This bridge is the root Hello Time 2 sec Max Age 20 sec Bridge ID Priority Address Hello Time Aging Time Role ---Desg Desg

Forward Delay 15 sec

4106 (priority 4096 sys-id-ext 10) 00D0.FF67.9004 2 sec Max Age 20 sec Forward Delay 15 sec 20 Cost --------4 8 Prio.Nbr -------128.27 128.28 Type --------------------------Shr Shr

Interface ---------------Po1 Po2

Sts --FWD FWD

VLAN0020 Spanning tree enabled protocol ieee Root ID Priority 4116 Address 00D0.FF67.9004 This bridge is the root Hello Time 2 sec Max Age 20 sec Bridge ID Priority Address

Forward Delay 15 sec

4116 (priority 4096 sys-id-ext 20) 00D0.FF67.9004

Hello Time Aging Time Interface ---------------Po1 Po2 Role ---Desg Desg

2 sec 20

Max Age 20 sec

Forward Delay 15 sec

Sts --FWD FWD

Cost --------4 8

Prio.Nbr -------128.27 128.28

Type ---------------------------Shr Shr

V c cu hnh priority thp nht trong cc switch nn Core l root bridge v xem nh mnh c 2 designated port l Po1 v Po2, l hai knh Ethernet channel m ta cu hnh trn. Vy ta cu hnh etherchannel thnh cng cho mng.
C0#show etherchannel port-channel Channel-group listing: ---------------------Group: 1 ---------Port-channels in the group: --------------------------Port-channel: Po1 -----------Age of the Port-channel = 00d:00h:03m:06s Logical slot/port = 2/1 Number of ports = 2 GC = 0x00000000 HotStandBy port = null Port state = Port-channel Protocol = PAGP Port Security = Disabled Ports in the Port-channel: Index Load Port EC state No of bits ------+------+------+------------------+----------0 00 Fa0/1 Automatic 0 0 00 Fa0/2 Automatic 0 Time since last port bundled: 00d:00h:03m:04s Fa0/2 Group: 2 ---------Port-channels in the group: --------------------------Port-channel: Po2 -----------Age of the Port-channel = 00d:00h:03m:06s Logical slot/port = 2/2 Number of ports = 3 GC = 0x00000000 HotStandBy port = null Port state = Port-channel Protocol = PAGP Port Security = Disabled Ports in the Port-channel: Index Load Port EC state No of bits ------+------+------+------------------+----------0 00 Fa0/13 Automatic 0 0 00 Fa0/12 Automatic 0 0 00 Fa0/11 Automatic 0 Time since last port bundled: 00d:00h:03m:05s Fa0/11

b) Thng tin STP Distributor 1:


D1#show spanning-tree VLAN0010 Spanning tree enabled protocol ieee Root ID Priority 4106 Address 00D0.FF67.9004 Cost 4 Port 27(Port-channel 1) Hello Time 2 sec Max Age 20 sec Bridge ID Priority Address Hello Time Aging Time Role ---Desg Desg Root

Forward Delay 15 sec

32778 (priority 32768 sys-id-ext 10) 0040.0B6C.73B9 2 sec Max Age 20 sec Forward Delay 15 sec 20 Cost --------19 19 4 Prio.Nbr -------128.4 128.3 128.27 Type ---------------------------P2p P2p Shr

Interface ---------------Fa0/4 Fa0/3 Po1

Sts --FWD FWD FWD

VLAN0020 Spanning tree enabled protocol ieee Root ID Priority 4116 Address 00D0.FF67.9004 Cost 4 Port 27(Port-channel 1) Hello Time 2 sec Max Age 20 sec Bridge ID Priority Address Hello Time Aging Time Role ---Desg Desg Root

Forward Delay 15 sec

32788 (priority 32768 sys-id-ext 20) 0040.0B6C.73B9 2 sec Max Age 20 sec Forward Delay 15 sec 20 Cost --------19 19 4 Prio.Nbr -------128.4 128.3 128.27 Type ---------------------------P2p P2p Shr

Interface ---------------Fa0/4 Fa0/3 Po1

Sts --FWD FWD FWD

Distributor xem mnh c mt knh etherchannel Po1 l root port cu hnh etherchannel thnh cng: c) Thng tin STP switch Access 1:
A1#show spanning-tree VLAN0010 Spanning tree enabled protocol ieee Root ID Priority 4106 Address 00D0.FF67.9004 Cost 23 Port 24(FastEthernet0/24) Hello Time 2 sec Max Age 20 sec Bridge ID Priority Address Hello Time Aging Time

Forward Delay 15 sec

32778 (priority 32768 sys-id-ext 10) 0000.0C5D.08EC 2 sec Max Age 20 sec Forward Delay 15 sec 20

Interface ---------------Fa0/1 Fa0/2 Fa0/24

Role ---Desg Desg Root

Sts --FWD FWD FWD

Cost --------19 19 19

Prio.Nbr -------128.1 128.2 128.24

Type ---------------------------P2p P2p P2p

VLAN0020 Spanning tree enabled protocol ieee Root ID Priority 4116 Address 00D0.FF67.9004 Cost 23 Port 24(FastEthernet0/24) Hello Time 2 sec Max Age 20 sec Bridge ID Priority Address Hello Time Aging Time

Forward Delay 15 sec

32788 (priority 32768 sys-id-ext 20) 0000.0C5D.08EC 2 sec Max Age 20 sec Forward Delay 15 sec 20

Interface Role Sts Cost Prio.Nbr Type ---------------- ---- --- --------- -------- ---------------------------Fa0/24 Root FWD 19 128.24 P2p

Cc switch Access cng c cu hnh STP tng t.

3. Quan st s thay i load blancing khi ngt 1 kt ni trong b etherchannel. 4. Thm link vo etherchannel khng cng tc . Ta ni distributor1 v Core thm mt link Gigabit Ethernet v cu hnh cho n tham gia vo channel-group 1:
C0(config)#int g1/1 C0(config-if)#channel-protocol pagp C0(config-if)#channel-group 1 mode auto

D1(config)#int g1/1 D1(config-if)#channel-protocol pagp D1(config-if)#channel-group 1 mode desirable

Kt qu cu hnh ti Distributor 1
D1#show etherchannel port-channel Channel-group listing: ---------------------Group: 1 ---------Port-channels in the group: --------------------------Port-channel: Po1 -----------Age of the Port-channel = 00d:00h:09m:39s Logical slot/port = 2/1 Number of ports = 3 GC = 0x00000000 HotStandBy port = null

Port state Protocol Port Security

= Port-channel = PAGP = Disabled

Ports in the Port-channel: Index Load Port EC state No of bits ------+------+------+------------------+----------0 00 Fa0/2 Desirable-Sl 0 0 00 Fa0/1 Desirable-Sl 0 0 00 Gig1/1 Desirable-Sl 0 Time since last port bundled: 00d:00h:00m:30s Gig1/1

Spanning tree:
D1#show spanning-tree VLAN0010 Spanning tree enabled protocol ieee Root ID Priority 4106 Address 00D0.FF67.9004 Cost 4 Port 27(Port-channel 1) Hello Time 2 sec Max Age 20 sec Bridge ID Priority Address Hello Time Aging Time Role ---Desg Desg Root

Forward Delay 15 sec

32778 (priority 32768 sys-id-ext 10) 0040.0B6C.73B9 2 sec Max Age 20 sec Forward Delay 15 sec 20 Cost --------19 19 4 Prio.Nbr -------128.4 128.3 128.27 Type ---------------------------P2p P2p Shr

Interface ---------------Fa0/4 Fa0/3 Po1

Sts --FWD FWD FWD

VLAN0020 Spanning tree enabled protocol ieee Root ID Priority 4116 Address 00D0.FF67.9004 Cost 4 Port 27(Port-channel 1) Hello Time 2 sec Max Age 20 sec Bridge ID Priority Address Hello Time Aging Time Role ---Desg Desg Root

Forward Delay 15 sec

32788 (priority 32768 sys-id-ext 20) 0040.0B6C.73B9 2 sec Max Age 20 sec Forward Delay 15 sec 20 Cost --------19 19 4 Prio.Nbr -------128.4 128.3 128.27 Type --------------------------P2p P2p Shr

Interface ---------------Fa0/4 Fa0/3 Po1

Sts --FWD FWD FWD

**Kt lun: cho interface gi1/1 tham gia vo etherchannel trc ch c cc fast ethernet ta c th cu hnh etherchannel cho cc port c tc truyn d liu khc nhau.

Вам также может понравиться