Configuration example – H3C Technologies H3C S12500 Series Switches User Manual
Page 105
92
Step Command
Remarks
3.
Enable the interface to receive
and forward directed
broadcasts destined for the
directly connected network.
ip forward-broadcast
By default, an interface cannot
forward directed broadcasts
destined for the directly connected
network. It can receive directed
broadcasts destined for the directly
connected network.
244B
Configuration example
368B
Network requirements
As shown in
748H
Figure 39
, the default gateway of the host is the IP address 1.1.1.2/24 of VLAN-interface 3
of Switch A.
Switch B can receive directed broadcasts from the host to IP address 2.2.2.255.
Figure 39 Network diagram
369B
Configuration procedure
1.
Configure Switch A:
# Configure IP addresses for VLAN-interface 3 and VLAN-interface 2.
<SwitchA> system-view
[SwitchA] interface vlan-interface 3
[SwitchA-Vlan-interface3] ip address 1.1.1.2 24
[SwitchA-Vlan-interface3] quit
[SwitchA] interface vlan-interface 2
[SwitchA-Vlan-interface2] ip address 2.2.2.2 24
# Enable VLAN-interface 2 to forward directed broadcasts directed for the directly connected
network.
[SwitchA-Vlan-interface2] ip forward-broadcast
2.
Configure Switch B:
# Configure a static route to the host.
<SwitchB> system-view
[SwitchB] ip route-static 1.1.1.1 24 2.2.2.2
# Configure an IP address for VLAN-interface 2.
[SwitchB] interface vlan-interface 2
[SwitchB-Vlan-interface2] ip address 2.2.2.1 24
# Enable VLAN-interface 2 to receive directed broadcasts destined for the directly connected
network.
[SwitchB-Vlan-interface2] ip forward-broadcast
After the configurations, if you ping the subnet-directed broadcast address 2.2.2.255 on the host,
VLAN-interface 2 of Switch B can receive the ping packets. If you remove the ip forward-broadcast
configuration on any switch, the interface cannot receive the ping packets.