You are on page 1of 22

Generated by Foxit PDF Creator Foxit Software http://www.foxitsoftware.com For evaluation only.

Mc lc
A. Cc s u ni Switch L2 vo UPE: ............................................................... 2 1. Switch L2 u ni theo hnh sao vo UPE: ....................................................... 3 2. Switch L2 u ni chui vo UPE: ................................................................... 3 B. Cc phng php logging vo Switch L2: ........................................................... 4 1. Logging vo Switch thng qua Console:........................................................... 4 2. Logging vo Switch thng qua telnet: ............................................................... 7 C. Cu hnh thit b L2 Switch ................................................................................. 8 1. Dch v HSI :.................................................................................................... 8 2. Dch v VPN: ................................................................................................. 10 2.1. Dch v E-LINE:............................................................................................ 10 2.2. Dch v E-LAN:............................................................................................. 12 3. Dch v VOD/IPTV:....................................................................................... 14 4. Cu hnh QoS: ................................................................................................ 17 5. Cu hnh bo mt:........................................................................................... 18 6. NMS:.............................................................................................................. 19 7. Cu hnh dch v Triple play i vi L2 Switch u chui: ............................ 20

Generated by Foxit PDF Creator Foxit Software http://www.foxitsoftware.com For evaluation only.

A. S u ni Switch L2 vo UPE Mng MAN-E ca VNPT bao gm cc thit b: BRAS (kt cui dch v Internet), PE-AGG (thit b MAN Core), UPE (thit b MAN Access). Thit b mng truy nhp Switch lp 2 v DSLAM s u ni vo UPE ca mng MAN-E theo s sau.

Hnh 1 S u ni ca thit b truy nhp Switch lp 2 v DSLAM

Generated by Foxit PDF Creator Foxit Software http://www.foxitsoftware.com For evaluation only.

1. Switch L2 u ni theo hnh sao vo UPE

Hnh 2 S u ni ca Switch theo hnh sao 2. Switch L2 u ni chui vo UPE

L2 Switch

Hnh 3 S u ni chui ca Switch

Generated by Foxit PDF Creator Foxit Software http://www.foxitsoftware.com For evaluation only.

B. Cc phng php logging vo Switch L2 1. Logging vo Switch thng qua cng Console

Hnh 4 Logging vo Switch Bc 1: Chy phn mm Hyperterminal Chn Start > All Program > Accessories > Communications > HyperTerminal bt u Hyper Terminal trong Windows Bc 2: Thit lp kt ni nh tn vo mc Name v click OK

Hnh 5 Thit lp kt ni Bc 3: Cho nhn cng Com

Generated by Foxit PDF Creator Foxit Software http://www.foxitsoftware.com For evaluation only.

Hnh 6 Chn cng COM

Hnh 7 Thit lp cc tham s

Generated by Foxit PDF Creator Foxit Software http://www.foxitsoftware.com For evaluation only.

Bng tham s

Sau khi Hyper Terminal bt u, chn File Attributes hin th COMM1 Properties hin th nh hnh di. Trn tab Setting, chn VT100 trong phn Emulation. Click OK hon thnh

Hnh 8 La chn gi tr Emulation Sau khi hon thnh cc th tc khai bo trn. n Enter, s c dng lnh <Quidway> hin th trn mn hnh thng bo cho bn bit rng my tnh kt ni thnh cng vi Switch v bt u cu hnh thit b.

Generated by Foxit PDF Creator Foxit Software http://www.foxitsoftware.com For evaluation only.

2. Logging vo Switch thng qua telnet Bc 1: Bt u Command Prompt Chn Start > Program > Accessories > Command Prompt. Window Command Prompt s c hin th nh sau:

Bc 2: Hin th Telnet client Ti dng lnh C:\>, nh Telnet. Commnad Prompt window hin th nh sau:

n Enter hin th Telnet client. Trn mn hnh s hin th nh sau:

Bc 3: Kt ni Telnet server Ti dng lnh Microsoft Telnet>, nh cc lnh sau kt ni Telnet server open {ip-address} [port] ip-address: a ch IP ca Telnet server (tc l a ch IP ca cng Meth) port: y ly gi tr default l 23 V d: Kt ni Switch vi a ch IP ca cng Meth l 1.1.1.1. Port defaul l 23.

Generated by Foxit PDF Creator Foxit Software http://www.foxitsoftware.com For evaluation only.

C. Cu hnh thit b L2 Switch 1. Dch v HSI (High Speed Internet): i vi dch v High Speed Internet (HSI), cc thit b tham gia vo cung cp dch v HSI t pha nh cung cp dch v (VNPT) n thu bao bao gm: - BRAS - PE-AGG ( Router Core ca mng MAN-E) - UPE (Router Access ca mng MAN-E) - DSLAM/L2 Switch, (cc thit b thuc mng truy nhp) - Thit b truy nhp pha khch hng (modem xDSL, router,)

Hnh 9 C ch hot ng ca dch v HSI Cu hnh cho L2 Switch h tr QinQ:

Hnh 10 L2 Switch h tr QinQ

Generated by Foxit PDF Creator Foxit Software http://www.foxitsoftware.com For evaluation only.

S dng C-VLAN khc nhau phn bit khch hng truy nhp bng L2 Switch trn UPE. L2 Switch thc hin selective QinQ ng gi thm S-VLAN dch v HSI vo gi tin. Gi tin trao i gia L2 Switch v UPE l gi tin QinQ. Thc hin selective QinQ v port isolation trn switch. T pha khch hng, c th s dng chung 1 VLAN d qun l v trin khai dch v cho khch hng. Khi n L2 switch, khch hng tng port vt l s c nh x vo 1 VLAN khc. VLAN mi ny s ng vai tr l C-VLAN trong gi tin QinQ. Trn hnh v minh ha, switch 1 c cc C-VLAN t 21 n 50. Switch 2 c cc C-VLAN t 51 n 80. 2 switch trn kt ni n cng 1 UPE nn s dng chung 1 S-VLAN cho dch v HSI. Dng S-VLAN 100 minh ha. Cu lnh cu hnh L2 Switch 1 # vlan batch 1 to 100 # interface GigabitEthernet0/0/24 //Interface vt l kt ni ln UPE description connect to UPE-MANE port trunk allow-pass vlan 100 bpdu enable ntdp enable ndp enable # interface GigabitEthernet0/0/1 //Interface vt l kt ni xung CPE description connect to CPE1 port link-type hybrid port hybrid untagged vlan 100 // 100 l S-VLAN, 21 n 50 l C-VLAN qinq vlan-translation enable // Enable selective QinQ function port vlan-stacking vlan 21 push vlan 100 priority-inherit //QinQ for HSI, Cvlan21,
Svlan 100

port-isolate enable bpdu enable ntdp enable ndp enable Trn L2 Switch 2 cng cu hnh tng t vi C-Vlan t 51 n 80.

Generated by Foxit PDF Creator Foxit Software http://www.foxitsoftware.com For evaluation only.

2. Dch v VPN:
2.1. Dch v E-LINE: Dch v E-LINE ni tnh: Dch v E-LINE dnh cho khch hng doanh nghip c nhu cu kt ni imim lp 2.

Hnh 11 Dch v E-LINE ni tnh Trong v d minh ha, hai khch hng A, B dng dch v E-LINE ni tnh. Hai khch hng u ni chung vo 1 L2 Switch ca VNPT tnh/thnh ph (y l m hnh chung nht, nu 2 khch hng ni n cc Switch ring bit th cu hnh tng t). Theo quy hoch S-VLAN trn, hai khch hng ny s chung 1 S-VLAN. Do vy, h s c phn bit trn L2 Switch bi C-VLAN. Cu hnh S-Vlan ca khch hng A, B: 1300 C-Vlan ca khch hng A: 70 C-Vlan ca khch hng B: 80 L2 Switch 1: # vlan batch 1 to 1300

Generated by Foxit PDF Creator Foxit Software http://www.foxitsoftware.com For evaluation only.

# interface GigabitEthernet0/0/24 //Interface vt l kt ni vi UPE description connect to UPE-MANE port trunk allow-pass vlan 1300 bpdu enable ntdp enable ndp enable # interface GigabitEthernet0/0/1 //Interface vt l kt ni vi CPE khch hng A description connect to CPE port link-type hybrid port hybrid untagged vlan 1300 // SVlan VPN, qinq vlan-translation enable // Enable selective QinQ function port vlan-stacking vlan 70 push vlan 1300 priority-inherit //QinQ for VPN, Cvlan 70, svlan 1300 bpdu enable ntdp enable ndp enable L2 Switch 2: # vlan batch 1 to 1300 # interface GigabitEthernet0/0/24 //Interface vt l kt ni vi UPE description connect to UPE-MANE port trunk allow-pass vlan 1300 bpdu enable ntdp enable ndp enable # interface GigabitEthernet0/0/1 //Interface vt l kt ni vi CPE khch hng B description connect to CPE port link-type hybrid port hybrid untagged vlan 1300 // SVlan VPN, qinq vlan-translation enable // Enable selective QinQ function port vlan-stacking vlan 80 push vlan 1300 priority-inherit //QinQ for VPN, Cvlan 80, svlan 1300

Generated by Foxit PDF Creator Foxit Software http://www.foxitsoftware.com For evaluation only.

bpdu enable ntdp enable ndp enable Dch v E-LINE lin tnh:

Hnh 12 Dch v E-LINE lin tnh Hai khch hng A, B dng dch v E-LINE lin tnh. pha tnh, hai im truy nhp ca khch hng A, B ni chung n 1 L2 Switch. Mi VNPT tnh/thnh ph t cu hnh UPE v PE-AGG ca mng MAN-E tnh/thnh ph mnh. VTN s chu trch nhim kt ni E-LINE ca 2 tnh qua VN2. Cu hnh trn L2 Switch tng t nh phn trnh by ca E-LINE ni tnh

2.2 Dch v E-LAN: Dch v E-LAN dnh cho khch hng doanh nghip c nhu cu kt ni VPN lp 2 a im a im.

Generated by Foxit PDF Creator Foxit Software http://www.foxitsoftware.com For evaluation only.

Hnh 13 Dch v E-LAN ni tnh v lin tnh Dch v E-LAN ni tnh:

Hnh 14 Dch v E-LAN ni tnh

Generated by Foxit PDF Creator Foxit Software http://www.foxitsoftware.com For evaluation only.

Trn hnh minh ha, ta c 2 khch hng doanh nghip A v B ring bit s dng dch v E-LAN ni tnh. Mi khch hng u c nhu cu kt ni a im a im cho cc im truy nhp ca mnh. Vic cu hnh thit b L2 Switch cng ging vi dch v E-LINE ni tnh Dch v E-LAN lin tnh: Dch v E-LAN lin tnh v bn cht l nhiu E-LAN ni tnh cc tnh khc nhau c kt ni vi nhau qua mng IP Core (VN2). V vy, cu hnh L2 Switch cho dch v E-LAN lin tnh ging vi dch v E-LAN ni tnh. Sau khi VNPT tnh cu hnh xong E-LAN ni tnh ti pha tnh mnh, VTN s cu hnh cc PE trn VN2 cc E-LAN kt ni c vi nhau, to thnh E-LAN lin tnh.

3. Dch v VoD/IPTV:
Dch v VoD l dch v hot ng theo c ch unicast. Mi thu bao yu cu mt chng trnh thng qua dch v VoD s ly c mt bn copy ca chng trnh. C ch hot ng ca dch v VoD nh hnh minh ha di y:

Hnh 15 C ch hot ng ca dch v VoD - Gi tin yu cu dch v c gi t Set Top Box (STB) v c ng gi dot1Q ti L2 Switch. - S-VLAN c cp pht theo kiu per UPE per VLAN (ngha l tt c cc L2 Switch ni vo cng 1 UPE s dng chung S-VLAN cho dch v VoD). - Lung lu lng VoD c gi xung STB theo c ch unicast trn cng mt ng gi tin yu cu c gi ln.

Generated by Foxit PDF Creator Foxit Software http://www.foxitsoftware.com For evaluation only.

IPTV: h thng IPTV hnh nh video do cc phn cng thu thp theo thi gian thc (real time), thng qua phng thc m ha (nh MPEG 2/4...) to thnh cc lung tn hiu s. Sau , thng qua h thng phn mm, IPTV pht truyn vo mng cp. u cui ca cc user tip nhn, la chn, gii m v khuch i. Trong h thng IPTV c 2 phng thc truyn a tn hiu c d nh trc (scheduled programs). l:

Pht qung b (broadcasting), truyn pht ti mi ni Pht n a im theo yu cu (on demand, Multicast, IPTV n im):

H thng IPTV phc v theo yu cu (VOD) c gi l IPTV n im. Trong cc server ca b qun l ni dung c t chc thnh cm server (server cluster) tng hp kho d liu (database) ca cc chng trnh. Cch b tr cm server phc v c cc user c hiu qu s c ni r trn s tng th di y. Cc bc thc hin VOD nh sau: 1. Mt thu bao c chng nhn nhp mng v chu s qun l ca b qun l EPG 2. Thu bao mun yu cu mt ni dung no . Thu bao gi yu cu n EGP (unicast) 3. EGP cho bit a ch ca server cn tm 4. Thu bao gi yu cu ti server (multicast). 5. Server da theo yu cu ca thu bao m cung cp ni dung (multicast). Cu hnh cho L2 Switch
2400
PE-AGG-1

2400
UPE

For VOD 2400

Hnh 16 M hnh dch v VoD

Generated by Foxit PDF Creator Foxit Software http://www.foxitsoftware.com For evaluation only.

Hnh 17 M hnh dch v IPTV Cc tham s cu hnh : Vlan Dch v IPTV s dng S-VLAN 99. Dch v VOD s dng S-VLAN 2400. Security : Port Isolation Cu lnh cu hnh: # vlan batch 1 to 4094 # interface GigabitEthernet0/0/1 //Interface vt l kt ni vi UPE l cng uplink 1 description connect to UPE-MANE port trunk allow-pass vlan 99 2400 bpdu enable ntdp enable ndp enable # interface GigabitEthernet0/0/16

Generated by Foxit PDF Creator Foxit Software http://www.foxitsoftware.com For evaluation only.

description connect to CPE1 port link-type hybrid port trunk allow-pass vlan 2400 / Vlan for VoD port-isolate enable bpdu enable ntdp enable ndp enable # igmp-snooping enable /enable igmp-snooping # multicast-vlan enable /enable multicast-vlan # vlan 2400 igmp-snooping enable /enable igmp-snooping for vlan2400 vlan 99 igmp-snooping enable multicast-vlan enable multicast user-vlan 2400 /define users vlan 4. Cu hnh QoS c trng bi 2 tham s: cir v cbs - CIR (Committed Information Rate): Tc thng tin cam kt. CIR l mt tham s c tnh bng thng. Tham s ny a ra tc pht i trung bnh (bit/s) ca cc khung dch v v tc ny tho mn cc mc tiu v hiu nng c quy nh bi thuc tnh dch v - CBS (Committed Burst Size): Kch c burst cam kt,CBS l mt tham s c tnh bng thng. Tham s ny gii hn s byte ln nht kh dng i vi mt burst cc khung dch v c gi i ti tc UNI nhm duy tr CIR cam kt Cu lnh cu hnh # interface GigabitEthernet0/0/1 //Interface vt l kt ni vi CPE qos lr cir 10000 cbs 10000 /limit bandwidth 10M bpdu enable ntdp enable ndp enable

Generated by Foxit PDF Creator Foxit Software http://www.foxitsoftware.com For evaluation only.

5. Cu hnh bo mt: a. Cu hnh bo mt trn cng da trn a ch MAC:

Cu hnh: 1. Cu hnh gii hn a ch MAC c hc trn cng (ti a l 100 a ch MAC). <Quidway> system-view [Quidway] mac-address restrict [Quidway] interface GigabitEthernet 0/0/1 [Quidway-GigabitEthernet0/0/1] mac-table limit 100 2. Kch hot tnh nng bo mt trn cng. [Quidway-GigabitEthernet0/0/1] port-security enable 3. Thit lp thc hin shutdown trn cng. [Quidway-GigabitEthernet0/0/1] port-security protect-action shutdown b. C lp cng (Port Isolate)

M t: Host A, Host B, Host C c th truy cp Internet, nhng b c lp vi nhau

Generated by Foxit PDF Creator Foxit Software http://www.foxitsoftware.com For evaluation only.

Cu hnh: Gn cc cng Ethernet 1/0/1, Ethernet 1/0/2 v Ethernet 1/0/3 vo c lp cng <Device> system-view [Device] interface ethernet 1/0/1 [Device-Ethernet1/0/1] port-isolate enable [Device-Ethernet1/0/1] quit [Device] interface ethernet 1/0/2 [Device-Ethernet1/0/2] port-isolate enable [Device-Ethernet1/0/2] quit [Device] interface ethernet 1/0/3 [Device-Ethernet1/0/3] port-isolate enable 6. NMS

Generated by Foxit PDF Creator Foxit Software http://www.foxitsoftware.com For evaluation only.

Cu lnh cu hnh trn Switch # snmp-agent snmp-agent community read VNPTL2S2010READ snmp-agent community write VNPTL2S2010WRITE snmp-agent sys-info version all snmp-agent target-host trap address udp-domain 123.29.0.162 params securityname VNPTL2S2010WRITE snmp-agent trap enable (Vi a ch IP NMS la: 123.29.0.162)

7. Cu hnh dch v Triple play vi L2 Switch u chui

Trunk G0/0/24 G0/0/23 Trunk Trunk G0/0/24 G0/0/1

Sw1

Sw2
G0/0/1

CPE

CPE

Generated by Foxit PDF Creator Foxit Software http://www.foxitsoftware.com For evaluation only.

Trn hnh v minh ha, Switch 2 u ni vo Switch 1 - Dch v HIS: S-VLAN: 455, C-VLAN: 50-90 - VOD s dng VLAN 2400 - IPTV s dng VLAN 99 - VPN: S-VLAN: 701, C-VLAN: 101

Cu lnh cu hnh: Switch 1: # vlan batch 1 to 4094 # interface GigabitEthernet0/0/24 description connect to UPE port trunk allow-pass vlan 99 2400 455 701 bpdu enable ntdp enable ndp enable # interface GigabitEthernet0/0/1 description connect to CPE1 port link-type hybrid port trunk allow-pass vlan 2400 / Vlan for VoD port hybrid untagged vlan 455 701 / SVlan for HSI and VPN, qinq vlan-translation enable / Enable selective QinQ function port vlan-stacking vlan 50 to 90 push vlan 455 priority-inherit /QinQ for HSI, Cvlan90, Svlan 455

Generated by Foxit PDF Creator Foxit Software http://www.foxitsoftware.com For evaluation only.

port vlan-stacking vlan 101 push vlan 701 priority-inherit /QinQ for VPN, Cvlan 101, svlan 701 port-isolate enable / port isolate qos lr cir 10000 cbs 100000 /limit bandwidth 10M bpdu enable ntdp enable ndp enable # interface GigabitEthernet0/0/23 description connect to Switch2 port trunk allow-pass vlan all bpdu enable ntdp enable ndp enable # igmp-snooping enable /enable igmp-snooping # multicast-vlan enable /enable multicast-vlan # vlan 2400 igmp-snooping enable /enable igmp-snooping for vlan2400 vlan 99 igmp-snooping enable multicast-vlan enable multicast user-vlan 2400 /define users vlan

Cu hnh Switch 2 cung tng t nh Switch 1 vi 2 port 1 v 24

You might also like