Network/interfaces
From Attie's Wiki
(Difference between revisions)
m (Created page with 'Below is the contents of a sample <code>/etc/network/interfaces</code> file. This machine is a VM configured like so: * First network connection is NAT'ed (to gain access to the…') |
m |
||
Line 18: | Line 18: | ||
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 | ||
</source> | </source> |
Revision as of 11:16, 13 March 2013
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