instance-type
Syntax
instance-type type;
Hierarchy Level
[edit logical-systems logical-system-name routing-instances routing-instance-name], [edit routing-instances routing-instance-name]
Description
Define the type of routing instance.
We strongly recommend that if you change an instance-type
referenced under a firewall filter, for example, from
virtual-router to forwarding, make the
change during a maintenance window, as follows:
-
Deactivate the routing instance.
-
Change the
instance-type. -
Activate the routing instance.
This is not required if you are configuring the instance-type
for the first time.
Options
type—Can be one of the
following:
-
evpn—Enable an Ethernet VPN (EVPN) on the routing instance.-
On Junos OS Evolved,
instance-type evpnis not supported. You can configure an EVPN routing instance usinginstance-type mac-vrfwith a routing protocol configuration ofprotocols evpn.set routing-instances $EVPN_INSTANCES$ instance-type mac-vrf protocols evpn
-
-
evpn-vpws—Enable an Ethernet VPN (EVPN) Virtual Private Wire Service (VPWS) on the routing instance. -
forwarding—Provide support for filter-based forwarding, where interfaces are not associated with instances. All interfaces belong to the default instance. Other instances are used for populating RPD learned routes. For this instance type, there is no one-to-one mapping between an interface and a routing instance. All interfaces belong to the default instance inet.0. -
l2backhaul-vpn—Provide support for Layer 2 wholesale VLAN packets with no existing corresponding logical interface. When using this instance, the router learns both the outer tag and inner tag of the incoming packets, when theinstance-rolestatement is defined asaccess, or the outer VLAN tag only, when theinstance-rolestatement is defined asnni. -
l2vpn—Enable a Layer 2 VPN on the routing instance. You must configure theinterface,route-distinguisher,vrf-import, andvrf-exportstatements for this type of routing instance. -
layer2-control—(MX Series routers only) Provide support for RSTP or MSTP in customer edge interfaces of a VPLS routing instance. This instance type cannot be used if the customer edge interface is multihomed to two provider edge interfaces. If the customer edge interface is multihomed to two provider edge interfaces, use the default BPDU tunneling. -
mac-vrf—Enable configuring multiple customer-specific EVPN instances (EVIs) of this type, each of which can support a different EVPN service type. You can have customer-specific virtual routing and forwarding (VRF) tables with MAC addresses on each Juniper Networks device that serves as a virtual tunnel endpoint (VTEP) in the EVPN-VXLAN network. See mac-vrf for more on this type of EVPN instance. -
mpls-forwarding—(MX Series routers only) Allow filtering and translation of route distinguisher (RD) values in IPv4 and IPv6 VPN address families on both routes received and routes sent for selected BGP sessions. In particular, for Inter-AS VPN Option-B networks, this option can prevent the malicious injection of VPN labels from one peer AS boundary router to another. -
mpls-internet-multicast—(EX Series, M Series, MX Series, and T Series routers only) Provide support for ingress replication provider tunnels to carry IP multicast data between routers through an MPLS cloud, using MBGP or next-generation MVPN. -
no-forwarding—This is the default routing instance. Do not create a corresponding forwarding instance. Use this routing instance type when a separation of routing table information is required. There is no corresponding forwarding table. All routes are installed into the default forwarding table. IS-IS instances are strictly nonforwarding instance types. -
virtual-router—Enable a virtual router routing instance. This instance type is similar to a VPN routing and forwarding instance type, but used for non-VPN-related applications. You must configure theinterfacestatement for this type of routing instance. You do not need to configure theroute-distinguisher,vrf-import, andvrf-exportstatements. -
virtual-switch—(Not supported on QFX5xxx switches running either Junos OS or Junos OS Evolved) Provide support for Layer 2 bridging. Use this routing instance type to isolate a LAN segment with its Spanning Tree Protocol (STP) instance and to separate its VLAN identifier space. We also support this routing instance type for EVPN instances.Note:When you want to configure EVPN protocol settings in a
virtual-switchinstance, you must do so at the same time you configure thevirtual-switchinstance. Otherwise the device has problems adding EVPN Type 2 (MAC-IP) route entries in the EVPN routing tables.If you need to update an existing
virtual-switchinstance in an active configuration to add EVPN protocol settings (set … protocols evpn), you must:-
Deactivate the
virtual-switchinstance configuration. -
Add the EVPN protocol statements to the
virtual-switchinstance configuration. -
Reactivate the updated
virtual-switchinstance configuration with the EVPN protocol updates.
-
-
vpls—Enable VPLS on the routing instance. Use this routing instance type for point-to-multipoint LAN implementations between a set of sites in a VPN. You must configure theinterface,route-distinguisher,vrf-import, andvrf-exportstatements for this type of routing instance.-
On Junos OS Evolved,
instance-type vplsis not supported. You can configure a VPLS routing instance usinginstance-type virtual-switchwith a routing protocol configuration ofprotocols vpls.set routing-instances $VPLS_INSTANCE$ instance-type virtual-switch protocols vpls
-
-
vrf—VPN routing and forwarding (VRF) instance. Provides support for Layer 3 VPNs, where interface routes for each instance go into the corresponding forwarding table only. Required to create a Layer 3 VPN. Create a VRF table (instance-name.inet.0) that contains the routes originating from and destined for a particular Layer 3 VPN. For this instance type, there is a one-to-one mapping between an interface and a routing instance. Each VRF instance corresponds with a forwarding table. Routes on an interface go into the corresponding forwarding table. You must configure theinterface,route-distinguisher,vrf-import, andvrf-exportstatements for this type of routing instance.
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.
Release Information
Statement introduced before Junos OS Release 7.4.
virtual-switch and layer2-control options
introduced in Junos OS Release 8.4.
mpls-internet-multicast option introduced in Junos
OS Release 11.1 for the EX Series, M Series, MX Series, and T Series.
evpn option introduced in Junos OS Release 13.2
for MX 3D Series routers.
evpn option introduced in Junos OS Release 17.3
for the QFX Series.
forwarding option introduced in Junos OS Release 14.2
for the PTX Series.
mpls-forwarding option introduced in Junos OS Release 16.1
for the MX Series.
evpn-vpws option introduced in Junos OS Release 17.1
for MX Series routers.
mac-vrf option introduced in Junos OS Release 20.4 and Junos OS
Evolved Release 21.2R1.
Support for logical systems on MX Series routers added in Junos OS Release 17.4R1.
evpn-vpws option introduced in cRPD Release 20.3R1.