The following commands configure an HDLC layer 2 circuit over MPLS between an E-series router and a remote PE device.
To configure an HDLC layer 2 circuit over MPLS:
- host1(config)#interface serial 3/1:2/1
or
- host1(config)#interface pos 4/0
- host1(config-if)#mpls-relay 2.2.2.1 1
or
- host1(config-if)#route interface tunnel mpls:tunnel-to-pe2
1
- host1(config-if)#mpls-relay 2.2.2.1 1 relay-format
ppp
or
- host1(config-if)#route interface tunnel mpls:tunnel-to-pe2
1 relay-format ppp
- host1(config-if)#mpls policy input hdlc-policy
The interfaces at either end of the HDLC layer 2 circuit can be different types and have different speeds. For example, you can configure an HDLC layer 2 circuit between a serial interface on a T1 circuit and a POS interface on an OC3 circuit.
You can also configure an HDLC layer 2 circuit in a local cross-connect configuration between serial or POS interfaces within the same router.
The procedure is basically the same for configuring an HDLC layer 2 interface between two PE routers and for a local cross-connect, with the following differences for local cross-connects:
Creating or Modifying Classifier Control Lists for MPLS Policy Lists, and Creating Policy Lists for MPLS in the JUNOSe Policy Management Configuration Guide