Professional Documents
Culture Documents
p.HCM T: (08) 35124257 (7 lines) Fax: (08) 35124314 Website: http://vnpro.vn Support forum: http://vnpro.org Live Chat: http://www.vnpro.vn/support WifiPro : http://wimaxpro.org
Lab 1.9 Cu hnh MPLS VPN Layer 2 v nh tuyn EIGRP gia PE-CE
M hnh:
R1-CE
F0/0
.1 /24 68 . 15 192. 1
R5-CE
8.15 . 5/ 2 4
F0/0
VPN-A VPN-B
S1/ 2 .3 24 .0 / 23 .
R3-P
S1/0 .3 19 2
.16
R2-PE
F0/1
8 2 2.16 19
8. 34. 0
.4
/2 S1/3 4
R4-PE
F0/1
68 .67
. 6/24
F0/1
192 .1
R6-CE
6.6.6. 6/24
R7-CE
7.7.7.7/24
Hnh 1.9. M t
- Bi lab ny minh ha nh cung cp dch v cung cp cc kt ni cho cc khch hng qua mng trc MPLS. Bng cch s dng cng ngh MPLS VPN layer 2 m bo tnh ring t ca khch hng - Trong bi lab ny, ta s cu hnh cho ton m hnh bao gm pha khch hng v nh cung cp dch v. Trong :
Cu hnh Bc 1: Cu hnh c bn.
R1-CE v R5-CE l 2 router ca cng 1 khch hng A (Customer A). R6-CE v R7-CE l 2 router ca cng 1 khch hng B (Customer B).
19 2.1 6
VPN-A VPN-B
6 8.67 19 2. 1 .7/24
F0/1
CNG TY TNHH T V N & D CH V CHUYN VI T 149/1D Ung Vn Khim, phng 25, qun Bnh Thnh, Tp.HCM T: (08) 35124257 (7 lines) Fax: (08) 35124314 Website: http://vnpro.vn Support forum: http://vnpro.org Live Chat: http://www.vnpro.vn/support WifiPro : http://wimaxpro.org
Bc 2: nh tuyn IP trong mng li trong nh cung cp dch v bng cch dng giao thc nh tuyn OSPF. Trn R2-PE:
R2-PE(config)#router ospf 1 R2-PE(config-router)# network 2.2.2.2 0.0.0.0 area 0 R2-PE(config-router)# network 192.168.23.0 0.0.0.255 area 0
Trn R3-P:
R3-P(config)#router ospf 1 R3-P(config-router)# network 192.168.34.0 0.0.0.255 area 0 R3-P(config-router)# network 192.168.23.0 0.0.0.255 area 0
Trn R4-PE:
R3-P(config)#router ospf 1 R3-P(config-router)# network 4.4.4.4 0.0.0.0 area 0 R3-P(config-router)# network 192.168.34.0 0.0.0.255 area 0
2.0.0.0/32 is subnetted, 1 subnets C 2.2.2.2 is directly connected, Loopback0 4.0.0.0/32 is subnetted, 1 subnets O C O 4.4.4.4 [110/129] via 192.168.23.3, 00:00:04, Serial1/3 192.168.23.0/24 is directly connected, Serial1/3 192.168.34.0/24 [110/128] via 192.168.23.3, 00:00:04, Serial1/3
CNG TY TNHH T V N & D CH V CHUYN VI T 149/1D Ung Vn Khim, phng 25, qun Bnh Thnh, Tp.HCM T: (08) 35124257 (7 lines) Fax: (08) 35124314 Website: http://vnpro.vn Support forum: http://vnpro.org Live Chat: http://www.vnpro.vn/support WifiPro : http://wimaxpro.org
Kim tra vic MPLS c thit lp lng ging cha. Thc hin trn R3-P:
R3-P#show mpls ldp neighbor Peer LDP Ident: 2.2.2.2:0; Local LDP Ident 192.168.34.3:0 TCP connection: 2.2.2.2.646 - 192.168.34.3.20938 State: Oper; Msgs sent/rcvd: 10/10; Downstream Up time: 00:02:49 LDP discovery sources: Serial1/2, Src IP addr: 192.168.23.2 Addresses bound to peer LDP Ident: 192.168.23.2 2.2.2.2
Peer LDP Ident: 4.4.4.4:0; Local LDP Ident 192.168.34.3:0 TCP connection: 4.4.4.4.646 - 192.168.34.3.11532 State: Oper; Msgs sent/rcvd: 9/9; Downstream Up time: 00:02:13 LDP discovery sources: Serial1/0, Src IP addr: 192.168.34.4 Addresses bound to peer LDP Ident: 192.168.34.4 4.4.4.4
CNG TY TNHH T V N & D CH V CHUYN VI T 149/1D Ung Vn Khim, phng 25, qun Bnh Thnh, Tp.HCM T: (08) 35124257 (7 lines) Fax: (08) 35124314 Website: http://vnpro.vn Support forum: http://vnpro.org Live Chat: http://www.vnpro.vn/support WifiPro : http://wimaxpro.org
R3-P#
CNG TY TNHH T V N & D CH V CHUYN VI T 149/1D Ung Vn Khim, phng 25, qun Bnh Thnh, Tp.HCM T: (08) 35124257 (7 lines) Fax: (08) 35124314 Website: http://vnpro.vn Support forum: http://vnpro.org Live Chat: http://www.vnpro.vn/support WifiPro : http://wimaxpro.org
Bc 4: Cu hnh Port Transparent. Port transparent c cu hnh gia 2 router PE gm R2-PE v R4-PE to ra cc ng kt ni o ni gia cc khch hng. m bo rng 2 site cng 1 khch hng phi c cng s VC ID. Customer A:
R2-PE(config)#int f0/0 R2-PE(config-if)#no sh R2-PE(config-if)#xconnect 4.4.4.4 105 encapsulation mpls R2-PE(config-if-xconn)#end R4-PE(config)#int f0/0 R4-PE(config-if)#no sh R4-PE(config-if)#xconnect 2.2.2.2 105 encapsulation mpls R4-PE(config-if-xconn)#end
Customer B:
R2-PE(config)#int f0/1 R2-PE(config-if)#no sh R2-PE(config-if)#xconnect 4.4.4.4 607 encapsulation mpls R2-PE(config-if-xconn)#end R4-PE(config)#int f0/0 R4-PE(config-if)#no sh R4-PE(config-if)#xconnect 2.2.2.2 607 encapsulation mpls R4-PE(config-if-xconn)#end
Local circuit
Dest address
VC ID
Status
CNG TY TNHH T V N & D CH V CHUYN VI T 149/1D Ung Vn Khim, phng 25, qun Bnh Thnh, Tp.HCM T: (08) 35124257 (7 lines) Fax: (08) 35124314 Website: http://vnpro.vn Support forum: http://vnpro.org Live Chat: http://www.vnpro.vn/support WifiPro : http://wimaxpro.org R4-PE#show mpls l2transport vc
Local circuit
Dest address
VC ID
Status
Age(min) 4
Customer B:
R6-CE(config)# router eigrp 202 R6-CE(config-router)# network 192.168.67.0
CNG TY TNHH T V N & D CH V CHUYN VI T 149/1D Ung Vn Khim, phng 25, qun Bnh Thnh, Tp.HCM T: (08) 35124257 (7 lines) Fax: (08) 35124314 Website: http://vnpro.vn Support forum: http://vnpro.org Live Chat: http://www.vnpro.vn/support WifiPro : http://wimaxpro.org
R6-CE(config-router)# network 6.0.0.0 R6-CE(config-router)# no auto-summary R7-CE(config)# router eigrp 202 R7-CE(config-router)# network 192.168.67.0 R7-CE(config-router)# network 7.0.0.0 R7-CE(config-router)# no auto-summary
Cnt Num 0 9
R1-CE# R1-CE#show ip route Gateway of last resort is not set 1.0.0.0/24 is subnetted, 1 subnets C C 1.1.1.0 is directly connected, Loopback0 192.168.15.0/24 is directly connected, FastEthernet0/0 5.0.0.0/24 is subnetted, 1 subnets D R1-CE# R6-CE#show ip eigrp ne R6-CE#show ip eigrp neighbors IP-EIGRP neighbors for process 202 H Address Interface Hold Uptime (sec) 0 192.168.67.7 Fa0/1 13 00:06:27 SRTT (ms) 343 2058 RTO Q Seq 5.5.5.0 [90/409600] via 192.168.15.5, 00:11:09, FastEthernet0/0
Cnt Num 0 9
CNG TY TNHH T V N & D CH V CHUYN VI T 149/1D Ung Vn Khim, phng 25, qun Bnh Thnh, Tp.HCM T: (08) 35124257 (7 lines) Fax: (08) 35124314 Website: http://vnpro.vn Support forum: http://vnpro.org Live Chat: http://www.vnpro.vn/support WifiPro : http://wimaxpro.org 7.0.0.0/24 is subnetted, 1 subnets D C 7.7.7.0 [90/409600] via 192.168.67.7, 00:06:49, FastEthernet0/1 192.168.67.0/24 is directly connected, FastEthernet0/1
R6-CE# Ping kim tra kt ni R1-CE#ping 5.5.5.5 source 1.1.1.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds: Packet sent with a source address of 1.1.1.1 !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 84/164/236 ms R1-CE# R6-CE#ping 7.7.7.7 source 6.6.6.6 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 7.7.7.7, timeout is 2 seconds: Packet sent with a source address of 6.6.6.6 !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 112/178/240 ms R6-CE#
CNG TY TNHH T V N & D CH V CHUYN VI T 149/1D Ung Vn Khim, phng 25, qun Bnh Thnh, Tp.HCM T: (08) 35124257 (7 lines) Fax: (08) 35124314 Website: http://vnpro.vn Support forum: http://vnpro.org Live Chat: http://www.vnpro.vn/support WifiPro : http://wimaxpro.org
Cu hnh y R1-CE
R1-CE#show running-config Building configuration...
Current configuration : 1504 bytes ! version 12.4 ! hostname R1-CE ip cef ! interface Loopback0 ip address 1.1.1.1 255.255.255.0 ! interface FastEthernet0/0 ip address 192.168.15.1 255.255.255.0 duplex auto speed auto ! router eigrp 101 network 1.0.0.0 network 192.168.15.0 no auto-summary ! end
R2-PE
R2-PE#show running-config Building configuration...
CNG TY TNHH T V N & D CH V CHUYN VI T 149/1D Ung Vn Khim, phng 25, qun Bnh Thnh, Tp.HCM T: (08) 35124257 (7 lines) Fax: (08) 35124314 Website: http://vnpro.vn Support forum: http://vnpro.org Live Chat: http://www.vnpro.vn/support WifiPro : http://wimaxpro.org
version 12.4 ! hostname R2-PE ! ip cef ! interface Loopback0 ip address 2.2.2.2 255.255.255.255 ! interface FastEthernet0/0 no ip address duplex auto speed auto xconnect 4.4.4.4 105 encapsulation mpls ! interface FastEthernet0/1 no ip address duplex auto speed auto xconnect 4.4.4.4 607 encapsulation mpls ! interface Serial1/3 ip address 192.168.23.2 255.255.255.0 mpls label protocol ldp mpls ip serial restart-delay 0 ! router ospf 1 log-adjacency-changes network 2.2.2.2 0.0.0.0 area 0 network 192.168.23.0 0.0.0.255 area 0 !
10
CNG TY TNHH T V N & D CH V CHUYN VI T 149/1D Ung Vn Khim, phng 25, qun Bnh Thnh, Tp.HCM T: (08) 35124257 (7 lines) Fax: (08) 35124314 Website: http://vnpro.vn Support forum: http://vnpro.org Live Chat: http://www.vnpro.vn/support WifiPro : http://wimaxpro.org
end
R3-P
R3-P#show running-config Building configuration...
Current configuration : 1540 bytes ! version 12.4 ! hostname R3-P ! ip cef ! interface Serial1/0 ip address 192.168.34.3 255.255.255.0 mpls label protocol ldp mpls ip serial restart-delay 0 ! interface Serial1/2 ip address 192.168.23.3 255.255.255.0 mpls label protocol ldp mpls ip serial restart-delay 0 ! router ospf 1 log-adjacency-changes network 192.168.23.0 0.0.0.255 area 0 network 192.168.34.0 0.0.0.255 area 0 ! end
R4-PE
11
CNG TY TNHH T V N & D CH V CHUYN VI T 149/1D Ung Vn Khim, phng 25, qun Bnh Thnh, Tp.HCM T: (08) 35124257 (7 lines) Fax: (08) 35124314 Website: http://vnpro.vn Support forum: http://vnpro.org Live Chat: http://www.vnpro.vn/support WifiPro : http://wimaxpro.org
Current configuration : 2011 bytes ! version 12.4 ! hostname R4-PE ! ip cef ! interface Loopback0 ip address 4.4.4.4 255.255.255.255 ! interface FastEthernet0/0 no ip address duplex auto speed auto xconnect 2.2.2.2 105 encapsulation mpls ! interface FastEthernet0/1 no ip address duplex auto speed auto xconnect 2.2.2.2 607 encapsulation mpls ! interface Serial1/3 ip address 192.168.34.4 255.255.255.0 mpls label protocol ldp mpls ip serial restart-delay 0 !
12
CNG TY TNHH T V N & D CH V CHUYN VI T 149/1D Ung Vn Khim, phng 25, qun Bnh Thnh, Tp.HCM T: (08) 35124257 (7 lines) Fax: (08) 35124314 Website: http://vnpro.vn Support forum: http://vnpro.org Live Chat: http://www.vnpro.vn/support WifiPro : http://wimaxpro.org
router ospf 1 log-adjacency-changes network 4.4.4.4 0.0.0.0 area 0 network 192.168.34.0 0.0.0.255 area 0 ! end
R5-CE
R5-CE#show running-config Building configuration...
Current configuration : 1504 bytes ! version 12.4 ! hostname R5-CE ! ip cef ! interface Loopback0 ip address 5.5.5.5 255.255.255.0 ! interface FastEthernet0/0 ip address 192.168.15.5 255.255.255.0 duplex auto speed auto ! router eigrp 101 network 5.0.0.0 network 192.168.15.0 no auto-summary ! end
13
CNG TY TNHH T V N & D CH V CHUYN VI T 149/1D Ung Vn Khim, phng 25, qun Bnh Thnh, Tp.HCM T: (08) 35124257 (7 lines) Fax: (08) 35124314 Website: http://vnpro.vn Support forum: http://vnpro.org Live Chat: http://www.vnpro.vn/support WifiPro : http://wimaxpro.org
R6-CE
R6-CE#show running-config Building configuration...
Current configuration : 1473 bytes ! version 12.4 ! hostname R6-CE ! ip cef ! interface Loopback0 ip address 6.6.6.6 255.255.255.0 ! interface FastEthernet0/1 ip address 192.168.67.6 255.255.255.0 duplex auto speed auto ! router eigrp 202 network 6.0.0.0 network 192.168.67.0 no auto-summary ! end
R7-CE
R7-CE#show running-config Building configuration...
14
CNG TY TNHH T V N & D CH V CHUYN VI T 149/1D Ung Vn Khim, phng 25, qun Bnh Thnh, Tp.HCM T: (08) 35124257 (7 lines) Fax: (08) 35124314 Website: http://vnpro.vn Support forum: http://vnpro.org Live Chat: http://www.vnpro.vn/support WifiPro : http://wimaxpro.org
version 12.4 ! hostname R7-CE ! ip cef ! interface Loopback0 ip address 7.7.7.7 255.255.255.0 ! interface FastEthernet0/1 ip address 192.168.67.7 255.255.255.0 duplex auto speed auto ! router eigrp 202 network 7.0.0.0 network 192.168.67.0 no auto-summary ! End
15