R3102-R3103-HP 6600/HSR6600 Routers Layer 3 - IP Services Configuration Guide

119
If an ACL is referenced in the ip forward-broadcast command, only packets permitted by the ACL
can be forwarded.
If you execute the ip forward-broadcast command multiple times on an interface, the most recent
configuration takes effect. If the command executed last does not include acl acl-number, the ACL
configured previously is removed.
To enable the device to forward directed broadcasts:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter interface view.
interface interface-type interface-number N/A
3. Enable the interface to
forward directed broadcasts.
ip forward-broadcast [ acl acl-number ] Disabled by default.
Receiving and forwarding directed broadcasts configuration
example
Network requirements
As shown in Figure 52, the default gateway of the host is the IP address 1.1.1.2/24 of the interface
GigabitEthernet 3/0/1 of Router. Configure a static route destined for the host on Router B. Configure
receiving and forwarding of directed broadcasts so that Router B can receive directed broadcasts from
the host to IP address 2.2.2.255.
Figure 52 Network diagram
Configuration procedure
1. Configure Router A:
# Enable Router A to receive directed broadcasts.
<RouterA> system-view
[RouterA] ip forward-broadcast
# Configure IP addresses for GigabitEthernet 3/0/1 and GigabitEthernet 3/0/2.
[RouterA] interface gigabitethernet 3/0/1
[RouterA-GigabitEthernet3/0/1] ip address 1.1.1.2 24
[RouterA-GigabitEthernet3/0/1] quit
[RouterA] interface gigabitethernet 3/0/2
[RouterA-GigabitEthernet3/0/2] ip address 2.2.2.2 24
# Enable GigabitEthernet 3/0/2 to forward directed broadcasts.
[RouterA-GigabitEthernet3/0/2] ip forward-broadcast
2. Configure Router B:
# Enable Router B to receive directed broadcasts.
<RouterB> system-view