You 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.
To configure the router to act as a DHCP/BOOTP relay agent, include the bootp statement at the [edit forwarding-options helpers] hierarchy level:
- [edit forwarding-options helpers]
-
bootp {
- client-response-ttl number;
- description description-of-service;
-
- interface interface-group {
- client-response-ttl number;
- description description-of-interface;
- maximum-hop-count number;
- minimum-wait-time seconds;
- no-listen;
- server [ ];
- }
- maximum-hop-count number;
- minimum-wait-time seconds;
- server [ ];
- }
To set the description of the BOOTP service, DHCP service, or interface, include the description statement.
To set a logical interface or a group of logical interfaces with a specific DHCP-relay or BOOTP configuration, include the interface statement.
To set the routing instance of the server to forward, include the routing-instance statement. 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-listen statement.
To set the maximum allowed number in the hops field of the BOOTP header, include the maximum-hop-count statement. Headers that have a larger number in the hops field are not forwarded. If you omit the maximum-hop-count statement, 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-time statement. Headers that have a smaller number in the secs field are not forwarded. The default value for the minimum wait time is zero (0).
To set the IP address or addresses that specify the DHCP or BOOTP server for the router or interface, include the server statement. You can include as many addresses as necessary in the same statement.
To perform an IP time-to-live (TTL) decrement before accepting any packets for processing when DHCP response packets are sent to a DHCP client, include the client-response-ttl 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 connected to one of the router's interfaces. For more information, see the JUNOS System Basics Configuration Guide.