· 7 years ago · Jan 13, 2018, 11:46 PM
1#interfaces(5) file used by ifup(8) and ifdown(8)
2auto lo
3iface lo inet loopback
4auto eth1
5iface eth1 inet static
6 address 192.168.1.11
7 netmask 255.255.255.0
8
9sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
10sudo apt-get install iptables-persistent
11
12#interfaces(5) file used by ifup(8) and ifdown(8)
13auto lo
14iface lo inet loopback
15auto eth0
16iface eth0 inet static
17 address 192.168.1.12
18 netmask 255.255.255.0
19 gateway 192.168.1.11
20 dns-nameservers 8.8.8.8 10.1.0.7 85.122.16.1