Related Documentation
Configuring Targeted Broadcast
The following sections explain how to configure targeted broadcast on an egress interface and its options:
Configuring Targeted Broadcast and Its Options
You can configure targeted broadcast on an egress interface with different options. You can either allow the IP packets destined for a Layer 3 broadcast address to be forwarded on the egress interface and to send a copy of the IP packets to the Routing Engine or you can allow the IP packets to be forwarded on the egress interface only. Note that the packets are broadcast only if the egress interface is a LAN interface.
To configure targeted broadcast and its options:
- Configure the physical interface.[edit]user@host# set interfaces interface-name
- Configure the logical unit number at the [edit interfaces interface-name hierarchy level.[edit interfaces interface-name]user@host# set unit logical-unit-number
- Configure the protocol family as inet at the [edit
interfaces interface-name unit interface-unit-number hierarchy level.[edit interfaces interface-name unit interface--unit-number]user@host# set family inet
- Configure targeted broadcast at the [edit interfaces interface-name unit interface-unit-number family inet hierarchy level[edit interfaces interface-name unit interface--unit-number family inet]user@host# set targeted-broadcast
- Specify one of the following options as per requirement:
- To allow IP packets destined for a Layer 3 broadcast address
to be forwarded on the egress interface and to send a copy of the
IP packets to the Routing Engine.[edit interfaces interface-name unit interface-unit-number family inet targeted-broadcast]user@host# set forward-and-send-to-re
- To allow IP packets to be forwarded on the egress interface
only.[edit interfaces interface-name unit interface-unit-number family inet targeted-broadcast]user@host# set forward-only
- To allow IP packets destined for a Layer 3 broadcast address
to be forwarded on the egress interface and to send a copy of the
IP packets to the Routing Engine.
![]() | Note: Targeted broadcast does not work when the targeted broadcast option forward-and-send-to-re and the traffic sampling option sampling are configured on the same egress interface of an M320 router, a T640 router, or an MX960 router. To overcome this scenario, you must either disable one of the these options or enable the sampling option with the targeted broadcast option forward-only on the egress interface. For information about traffic sampling, see Configuring Traffic Sampling. |
Display Targeted Broadcast Configuration Options
The following topics display targeted broadcast configuration with its various options:
- Forward IP Packets On the Egress Interface and To the Routing Engine
- Forward IP Packets On the Egress Interface Only
Forward IP Packets On the Egress Interface and To the Routing Engine
Purpose
Display the configuration when targeted broadcast is configured on the egress interface to forward the IP packets on the egress interface and to send a copy of the IP packets to the Routing Engine.
Action
To display the configuration run the show command at the [edit interfaces interface-name unit interface-unit-number family inet] where the interface name is ge-2/0/0, the unit value is set to 0, the protocol family is set to inet.
Forward IP Packets On the Egress Interface Only
Purpose
Display the configuration when targeted broadcast is configured on the egress interface to forward the IP packets on the egress interface only.
Action
To display the configuration run the show command at the [edit interfaces interface-name unit interface-unit-number family inet] where the interface name is ge-2/0/0, the unit value is set to 0, the protocol family is set to inet.
