routeros-dhcp

Installation
SKILL.md

RouterOS DHCP

DHCPv4 server settings are split across three menus that must agree: the server (/ip/dhcp-server: which interface, which pool, lease time), the network (/ip/dhcp-server/network: gateway, DNS, NTP, domain, options sent to clients in that subnet) and the pool (/ip/pool: which addresses exist). The server's interface must have an IP address in the network, or the server is invalid.

Server

/ip/address/add address=192.168.88.1/24 interface=bridge1
/ip/pool/add name=dhcp_pool ranges=192.168.88.10-192.168.88.254
/ip/dhcp-server/add name=dhcp1 interface=bridge1 address-pool=dhcp_pool lease-time=30m disabled=no
/ip/dhcp-server/network/add address=192.168.88.0/24 gateway=192.168.88.1 dns-server=192.168.88.1
/ip/dhcp-server/lease/print
Installs
5
GitHub Stars
1
First Seen
3 days ago