Supported Platforms
Related Documentation
Enabling Layer 2 Learning and Forwarding in a Logical System
On MX Series router, you can enable Layer 2 learning and forwarding in a logical system for bridge domains or other virtual-switch routing instances.
Before you begin, configure the interfaces for the logical system.
To configure Layer 2 learning and forwarding in a logical system for bridge domains or other virtual-switch routing instances:
- For detailed information about logical systems, see the Logical Systems Feature Guide for Routing Devices.
Enable configuration of a logical system:
[edit]user@host# edit logical-systems logical-system-name Enable configuration of a virtual-switch routing instance:
[edit logical-systems logical-system-name]user@host# edit routing-instances routing-instance-nameuser@host# set instance-type virtual-switch- Configure the set of bridge-domains or other virtual-switch routing instances.
Configure Layer 2 learning and forwarding properties for a set of bridge domains:
Enable configuration of Layer 2 learning and forwarding properties:
[edit logical-systems logical-system-name]user@host# edit switch-options- Configure Layer 2 learning and forwarding properties. For more information, see Layer 2 Learning and Forwarding for Bridge Domains Overview.
Verify the configuration:
[edit logical-systems logical-system-name switch-options]user@host# topuser@host# show logical-systemslogical-system-name {interfaces {...interface-configurations...}routing-instances {instance-type virtual-switch;}bridge-domains{...bridge-domain-configuration...}switch-options {interface logical-interface-name {...layer-2-learning-and-forwarding-configuration...}}protocols {(rstp | mstp | vstp) {interface interface-name;...spanning-tree-protocol-configuration...}}}