Configuring the Router or Interface to Act as a
DHCP/BOOTP Relay AgentYou can configure the router or an interface to act as a Dynamic Host Configuration Protocol (DHCP) or Bootstrap Protocol (BOOTP) relay agent. This means that a locally attached host can issue a DHCP or BOOTP request as a broadcast message. If the router or an interface sees this broadcast message, it relays the message to a specified DHCP or BOOTP server.
You should configure the router or an interface to be a DHCP/BOOTP relay agent if you have locally attached hosts and a distant DHCP or BOOTP server.
NOTE: This configuration overrides the DHCP or BOOTP configuration at the [
edit system dhcp-relay] hierarchy level.
To configure the router to act as a DHCP/BOOTP relay agent, include the
bootpstatement at the[edit forwarding-options helpers]hierarchy level:[edit forwarding-options helpers]bootp {descriptiondescription-of-service;interface interface-group {descriptiondescription-of-interface;maximum-hop-countnumber;minimum-wait-timeseconds;no-listen;server [ addresses ];}maximum-hop-countnumber;minimum-wait-timeseconds;server [ addresses ];To set the description of the BOOTP service, DHCP service, or interface, include the
descriptionstatement.To set a logical interface or a group of logical interfaces with a specific DHCP-relay or BOOTP configuration, include the
interfacestatement.To set the routing instance of the server to forward, include the
routing-instancestatement. You can include as many routing instances as necessary in the same statement.To stop packets from being forwarded on a logical interface, a group of logical interfaces, or the router, include the
no-listenstatement.
To set the maximum allowed number in the hops field of the BOOTP header, include the
maximum-hop-countstatement. Headers that have a larger number in the hops field are not forwarded. If you omit themaximum-hop-countstatement, the default value is 4 hops.To set the minimum allowed number of seconds in the secs field of the BOOTP header, include the
minimum-wait-timestatement. Headers that have a smaller number in the secs field are not forwarded. If you omit theminimum-wait-timestatement, the default value is 3 seconds.To set the IP address or addresses that specify the DHCP or BOOTP server for the router or interface, include the
serverstatement. You can include as many addresses as necessary in the same statement.You can also configure an individual logical interface to be a DHCP/BOOTP relay if you have locally attached hosts and a remote DHCP or BOOTP server at the
[edit interfaces]hierarchy level. For more information, see the JUNOS Network Interfaces and Class of Service Configuration Guide.