Navigation
Configuring a Routing Instance for MPLS VPNs (CLI Procedure)
To configure a VPN routing instance on each PE router:
- Create the routing instance. [edit] user@host# edit routing-instances routing-instance-name
- Create a routing instance description. (This text appears
in the output of the show route instance detail command.) [edit routing-instances routing-instance-name]user@host# set description “text”
- Specify the instance type, either l2vpn for
Layer 2 VPNs or vrf for Layer 3 VPNs.[edit routing-instances routing-instance-name]user@host# set instance-type instance-type
- Specify the interface of the remote PE router.[edit routing-instances routing-instance-name]user@host# set interface interface-name
- Specify the route distinguisher using one of the following
commands: [edit routing-instances routing-instance-name]user@host# set route-distinguisheras-number:numberuser@host# set route-distinguisher ip-address:number
- Specify the policy for the Layer 2 VRF table.[edit routing-instances routing-instance-name]user@host# set vrf-import import-policy-name vrf-export export-policy-name
- Specify the policy for the Layer 3 VRF table.[edit routing-instances routing-instance-name]user@host# set vrf-target target:community-id
Where community-id is either as-number:number or ip-address:number.
- Commit the configuration if you are finished configuring
the device. [edit]user@host# commit