0% found this document useful (0 votes)
102 views10 pages

MPLS Inter Area IGP

The document describes a lab exercise on configuring MPLS deployed on Inter Area IGP. The objective is to learn how to configure MPLS across multiple OSPF areas. There are 5 tasks: 1) Configure IP addresses and interfaces, 2) Configure OSPF with multiple processes and areas, 3) Redistribute loopbacks between OSPF processes, 4) Filter LSA advertisements between areas, 5) Configure MPLS on all routers and verify forwarding. Detailed configuration steps and verification commands are provided for each task.

Uploaded by

Alex Machado
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
102 views10 pages

MPLS Inter Area IGP

The document describes a lab exercise on configuring MPLS deployed on Inter Area IGP. The objective is to learn how to configure MPLS across multiple OSPF areas. There are 5 tasks: 1) Configure IP addresses and interfaces, 2) Configure OSPF with multiple processes and areas, 3) Redistribute loopbacks between OSPF processes, 4) Filter LSA advertisements between areas, 5) Configure MPLS on all routers and verify forwarding. Detailed configuration steps and verification commands are provided for each task.

Uploaded by

Alex Machado
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Download PNETLab Platform

PNETLAB Store
PNETLab.com

MPLS INTER AREA IGP

Lab Topology:
Please use the following topology to complete this lab exercise:

https://user.pnetlab.com/store/labs/detail?id=16038075714921

Lab Objective:
The objective of this lab exercise is for you to learn and understand how can you configure
MPLS deployed on Inter Area IGP.

Task list:
Task 1: Configure the hostname and IP address for the interface for Routers as topo.
Task 2: Configure OSPF IGP with process, area as topo. Please noted : R2 and R4 run 2 process
OSPF, others Routers run 1 process OSPF. Loopback of R2 and R4 belong to OSPF 1. Loopback of
R1 and R3 belong to OSPF 1 area 0.
Task 3: Redistribute interface Loopback of R1 to R4 to OSPF 2. Redistribute Loopback of R5
and R6 to OSPF 1.
Task 4: Configure filter LSA so that only Loopback of R1 and R3 could be advertised to OSPF 1
Area 1.
Task 5: Config MPLS for all Routers and check the MPLS forwarding table.

1
Download PNETLab Platform
PNETLAB Store
PNETLab.com

SOLUTION:
Task 1: Configure the hostname and IP address for the interface for Routers as topo.
On R1
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface Ethernet0/0
ip address 10.1.12.1 255.255.255.0
!
interface Ethernet0/1
ip address 10.1.13.1 255.255.255.0
!
interface Ethernet0/2
ip address 10.1.16.1 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 1
mpls ip
!
On R2
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface Ethernet0/0
ip address 10.1.12.2 255.255.255.0
!
interface Ethernet0/1
ip address 10.1.24.2 255.255.255.0
!
interface Ethernet0/2
ip address 10.1.25.2 255.255.255.0
!
On R3
!
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface Ethernet0/0
ip address 10.1.34.3 255.255.255.0
!
interface Ethernet0/1
ip address 10.1.13.3 255.255.255.0
!
interface Ethernet0/3
2
Download PNETLab Platform
PNETLAB Store
PNETLab.com

ip address 10.1.36.3 255.255.255.0


!
On R4
!
interface Loopback0
ip address 4.4.4.4 255.255.255.0
!
interface Ethernet0/0
ip address 10.1.34.4 255.255.255.0
!
interface Ethernet0/1
ip address 10.1.24.4 255.255.255.0
!
interface Ethernet0/3
ip address 10.1.45.4 255.255.255.0
!
On R5
!
interface Loopback0
ip address 5.5.5.5 255.255.255.255
!
interface Ethernet0/2
ip address 10.1.25.5 255.255.255.0
!
interface Ethernet0/3
ip address 10.1.45.5 255.255.255.0
!
On R6
!
interface Loopback0
ip address 6.6.6.6 255.255.255.255
!
interface Ethernet0/2
ip address 10.1.16.6 255.255.255.0
!
interface Ethernet0/3
ip address 10.1.36.6 255.255.255.0
!

Task 2: Configure OSPF IGP with process, area as topo. Please noted : R2 and R4 run 2 process
OSPF, others Routers run 1 process OSPF. Loopback of R2 and R4 belong to OSPF 1. Loopback of
R1 and R3 belong to OSPF 1 area 0.

On R1
!
3
Download PNETLab Platform
PNETLAB Store
PNETLab.com

interface Loopback0
ip ospf 1 area 0
!
interface Ethernet0/0
ip ospf network point-to-point
ip ospf 1 area 0
!
interface Ethernet0/1
ip ospf network point-to-point
ip ospf 1 area 0
!
interface Ethernet0/2
ip ospf network point-to-point
ip ospf 1 area 1
!
On R2
!
interface Loopback0
ip ospf 1 area 0
!
interface Ethernet0/0
ip ospf network point-to-point
ip ospf 1 area 0
!
interface Ethernet0/1
ip ospf network point-to-point
ip ospf 1 area 0
!
interface Ethernet0/2
ip ospf network point-to-point
ip ospf 2 area 0
!
On R3
!
interface Loopback0
ip ospf 1 area 0
!
interface Ethernet0/0
ip ospf network point-to-point
ip ospf 1 area 0
!
interface Ethernet0/1
ip ospf network point-to-point
ip ospf 1 area 0
!
interface Ethernet0/3
4
Download PNETLab Platform
PNETLAB Store
PNETLab.com

ip ospf network point-to-point


ip ospf 1 area 1
!
On R4
!
interface Loopback0
ip ospf 1 area 0
!
interface Ethernet0/0
ip ospf network point-to-point
ip ospf 1 area 0
!
interface Ethernet0/1
ip ospf network point-to-point
ip ospf 1 area 0
!
interface Ethernet0/3
ip ospf network point-to-point
ip ospf 2 area 0
!
On R5
!
interface Loopback0
ip ospf 2 area 0
!
interface Ethernet0/2
ip ospf network point-to-point
ip ospf 2 area 0
!
interface Ethernet0/3
ip ospf network point-to-point
ip ospf 2 area 0
!
On R6
!
interface Loopback0
ip ospf 1 area 1
!
interface Ethernet0/2
ip ospf network point-to-point
ip ospf 1 area 1
!
interface Ethernet0/3
ip ospf network point-to-point
ip ospf 1 area 1

5
Download PNETLab Platform
PNETLAB Store
PNETLab.com

!
Verification:
Let’s check OSPF neighbor of all Routers in topology. Need to make sure all Router need to
established OSPF neighbor with connected Router.

R2#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address


Interface
5.5.5.5 0 FULL/ - 00:00:37 10.1.25.5
Ethernet0/2
4.4.4.4 0 FULL/ - 00:00:38 10.1.24.4
Ethernet0/1
1.1.1.1 0 FULL/ - 00:00:37 10.1.12.1
Ethernet0/0

R4#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address


Interface
5.5.5.5 0 FULL/ - 00:00:34 10.1.45.5
Ethernet0/3
2.2.2.2 0 FULL/ - 00:00:33 10.1.24.2
Ethernet0/1
3.3.3.3 0 FULL/ - 00:00:32 10.1.34.3
Ethernet0/0

The same check command in other Routers.

Task 3: Redistribute interface Loopback of R1 to R4 to OSPF 2. Redistribute Loopback of R5


and R6 to OSPF 1.
On R2,R4
!
access-list 1 permit 2.2.2.2
access-list 1 permit 1.1.1.1
access-list 1 permit 3.3.3.3
access-list 1 permit 4.4.4.4
access-list 1 permit 6.6.6.6
access-list 2 permit 5.5.5.5
!
route-map R2_Loopback permit 10
match ip address 1
!
route-map OSPF2_Loopback permit 10
match ip address 2
6
Download PNETLab Platform
PNETLAB Store
PNETLab.com

!
router ospf 1
redistribute ospf 2 subnets route-map OSPF2_Loopback
!
router ospf 2
redistribute ospf 1 subnets route-map R2_Loopback
!

We use route-map to specify the IP address need to be redistribute to other Area. So that,
Loopback of R5 could reach to Loopback of R1-R4 and vice versa.

Verification:
R5#show ip route ospf

1.0.0.0/32 is subnetted, 1 subnets


O E2 1.1.1.1 [110/11] via 10.1.25.2, 00:37:17, Ethernet0/2
2.0.0.0/32 is subnetted, 1 subnets
O E2 2.2.2.2 [110/1] via 10.1.25.2, 00:37:27, Ethernet0/2
3.0.0.0/32 is subnetted, 1 subnets
O E2 3.3.3.3 [110/21] via 10.1.25.2, 00:37:17, Ethernet0/2
4.0.0.0/32 is subnetted, 1 subnets
O E2 4.4.4.4 [110/11] via 10.1.25.2, 00:37:17, Ethernet0/2
6.0.0.0/32 is subnetted, 1 subnets
O E2 6.6.6.6 [110/21] via 10.1.25.2, 00:03:10, Ethernet0/2

R3#show ip route ospf

1.0.0.0/32 is subnetted, 1 subnets


O 1.1.1.1 [110/11] via 10.1.13.1, 01:04:53, Ethernet0/1
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/21] via 10.1.34.4, 00:38:07, Ethernet0/0
[110/21] via 10.1.13.1, 00:38:17, Ethernet0/1
4.0.0.0/32 is subnetted, 1 subnets
O 4.4.4.4 [110/11] via 10.1.34.4, 00:38:07, Ethernet0/0
5.0.0.0/32 is subnetted, 1 subnets
O E2 5.5.5.5 [110/11] via 10.1.34.4, 00:37:57, Ethernet0/0
6.0.0.0/32 is subnetted, 1 subnets
O 6.6.6.6 [110/11] via 10.1.36.6, 01:05:03, Ethernet0/3
10.0.0.0/8 is variably subnetted, 9 subnets, 2 masks
O 10.1.12.0/24 [110/20] via 10.1.13.1, 01:04:53, Ethernet0/1
O 10.1.16.0/24 [110/20] via 10.1.36.6, 01:05:03, Ethernet0/3
O 10.1.24.0/24 [110/20] via 10.1.34.4, 00:38:07, Ethernet0/0

R5#ping 3.3.3.3 source l0


Type escape sequence to abort.

7
Download PNETLab Platform
PNETLAB Store
PNETLab.com

Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:


Packet sent with a source address of 5.5.5.5
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/2 ms

Task 4: Configure filter LSA so that only Loopback of R1 and R3 could be advertised to OSPF 1
Area 1.

Now just do a little trick, if you don’t do anything in this task, that’s OK. It will not affect to the
result of this LAB. But I want “short” routing-table in R6.
That’s easy, just filter LSA type 3 from Area 0 pass to Area 1. Like this :

On R1
!
ip prefix-list Loopback seq 5 permit 1.1.1.1/32
ip prefix-list Loopback seq 10 deny 0.0.0.0/0 le 32
!
router ospf 1
area 0 filter-list prefix Loopback out
!

On R3
!
ip prefix-list Loopback seq 5 permit 3.3.3.3/32
ip prefix-list Loopback seq 10 deny 0.0.0.0/0 le 32
!
router ospf 1
area 0 filter-list prefix Loopback out
!

We’ll use ip prefix-list to permit only Loopback’s IP of R1 and R3 to flood from area 0 to other
area.

Verification:
R6# show ip ospf database

OSPF Router with ID (6.6.6.6) (Process ID 1)

Router Link States (Area 1)

Link ID ADV Router Age Seq# Checksum Link


count
1.1.1.1 1.1.1.1 533 0x80000005 0x00159F 2
3.3.3.3 3.3.3.3 512 0x80000005 0x004337 2
6.6.6.6 6.6.6.6 535 0x80000007 0x007C52 5
8
Download PNETLab Platform
PNETLAB Store
PNETLab.com

Summary Net Link States (Area 1)

Link ID ADV Router Age Seq# Checksum


1.1.1.1 1.1.1.1 533 0x80000004 0x0041EF
3.3.3.3 3.3.3.3 512 0x80000004 0x00A878

Summary ASB Link States (Area 1)

Link ID ADV Router Age Seq# Checksum


2.2.2.2 1.1.1.1 1039 0x80000003 0x0061C2
2.2.2.2 3.3.3.3 1015 0x80000003 0x008988
4.4.4.4 1.1.1.1 1039 0x80000003 0x0069A8
4.4.4.4 3.3.3.3 1015 0x80000003 0x00C84B

Type-5 AS External Link States

Link ID ADV Router Age Seq# Checksum Tag


5.5.5.5 2.2.2.2 957 0x80000003 0x006625 0
5.5.5.5 4.4.4.4 929 0x80000003 0x002A59 0
You see! In summary LSA of R6 just have 2 Link ID. This thing will make R6 doesn’t need learn
unnecessary routes.

R6#show ip route ospf

1.0.0.0/32 is subnetted, 1 subnets


O IA 1.1.1.1 [110/11] via 10.1.16.1, 01:50:41, Ethernet0/2
3.0.0.0/32 is subnetted, 1 subnets
O IA 3.3.3.3 [110/11] via 10.1.36.3, 01:50:51, Ethernet0/3
5.0.0.0/32 is subnetted, 1 subnets
O E2 5.5.5.5 [110/11] via 10.1.36.3, 01:23:50, Ethernet0/3
[110/11] via 10.1.16.1, 01:23:56, Ethernet0/2

Task 5: Config MPLS for all Routers and check the MPLS forwarding table.

This task is very easy, just do config “mpls ip” in all interface physical of Router.
But you could do a test : Config MPLS Label Range of 4 Router R1-R4 as following table :

Router MPLS Label Range


R1 1000 – 2000
R2 2000 – 3000
R3 3000 – 4000
R4 4000 - 5000

9
Download PNETLab Platform
PNETLAB Store
PNETLab.com

Command example : “mpls label range 1000 2000”


R1#show mpls forwarding-table 6.6.6.6
Local Outgoing Prefix Bytes Label Outgoing Next
Hop
Label Label or Tunnel Id Switched interface
1000 Pop Label 6.6.6.6/32 0 Et0/2
10.1.16.6

R2#show mpls forwarding-table 6.6.6.6


Local Outgoing Prefix Bytes Label Outgoing Next
Hop
Label Label or Tunnel Id Switched interface
2005 1000 6.6.6.6/32 0 Et0/0
10.1.12.1

R5#show mpls forwarding-table 6.6.6.6


Local Outgoing Prefix Bytes Label Outgoing Next
Hop
Label Label or Tunnel Id Switched interface
20 2005 6.6.6.6/32 0 Et0/2
10.1.25.2

R5#show ip cef 6.6.6.6


6.6.6.6/32
nexthop 10.1.25.2 Ethernet0/2 label 2005

R5#ping 6.6.6.6 source l0


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 6.6.6.6, timeout is 2 seconds:
Packet sent with a source address of 5.5.5.5
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/3 ms

R5#traceroute 6.6.6.6 source l0


Type escape sequence to abort.
Tracing the route to 6.6.6.6
VRF info: (vrf in name/id, vrf out name/id)
1 10.1.25.2 [MPLS: Label 2005 Exp 0] 2 msec 1 msec 2 msec
2 10.1.12.1 [MPLS: Label 1000 Exp 0] 1 msec 2 msec 1 msec
3 10.1.16.6 1 msec 2 msec *

We could recognize the swapping label on Routers. That’s OK!

10

You might also like