- Ip address add address=192.168.1.1/24 interface=ether1 (modem)
- Ip address add address=192.168.2.1/24 interface= ether2 (Lan)
- Ip address add address=192.168.3.1/24 interface= ether3 (Wlan)
Ip route add gateway=192.168.1.1 (sama dengan ip modem)
3. Setting dns
Ip dns set server =202.134.1.10,202.134.0.155
allow-remote-requests=yes
4. Menambahkan nat (masquerade) pada router
Ip firewall nat add chain=srcnat action=masquerade
out-interface=ether1
5. Menyetting server DHCP
Membuat ip address pool(menentukan jarak client)
- Ip pool add name=dhcp-lan ranges=192.168.2.2-192.168.254
- Ip pool add name=dhcp-wlan ranges=192.168.3.2-192.168.3.254
6. Menambahkan DHCP network
- Ip dhcp-server network add address=192.168.2.0/24 gateway=192.168.2.1 dns-server=202.134.1.10,202.134.0.155
- Ip dhcp-server network add address=192.168.3.0/24 gateway=192.168.3.1 dns-server=202.134.1.10,202.134.0.155
7. Menambahkan server dhcp(hapus yang default terlebih dahulu)
- Ip dhcp-server add name=Local disabled=no interface=ether2 address-pool=dhcp-lan
- Ip dhcp-server add name=wireless disabled=no interface=ether3 address-pool=dhcp-wlan
Nb:- cara mereset router=system reset
-cara menghapus
perintah=remove (perintah yang ingin dihapus
-(/24=client
yang digunakan sampai 254) (/26=client
yang digunakan sampai 62)