Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 9

Practical No: 8

Date:
Aim: VRF
Add following in MPLS topology :

Step 1: Configure IP Addresses

R4 :

int lo0
ip add 4.4.4.4 255.255.255.255
ip ospf 2 area 2
int f0/0
ip add 192.168.1.4 255.255.255.0
ip ospf 2 area 2
no shut
R1

int f0/1
no shut
ip add 192.168.1.1 255.255.255.0
Step 2: Create VRF on R1 :
R1 :
ip vrf RED 
rd 4:4
route-target both 4:4

Now if we push command do sh ip route , we will not see 192.168.1.0/24 : :


Now if put command do sh ip route vrf RED :

Step 3: Create OSPF on this interface :


R1
int f0/1
ip ospf 2 area 2

Now we should see 4.4.4.4 as well :


Repeat process for r3 and r5 :

R3 :

R5 :

Step 4: Now configure VRF on R3 :


R3
ip vrf RED
rd 4:4
route-target both 4:4
Step 5: Enable OSPF on R3 :
R3
int f0/1
ip ospf 2 area 2

Step 6: Now check route in VRF RED :


R3
R3#sh ip route vrf RED

Now some route verification :

R4 :
Now check routes in R1

We have vrf configured on this router so this command will show route in global routing table and will
not show 192.168.1.0/24 :

Here , we can see the routing table : RED is shown and routes to R4 are now visible with 4.4.4.4 beingin
opsf , so we need to do the following :

1. Redistribute OSPF into MP_BGP on R1


2. Redistribute MP-BGP into OSPF on R1
3. Redistribute OSPF into MP-BGP on R3
4. Redistribute MP-VGP into OSPF R3
Check route in r1 :

Same on r3 :

Step 7 : Redistribute OSPF


1) Redistribute OSPF into MP-BGP on R1

2) Redistribute OSPF into MP-BGP on R3 :


The final step is getting the route that have come across the MPLS back in OSPF

R1 :

R3 :

If everything worked we should be able to ping 5.5.5.5 from r4

R4 :

Here we have 5.5.5.5 , now check r5 :


Step 8: Ping & Test

We have 4.4.4.4 , so we should be able to ping :

To prove this is going over the MPLS and be label switched and routed , lets do trace :

You might also like