Example: Base Configuration for a P Router
P routers in your MPLS network must have the following entities configured before these devices are prestaged:
A Gigabit Ethernet interface to each router in the network
Loopback interface
MPLS protocol
OSPF protocol
LDP protocol
Figure 1 shows a simple network with one P router connecting five N-PE routers.
Figure 1: Connectivity in a Simple
Network

The following example shows a P router configuration for the simple network shown in Figure 1.
interfaces {
ge-0/0/2 {
unit 0 {
family inet {
address 10.1.14.1/30;
}
family mpls;
}
}
ge-0/0/3 {
unit 0 {
family inet {
address 10.1.15.2/30;
}
family mpls;
}
}
ge-5/0/0 {
unit 0 {
family inet {
address 10.1.17.1/30;
}
family mpls;
}
}
ge-5/0/1 {
unit 0 {
family inet {
address 10.1.18.1/30;
}
family mpls;
}
}
lo0 {
unit 0 {
family inet {
address 192.168.1.1/32;
}
}
}
}
}
protocols {
mpls {
interface ge-0/0/2.0;
interface ge-0/0/3.0;
interface ge-5/0/0.0;
interface ge-5/0/1.0;
interface lo0.0;
}
ospf {
traffic-engineering;
area 0.0.0.0 {
interface ge-0/0/2.0;
interface ge-0/0/3.0;
interface ge-5/0/0.0;
interface ge-5/0/1.0;
interface lo0.0 {
passive;
}
}
}
ldp {
interface ge-0/0/2.0;
interface ge-0/0/3.0;
interface ge-5/0/0.0;
interface ge-5/0/1.0;
}
}