You can configure eight routing instance types at the [edit routing-instances routing-instance-name instance-type] and [edit logical-systems logical-system-name routing-instances routing-instance-name instance-type] hierarchy levels:
To configure a routing instance type, include the instance-type statement:
- routing-instances {
-
- routing-instance-name {
- interface interface-name;
- instance-type (forwarding
| l2vpn | layer2-control | no-forwarding | virtual-router | virtual-switch
| vpls | vrf);
- }
- }
You can include the statement at the following hierarchy levels:
For more information about configuring Layer 2 VPNs, Layer 3 VPNs, and VPLS, see the JUNOS VPNs Configuration Guide.
For more information about configuring the types of routing instances, see the following sections:
To configure a VPN VRF routing instance, include the following statements:
- interface interface-name;
- instance-type vrf;
- no-vrf-advertise;
- route-distinguisher (as-number:number | ip-address:number);
- vrf-import [ policy-names ];
- vrf-export [ policy-names ];
- vrf-table-label;
- protocols {
-
- bgp {
- ... bgp-configuration ...
- }
-
- isis {
- ... isis-configuration ...
- }
-
- l2vpn {
- ... l2vpn-configuration ...
- }
-
- ldp {
- ... ldp-configuration ...
- }
-
- msdp {
- ... msdp-configuration ...
- }
-
- ospf {
- domain-id domain-id;
- domain-vpn-tag number;
- route-type-community (iana | vendor);
- ... ospf-configuration ...
- }
-
- ospf3 {
- domain-id domain-id;
- domain-vpn-tag number;
- route-type-community (iana | vendor);
- ... ospf3-configuration ...
- }
-
- pim {
- ... pim-configuration ...
- }
-
- rip {
- ... rip-configuration ...
- }
-
- vpls {
- ... vpls-configuration ...
- }
- }
You can include the statements at the following hierarchy levels:
To configure a non-VPN VRF routing instance (for example, to allow IPsec tunnels within VRF routing instances), include the following statements:
- interface interface-name;
- instance-type virtual-router;
- protocols {
-
- bgp {
- ... bgp-configuration ...
- }
-
- isis {
- ,,, isis-configuration ...
- }
-
- ldp {
- ... ldp-configuration ...
- }
-
- msdp {
- ... msdp-configuration ...
- }
-
- ospf {
- domain-id domain-id;
- domain-vpn-tag number;
- route-type-community (iana | vendor);
- ... ospf-configuration ...
- }
-
- ospf3 {
- domain-id domain-id;
- domain-vpn-tag number;
- route-type-community (iana | vendor);
- ... ospf3-configuration ...
- }
-
- pim {
- ... pim-configuration ...
- }
-
- rip {
- ... rip-configuration ...
- }
- }
You can include the statements at the following hierarchy levels:
To configure a VPLS routing instance, include the following statements:
- interface interface-name;
- instance-type vpls;
- protocols {
-
- vpls {
- ... vpls-configuration ...
- }
- }
You can include the statements at the following hierarchy levels:
For more detailed information about configuring VPLS and Layer 2 VPN, see the JUNOS VPNs Configuration Guide and the JUNOS Feature Guide.