Created by: Dương Văn Toán CCNP, CCSP, MCSE, LPI level 1. http://www.vnexperts.net 34
Example:
Cex1B# ping 150.x.x2.50
Pex2# ping vrf Customer_B 150.x.x2.49
Cex2# ping 150.x.x1.50
Pex1# ping vrf Customer_A 150.x.x1.49
- Kim tra kết ni BGP vi câu lnh show ip bgp summary trên các router CE.
Example:
Cex2A# show ip bgp summary
Cex2A# show ip bgp
Pex1# show ip bgp vpn all
7. Task 3: Chn đường Primary và đường Backup vi BGP.
7a. c bước cn làm:
- Step 1: S dng BGP tham chiếu cc b trên router CE để chn đường đến router PE cc
b (thông qua MPLS core) như mt đường chính và đường đến router PE remote như mt
đường d phòng.
- Step 2: Cu hình MED trong thông tin cp nht định tuyến đến t router CE để chc chn
rng các router PE s s dng đường chính thông qua MPLS core trước khi có th s dng
đường d phòng.
7b. Kim tra.
Bn có th hoàn thành phn kim tra này khi bn thu được kết qu t nhng câu lnh dưới
đây:
- Bn phi s dng câu lnh: clear ip route hoc clear ip bgp * trên router CE để qung
các đường đi vi nhng tham s mi.
- Bn phi kim tra đường chính (đường kết ni đến router PE local ca bn) đang được s
dng. S dng câu lnh show ip bgp để kim tra vn đề này. Và chc chn rng các
đường được nhn t đường chính s luôn được chn là đường tt nht.
Example:
Cex1# show ip bgp
- Kim tra các tham s cài đặt ca MED bng cách s dng câu lnh show ip bgp vpnv4
vrf trên các router PE. Chc chn rng các router PE s chn các đường t đường chính như
mt đường tt nht.
Example:
Pex2# show ip bgp vpnv4 all
- Thc hin shut down đường t router PE local đến router CE.
Created by: Dương Văn Toán CCNP, CCSP, MCSE, LPI level 1. http://www.vnexperts.net 35
- Kim tra đường d phòng (đường đến router PE local ca bn) đang được s dng. S
dng câu lnh: show ip bgp để kim tra điu này.
Example:
Cex1B# show ip bgp
- Enable li các subinterface.
- Sau khi các phiên làm vic ca BGP đã được thiết lp vi router PE local, kim tra local
link đang được hin th như mt preferred link. S dng câu lnh: show ip bgp để kim
tra.
Example:
Cex1B# show ip bgp
XII Lab 5-4 Answer Key: Định tuyến BGP gia các router PE và CE
1. Task 1: Cu hình BGP như mt giao thc định tuyến PE-CE.
- Cu hình các bước sau trên router Cex1A:
Cex1A(config)# router bgp 650x1
Cex1A(config-router)# neighbor 150.x.x1.18 remote-as 65001
Cex1A(config-router)# no auto-summary
Cex1A(config-router)# redistribute ospf 1
Cex1A(config)# router ospf 1
Cex1A(config-router)# redistribute bgp 650x1 subnets
- Cu hình các bước sau trên router Cex1B:
Cex1B(config)# router bgp 650x2
Cex1B(config-router)# neighbor 150.x.x1.34 remote-as 65001
Cex1B(config-router)# no auto-summary
Cex1B(config-router)# redistribute ospf 2
Cex1B(config)# router ospf 2
Cex1B(config-router)# redistribute bgp 650x2 subnets
- Cu hình các bước sau trên router Cex2A:
Cex2A(config)# router bgp 650x1
Cex2A(config-router)# neighbor 150.x.x1.18 remote-as 65001
Cex2A(config-router)# no auto-summary
Cex2A(config-router)# redistribute ospf 1
Cex2A(config)# router ospf 1
Cex2A(config-router)# redistribute bgp 650x1 subnets
- Cu hình các bước sau trên router Cex2B:
Created by: Dương Văn Toán CCNP, CCSP, MCSE, LPI level 1. http://www.vnexperts.net 36
Cex2B(config)# router bgp 650x2
Cex2B(config-router)# neighbor 150.x.x1.34 remote-as 65001
Cex2B(config-router)# no auto-summary
Cex2B(config-router)# redistribute ospf 2
Cex2B(config)# router ospf 2
Cex2B(config-router)# redistribute bgp 650x2 subnets
- Cu hình các bước sau trên router Pex1:
************workgroup 1*****************
Pex1(config)# router bgp 65001
Pex1(config-router)# address-family ipv4 vrf Customer_A
Pex1(config-router-af)# no redistribute ospf 1
Pex1(config)# no router ospf 1 vrf Customer_A
Pex1(config)# router bgp 65001
Pex1(config-router)# address-family ipv4 vrf Customer_A
Pex1(config-router-af)# neighbor 150.x.x1.17 remote-as 650x1
Pex1(config-router-af)# neighbor 150.x.x1.17 active
Pex1(config-router-af)# neighbor 150.x.x1.17 as-override
*****************workgroup 2 *********************
Pex1(config)# router bgp 65001
Pex1(config-router)# address-family ipv4 vrf Customer_B
Pex1(config-router-af)# no redistribute ospf 2
Pex1(config)# no router ospf 2 vrf Customer_B
Pex1(config)# router bgp 65001
Pex1(config-router)# address-family ipv4 vrf Customer_B
Pex1(config-router-af)# neighbor 150.x.x1.33 remote-as 650x2
Pex1(config-router-af)# neighbor 150.x.x1.33 active
Pex1(config-router-af)# neighbor 150.x.x1.33 active
Pex1(config-router-af)# neighbor 150.x.x1.33 as-override
- Cu hình nhng bước sau trên router Pex2:
**************** workgroup 1 *****************
Pex2(config)# router bgp 65001
Pex2(config-router)# address-family ipv4 vrf Customer_A
Pex2(config-router-af)# no redistribute ospf 1
Pex2(config)# no router ospf 1 vrf Customer_A
Pex2(config)# router bgp 65001
Pex2(config-router)# address-family ipv4 vrf Customer_A
Pex2(config-router-af)# neighbor 150.x.x2.17 remote-as 650x1
Created by: Dương Văn Toán CCNP, CCSP, MCSE, LPI level 1. http://www.vnexperts.net 37
Pex2(config-router-af)# neighbor 150.x.x2.17 active
Pex2(config-router-af)# neighbor 150.x.x2.17 as-override
******************workgroup 2*********************
Pex2(config-router-af)# address-family ipv4 vrf Customer_B
Pex2(config-router-af)# no redistribute ospf 2
Pex2(config)# no router ospf 2 vrf Customer_B
Pex2(config)# router bgp 65001
Pex2(config-router-af)# address-family ipv4 vrf Customer_B
Pex2(config-router-af)# neighbor 150.x.x2.33 remote-as 650x2
Pex2(config-router-af)# neighbor 150.x.x2.33 active
Pex2(config-router-af)# neighbor 150.x.x2.33 as-override
2. Task 2: Cu hình đường d phòng PE-CE
- Cu hình nhng bước sau trên router Cex1B:
Cex1B(config)# interface serial0/0.113 point-to-point
Cex1B(config-subif)# ip address 150.x.x2.49 255.255.255.240
Cex1B(config-subif)# frame-relay interface-dlci 113
Cex1B(config-fr-dlci)# no shutdown
Cex1B(config)# router bgp 650x2
Cex1B(config-router)# neighbor 150.x.x2.50 remote-as 65001
- Cu hình nhng bước sau trên router Pex2:
Pex2(config)# interface serianl0/0.113 point-to-point
Pex2(config-subif)# ip vrf forwarding Customer_B
Pex2(config-subif)# ip address 150.x.x2.50 255.255.255.240
Pex2(config-subif)# frame-relay interface-dlci 113
Pex2(config-fr-dlci)# no shutdown
Pex2(config)# router bgp 65001
Pex2(config-router)# address-family ipv4 vrf Customer_B
Pex2(config-router-af)# neighbor 150.x.x2.49 remote-as 650x2
Pex2(config-rotuer-af)# neighbor 150.x.x2.49 active
Pex2(config-router-af)# neighbor 150.x.x2.49 as-override
- Cu hình nhng bước sau trên router Cex2A:
Cex2A(config)# interface serial 0/0.113 point-to-point
Cex2A(config-subif)# ip addrress 150.x.x1.49 255.255.255.240
Cex2A(config-subif)# frame-relay interface-dlci 113
Cex2A(config-fr-dlci)# no shutdown
Cex2A(config)# router bgp 650x1
Cex2A(config-router)# neighbor 150.x.x1.50 remote-as 65001
Created by: Dương Văn Toán CCNP, CCSP, MCSE, LPI level 1. http://www.vnexperts.net 38
- Cu hình nhng bước sau trên router Pex1:
Pex1(config)# interface serial0/0.113 point-to-point
Pex1(config-subif)# ip vrf forwarding Customer_A
Pex1(config-subif)# ip address 150.x.x1.50 255.255.255.240
Pex1(config-subif)# frame-relay interface-dlci 113
Pex1(config-fr-dlci)# no shutdown
Pex1(config)# router bgp 65001
Pex1(config-router)# address-family ipv4 Customer_A
Pex1(config-router-af)# neighbor 150.x.x1.49 remote-as 650x1
Pex1(config-router-af)# neighbor 150.x.x1.49 activate
Pex1(config-router-af)# neighbor 150.x.x1.49 as-override
3. Task 3: Chn đường chính và đường d phòng vi BGP.
- Cu hình nhng bước sau trên router Cex1B:
Cex1B(config)# router-map setLP permit 10
Cex1B(config-route-map)# set local-preference 50
Cex1B(config-route-map)# route-map setMED permit 10
Cex1B(config-route-map)# set metric 200
Cex1B(config-route-map)# router bgp 650x2
Cex1B(config-router)# neighbor 150.x.x2.50 route-map setLP in
Cex1B(config-router)# neighbor 150.x.x2.50 route-map setMED out
- Cu hình nhng bước sau trên router Cex2A:
Cex2A(config)# router-map setLP permit 10
Cex2A(config-route-map)# set local-preference 50
Cex2A(config-route-map)# route-map setMED permit 10
Cex2A(config-route-map)# set metric 200
Cex2A(config-route-map)# router bgp 650x1
Cex2A(config-router)# neighbor 150.x.x2.50 route-map setLP in
Cex2A(config-router)# neighbor 150.x.x2.50 route-map setMED out
XIII Lab 6-1: Overlapping VPNs.
1. Phm vi ca i lab:
- Khách hàng đang s dng mng VPN ca bn mun có th trao đổi d liu gia các
Central Site. Bn quyết định trin khai yêu cu này vi mô nh Overlapping VPN.
- Trong i lab này, bn s thiết lp overlapping VPN để h tr nhng yêu cu cn thiết ca
khách hàng. Sau khi hoàn thành bài lab này, bn có th thu được nhng kết qu sau:
+ Thiết kế mt gii pháp VPN.