Configuration example – H3C Technologies H3C S12500 Series Switches User Manual
Page 105
![background image](https://www.manualsdir.com/files/812677/content/doc105.png)
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] 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] 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.
- H3C SR8800 H3C SR6600-X H3C SR6600 H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C WX3000 Series Unified Switches H3C LSWM1WCM10 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module H3C S6800 Series Switches H3C S3100V2 Series Switches H3C S12500-X Series Switches H3C S9800 Series Switches