auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
address 192.172.1.1
netmask 255.255.255.0
auto eth2
iface eth2 inet static
address 192.172.2.1
netmask 255.255.255.0
auto eth0
iface eth0 inet static
address 192.172.1.2
netmask 255.255.255.0
gateway 192.172.1.1
auto eth0
iface eth0 inet static
address 192.172.1.3
netmask 255.255.255.0
gateway 192.172.1.1
auto eth0
iface eth0 inet static
address 192.172.2.2
netmask 255.255.255.0
gateway 192.172.2.1
Instalasi Nodejs and Npm (Server)
echo "nameserver 192.168.122.1" > /etc/resolv.conf
apt-get update
apt install nodejs npm git -y
Instalasi Nodejs and Npm (Client)
echo "nameserver 192.172.1.2
nameserver 192.168.122.1
" > /etc/resolv.conf
apt-get update
apt install nodejs npm git -y