632
C
41: IP P
HAPTER
ERFORMANCE
n
Configuration Example
C
ONFIGURATION
To do...
Enable the interface to
forward directed broadcasts
to a directly connected
network
You can reference an ACL to forward only directed broadcasts permitted by the
■
ACL.
If you execute the ip forward-broadcast acl command on an interface
■
repeatedly, the last execution overwrites the previous one. If the command
executed last time does not include the acl acl-number, the ACL configured
previously will be removed.
Network requirements
As shown in
Figure
189, the host's interface and Ethernet1/1 of Router A are on
the same network segment (1.1.1.0/24). Interface Ethernet 1/1 of Router A and
interface Ethernet 1/0 of Router B are on another network segment (2.2.2.0/24).
The default gateway of the host is Ethernet 1/1 (IP address 1.1.1.2/24) of Router
A. Configure a static route on Router B to enable the reachability between the
host and Router B.
Network diagram
Figure 189 Network diagram for forwarding directed broadcasts
Eth 1 / 1
1 . 1 . 1 . 1 / 24
1 . 1 . 1 . 2 / 24
Host
Router A
Configuration procedure
Configure Router A
■
# Enable the interface Ethernet 1/0 on Router A to forward directed broadcasts.
<RouterA> system-view
[RouterA] interface ethernet 1/0
[RouterA-Ethernet1/0] ip forward-broadcast
# Configure IP addresses for the interfaces Ethernet 1/1 and Ethernet 1/0.
[RouterA] interface ethernet 1/1
[RouterA-Ethernet1/1] ip address 1.1.1.2 24
[RouterA-Ethernet1/1] quit
[RouterA] interface ethernet 1/0
[RouterA-Ethernet1/0] ip address 2.2.2.2 24
Configure Router B
■
# Configure a static route to the host.
<RouterB> system-view
[RouterB] ip route-static 1.1.1.1 24 2.2.2.2
Use the command...
ip forward-broadcast [ acl
acl-number ]
Eth 1 / 0
Eth 1 / 0
2 . 2 . 2 . 2 / 24
2 . 2 . 2 . 1 / 24
Router B
Remarks
Required
Not enabled by default.