KONFIGURASI IP SERVER
allow-hotplug eth0
iface eth0 inet static
address 172.16.9.1
netmask 255.255.255.128
network 172.16.9.0
broadcast 172.16.9.127
gateway 172.16.9.126
dns-nameservers 172.16.9.1
KONFIGURASI IP ROUTER
allow-hotplug eth0
iface eth0 inet static
address 172.16.9.126
netmask 255.255.255.128
network 172.16.9.0
broadcast 172.16.9.127
gateway 172.16.9.126
dns-nameservers 172.16.9.1 8.8.8.8
allow-hotplug eth1
iface eth1 inet static
address 10.9.0.1
netmask 255.255.255.240
network 10.9.0.0
broadcast 10.9.0.15
gateway 10.9.0.1
dns-nameservers 172.16.9.1 8.8.8.8
allow-hotplug eth2
iface eth2 inet static
address 192.168.1.20
netmask 255.255.255.0
gateway 192.168.1.1
NB: Untuk IP router yg eth1 digunakan untuk client yg nantinya digunakan pada dhcp-server
Untuk IP router yg eth2 digunakan untuk internet jadi bisa di static/DHCP, tp jika DHCP
hanya berhenti pada "....inet dhcp"
VIRTUALISASI IP / ALIASSENG
#(ALIASSENG digunakan jika kita kekurangan LAN card atau ethernet, tp dlm hal ini kita hrus mnggunakan switch / hub )
allow-hotplug eth0
iface eth0 inet static
address.......
...............
................
allow-hotplug eth0:1
iface eth0:1 static
address......
NB: Jadi untuk hal ini kita hanya perlu menambahkan ":1 / :2 / :3 dan sterusnya"
No comments:
Post a Comment