# nano /etc/network/interfaces
auto lo
iface lo net loopback
#untuk server
auto eth0
iface eth0 inet static
address 192.168.3.109
netmask 255.255.255.0
gateway 192.168.3.1
network 192.168.3.0
broadcast 192.168.3.255
dns-nameservers 192.168.3.1 124.81.119.50
#untuk client
auto eth1
iface eth1 inet static
address 192.168.55.1
netmask 255.255.255.0
gateway 192.168.55.1
# jika ip eth1 lebih dari satu maka tambahkan
auto eth1:0
iface eth1:0 inet static
address 200.100.4.66
netmask 255.255.255.0
auto eth1:1
iface eth1:1 inet static
address 200.100.4.67
netmask 255.255.255.0
kemudian simpan menggunakan ctrl+x
restart jaringan
/etc/init.d/networking restart
auto lo
iface lo net loopback
#untuk server
auto eth0
iface eth0 inet static
address 192.168.3.109
netmask 255.255.255.0
gateway 192.168.3.1
network 192.168.3.0
broadcast 192.168.3.255
dns-nameservers 192.168.3.1 124.81.119.50
#untuk client
auto eth1
iface eth1 inet static
address 192.168.55.1
netmask 255.255.255.0
gateway 192.168.55.1
# jika ip eth1 lebih dari satu maka tambahkan
auto eth1:0
iface eth1:0 inet static
address 200.100.4.66
netmask 255.255.255.0
auto eth1:1
iface eth1:1 inet static
address 200.100.4.67
netmask 255.255.255.0
kemudian simpan menggunakan ctrl+x
restart jaringan
/etc/init.d/networking restart
0 komentar:
Posting Komentar