On MX-series routers only, use the virtual-switch routing instance type to isolate a LAN segment with its STP instance and to separate its VLAN ID space. A bridge domain consists of a set of ports that share the same flooding or broadcast characteristics. Each virtual switch represents a Layer 2 network. You can optionally configure a virtual switch to support Integrated Routing and Bridging (IRB), which facilitates simultaneous Layer 2 bridging and Layer 3 IP routing on the same interface. You can also configure Layer 2 control protocols to provide loop resolution. Protocols supported include the Spanning Tree Protocol (STP), RSTP, and MSTP.
To create a routing instance for a virtual switch, include at least the following statements in the configuration:
- [edit]
- routing-instances {
-
-
routing-instance-name
- instance-type virtual-switch;
-
-
bridge-domains {
-
-
bridge-domain-name {
-
domain-type bridge;
-
vlan-id (all | none | number);
-
vlan-tags outer number inner number;
-
interface interface-name;
- }
- }
-
- protocols {
- mstp ...
- }
- }
- }
The instance-type virtual-switch statement is not supported at the [edit logical-systems logical-system-name] hierarchy level.
For more information about configuring virtual switches, see Configuring Layer 2 Virtual Switches.