MPLS Inter Area IGP
MPLS Inter Area IGP
PNETLAB Store
PNETLab.com
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
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
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.
!
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
7
Download PNETLab Platform
PNETLAB Store
PNETLab.com
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
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 :
9
Download PNETLab Platform
PNETLAB Store
PNETLab.com
10