Network/interfaces
From Attie's Wiki
(Difference between revisions)
m |
m |
||
Line 17: | Line 17: | ||
auto eth1 | auto eth1 | ||
iface eth1 inet static | iface eth1 inet static | ||
− | address 10.150.129.113 | + | address 10.150.129.113 |
− | netmask 255.255.255.240 | + | netmask 255.255.255.240 |
+ | gateway 10.150.129.1 | ||
+ | dns-nameservers 10.150.129.1 | ||
</source> | </source> |
Revision as of 09:53, 12 May 2014
Below is the contents of a sample /etc/network/interfaces
file.
This machine is a VM configured like so:
- First network connection is NAT'ed (to gain access to the 'trusted' company network)
- The interface is configured to use DHCP
- Second network connection is Bridged (to allow access to a tiny subnet with the target development board on)
- The interface is configured to use the IP address/mask
10.150.129.113/27
- The gateway is set to
0.0.0.0
to ensure that no traffic is routed through this interface if it is not destined for the configured subnet
- The interface is configured to use the IP address/mask
auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp auto eth1 iface eth1 inet static address 10.150.129.113 netmask 255.255.255.240 gateway 10.150.129.1 dns-nameservers 10.150.129.1