Juniper® Lab Exercises Exam Notes : Configuring Mpls Using Ospf

9. Configuring MPLS Using OSPF

Description: In this example network is configured with OSPF as routing protocol. Then run MPLS over the IP network.

Network Diagram :

Configuring MPLS Using OSPF n/w diagram

Instructions:

1. Assign the IP addresses to all the devices

2. Enable MPLS family on the interfaces

3. Enable MPLS and LDP protocol on the interfaces

4. Enable OSPF (use area number as 100) on all the interfaces of all the devices

5. Issue ping and trace route command to check the connectivity

user@R1>configure
[edit]
user@R1#edit interfaces ge-0/0/0
[edit interfaces ge-0/0/0]
user@R1#set unit 0 family inet address 192.168.10.1/24
[edit interfaces ge-0/0/0]
user@R1#set unit 0 family mpls
[edit interfaces ge-0/0/0]
user@R1#exit
[edit]
user@R1#edit protocols mpls
[edit protocols mpls]
user@R1#set interface ge-0/0/0
[edit protocols mpls]
user@R1#exit
[edit]
user@R1#edit protocols ldp
[edit protocols ldp]
user@R1#set interface ge-0/0/0
[edit protocols ldp]
user@R1#exit
[edit]
user@R1#edit protocols ospf area 100 interface ge-0/0/0
[edit protocols ospf area 100 interface ge-0/0/0]
user@R1#exit
[edit]
user@R1#commit
commit complete
[edit]
user@R1#

On R2

user@R2>configure
[edit]
user@R2#edit interfaces ge-0/0/0
[edit interfaces ge-0/0/0]
user@R2#set unit 0 family inet address 192.168.10.2/24
[edit interfaces ge-0/0/0]
user@R2#set unit 0 family mpls
[edit interfaces ge-0/0/0]
user@R2#exit
[edit]
user@R2#edit protocols ldp
[edit protocols ldp]
user@R2#set interface ge-0/0/0
[edit protocols ldp]
user@R2#exit
[edit]
user@R2#edit protocols mpls
[edit protocols mpls]
user@R2#set interface ge-0/0/0
[edit protocols mpls]
user@R2#exit
[edit]
user@R2#edit interfaces ge-0/0/1
[edit interfaces ge-0/0/1]
user@R2#set unit 0 family inet address 192.168.20.1/24
[edit interfaces ge-0/0/1]
user@R2#exit
[edit]
user@R2#edit protocols mpls
[edit protocols mpls]
user@R2#set interface ge-0/0/1
[edit protocols mpls]
user@R2#exit
[edit]
user@R2#edit protocols ldp
[edit protocols ldp]
user@R2#set interface ge-0/0/1
[edit protocols ldp]
user@R2#exit
[edit]
user@R2#edit protocols ospf area 100 interface ge-0/0/0
[edit protocols ospf area 100 interface ge-0/0/0]
user@R2#exit
[edit]
user@R2#edit protocols ospf area 100 interface ge-0/0/1
[edit protocols ospf area 100 interface ge-0/0/1]
user@R2#exit
[edit]
user@R2#commit
commit complete
[edit]
user@R2#
edit interfaces ge-0/0/1
[edit interfaces ge-0/0/1]
user@R2#
set unit 0 family mpls
[edit interfaces ge-0/0/1]
user@R2#
exit
[edit]
user@R2#
commit
commit complete
[edit]

user@R2#

On R3

user@R3>configure
[edit]
user@R3#
edit interfaces ge-0/0/0
[edit interfaces ge-0/0/0]
user@R3#
set unit 0 family inet address 192.168.20.2/24
[edit interfaces ge-0/0/0]
user@R3#
set unit 0 family mpls
[edit interfaces ge-0/0/0]
user@R3#
exit
[edit]
user@R3#
edit protocols ldp
[edit protocols ldp]
user@R3#
set interface ge-0/0/0
[edit protocols ldp]
user@R3#
exit
[edit]
user@R3#
edit protocols mpls
[edit protocols mpls]
user@R3#
set interface ge-0/0/0
[edit protocols mpls]
user@R3#
exit
[edit]
user@R3#
edit interfaces ge-0/0/1
[edit interfaces ge-0/0/1]
user@R3#
set unit 0 family inet address 192.168.30.1/24
[edit interfaces ge-0/0/1]
user@R3#
exit
[edit]
user@R3#
edit protocols mpls
[edit protocols mpls]
user@R3#
set interface ge-0/0/1
[edit protocols mpls]
user@R3#
exit
[edit]
user@R3#
edit protocols ldp
[edit protocols ldp]
user@R3#
set interface ge-0/0/1
[edit protocols ldp]
user@R3#
exit
[edit]
user@R3#
edit protocols ospf area 100 interface ge-0/0/0
[edit protocols ospf area 100 interface ge-0/0/0]
user@R3#
exit
[edit]
user@R3#
edit protocols ospf area 100 interface ge-0/0/1
[edit protocols ospf area 100 interface ge-0/0/1]
user@R3#
exit
[edit]
user@R3#
commit
commit complete
[edit]
user@R3#
edit interfaces ge-0/0/1
[edit interfaces ge-0/0/1]
user@R3#
set unit 0 family mpls
[edit interfaces ge-0/0/1]
user@R3#
exit
[edit]
user@R3#commit
commit complete
[edit]
user@R3#

On R4

user@R4>configure
[edit]
user@R4#
edit interfaces ge-0/0/0
[edit interfaces ge-0/0/0]
user@R4#
set unit 0 family inet address 192.168.30.2/24
[edit interfaces ge-0/0/0]
user@R4#
set unit 0 family mpls
[edit interfaces ge-0/0/0]
user@R4#
exit
[edit]
user@R4#
edit protocols mpls
[edit protocols mpls]
user@R4#
set interface ge-0/0/0
[edit protocols mpls]
user@R4#
exit
[edit]
user@R4#
edit protocols ldp
[edit protocols ldp]
user@R4#
set interface ge-0/0/0
[edit protocols ldp]
user@R4#
exit
[edit]
user@R4#
edit protocols ospf area 100 interface ge-0/0/0
[edit protocols ospf area 100 interface ge-0/0/0]
user@R4#
exit
[edit]
user@R4#
commit
commit complete
[edit]
user@R4#

user@R1>ping 192.168.30.2

PING 192.168.30.2:  56 data byte
64 bytes from 192.168.30.2 :  icmp_seq=0 ttl=253 time=1.028 ms

user@R1>ping mpls ip 192.168.30.2

PING 192.168.30.2:  56 data byte
64 bytes from 192.168.30.2 :  icmp_seq=0 ttl=253 time=1.028 ms

Previous   Contents   Next