Example: Base Configuration for N-PE Device in an E-Line (LDP) Service
An N-PE device to be used in an E-Line service must have the following entities configured before you assign the N-PE role to the device:
Gigabit Ethernet interfaces to the network core
Loopback interface
MPLS protocol
OSPF protocol
LDP protocol
The N-PE device in this configuration example has just one interface to the network core. In a more complex network in which the N-PE device connects to more than one P device, you need to configure multiple interfaces.
interfaces {
ge-0/0/0 {
unit 0 {
family inet {
address 10.1.18.2/30;
}
family mpls;
}
}
}
lo0 {
unit 0 {
family inet {
address 192.168.1.20/32;
}
}
}
}
protocols {
mpls {
interface ge-0/0/0.0;
interface lo0.0;
}
ospf {
traffic-engineering;
area 0.0.0.0 {
interface lo0.0 {
passive;
}
interface ge-0/0/0.0;
}
ldp {
interface ge-0/0/0.0;
interface lo0.0;
}Note:
If the N-PE router will also be used in multipoint services, do not use this base configuration. Instead, use the base configuration for multipoint services.