DHCP Server and Relay Agent Configuration on Mikrotik Router

Опубликовано: 26 Январь 2023
на канале: Aung Khine
673
13

DHCP- Server Config
ip/pool/add name=IT ranges=192.168.0.1-192.168.0.253
ip/pool/add name=HR ranges=192.168.1.1-192.168.1.253
ip/dhcp-server/network add address=192.168.0.0/24 dns-server=8.8.8.8,8.8.4.4 domain=IT.Local gateway=192.168.0.254
ip/dhcp-server/network add address=192.168.1.0/24 dns-server=8.8.8.8,8.8.4.4 domain=HR.Local gateway=192.168.1.254
Ip/dhcp-server/add address=192.168.0.0/24 dns-server=8.8.8.8,8.8.4.4 domain=IT.Local gateway=192.168.0.254
Ip/dhcp-server/add address=192.168.1.0/24 dns-server=8.8.8.8,8.8.4.4 domain=HR.Local gateway=192.168.1.254

DHCP-Relay Config
ip/dhcp-relay/add dhcp-server=10.0.0.1 disabled=no interface=IT local-address=192.168.0.254 name=IT
ip/dhcp-relay/add dhcp-server=10.0.0.1 disabled=no interface=HR local-address=192.168.1.254 name=HR