Panduan Langkah-demi-Langkah
Konfigurasi
Antarmuka Jaringan
Referensi Kelas IP Address
| Kelas | Rentang IP | Default Subnet |
|---|---|---|
| Kelas A | 1.0.0.0 – 126.255.255.255 | 255.0.0.0 (/8) |
| Kelas B | 128.0.0.0 – 191.255.255.255 | 255.255.0.0 (/16) |
| Kelas C | 192.0.0.0 – 223.255.255.255 | 255.255.255.0 (/24) |
Langkah Pelaksanaan
1
Pengaturan Adapter VirtualBox
- Buka Pengaturan (Settings) → Jaringan (Network)
- Adapter 1: Atur ke NAT
- Adapter 2: Host-Only → Advance → Mode Promiscuous: Izinkan Semua
2
Konfigurasi IP Address
Perintah Terminal
nano /etc/network/interfaces
Isi Konfigurasi
allow-hotplug enp0s3
iface enp0s3 inet dhcp
auto enp0s8
iface enp0s8 inet static
address 192.168.10.28
netmask 255.255.255.03
Restart Layanan Jaringan
Jalankan perintah berikut untuk menerapkan perubahan konfigurasi yang telah disimpan.
Perintah Restart
systemctl restart networking
4
Konfigurasi Host Windows
1. Buka Network & Sharing Center di Control Panel
2. Pilih Change adapter settings
3. Klik kanan pada VirtualBox Host-Only Network → Properties
4. Pilih IPv4 → Klik Properties
IP Address: 192.168.10.2
Subnet Mask: 255.255.255.0
Gateway: 192.168.10.28
DNS Server: 192.168.10.28