3 dhcp server setup – Allied Telesis AT-WR4500 User Manual
Page 118

118
AT-WR4500 Series - IEEE 802.11abgh Outdoor Wireless Routers
RouterOS v3 Configuration and User Guide
If host-name property is not specified, client's system identity will be sent in the respective field of
DHCP request.
If client-id property is not specified, client's MAC address will be sent in the respective field of DHCP
request.
If use-peer-dns property is enabled, the DHCP client will unconditionally rewrite the settings in /ip dns
submenu. In case two or more DNS servers were received, first two of them are set as primary and
secondary servers respectively. In case one DNS server was received, it is put as primary server, and the
secondary server is left intact.
Example
To add a DHCP client on ether1 interface:
/ip dhcp-client add interface=ether1 disabled=no
[admin@AT-WR4562] ip dhcp-client> print detail
Flags: X - disabled, I - invalid
0
interface=ether1 add-default-route=yes use-peer-dns=yes use-peer-ntp=yes
status=bound address=192.168.0.65/24 gateway=192.168.0.1
dhcp-server=192.168.0.1 primary-dns=192.168.0.1 primary-ntp=192.168.0.1
expires-after=9m44s
[admin@AT-WR4562] ip dhcp-client>
6.1.3
DHCP Server Setup
Submenu level: /ip dhcp-server
Description
The router supports an individual server for each Ethernet-like interface. The RouterOS DHCP server
supports the basic functions of giving each requesting client an IP address/netmask lease, default gateway,
domain name, DNS-server(s) and WINS-server(s) (for Windows clients) information (set up in the
DHCP networks submenu).
In order DHCP server to work, you must set up also IP pools (do not include the DHCP server's IP
address into the pool range) and DHCP networks.
It is also possible to hand out leases for DHCP clients using the RADIUS server, here are listed the
parameters for used in RADIUS server.
Access-Request:
•
NAS-Identifier - router identity
•
NAS-IP-Address - IP address of the router itself
•
NAS-Port - unique session ID
•
NAS-Port-Type - Ethernet
•
Calling-Station-Id - client identifier (active-client-id)
•
Framed-IP-Address - IP address of the client (active-address)
•
Called-Station-Id - name of DHCP server
•
User-Name - MAC address of the client (active-mac-address)
•
Password - ""
Access-Accept:
•
Framed-IP-Address - IP address that will be assigned to client
•
Framed-Pool - ip pool from which to assign ip address to client
•
Rate-Limit - Datarate limitation for DHCP clients. Format is: rx-rate[/tx-rate] [rx-burst-rate[/tx-
burst
•
rate] [rx-burst-threshold[/tx-burst-threshold] [rx-burst-time[/tx-burst-time][priority] [rx-rate min[/tx
•
rate-min]]]]. All rates should be numbers with optional 'k' (1,000s) or 'M' (1,000,000s). If tx-rate is
not