This recipe explains the procedure for setting the DHCP server.
DHCP server
- A DHCP server is a server that automatically issues the necessary information such as IP addresses to devices connected to the Internet.
- Glossary > DHCP
Target devices
- AG10/20
- AR10/20
- AC10 (As of 2022/7/4 only for the CLI)
Table of contents
Setting with the GUI
- Access the GUI with a Web browser.
e.g.) http://192.168.1.197 -
Click [ Advanced setting/control ] – [ DHCP server setting ] on the side menu.
- On the [ DHCP server setting ] screen, click the [ Add new ] button.
- Enter the fields required for configuring the static routing settings.
❶ Select the interface.
The interface set as a DHCP server needs to be operated with a fixed IP address.
❷ Click the toggle to enable it.
❸ Specify the range of IP addresses assigned to clients.
❹ Specify the subnet mask.
❺ Set the gateway address, DNS server, domain, NTP server, and valid period respectively. (They work with the default value as well.) - After you complete configuring the settings, click [ Set ].
*As the settings that can be configured with the GUI are limited, configure more detailed settings from the CLI.
Setting with the CLI
- With amsh, transit to configuration mode.
admin@amnimo:~$ amsh
amnimo$ enable
password:
amnimo#
amnimo# configure - Set the DHCP server for Interface eth0.
The interface set as a DHCP server needs to be operated with a fixed IP address.amnimo(cfg)# dhcp eth0 ← Configure the DHCP settings for eth0.
amnimo(cfg-dhcp-eth0)# dynamic 192.168.3.20 192.168.3.40 ← Specify the range of dynamic IP addresses automatically assigned to clients.
amnimo(cfg-dhcp-eth0)# netmask 255.255.255.0 ← Specify the subnet mask.
amnimo(cfg-dhcp-eth0)# leasetime 600 3600 ← Specify the valid time for leasing IP addresses.
amnimo(cfg-dhcp-eth0)# router 10.5.5.1 ← Specify the gateway address notified to the DHCP client.
amnimo(cfg-dhcp-eth0)# dns ns2.example.org ← Specify the IP address or server name of the DNS server notified to the DHCP client.
amnimo(cfg-dhcp-eth0)# domain example.org ← Specify the DNS domain name notified to the DHCP client.
amnimo(cfg-dhcp-eth0)# ntp ntp2.org ←Specify the IP address of the NTP server notified to the DHCP client.
amnimo(cfg-dhcp-eth0)# static 12:34:56:78:90:60 192.168.3.25 ←Assign a fixed IP address to the client with the specified MAC address.
amnimo(cfg-dhcp-eth0)# enable ← Enable the settings.
amnimo(cfg-dhcp-eth0)# exit
amnimo(cfg)# no dhcp eth0 - Save the configuration file.
amnimo(cfg)# config file save
For detailed information on the commands and other optional settings, refer to the following manuals.
Comments
0 comments
Please sign in to leave a comment.