Results 1 to 3 of 3

Thread: Unsuccessful attempts to add some static IPs

Threaded View

  1. #1
    Join Date
    Jun 2008
    Beans
    61

    Angry Unsuccessful attempts to add some static IPs

    Added following lines to /etc/network/interfaces

    # The loopback network interface
    auto lo
    iface lo inet loopback

    # The primary network interface
    auto eth0
    iface eth0 inet dhcp

    iface eth0 inet static
    address 192.168.1.222
    netmask 255.255.255.0
    gateway 192.168.1.4

    iface eth0 inet static
    address 192.168.111.222
    netmask 255.255.255.0
    gateway 192.168.111.111

    Got following error messages trying restart with sudo /etc/init.d/networking restart

    * Reconfiguring network interfaces... /etc/network/interfaces:13: duplicate interface
    ifdown: couldn't read interfaces file "/etc/network/interfaces"
    /etc/network/interfaces:13: duplicate interface
    ifup: couldn't read interfaces file "/etc/network/interfaces"

    My /etc/resolv.conf looks like

    search cust.cdnet.dk
    nameserver 85.218.184.3
    nameserver 85.218.129.11
    nameserver 85.218.128.141

    What I’m doing wrong????????????
    Last edited by volmark; June 8th, 2008 at 06:38 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •