Example for Configuring Transparent Bridging to Implement Communication on Different Network Segments
Networking Requirements
LAN 1 and LAN 2 use the same network segment and a route to LAN 3 is configured on the router.
Eth1/0/0 and Eth2/0/0 are added to the same bridge group so that PCs on LAN 1 and LAN 2 can communicate.
Bridge-if 1 is created on the router. PCs on LAN 1 and LAN 2 communicate with PCs on LAN 3 through the route on Bridge-if 1.
Procedure
- Configure the router.
# sysname Router # bridge 1 //Create a bridge group and generate a virtual bridge. routing ip //Enable a bridge group to route IP protocol packets. # interface Ethernet1/0/0 bridge 1 //Add an interface to the bridge group as the virtual bridge interface. # interface Ethernet2/0/0 bridge 1 # interface Ethernet3/0/0 ip address 10.1.1.1 255.255.255.0 # interface Bridge-if1 //Create a Bridge-if interface and bind it to the virtual bridge interface. ip address 192.168.1.1 255.255.255.0 //Assign an IP address to the Bridge-if interface. # ip route-static 192.168.2.0 255.255.255.0 10.1.1.2 # return
- Verify the configuration.
# PCs on LAN 1 and LAN 2 can successfully ping each other.
# PCs on LAN 1 and LAN 2 and PCs on LAN 3 can successfully ping each other.