Configuration procedure – H3C Technologies H3C SecPath F1000-E User Manual
Page 23
3
GigabitEthernet 0/1 (IP address 1.1.1.2/24) of Device A. Configure a static route to the host on Device
B.
It is required that directed broadcasts from the host to IP address 2.2.2.255 be received by Device B.
Figure 1 Network diagram for receiving and forwarding directed broadcasts
Configuration procedure
•
Configure Device A
# Enable Device A to receive directed broadcasts.
[DeviceA] ip forward-broadcast
# Configure IP addresses for GigabitEthernet 0/1 and GigabitEthernet 0/2.
[DeviceA] interface gigabitethernet 0/1
[DeviceA-GigabitEthernet0/1] ip address 1.1.1.2 24
[DeviceA-GigabitEthernet0/1] quit
[DeviceA] interface gigabitethernet 0/2
[DeviceA-GigabitEthernet0/2] ip address 2.2.2.2 24
# Enable GigabitEthernet 0/2 to forward directed broadcasts.
[DeviceA-GigabitEthernet0/2] ip forward-broadcast
•
Configure Device B
# Enable Device B to receive directed broadcasts.
[DeviceB] ip forward-broadcast
# Configure a static route to the host.
[DeviceB] ip route-static 1.1.1.1 24 2.2.2.2
# Configure an IP address for GigabitEthernet 0/2.
[DeviceB] interface gigabitethernet 0/2
[DeviceB-GigabitEthernet0/2] ip address 2.2.2.1 24
[DeviceB-GigabitEthernet0/2] quit
After the above configurations, if you ping the subnet broadcast address (2.2.2.255) of interface
GigabitEthernet 0/2 of Device A on the host, the ping packets can be received by interface
GigabitEthernet 0/2 of Device B. However, if you disable the ip forward-broadcast command, the
ping packets cannot be received by interface GigabitEthernet 0/2 of Device B.