Network/interfaces

From Attie's Wiki
Revision as of 11:16, 13 March 2013 by Attie (Talk | contribs)

Jump to: navigation, search

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
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
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox