You are on page 1of 27

NOC(Network Operation Center): trung tm iu hnh mng

Bi tp 1.3.1.3
Bi tp thm: cu hnh nh tuyn trn SwitchL3

B1. Bt tnh nng nh tuyn trn Switch L3


SwichL3(config)#ip routing
B2. Cu hnh a ch IP trn cc cng ca switch
SwichL3(config)#int fa0/1
SwichL3(config-if)#no switchport
SwichL3(config-if)#ip address 192.168.1.1 255.255.255.0
SwichL3(config)#int fa0/2
SwichL3(config-if)#no switchport
SwichL3(config-if)#ip address 10.0.0.1 255.255.255.0
B3. Cu hnh IP trn my PC

Thut ton Spanning Tree (STP)


B1. Bu Root Bridge
- Mi switch u c mt gi tr gi l Bridge
ID. Sw no c Bridge ID nh nht th tr
thnh Root Bridge.
- Bridge ID: 8 byte. Trong 2 byte l
Priority (1-65534). Cn 6 byte l gi tr
MAC.
B2. Chn Root Port
- Cc cng u ni vi Root Bridge l Root
Port.
- Mi sw c 1 v ch 1 root port m thi
B3. Chn Designated Port
- Cng u ni vi Root Port l Designated
Port
- L port c tng cost i n RootBridge l
nh nht.
B4. Chn Blocking Port
Cu lnh xem Bridge ID ca switch l
Sw#Show spanning-tree

0002.1735.8C4B: sw1
0010.11D6.2284: sw2

0060.7030.0727: sw3

EtherChannel

Ni dung trnh by:


1. EtherChannel l g? C tc dng g? V d mt tnh
hung s dng EtherChannel trong thc t.
2. Nguyn l hot ng EtherChannel: 2 giao thc
PAgp, LACP.
3. Cc cu lnh cu hnh PagP, LACP
4. Cc cu lnh kim tra li cu hnh v gii thch
thng tin m thit b a ra.
5. Demo v hng dn lp lm trn Packet Tracer
(ly bi Activity)
6. Demo v hng dn lp lm trn RACK.
Sau khi trnh by
- Np li ti liu (01 bn powerpoint v 1 bn word)

Bi tp 3.2.1.3
1. Cu hnh EtherChannel s dng giao thc PAgp (Cisco)
B1. Gp nhm 2 cng Gi0/1 v Gi0/2 vo Channel group
Sw1(config)#int range g0/1 2
Sw1(config-if-range)#switch port mode trunk
Sw1(config-if-range)#channel-group 1 mode active
Sw1(config)#int port-channel 1
Sw1(config-if)#swichport mode trunk
B2. Lm tng t trn sw2
Sw2(config)#int range g0/1 2
Sw2(config-if-range)#switch port mode trunk
Sw2(config-if-range)#channel-group 1 mode passive
Sw2(config)#int port-channel 1
Sw2(config-if)#swichport mode trunk
B3. Kim tra thng tin v EtherChannel
Sw1#show etherchannel summary
3. Cu hnh EtherChannel s dng giao thc LACP (IEEE 802.3ad)
B1. Gp nhm 2 cng Gi0/1 v Gi0/2 vo Channel group
Sw1(config)#int range g0/1 2
Sw1(config-if-range)#switch port mode trunk
Sw1(config-if-range)#channel-group 1 mode active
Sw1(config)#int port-channel 1
Sw1(config-if)#swichport mode trunk
B2. Lm tng t trn sw2
Sw2(config)#int range g0/1 2
Sw2(config-if-range)#switch port mode trunk
Sw2(config-if-range)#channel-group 1 mode active
Sw2(config)#int port-channel 1
Sw2(config-if)#swichport mode trunk
B3. Kim tra thng tin v EtherChannel
Sw1#show etherchannel summary

Lu : cn shutdown cc cng thnh vin


ca EtherChannel trc khi nhm vo
Channel Group

SwL3(config)#spanning-tree vlan 1 root primary


Kim tra
SwL3(config)#do show spanning-tree

This bridge is the root


Bi tp 2.1.1.5
Khm ph cy STP trn h
thng mng switch c d
phng
SW0: 0006.2A44.D66C
SW1: 00D0.D374.9516
SW2: 0009.7C46.0E8C
Sw3: 0060.3E79.B21C

PVST+
(Per Vlan Spanning Tree)

PVST+: mi VLAN c 1 cy Spanning Tree,


S1 l root bridge i vi VLAN 10
S2 l root bridge i vi VLAN 20
S3 l root bridge i vi VLAN 30
Bc 1.
Cu hnh VLAN 10, VLAN 20, VLAN 30 trn
3 switch
S(config)#vlan 10
S(config)#vlan 20
S(config)#vlan 30
Bc 2
Cu hnh S1 l Root Bridge i vi VLAN 10

S1(config)#spanning-tree vlan 10 root


primary
S2(config)#spanning-tree vlan 20 root
primary
S3(config)#spanning-tree vlan 30 root
primary
Kim tra
Show vlan brief
Show spanning-tree
Bc 3.
Cu hnh S1 l root secondary vi VLAN 20
S1(config)#spanning-tree vlan 20 root secondary

Cu hnh S2 l root secondary vi VLAN 10


S2(config)#spanning-tree vlan 10 root secondary

- S2 l primary root-bridge i vi VLAN 10,


l secondary root-bridge vi VLAN 20.
S2(config)#spanning-tree vlan 10 root primary
S2(config)#spanning-tree vlan 20 root secondary

- S3 l primary root-bridge i vi VLAN 20,


l secondary root-bridge vi VLAN 10.
S3(config)#spanning-tree vlan 20 root primary
S3(config)#spanning-tree vlan 10 root secondary

- Kt qu: load balancing d liu ca VLAN


10 v VLAN 20 trn 2 ng trunk S1-S2, S1S3
PORTFAST
Cu hnh portfast nhm gim thi gian chuyn
gia cc trng thi ca cng. Cng s trng
thi forwarding.
Sw(config)#int fa0/10
Sw(config-if)#spanning-tree portfast
Khng c cu hnh tnh nng PortFast trn
cng trunk, ch cu hnh trn cng Access (ni
vi End Devices)
BPDU GUARD
L tnh nng Khng nhn BPDU trn cng
c cu hnh PortFast, bo v cy STP
ang hot ng.
Sw(config)#int fa0/10

Sw(config-if)#spanning-tree portfast
Sw(config-if)#spanning-tree bpduguard enable

Bi tp 2.3.1.5
Cu hnh PVST+
Sw(config)#spanning-tree mode pvst

Rapid PVST+
(Per Vlan Spanning Tree)
***
Sw(config)#spanning-tree mode rapid

HSRP (Cisco)

B1. Cu hnh R1 thnh Active, bu VR :10.0.0.254


R1(config)# interface Fa1/0
//To nhm HSRP s 1, c a ch IP ca Virtual
Router l 10.0.0.254
R1(config-if)# standby 1 ip 10.0.0.254
//t u tin cho 1 router thnh 150 (mc nh
l 100)
R1(config-if)# standby 1 priority 150
//Nu router Active gp s c th cho php Router
Standby chim quyn (Preempt)
R1(config-if)# standby 1 preempt
B2. Cu hnh Router Standby
R2(config)# interface Fa1/0
R2(config-if)# standby 1 ip 10.0.0.254
B3. Kim tra thng tin cu hnh
R#show standby

GLBP(Cisco)

B1. Sau khi truy cp WR, cn t tn cho


mng khng dy (SSID)
B2. t mt khu truy cp wifi
B3. Kt ni t Laptop n wifi
B4. i mt khu qun tr cho wifi
Tng cng bo mt mng khng dy

B5. Lc a ch MAC: ch cho nhng my


tnh c a ch MAC nm trong danh sch,
c truy cp wifi
Chn tnh nng Wireless MAC Filter

Bi tp tng hp: 4.5.1.2


VLANs
Inter-VLAN routing,
DHCP
Rapid PVST+ (spanning tree mode rapid pvst)
Wireless

Advanced OSPF
1. Vn bu chn DR v BDR
Bi tp 5.1.2.12

Mc tiu
- Xem xt vic bu chn DR v BDR
- Xem Router no l DR v BDR
RA#show ip ospf neighbor
RC l DR,
RB l BDR
RA l DROther
- Bt tnh nng debug gi tin ospf trn RA v RB
RA# debug ip ospf adj
RB# debug ip ospf adj
-

Xem Router ID
R#show ip protocol
Xem trng thi (DR/BDR/DROTHER) v
tham s Priority
R#show ip ospf neighbor
R#show ip ospf interface
Nguyn tc bu DR v BDR:
B1. Xt tham s Priority trn cng ang
tham gia OSPF (0-255): Router no c gi
tr tham s Priority ln hn s c u tin
hn.
RA(config-if)#ip ospf priority n
B2. Xt Router-ID.
- Admin t Router ID: ln hn s u tin
hn
- Xt a ch IP trn cc cng ca Router.
+u tin cng loopback;
+u tin cc interfac vt l ang up c
IP cao hn.
Bi tp 5.1.3.5

Cu hnh OSPFv2 v qung b default


route.

Bi tp 5.1.5.7
Cu hnh OSPFv2 nng cao vi
cc tham s Hello Timer/ Dead
Timer, Bandwidth v
Authentiation

B1. Kim tra kt ni mngok


B2. Thay i tham s Hello/Dead timer trn
R1(15/60s) R2 khng thit lp quan h
lng ging vi R1.
R1(config)# interface s0/0/0
R1(config-if)# ip ospf hello-interval 15
R1(config-if)# ip ospf dead-interval 60

R2 thit lp li quan h lng ging vi R1 cn t li tham s


Hello/Dead Timer trn R2.

R2(config)# interface s0/0/0


R2(config-if)# ip ospf hello-interval 15
R2(config-if)# ip ospf dead-interval 60

B3. Thay i tham s bng thng


trn cng s0/0/0 ca R1
R1(config-if)# bandwidth 64

B4. Thit lp ch xc thc OSPF


Message Disgest trn cc cng Serial
gia R1 v R2.
R1(config-router)# area 0 authentication message-digest
//Bt ch xc thc MD trn cc cng thuc Area 0
R1(config)# interface serial 0/0/0
R1(config-if)# ip ospf message-digest-key 1 md5 R1-R2

R2(config-router)# area 0 authentication message-digest


// Bt ch xc thc MD trn cc cng thuc Area 0
R2(config)# interface serial 0/0/0
R2(config-if)# ip ospf message-digest-key 1 md5 R1-R2

B4. Thit lp ch xc thc OSPF trn


cc cng Serial gia R1 v R3.
R1(config)# interface serial 0/0/1
R1(config-if)# ip ospf message-digest-key 1 md5 R1-R3

R3(config-router)# area 0 authentication message-digest


R3(config)# interface serial 0/0/0
R3(config-if)# ip ospf message-digest-key 1 md5 R1-R3

B5. Thit lp ch xc thc OSPF trn


cc cng Serial gia R2 v R3.
R2(config)# interface serial 0/0/1
R2(config-if)# ip ospf message-digest-key 1 md5 R2-R3

R3(config)# interface serial 0/0/1


R3(config-if)# ip ospf message-digest-key 1 md5 R2-R3

Test: ping thng gia cc my PC vi nhau v


ra Internet

Tracert IPch

Bi tp 5.3.1.2

OSPFv2 a vng
Bi tp 6.2.3.6

R1(config-router)# network 10.1.1.0 0.0.0.255 area 1


R1(config-router)# network 10.1.2.0 0.0.0.255 area 1
R1(config-router)# network 192.168.10.0 0.0.0.3 area 0

show ip protocols
show ip route
show ip ospf database
show ip ospf interface
show ip ospf neighbor

show ip ospf border-router


show ip ospf AS

1. Which router(s) are internal routers? show ip ospf interface


2. Which router(s) are backbone routers? show ip protocols
3. Which router(s) are area border routers? show ip ospf boder-router
4. Which router(s) are autonomous system routers? show ip ospf
5. Which routers are generating Type 1 LSAs? All
6. Which routers are generating Type 2 LSAs? show ip ospf neibor
7. Which routers are generating Type 3 LSAs? show ip ospf neighbor
8. Which routers are generating Type 4 and 5 LSAs? show ip ospf boder-router
9. How many inter area routes does each router have? show ip route
10. Why would there usually be an ASBR in this type of network? No

OSPFv3 a vng
Ti sao cn phn thnh nhiu vng cho cc
router chy OSPF?
- Cha nhiu thng tin nh tuyn
Bi tp 6.2.3.7

ng
1
2
3

FD
20.642.560

158.720
647.680

AD

156.160
156.160
386.560

T6: ngh
T2 tun sau: thi Final
T4 tun sau: thi Skill

S3: 0001.96EC.8DD0
S2: 000D.BD42.75B4
S2>S3
S5: 000D.BD03.B944
S4: 00D0.BA75.79CE

You might also like