Setup guide
General usage of DHCP:
• IP assignment in LAN, cable-modem, and wireless systems
• Obtaining IP settings on cable-modem systems
IP addresses can be bound to MAC addresses using static lease feature.
DHCP server can be used with Wandy RouterOS HotSpot feature to authenticate and account
DHCP clients. See the HotSpot Manual for more information.
Specifications
Packages required: dhcp
License required: level1
ip dhcp-client, /ip dhcp-server, /ip dhcp-relay
Standards and Technologies: DHCP
Description
The DHCP protocol gives and allocates IP addresses to IP clients. DHCP is basically insecure and
should only be used in trusted networks. DHCP server always listens on UDP 67 port, DHCP client
- on UDP 68 port. The initial negotiation involves communication between broadcast addresses (on
some phases sender will use source address of 0.0.0.0 and/or destination address of
255.255.255.255). You should be aware of this when building firewall.
Additional Documents
• ISC Dynamic Host Configuration Protocol (DHCP)
• DHCP mini-HOWTO
• ISC DHCP FAQ
DHCP Client Setup
ip dhcp-client
Description
The Wandy RouterOS DHCP client may be enabled on one Ethernet-like interface at a time. The
client will accept an address, netmask, default gateway, and two dns server addresses. The received
IP address will be added to the interface with the respective netmask. The default gateway will be
added to the routing table as a dynamic entry. Should the DHCP client be disabled or not renew an
address, the dynamic default route will be removed. If there is already a default route installed prior
the DHCP client obtains one, the route obtained by the DHCP client would be shown as invalid.
Property Description
enabled (yes | no; default: no) - whether the DHCP client is enabled
interface (name; default: (unknown)) - any Ethernet-like interface (this includes wireless and EoIP
tunnels)
host-name (text) - the host name of the client
client-id (text) - corresponds to the settings suggested by the network administrator or ISP.
Commonly it is set to the client's MAC address, but it may as well be any test string