304 CHAPTER 19: CONFIGURING BRIDGE
By default, no ACL is applied on the port.
When applying an ACL on the port, note that:
■ Add the port to a bridge-set first, then apply the ACL on that port.
■ If ACLs of the same type are applied to the same port, the latest ACL
applied will replace the previous ones.
8 Configure Routing Function
a Enable routing function
For the data of a specified protocol, they will be bridged if the communication
is carried out between the bridge ports. If the communication with a network
outside the bridge-set is needed, the data can be routed. If the
bridge’s routing
is not enabled yet, the data of all the protocols can only be bridged. Once the
bridge’s routing is enabled, you can specify both bridging and routing for the
packets of a particular protocol. You can flexibly switch over between them
through configuring the command.
Perform the following configuration in system view.
Table 338 Enable/Disable bridge’s routing
By default, bridge’s routing function is disabled.
b Create bridge-template interface
Bridge-template interface exists on the router, it does not support bridging, but
it represents the whole bridge-set corresponding to the routed interface on the
router.
Bridge-template interface uses the same number of the bridge-set
represented by it.
All kinds of network layer attributes can be configured on
the bridge-template interface.
Each bridge-set can have only one
bridge-template interface.
Perform the following configuration in system view.
Table 339 Configure a bridge-template interface
c Configure bridge set to route or bridge the network layer protocol
Perform the following configuration in system view.
Remove the application of the ACL
encapsulated in the form of Ethernet-II or
Ethernet-SNAP to the input side of the port
undo bridge-set bridge-set
inbound-type acl acl-number
Apply an ACL encapsulated in the form of
Ethernet-II or Ethernet-SNAP to the output
side of the port
bridge-set bridge-set
outbound-type acl acl-number
Remove the application of the ACL
encapsulated in the form of Ethernet-II or
Ethernet-SNAP to the output side of the port
undo bridge-set bridge-set
outbound-type acl acl-number
Operation Command
Enable bridge’s routing function bridge routing-enable
Disable bridge’s routing function undo bridge routing-enable
Operation Command
Create a bridge-template interface to connect
the specified bridge-set to the routing network.
interface bridge-template
bridge-set