Konfigurasi DHCP Relay pada Router MikroTik
Skenario
jaringan mengkonfigurasikan DHCP Server dijalankan pada Router GW,
namun akan melayani network 192.168.1.0/24 dan 192.168.2.0/24.
Konfigurasi jaringan ini mengharuskan Router A menjadi DHCP Server
Relay.
Konfigurasi pada Router-GW adalah sebagai berikut :
[admin@Router-GW] > ip pool add name=network1 ranges=192.168.1.50-192.168.1.80
[admin@Router-GW] > ip pool add name=network2 ranges=192.168.2.50-192.168.2.80
[admin@Router-GW] > ip pool print
# NAME RANGES
0 network1 192.168.1.50-192.168.1.80
1 network2 192.168.2.50-192.168.2.80
address-pool=network2 relay=192.168.2.1 disabled=no [admin@Router-GW] > ip dhcp-server add name=server1 interface=ether2 \
address-pool=network2 relay=192.168.2.1 disabled=no [admin@Router-GW] > ip dhcp-server print Flags: X – disabled, I – invalid # NAME INTERFACE RELAY ADDRESS-POOL LEASE-TIME ADD-ARP 0 server1 ether2 192.168.1.1 network1 3d 1 server2 ether2 192.168.2.1 network2 3d [admin@Router-GW] > ip dhcp-server network add \
address=192.168.1.0/24 gateway=192.168.1.1 dns-server=192.168.1.1,10.10.10.6 [admin@Router-GW] > ip dhcp-server network add \
address=192.168.2.0/24 gateway=192.168.2.1 dns-server=192.168.2.1,10.10.10.6 [admin@Router-GW] > ip dhcp-server network print
# ADDRESS GATEWAY DNS-SERVER WINS-SERVER DOMAIN 0 192.168.1.0/24 192.168.1.1 192.168.1.1 10.10.10.6 1 192.168.2.0/24 192.168.2.1 192.168.2.1 10.10.10.6
Sedangkan untuk Router-A yang hanya berfungsi sebagai DHCP Relay, konfigurasi yang harus dilakukan adalah sebagai berikut :
[admin@Router-A] > ip
dhcp-relay add name=server1-relay interface=ether2
dhcp-server=10.10.10.6 local-address=192.168.1.1 disabled=no
[admin@Router-A] > ip
dhcp-relay add name=server2-relay interface=ether3
dhcp-server=10.10.10.6 local-address=192.168.2.1 disabled=no
[admin@Router-A] > ip dhcp-relay print
Flags: X – disabled, I – invalid
# NAME INTERFACE DHCP-SERVER LOCAL-ADDRESS
0 server1-relay ether2 10.10.10.6 192.168.1.1
1 server2-relay ether3 10.10.10.6 192.168.2.1
{ 0 komentar... Views All / Send Comment! }
Posting Komentar