The MX Series Security Appliances and MS Series Switches (with layer 3 routing enabled) have a built-in DHCP service. When enabled, it can provide DHCP to all configured subnets/VLANs, or relay DHCP messages to designated DHCP servers.
To configure, navigate to...
- For security appliance networks: Security appliance > Configure > DHCP, and refer to the section for the desired VLAN/subnet.
- For switch networks: Switch > Configure > Layer 3 routing, and click on the desired interface.
Once there, the Client addressing setting will determine how DHCP messages are handled on that VLAN/subnet.
- Run a DHCP server - The MX/MS will use its internal DHCP server to provide addressing and other information to clients. If selected, the other options below will become available.
- Relay DHCP to another server - The MX/MS will forward DHCP messages to a server on a different VLAN or over the site-to-site VPN. The DHCP server IP field will appear and is used to indicate where DHCP messages should be forwarded to.
Note: On an MX, the DHCP server cannot be over a 3rd party VPN peer connection.
- Do not respond to DHCP requests - The MX/MS will not process or forward DHCP messages on this subnet. This disables the DHCP service for this subnet. If DHCP is still desired, another server must exist to handle the requests.
If set to 'Run a DHCP server', the following options will become available:
- Gateway IP - (Only for Static routes) Indicates what default gateway IP address should be given to clients in this subnet. This address must be in the same subnet as the clients.
- Lease time - How long clients will have an address allocated to them, before the lease expires and the client must renew.
- DNS nameservers - Which addresses are provided to clients requesting DNS servers. These are used to resolve names (such as google.com) to IP addresses.
- Proxy to upstream DNS - (MX only) The MX will provide clients with its LAN IP as the DNS server, then proxy any DNS queries to the server(s) it has been configured to use on its Internet port(s).
- Use Google Public DNS - Clients will be instructed to send DNS queries to Google's Public DNS servers.
- Use OpenDNS - Clients will be instructed to send DNS queries to OpenDNS's servers.
- Specify nameservers... - Clients will be given a list of DNS servers configured by the administrator. These servers are listed in the Custom nameservers box that will appear, with a single address per line.
- Boot options - Used to provide necessary information to clients booting from TFTP.
- Boot next-server - The address of the server to load the boot file from.
- Boot filename - The name of the file to load from the server and use to boot. Please note that forward slashes ("/") should be used in place of back slashes ("\"), otherwise Dashboard may report an "invalid path" error.
- DHCP options - These can be used to provide additional information to clients, as desired by the administrator. Click Add a DHCP option to bring up additional fields. Several typical options are available in the Option field, or custom codes can be used for additional options.
- Reserved IP ranges - Ranges of IP addresses within the subnet that should not be provided to clients via DHCP. Typically used if the subnet contains some statically assigned addresses, such as for printers and servers. By default, the MX/MS will use the entire subnet for the DHCP pool, besides its own LAN IP.
- Click Add a reserved IP address range.
- Enter the First IP and Last IP of the range that should be excluded. Both of these addresses will be excluded, as well as any addresses between them. The Comment field is optional and for reference purposes.
Ex. The screenshot below shows two reserved ranges, covering 192.168.100.2 - 192.168.100.49 and 192.168.100.101 - 192.168.100.254. Addresses in these ranges will never be allocated to clients unless specified in the Fixed IP assignments section.
Note: Optionally, use the Import CSV option to see additional options for importing a CSV file with a list of ranges.
- If a range must be deleted, click the X in the Actions column.
- Fixed IP assignments - Allows specific MAC addresses to always be assigned the same IP address. These addresses will not be allocated to other devices on the network.
- Click Add a fixed IP assignment.
- Enter the MAC address of the client device and the IP address it should be assigned. The Client name address is optional and for reference purposes.
Note: Optionally, use the Import CSV option to see additional options for importing a CSV file with a list of assignments.
- If an assignment must be deleted, click the X in the Actions column.
Once complete with any changes, click Save Changes to have them go into effect.