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-nameCreate 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-typeSpecify the interface of the remote PE router.
[edit routing-instances routing-instance-name]user@host# set interface interface-nameSpecify 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:numberSpecify 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- Where community-id is either as-number:number or ip-address:number.
Specify the policy for the Layer 3 VRF table.
[edit routing-instances routing-instance-name]user@host# set vrf-target target:community-id Commit the configuration if you are finished configuring the device.
[edit]user@host# commit
Related Topics
- Junos OS Feature Support Reference for SRX Series and J Series Devices
- MPLS Layer 2 VPN Configuration Overview
- MPLS Layer 3 VPN Configuration Overview
Hide Navigation Pane
Show Navigation Pane
Download
SHA1