General Configuration for VPN Routing
The configuration described in this section applies to all types of VPNs.
To configure interfaces for VPN routing, include the
interfacestatement:interfaceinterface-name;You can include the interface statement at the following hierarchy levels:
[edit routing-instancesrouting-instance-name][edit logical-routerslogical-router-namerouting-instancesrouting-instance-name]Specify both the physical and logical portions of the interface name, in the following format:
physical.logicalFor example, in
at-1/2/1.2,at-1/2/1is the physical portion of the interface name and2is the logical portion. If you do not specify the logical portion of the interface name,0is set by default.A logical interface can be associated with only one routing instance. If you enable a routing protocol on all instances by specifying
interfaces allwhen configuring the master instance of the protocol at the[edit protocols]hierarchy level, and if you configure a specific interface for VPN routing at the[edit routing-instancesrouting-instance-name]hierarchy level or at the[edit logical-routerslogical-router-namerouting-instancesrouting-instance-name]hierarchy level, the latter interface statement takes precedence and the interface is used exclusively for the VPN.If you explicitly configure the same interface name at the
[edit protocols]hierarchy level and at either the[edit routing-instancesrouting-instance-name]or[edit logical-routerslogical-router-namerouting-instancesrouting-instance-name]hierarchy levels, an attempt to commit the configuration fails.