Академический Документы
Профессиональный Документы
Культура Документы
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
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
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
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
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
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
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
Address Cost Port Hello Time Bridge ID Priority Address Hello Time Aging Time Role ---Desg Desg Root
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
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
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
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 0 00d:00h:00m:08s
Fa0/1
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
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
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
**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
a) Kt qu cu hnh ti Core
= = = = =
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
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
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
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
**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
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
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
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 Interface ---------------Po1 Po2 Role ---Desg Desg
2 sec 20
Cost --------4 8
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
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
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
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
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
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
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
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
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
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
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
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
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
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
**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.