Configuration Tasks
To configure transparent bridging on an E-series router:
- Create a bridge group.
- (Optional) Set optional attributes for the bridge group.
- Configure bridge group interfaces.
- (Optional) Configure nondefault subscriber policies for bridge interfaces.
- (Optional) Enable concurrent routing and bridging.
- (Optional) If CRB is enabled, configure explicit routing for IP, MPLS, or PPPoE protocols.
The following sections describe how to perform each of these tasks. See Configuration Examples for detailed sample configurations.
NOTE: For information about the maximum values that the router supports for transparent bridging, see JUNOSe Release Notes, Appendix A, System Maximums.
Creating Bridge Groups
- From Global Configuration mode, create a bridge group and give it an alphanumeric name.
host1(config)#bridge westford01
NOTE: Do not assign the bridge group the same name as an existing VR configured on your router.
- (Optional) Repeat Step 1 to create additional bridge groups, one at a time.
host1(config)#bridge westford02host1(config)#bridge westford03- (Optional) Use the appropriate show command to verify the bridge group creation.
host1#show bridge groupsbridge
- Use to create a bridge group for transparent bridging.
- You must specify an alphanumeric name for the bridge group; the name can be a maximum of 32 characters and can use any combination of alphanumeric characters.
- Example
host1(config)#bridge westford04Use the no version to remove the bridge group from the router. Configuring Optional Bridge Group Attributes
After you create a bridge group, you can configure the following optional attributes for the bridge group to manage the MAC address entries in the bridge group's forwarding table:
- Enable or disable the bridge group's ability to acquire dynamically learned MAC addresses; acquiring dynamic MAC addresses is enabled by default.
host1(config)#bridge westford01 acquireEnable or disable the bridge group's ability to filter (forward or discard) frames with a particular MAC source or destination address. host1(config)#bridge westford01 address 0090.1a40.4c7c forward atm 3/0.1host1(config)#bridge westford02 address 1011.22c2.333d discardSet the aging time of a dynamic (learned) entry in the forwarding table. host1(config)#bridge westford01 aging-time 200Set the maximum number of dynamic MAC addresses that a bridge group can learn. host1(config)#bridge westford02 learn 10000You can also optionally enable SNMP link status processing for the bridge group. For example:
host1(config)#bridge westford03 snmp-trap link-statusbridge acquire
- Use to enable or disable a specified bridge group's ability to acquire dynamically learned MAC addresses; acquiring dynamic MAC addresses is enabled by default.
- Enables the bridge group to forward any frames it receives for nodes (stations) whose address it has learned dynamically.
- Example
host1(config)#bridge westford01 acquireUse the no version to prevent the bridge group from acquiring dynamically learned MAC addresses and to limit forwarding only to those nodes that have a statically configured address entry in the forwarding table. bridge address
- Use to enable or disable a specified bridge group's ability to filter (forward or discard) frames based on their MAC address.
- Enables the bridge group to filter frames by their MAC address and add static (nonlearned) address entries to the forwarding table.
- Specify the following:
- bridgeGroupNameAlphanumeric name of the bridge group specified in the bridge command
- macAddressUnique 48-bit (6-byte) physical address or hardware address of the LAN network interface card as a dotted triple of four-digit hexadecimal numbers
- forwardForwards frames destined for the specified MAC address out the specified interface
- discardDiscards (drops) frames sent from or destined for the specified MAC address without further processing
- interfaceTypeOne of the following bridge interface types listed in Interface Types and Specifiers in JUNOSe Command Reference Guide, About This Guide:
- interfaceSpecifierParticular interface; format varies according to interface type; see Interface Types and Specifiers in JUNOSe Command Reference Guide, About This Guide for information
- Example 1Forwards frames destined for the node with MAC address 0090.1a40.4c7c out the specified Fast Ethernet interface
host1(config)#bridge westford02 address 0090.1a40.4c7c forward fastEthernet 3/0.1Example 2Drops frames sent from or destined for the node with MAC address 1011.22b2.333c host1(config)#bridge westford03 address 1011.22b2.333c discardUse the no version to remove the static MAC address entry from the forwarding table. bridge aging-time
- Use to set the length of time, in seconds, that a dynamic (learned) MAC address entry can remain in a specified bridge group's forwarding table.
- When a dynamic entry reaches its configured aging time, it "ages out" of the forwarding table.
- The default aging time is 300 seconds.
- The aging-time range is 11000000 seconds.
- Example
host1(config)#bridge westford04 aging-time 1000Use the no version to restore the default value, 300 seconds. bridge learn
- Use to set the maximum number of dynamic (learned) MAC address entries that a specified bridge group can learn.
- For information about the maximum number of learned MAC address entries combined for all bridge groups on an E-series router, see JUNOSe Release Notes, Appendix A, System Maximums.
- The default value is 0 (zero) learned addresses. This default implies that there is no maximum number of learned entries for an individual bridge group; that is, an individual bridge group can learn an unlimited number of MAC addresses, up to the maximum number that the router supports.
- Example
host1(config)#bridge westford05 learn 2000Use the no version to restore the default value, 0 (zero) learned addresses. bridge snmp-trap link-status
- Use to enable SNMP link status processing for a specified bridge group and to enable SNMP traps for all bridge interfaces configured in the bridge group.
- Example
host1(config)#bridge westford06 snmp-trap link-statusUse the no version to disable SNMP link status processing for the bridge group. Configuring Bridge Group Interfaces
To configure a bridge group interface:
- From Global Configuration mode, select the ATM, Fast Ethernet, Gigabit Ethernet, or 10-Gigabit Ethernet interface or subinterface that you want to assign to the bridge group.
- Assign the interface or subinterface to an existing bridge group to create the bridge interface.
- (Optional) Configure the bridge group interface as a trunk (server) interface.
- (Optional) Enable SNMP link status processing for the bridge group interface.
- (Optional) Set the maximum number of dynamic MAC addresses that the bridge group interface can learn.
For detailed sample configurations that include bridge interfaces, see Configuration Examples.
bridge-group
- Use to assign a bridge interface to an existing bridge group.
- To create a subscriber (client) bridge group interface, which is the default, you must supply the alphanumeric name of the bridge group (specified in the bridge command) to which you want to assign the interface.
- Optionally, you can also choose one of the following keywords:
- subscriber-trunkCreates a trunk (server) bridge group interface
- snmp-trap link-statusEnables SNMP link status processing for the specified interface in the specified bridge group; SNMP link status processing is disabled by default
- learn addressCountSets the maximum number of MAC addresses that the bridge group interface can learn, where addressCount is an integer in the range 064000. A value of 0 indicates that an individual bridge group interface can learn an unlimited number of MAC addresses, up to the maximum number that the router supports.
- Example 1Creates a subscriber (client) bridge group interface for a bridge group named westford02 with SNMP link status processing enabled
host1(config-subif)#bridge-group westford02 snmp-trap link-statusExample 2Sets the maximum number of learned MAC addresses on the westford02 bridge interface to 1000 host1(config-subif)#bridge-group westford02 learn 1000Example 3Creates a trunk (server) interface for a bridge group named westford03 host1(config-subif)#bridge-group westford03 subscriber-trunkUse the no version to remove the interface from the bridge group and to restore the default value for the keyword you specified. interface atm
host1(config)#interface atm 3/2.1Use the no version to remove the interface or subinterface. interface fastEthernet
host1(config)#interface fastEthernet 1/0.2Use the no version to remove the interface or subinterface. You must issue the no version from the highest level down; you cannot remove an interface or a subinterface if the one above it still exists. interface gigabitEthernet
host1(config)#interface gigabitEthernet 1/0host1(config)#interface gigabitEthernet 4/0/1host1(config)#interface tenGigabitEthernet 4/0/1Use the no version to remove the interface or subinterface. You must issue the no version from the highest level down; you cannot remove an interface or subinterface if the one above it still exists. Configuring Subscriber Policies
To configure a nondefault client subscriber policy:
- From Global Configuration mode, create the subscriber policy and assign it an alphanumeric name.
host1(config)#subscriber-policy client01This command accesses Subscriber Policy Configuration mode.
- From Subscriber Policy Configuration mode, define the rules for each packet or attribute type for which you want to change the default value. (All other packet or attribute types will continue to use the default values listed in Table 22.)
host1(config-policy)#broadcast permithost1(config-policy)#multicast denyhost1(config-policy)#relearn deny- Exit Subscriber Policy Configuration mode.
host1(config-policy)#exit- From Global Configuration mode, associate the new subscriber policy with the bridge group in which the subscriber (client) interface resides.
host1(config)#bridge westford02 subscriber-policy client01- (Optional) Use the appropriate show commands to verify the creation of the subscriber policy and its association with the bridge group interface.
host1#show subscriber-policy client01host1#show bridge westford02arp
- Use to modify the subscriber policy for ARP to define whether a subscriber (client) bridge interface permits (forwards) or denies (filters or drops) ARP packets.
- Specify one of the following keywords:
host1(config-policy)#arp denyUse the no version to restore the default value. bridge subscriber-policy
- Use to associate a subscriber (client) bridge interface with a nondefault subscriber policy.
- Specify the following:
- bridgeGroupNameAlphanumeric name of the bridge group specified in the bridge command
- subscriberPolicyNameAlphanumeric name of the subscriber policy specified in the subscriber-policy command
host1(config)#bridge westford02 subscriber-policy client01Use the no version to remove the association with the subscriber policy.
broadcast
- Use to modify the subscriber policy for the broadcast protocol to define whether a subscriber (client) bridge interface permits (forwards) or denies (filters or drops) broadcast packets.
- Specify one of the following keywords:
host1(config-policy)#broadcast permitUse the no version to restore the default value. ip
- Use to modify the subscriber policy for IP to define whether a subscriber (client) bridge interface permits (forwards) or denies (filters or drops) IP packets.
- Specify one of the following keywords:
host1(config-policy)#ip denyUse the no version to restore the default value. mpls
- Use to modify the subscriber policy for MPLS to define whether a subscriber (client) bridge interface permits (forwards) or denies (filters or drops) MPLS packets.
- Specify one of the following keywords:
host1(config-policy)#mpls denyUse the no version to restore the default value. multicast
- Use to modify the subscriber policy for the multicast protocol to define whether a subscriber (client) bridge interface permits (forwards) or denies (filters or drops) multicast packets.
- Specify one of the following keywords:
host1(config-policy)#multicast denyUse the no version to restore the default value. pppoe
- Use to modify the subscriber policy for PPPoE to define whether a subscriber (client) bridge interface permits (forwards) or denies (filters or drops) PPPoE packets.
- Specify one of the following keywords:
host1(config-policy)#pppoe denyUse the no version to restore the default value. relearn
- Use to modify the relearning policy for a subscriber (client) bridge interface.
- The relearn command defines whether the bridge interface can relearn a MAC address entry on a different interface from the one initially associated with this entry in the forwarding table.
- Specify one of the following keywords:
- permitEnables relearning
- denyProhibits relearning and forces the bridge interface to wait until an entry "ages out" of the forwarding table to relearn it on the new interface
host1(config-policy)#relearn denyUse the no version to restore the default value. subscriber-policy
- Use to create a nondefault subscriber policy for a subscriber (client) bridge interface.
- A subscriber policy is a set of forwarding and filtering rules that defines how the bridge interface handles various packet types.
- You must specify an alphanumeric name for the subscriber policy; the name can be a maximum of 32 characters and can use any combination of alphanumeric characters.
- Example
host1(config)#subscriber-policy client01Use the no version to remove the nondefault subscriber policy.
unicast
- Use to modify the subscriber policy for the unicast (user-to-user) protocol to define whether a subscriber (client) bridge interface permits (forwards) or denies (filters or drops) unicast packets.
- Specify one of the following keywords:
host1(config-policy)#unicast denyUse the no version to restore the default value. unknown-destination
- Use to modify the subscriber policy for packets with unknown unicast DAs to define whether a subscriber (client) bridge interface permits (forwards) or denies (filters or drops) packets with unknown unicast DAs.
- Specify one of the following keywords:
host1(config-policy)#unknown-destination permitUse the no version to restore the default value. unknown-protocol
- Use to modify the subscriber policy for packets containing an unknown protocol to define whether a subscriber (client) bridge interface permits (forwards) or denies (filters or drops) these packets.
- An unknown protocol is any protocol other than ARP, IP, MPLS, or PPPoE.
- Specify one of the following keywords:
host1(config-policy)#unknown-protocol denyUse the no version to restore the default value. Enabling Concurrent Routing and Bridging
To enable concurrent routing and bridging (CRB) for all bridge groups on the router:
- From Global Configuration mode, issue the bridge crb command.
host1(config)#bridge crb- (Optional) Use the appropriate show command to verify that CRB is enabled for the bridge groups on your router.
host1#show bridge groups detailsbridge crb
- Use to enable concurrent routing and bridging (CRB) for all bridge groups configured on an E-series router.
- CRB is disabled by default.
- When CRB is enabled, the router can route a protocol among a group of interfaces in one bridge group and concurrently bridge the same protocol among a separate group of interfaces in a different bridge group.
- The command takes effect for all bridge groups on an E-series router; you cannot enable CRB for some bridge groups on the router but not for others.
- Example
host1(config)#bridge crbUse the no version to disable CRB on all bridge groups and restore the default bridging capability. Configuring Explicit Routing
After you enable concurrent routing and bridging, you may need to issue the bridge route command to configure explicit routing for IP, MPLS, or PPPoE protocols if both of the following conditions are true:
- You configure new IP, MPLS, or PPPoE interfaces after you issue the bridge crb command to enable concurrent routing and bridging.
- The IP, MPLS, or PPPoE interface is the first occurrence of this protocol in the bridge group.
For example, assume that you want to route (rather than bridge) IP, MPLS, and PPPoE interfaces, but only IP and MPLS interfaces are configured when you issue the bridge crb command. The router detects the IP and MPLS interfaces and issues implicit bridge route commands to route these protocols.
If you subsequently add a new IP interface to a bridge group, you do not need to issue the bridge route command because the implicit bridge route command for IP is still in effect. However, if you subsequently add a new PPPoE interface to the bridge group, you must issue an explicit bridge route command for PPPoE to direct the bridge group to route PPPoE packets.
You can also use the bridge route command as a way to filter packets by routing. If you issue an explicit bridge route command for a protocol that is not currently configured in any of your bridge groups, the bridge group must route rather than bridge that protocol, but does not have the required interface stacking to do so. As a result, the bridge group discards (drops) those packets.
To configure explicit routing:
- Ensure that you have enabled concurrent routing and bridging. (See Enabling Concurrent Routing and Bridging for details.)
- From Global Configuration mode, enable routing of IP, MPLS, or PPPoE packets in a specified bridge group.
host1(config)#bridge westford02 route iphost1(config)#bridge westford02 route mplshost1(config)#bridge westford03 route pppoe- (Optional) Use the appropriate show command to verify that routing is enabled for the specified protocols in the bridge group.
host1#show bridge westford02bridge route
- Use to enable the routing of IP, MPLS, or PPPoE packets in a specified bridge group when concurrent routing and bridging (CRB) is enabled.
- If you issue this command for a protocol that is not configured in any bridge groups on your router, the bridge group discards (drops) those packets.
- You must specify the alphanumeric name of the bridge group specified in the bridge command.
- Choose one of the following keywords to indicate the protocol type that the bridge group routes: ip, mpls, or pppoe.
- Example
host1(config)#bridge westford02 route ipUse the no version to disable routing of the specified protocol in the specified bridge group.