128
C
13: IP P
HAPTER
ERFORMANCE
Enabling Forwarding of
Directed Broadcasts to a
Directly Connected
Network
n
Configuration Example
C
ONFIGURATION
To do...
Enter system view
Enable the device to receive
directed broadcasts
Follow these steps to enable the device to forward directed broadcasts:
To do...
Enter system view
Enter interface view
Enable the interface to
forward directed broadcasts
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 38, the host's interface and VLAN-interface 3 of Switch A are
on the same network segment (1.1.1.0/24). VLAN-interface 2 of Switch A and
VLAN-interface 2 of Switch B are on another network segment (2.2.2.0/24). The
default gateway of the host is VLAN-interface 3 (IP address 1.1.1.2/24) of Switch
A. Configure a static route on Switch B to enable the reachability between host
and Switch B.
Network diagram
Figure 38 Network diagram for receiving and forwarding directed broadcasts
Vlan -int3
1.1.1.1 /24
1.1.1 .2/24
Host
Configuration procedure
Configure Switch A
■
# Enable Switch A to receive directed broadcasts.
<SwitchA> system-view
[SwitchA] ip forward-broadcast
# Configure IP addresses for VLAN-interface 3 and VLAN-interface 2.
Use the command...
system-view
ip forward-broadcast
Use the command...
system-view
interface interface-type
interface-number
ip forward-broadcast [ acl
acl-number ]
Vlan- int2
Vlan -int2
2.2.2 .2/24
2.2 .2.1/24
Switch A
Remarks
-
Required
By default, the device is
disabled from receiving
directed broadcasts.
Remarks
-
-
Required
By default, the device is
disabled from forwarding
directed broadcasts.
Switch B