Created by: Dương Văn Toán CCNP, CCSP, MCSE, LPI level 1. http://www.vnexperts.net 45
5. Task 1: Enable kết ni vi Router P central.
- Trong phn này, bn s có nhim v enable Frame Relay liên kết gia các router P và
router P1, và sau đó enable Label Distribution Protocol (LDP) cho các kết ni gia các
router.
5a. c bước cn làm.
- Step 1: Cu nh địa ch IP và các giá tr DLCI tn các interface s dng các tham s
trong bng dưới đây. C ý các tham s này ch được cu hình trên các router P, không
được cu hình trên các router PE.
Router Subinterface DLCI IP address
P11 S0/0.211 211 192.168.100.10/29
P12 S0/0.212 212 192.168.100.18/29
P21 S0/0.221 221 192.168.100.26/29
P22 S0/0.222 222 192.168.100.34/29
5b. Kim tra.
- Tn router P, bn có th s dng câu lnh: show interface để kim tra xem các
interface mi đã hot động chưa.
6. Task 2: Chuyn Core sang s dng IS-IS.
- Bi vì các giao thc định tuyến thuc loi link-state có kh năng m rng hơn giao thc
định tuyến thuc loi distance vector, nên các Service Provider quyết định chuyn Core
sang s dng IS-IS. Router P1 đã thc s sn sàng để chuyn đổi. Workgroup ca bn s
chu trách nhim cho vic chuyn đổi tt các router đã được n cho bn. Workgroup 1 s
chuyn đổi hai router Pex1 và Px1. Workgroup 2 s chuyn đổi router Pex2 và Px2.
6a. c bước cn thc thi.
- Step 1: Disable EIGRP đã được cu hình trên các router nm trong Core IGP.
- Step 2: Enable IS-IS như mt giao thc định tuyến trong Core IGP s dng các tham s
chi tiết trong bng sau:
Router ID NET Remarks
Pex1 Net 49.0001.0000.0000.01x1.00 Trong đó x = ch s ca POD
Pex2 Net 49.0001.0000.0000.01x2.00
Px1 Net 49.0001.0000.0000.02x1.00
Px2 Net 49.0001.0000.0000.02x2.00
6b. Kim tra.
Created by: Dương Văn Toán CCNP, CCSP, MCSE, LPI level 1. http://www.vnexperts.net 46
- Bn có th s dng câu lnh: show ip protocol để kim tra IS-IS đã hot động chưa và
đã được enable đúng trên các interface chưa.
Example:
Pex1# show ip protocol
Px1# show ip protocol
- S dng câu lnh: show ip route và kim tra tt c các đường đi đang gi và nhn.
Example:
Pex1# show ip route
Px1# show ip route
7. Task 3: Enable MPLS LDP kết ni vi router P central
- Phn này bn s phi enable LDP kết ni gia các router ca bn và router P1.
7a. c bước cn thc thi:
- Step 1: Enable LDP trên các Subinterface mà bn đã to trên router.
7b. Kim tra.
- Trên router P, bn kim tra mi quan h LDP neighbor đã được thiết lp gia router P và
router P1 chưa.
Example:
Px1# show mpls ldp neighbor
- Trên router PE, kim tra các label đã được nhn t các workgroup khác.
Example:
Pex1# show mpls forwarding
8. Task 4: Enable IBGP kết ni cho tt c các router PE.
- Trong bài lab này, bn s phi thiết lp kết ni LDP cho tt c các router P trong môi
trường mng ca Service Provider mi, nhưng bn chưa cn thiết lp kết ni BGP vào thi
đim này. Bây gi, bn cn thiết lp kết ni Internal Border Gatewaly Protocol (IBGP) cho
các router PE.
- Có hai phương pháp bn có th trin khai. Đầu tiên là s dng câu lnh: bgp neighbor
để thêm mt mi quan h neighbor gia các router. Phương pháp th hai là trin khai các
route phn x. Để hoàn thành, thì router P1 s được cu hình như mt BGP route reflector.
Tuy nhiên, để thu được nhng ưu đim ca vic cu hình này, t bn s cn phi xóa b
mi quan h neighbor gia hai router PE và cu hình chúng như nhng client ca router P1.
- Workgroup 1 s cu hình Pex1, và workgroup 2 s cu hình Pex2.
Created by: Dương Văn Toán CCNP, CCSP, MCSE, LPI level 1. http://www.vnexperts.net 47
8a. c bước cn thc hin.
- Step 1: Xóa b mi quan h neighbor gia router PE và remote router PE trong
workgroup ca bn.
- Step 2: Cu nh router PE ca bn như mt client ca router P1.
8b. Kim tra.
- Trên các router PE, bn kim tra kết ni BGP đến tt c các workgroup khác vi câu lnh:
show ip bgp summary và câu lnh: show ip bgp neighbor
Example:
Pex1# show ip bgp summary
Pe11# show ip bgp neighbor
- Kim tra bng VRF BGP ca các khách hàng ca bn trên các router PE vi câu lnh:
show ip bgp vpnv4 vrf. Bn s nhìn thy các route BGP đến t các router CE s được
chn là nhng route tt nht các các đích.
Example:
Pex1# show ip bgp vpnv4 vrf Customer_A
- Kim tra bng VRF cho các khách hàng ca bn trên các router PE vi câu lnh: show ip
route vrf. Bn s nn thy các route đến t các router CE s được la chn.
Example:
Pex1# show ip route vrf Customer_A
Pex1# show ip route vrf Customer_B
XVI- Lab 6-2 Answer Key: Hp nht các Service Provider.
1. Task 1: Enable kết ni vi Router P central.
- Cu hình nhng bước sau trên router Px1:
Px1(config)# interface serial0/0.2x1 point-to-point
Px1(config-subif)# ip address 192.168.100.** 255.255.255.248
Px1(config-subif)# frame-relay interface-dlci 2x1
Px1(config-fr-dlci)# no shutdown
- Cu hình nhng bước sau trên router Px2:
Px2(config)# interface serial0/0.2x2 point-to-point
Px2(config-subif)# ip address 192.168.100.** 255.255.255.248
Px2(config-subif)# frame-relay interface-dlci 2x2
Px2(config-fr-dlci)# no shutdown
Created by: Dương Văn Toán CCNP, CCSP, MCSE, LPI level 1. http://www.vnexperts.net 48
2. Task 2: Chuyn Core sang s dng IS-IS.
- Cu hình nhng bước sau trên router Pex1:
Pex1(config)# no router eigrp 1
Pex1(config)# router isis
Pex1(config-router)# net 49.0001.0000.0000.01x1.00
Pex1(config-router)# is level-2-only
Pex1(config-router)# metric-style wide
Pex1(config-router)# interface serial 0/0.111
Pex1(config-subif)# ip router isis
Pex1(config)# interface loopback 0
Pex1(config-subif)# ip router isis
- Cu hình nhng bước sau trên router Pex2 :
Pex2(config)# no router eigrp 1
Pex2(config)# router isis
Pex2(config-router)# net 49.0001.0000.0000.01x1.00
Pex2(config-router)# is level-2-only
Pex2(config-router)# metric-style wide
Pex2(config-router)# interface serial 0/0.111
Pex2(config-subif)# ip router isis
Pex2(config)# interface loopback 0
Pex2(config-subif)# ip router isis
- Cu hình nhng bước sau trên router Px1:
Px1(config)# no router eigrp 1
Px1(config)# router isis
Px1(config-router)# net 49.0001.0000.0000.02x1.00
Px1(config-router)# is level-2-only
Px1(config-router)# metric-style wide
Px1(config-router)# interface serial0/0.111
Px1(config-subif)# ip router isis
Px1(config-subif)# interface serial 0/0.112
Px1(config-subif)# ip router isis
Px1(config-router)# interface serial 0/0.2x1
Px1(config-subif)# ip router isis
Px1(config)# interface loopback 0
Px1(config-subif)# ip router isis
- Cu hình nhng bước sau trên router Px2:
Px2(config)# no router eigrp 1
Created by: Dương Văn Toán CCNP, CCSP, MCSE, LPI level 1. http://www.vnexperts.net 49
Px2(config)# router isis
Px2(config-router)# net 49.0001.0000.0000.02x2.00
Px2(config-router)# is level-2-only
Px2(config-router)# metric-style wide
Px2(config-router)# interface serial0/0.111
Px2(config-subif)# ip router isis
Px2(config-subif)# interface serial 0/0.112
Px2(config-subif)# ip router isis
Px2(config-router)# interface serial 0/0.2x2
Px2(config-subif)# ip router isis
Px2(config)# interface loopback 0
Px2(config-subif)# ip router isis
3. Task 3. Enable MPLS LDP kết ni vi router P central
- Cu hình nhng bước sau trên router Px1:
Px1(config)# interface serial 0/0.2x1
Px1(config-subif)# mpls ip
Px1(config-subif)# mpls label protocol ldp
- Cu hình nhng bước sau trên router Px2 :
Px2(config)# interface serial 0/0.2x2
Px2(config-subif)# mpls ip
Px2(config-subif)# mpls label protocol ldp
4. Task 4 : Enable IBGP kết ni cho tt c các router PE.
- Cu hình nhng bước sau trên router Pex1:
Pex1(config)# router bgp 65001
Pex1(config-router)# no neighbor 192.168.x.33 remote-as 65001
Pex1(config-router)# neighbor 192.168.100.129 remote-as 65001
Pex1(config-router)# neighbor 192.168.100.129 update-source loopback 0
Pex1(config-router)# address-family vpnv4
Pex1(config-router-af)# neighbor 192.168.100.129 activate
Pex1(config-router-af)# neighbor 192.168.100.129 send-community both
Pex1(config-router-af)# neighbor 192.168.100.129 next-hop-self
- Cu hình nhng bước sau trên router Pex2:
Pex1(config)# router bgp 65001
Pex1(config-router)# no neighbor 192.168.x.17 remote-as 65001
Pex1(config-router)# neighbor 192.168.100.129 remote-as 65001
Pex1(config-router)# neighbor 192.168.100.129 update-source loopback 0