इ ऱ से ट IRISET
नेटव कग य़ोगशाला Networking Laboratory
य़ोग सं य़ा. एमपीएलएस-05 Experiment No. MPLS- 05
नाम/Name ____________________________
अनु मांक/Roll No. _______
पा य़ म/Course __________________ ा तअंक/Marks Awarded
दनांक /Date ______________ अनुदेशककाअ य़ा र/Instructor Initial
Objective: To configure the MPLS-Traffic Engineering (TE) between two Cisco MPLS edge routers
LER PE1 and LER PE2 as per the topology given below.
Introduction:
TE is employed to steer some of the traffic destined to follow the optimal path to a
suboptimal path to enable better bandwidth management and utilization between a pair of routers.
TE maps flows between two routers appropriately to enable efficient use of already available
bandwidth in the core of the network.
The key to implementing a scalable and efficient TE methodology in the core of the network
is to gather information on the traffic patterns as they traverse the core of the network so that
bandwidth guarantees can be established.
TE tunnels, Tunnel1 and Tunnel2, can be configured on PE1-AS1 that can map to separate
paths (PATH1, PATH2), enabling efficient bandwidth utilization.
Typical MPLS Network:
TE tunnels configured on routers are unidirectional. Therefore, to implement bidirectional TE
deployment between routers PE1-AS1 and PE2-AS1 a pair of tunnels must also be configured on
PE2-AS1 in addition to Tunnel1 and Tunnel2 configured on PE1-AS1.
In an MPLS network, all pertinent tunnel configurations are always performed or provider
edge (PE) routers. The TE tunnels or LSPs will be used to link the edge routers across the core of
the service provider network.
The MPLS TE can be configured by two methods
1. Static –Explicit paths
IRISET/ NWL/MPLS-05
1
Networking Lab
--------------------------------------------------------------------------------------------------------------------------------------------------
2. Dynamic – Implicit paths
Prerequisites: The MPLS network should be configured with appropriate IP addresses on the
interfaces as well as OSPF Routing as Interior Gateway Protocol, and MPLS forwarding has to be
enabled on all interfaces.
Steps for Configuration of MPLS-TE:
1. Configure Loopback Interface for Tunnel Association: This IP address can be used as the
router ID for various process
2. Configure Router Globally and appropriate interface for TE support:
3. Configure RSVP bandwidth parameters per interface.
4. Configuring tunnel interface parameters on the head end router.
5. Configuring dynamic tunnel announcement into IGP/Explicit-path tunnel
6. Announcing tunnel interface into IGP
7. Enabling IGP for MPLS-TE
Deploying the MPLS-TE Configuration on the given Network Diagram.
P1 configuration P5 configuration
Enabling Router Id, RSVP and Traffic tunnels Enabling Router Id, RSVP and Traffic tunnels
1. Configure loop back (if already created not required) 1. Configure loop back (if already created not required).
P1(config)# interface loopback 0 P1(config)# interface loopback 0
P1(config-if)#ip address 1.1.1.1 255.255.255.255 P1(config-if)#ip address 5.5.5.5 255.255.255.255
2. Enable TE on the router and interfaces ports 2. Enable TE on the router and interfaces ports.
P1(config)# mpls traffic-eng tunnels P1(config)# mpls traffic-eng tunnels
P1(config)# interface serial 2/0 P1(config)# interface serial 2/0
P1(config-if)# mpls traffic-eng tunnels P1(config-if)# mpls traffic-eng tunnels
P1(config)# interface serial 3/0 P1(config)# interface serial 3/0
IRISET/ NWL/MPLS-05 2
Networking Lab
--------------------------------------------------------------------------------------------------------------------------------------------------
P1(config-if)# mpls traffic-eng tunnels P1(config-if)# mpls traffic-eng tunnels
P1(config)# interface serial 4/0 P1(config)# interface serial 4/0
P1(config-if)# mpls traffic-eng tunnels P1(config-if)# mpls traffic-eng tunnels
3. Configure RSVP parameters per interface 4. Configure RSVP parameters per interface
P1(config)# interface serial 2/0 P1(config)# interface serial 2/0
P1(config-if)#ip rsvp bandwidth 256 256 P1(config-if)#ip rsvp bandwidth 256 256
P1(config)# interface serial 3/0 P1(config)# interface serial 3/0
P1(config-if)#ip rsvp bandwidth 256 256 P1(config-if)#ip rsvp bandwidth 256 256
For Dynamic – Implicit paths MPLS TE For Dynamic – Implicit paths MPLS TE
1. Configure tunnel Interface Parameters on PE1 4. Configure tunnel Interface Parameters on PE1
P1(config)# interface Tunnel 0 P1(config)# interface Tunnel 0
P1(config-if)# ip unnumbered Loopback 0 P1(config-if)# ip unnumbered Loopback 0
P1(config-if)# tunnel destination 5.5.5.5 P1(config-if)# tunnel destination 1.1.1.1
P1(config-if)# tunnel mode mpls traffic-eng P1(config-if)# tunnel mode mpls traffic-eng
P1(config-if)# tunnel mpls traffic-eng priority 1 1 P1(config-if)# tunnel mpls traffic-eng priority 1 1
P1(config-if)#tunnel mpls traffic-eng bandwidth P1(config-if)#tunnel mpls traffic-eng bandwidth
100 (kbps) 100 (kbps)
P1(config-if)#tunnel mpls traffic-eng path-option 1 P1(config-if)#tunnel mpls traffic-eng path-option
dynamic 1 dynamic
2. Configuring dynamic tunnel announcement into IGP 5. Configuring dynamic tunnel announcement into IGP
P1(config)#interface Tunnel 0 P1(config)#interface Tunnel 0
P1(config-if)#tunnel mpls traffic-eng autoroute P1(config-if)#tunnel mpls traffic-eng autoroute
announce announce
For Static – Explicit paths MPLS TE For Static – Explicit paths MPLS TE
1. Configure tunnel Interface Parameters on PE1 3. Configure tunnel Interface Parameters on PE1
P1(config)# interface Tunnel 1 P1(config)# interface Tunnel 1
P1(config-if)# ip unnumbered Loopback 0 P1(config-if)# ip unnumbered Loopback 0
P1(config-if)# tunnel destination 5.5.5.5 P1(config-if)# tunnel destination 1.1.1
P1(config-if)# tunnel mode mpls traffic-eng P1(config-if)# tunnel mode mpls traffic-eng
P1(config-if)# tunnel mpls traffic-eng priority 2 2 P1(config-if)# tunnel mpls traffic-eng priority 2 2
P1(config-if)#tunnel mpls traffic-eng bandwidth P1(config-if)#tunnel mpls traffic-eng bandwidth
100 (kbps) 100 (kbps)
P1(config-if)#tunnel mpls traffic-eng path-option 1 P1(config-if)#tunnel mpls traffic-eng path-option
explicit name lsp1 1 explicit name lsp1
2. Configuration of Explicit LSP path 4. Configuration of Explicit LSP path
P1(config)#ip explicit-path name lsp1 P1(config)#ip explicit-path name lsp1
P1(cfg-ip-expl-path)# next-address P1(cfg-ip-expl-path)# next-address
10.10.10.10 ( via router2) 10.10.10.13( via router2)
P1(cfg-ip-expl-path)# next-address P1(cfg-ip-expl-path)# next-address
10.10.10.14 ( to router5) 10.10.10.9( to router1)
P1(cfg-ip-expl-path)# next-address 5.5.5.5 P1(cfg-ip-expl-path)# next-address 1.1.1.1(
( router5) router1)
3. Configuring dynamic tunnel announcement into 6. Configuring dynamic tunnel announcement into
IRISET/ NWL/MPLS-05
3
Networking Lab
--------------------------------------------------------------------------------------------------------------------------------------------------
IGP IGP
P1(config)#interface Tunnel 1 P1(config)#interface Tunnel 1
P1(config-if)#tunnel mpls traffic-eng P1(config-if)#tunnel mpls traffic-eng
autoroute announce autoroute announce
Enabling IGP for MPLS TE for (OSPF process Id 100, Enabling IGP for MPLS TE for (OSPF process Id 100,
area 200) area 200)
P1(config)# router ospf 100 P1(config)# router ospf 100
P1(config-router)# mpls traffic-eng area 200 P1(config-router)# mpls traffic-eng area 200
P1(config-router)# mpls traffic-eng router-Id P1(config-router)# mpls traffic-eng router-Id
loopback 0 loopback 0
Verification of
MPLS TE Tunnels Creation
1. P1# show mpls traffic-eng tunnels brief
MPLS Tunnel Parameters
2. P1# show mpls traffic-eng tunnels destination 5.5.5.5 (IP address of remote
router)
3. P1# show mpls traffic-eng tunnels tunnel 0 ( configured tunnel name)
Next-Hop Mapping to Tunnel interface
4. P1# show ip route 5.5.5.5 ( destination router Id)
5. P1# ping
Signature of the Trainee
IRISET/ NWL/MPLS-05 4