• Home
  • Cisco
  • Exchange
  • Linux
  • Navision
  • Network
  • Virtualization
  • Windows
  • About
  •  

    /etc/network/interfaces configuration example


    Example 1 – Static IP

    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).

    # The loopback network interface
    auto lo
    iface lo inet loopback

    # The primary network interface
    auto eth0
    iface eth0 inet static
    address 10.0.0.40
    netmask 255.255.255.0
    gateway 10.0.0.1

    Example 2 – DHCP
    auto eth0 iface eth0 inet dhcp

    Remember the DNS configuration in /etc/resolv.conf
    nameserver 195.184.96.2
    nameserver 213.173.225.86

    Tips
    Change (spoof) the MAC
    ifconfig eth0 hw ether 01:23:45:67:89:AB