Lab Super Mikrotik 8

Superlab 8

Topology



Pertama konfigurasi IP Address dan Bridge pada R1
[admin@IDN-R1]>
/interface bridge
add name=r1-br
/interface bridge port
add bridge=r1-br interface=ether2
add bridge=r1-br interface=ether3
/ip address
add address=19.19.19.1/16 interface=ether1 network=19.19.0.0
add address=192.168.10.1/24 interface=ether4 network=192.168.10.0
add address=192.168.100.1/24 interface=r1-br network=192.168.100.0
Konfigurasi DHCP Server pada R1
[admin@IDN-R1]
/ip pool
add name=dhcp_pool1 ranges=192.168.100.2-192.168.100.254
/ip dhcp-server
add address-pool=dhcp_pool1 disabled=no interface=r1-br lease-time=1d name=dhcp1
/ip dhcp-server network
add address=192.168.100.0/24 dns-server=192.168.100.1 gateway=192.168.100.1

Konfigurasi PPPoE server pada R1
[admin@IDN-R1]>
/ip pool
add name=pppoe ranges=192.168.10.5-192.168.10.10
/ppp profile
add local-address=192.168.10.1 name=pppoe-prof1 remote-address=pppoe
/interface pppoe-server server
add default-profile=pppoe-prof1 interface=ether4 service-name=pppoe-server disable=no
/ppp secret
add name=coba password=123 profile=pppoe-prof1 service=pppoe
Konfigurasi NAT pada PPPoE agar dapat terhubung ke Internet
[admin@IDN-R1]>
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1 src-address=\
    192.168.10.5-192.168.10.10
Lalu uji PPPoE client lewan vm windows xp



Lanjut pada Router berikutnya, pertama berikan alamat IP pada masing-masing interface
[admin@IDN-R2]
/ip address
add address=19.19.19.2/16 interface=ether1 network=19.19.0.0
add address=192.168.20.1/24 interface=ether3 network=192.168.20.0
add address=192.168.200.1/24 interface=ether2 network=192.168.200.0

Konfigurasi DHCP Server pada R2
/ip pool
add name=dhcp_pool ranges=192.168.200.10-192.168.200.20
/ip dhcp-server
add address-pool=dhcp_pool disabled=no interface=ether2 name=server1
/ip dhcp-server network
add address=192.168.200.0/24 dns-server=8.8.8.8 gateway=192.168.200.1

Testing dhcp client pada masing-masing PC
PC3> dhcp
DORA IP 192.168.200.20/24 GW 192.168.200.1

PC4> dhcp
DORA IP 192.168.200.19/24 GW 192.168.200.1
Konfigurasi DNS Static pada Router ini
/ip dns
set allow-remote-requests=yes servers=8.8.8.8
/ip dns static
add address=192.168.200.1 name=www.kompas.com
add address=192.168.200.1 name=www.detik.com
Blokir situs situs tertentu
/ip firewall filter
add action=log chain=input in-interface=ether2 log-prefix=log_ping protocol=\
    icmp
add action=drop chain=forward content=facebook
add action=drop chain=forward content=twitter
add action=drop chain=forward content=detik
add action=drop chain=forward dst-address-list=instagram.com

Komentar