R3303-HP HSR6800 Routers Layer 3 - IP Services Configuration Guide

119
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
[RouterB] ip forward-broadcast
# Configure a static route to the host.
[RouterB] ip route-static 1.1.1.1 24 2.2.2.2
# Configure an IP address for GigabitEthernet 3/0/2.
[RouterB] interface gigabitethernet 3/0/2
[RouterB-GigabitEthernet3/0/2] ip address 2.2.2.1 24
[RouterB-GigabitEthernet3/0/2] quit