Enabling IP Routing for a Bridge Group
Context
IP routing enables a bridge group to bridge and route packets. If IP routing is not enabled, all protocol packets can only be bridged. After IP routing is enabled, specified protocol packets can be bridged or routed depending on the configuration.
Procedure
- Run system-view
The system view is displayed.
- Run bridge bridge-id
The bridge group view is displayed.
- Run routing ip
IP routing is enabled for the bridge group.
The IP routing function cannot be configured if any of member interfaces in the bridge group has an IP address. Before configuring the IP routing function, delete the IP addresses of these member interfaces.
- Run quit
Return to the system view.
- Run interface bridge-if bridge-id
A Bridge-if interface is created and the Bridge-if interface view is displayed.
- Run ip address ip-address { mask | mask-length }
An IP address is configured for the Bridge-if interface.
- (Optional) Run mac-address mac-address
A MAC address is configured for the Bridge-if interface.