1. Konekkan Cable UTP ke eth 1 (ke internet) beri koment WAN 1
2. Eth 2 akan dikoneksikan ke swicth/router2 beri komen swicth 3. Eth 3 utk konfigurasi ( IP LAN ) Ip address add address=192.168.1.1/30 interface=ether3 Buka local area connection masukkan ip address =192.168.1.2 Subnetmask =255.255.255.252 Default gateway =192.168.1.1 4. Beri ip address di masing2 eth - IP address add address=192.168.30.253/24 inteface=ether1 (dari ISP) - Ip router add gateway 192.168.30.254 - IP dns set servers 8.8.8.8,8.8.4.4 allow remote request yes 5. Ip firewall NAT add chain=srcnat out-interface=ether1 action=masquerade Ping ke DNS ping 8.8.8.8 Ping ke google ping google.com 6. Masuk ke 2 VLAN - Interface vlan add name=VLAN1-siswa vlan-id=10 interface = ether2 - Interface vlan add name=VLAN2-Guru vlan-id=20 interface = ether2 7. Isikan IP di masing-masing VLAN - Ip address add address=192.168.40.1/24 interface=VLAN1-Siswa - Ip address add address=192.168.60.1/24 interface=VLAN2-Guru 8. Menambahkan IP utk interface WLAN - Ip address add address=192.168.20.1/24 interface=WLAN1 9. Aktifkan DHCP Server - Ip DHCP-SERVER setup interface =VLAN1-Siswa Address to give out =192.168.40.10- 192.168.40.50 - Ip DHCP-SERVER setup interface =VLAN2-Guru Address to give out =192.168.60.10- 192.168.60.50 - Ip DHCP-SERVER setup interface =WLAN1 Address to give out =192.168.20.10- 192.168.20.50 10. Aktifkan WLAN - Interface wireless enable WLAN1 - Interface wireless security-profile add name= pasword mode= dynamic-keys auntentication-types=wpa-psk,wpa2-psk wpa-pre-shared-key=12345678 wpa2-pre- shared-key=12345678 - Interface wireless set mode=ap-bridge SSID=UKK_no Absen security profile=pasword 11. Mengaktifkan HOSTPOT - Ip hotspot setup Inteface=WLAN1 Masquerade=yes/no Select certificate=none Dnsname= portalsmk.sch.id Admin=admin 12. Mengubah halaman login - Ip hotspot set login-by=http-chap number=1 - File print ( cari nomor tulisan hotspot/login.html ) - File edit number=(....) value-name=contents enter - Cari tulisan selamat dating lalu ubah “SELAMAT DATANG DI HOTSPOT SMK xxxx” CTRL + O 13. Menambahkan 3 user - Ip hotspot user profile add name=kepalasekolah shared-user=5 rate-limit=512k/512k - Ip hotspot user profile add name=guru shared-user=5 rate-limit=256k/256k - Ip hotspot user profile add name=siswa shared-user=5 rate-limit=128k/128k
Menambahkan password ke 3 user
- Ip hotspot user add name=kepalasekolah password=123 profile=kepalasekolah
- Ip hotspot user add name=guru password=456 profile=guru - Ip hotspot user add name=siswa password=789 profile=siswa