Configuring Port-based LAN Broadcast Packet Forwarding
You can enable a router or switch to forward LAN broadcast traffic on
only
custom UDP ports to specified servers by configuring port helpers with
the [edit forwarding-options helpers] port
configuration statement. Port
helpers are also referred to as port forwarding or UDP broadcast packet forwarding services.
When you configure a port helper, the router or switch
listens for incoming UDP traffic for the configured port
with destination Layer 2 MAC and Layer 3 IP broadcast addresses, and forwards the packets as
unicast traffic to a configured server.
Port helpers forward the traffic for configured ports transparently, without considering the application layer protocols in the packets being forwarded. However, you cannot configure a port helper to forward traffic for standard ports used by services such as BOOTP, DNS and TFTP. These services have their own explicit packet forwarding helper configuration options (see helpers and Configuring DNS and TFTP Packet Forwarding).
You can configure port helpers to listen for and forward broadcast traffic for a configured port using any of the following scopes:
Global scope—Forward incoming broadcast traffic on the port to a configured destination server IP address.
Configure a global port helper using only the
server
configuration option, without specifying a particular interface. The port helper listens for incoming traffic on any interfaces to forward to the configured server. For example:set forwarding-options helpers port 1300 server 10.20.30.40
VLAN-specific scope—Forward incoming broadcast traffic on the port from a configured VLAN to a configured destination server IP address.
Configure a VLAN-specific port helper using the
interface
statement with an IRB interface name for a VLAN, and theserver
statement. The port helper listens for incoming traffic from interfaces in the VLAN to forward to the configured server. For example:set forwarding-options helpers port 1064 interface irb.100 server 192.0.2.50
Interface-specific scope—Forward incoming broadcast traffic on the port from a configured Layer 3 interface to a configured destination server IP address.
Configure an interface-specific port helper using the
interface
statement with a Layer 3 interface name, and theserver
statement. The port helper listens for incoming traffic only from the configured interface to forward to the configured server. For example:set forwarding-options helpers port 1064 interface ge-0/0/3 server 192.0.2.50
For any scope, optionally use the description
statement
to label or describe the configured forwarding service.
In releases prior to Junos OS Release 17.2, you can configure only one destination server for a given port number. Starting in Junos OS Release 17.2R1, you can configure forwarding traffic to multiple servers for a given port in any port helper scope. To configure forwarding the traffic on a specified port to multiple destination servers, include multiple configuration items for the port and each server (or interface and server). For example, in the global scope:
set forwarding-options helpers port 1300 server 10.20.30.4 set forwarding-options helpers port 1300 server 10.20.30.5 set forwarding-options helpers port 1300 server 10.20.30.6
To temporarily disable listening on a configured port from a
configured interface, include the no-listen
option with
the configured item, as follows:
set forwarding-options helpers port port-number interface interface-name server address no-listen
To remove a configured port helper service from a router or
switch, delete the configured port
number item, as follows:
delete forwarding-options helpers port <port-number>
If multiple servers are configured for a particular port, to remove any or all such forwarding services, you must delete each configured port and server item individually. For example:
delete forwarding-options helpers port 1300 server 10.20.30.4 delete forwarding-options helpers port 1300 server 10.20.30.5 delete forwarding-options helpers port 1300 server 10.20.30.6
Change History Table
Feature support is determined by the platform and release you are using. Use Feature Explorer to determine if a feature is supported on your platform.