Results 1 to 3 of 3

Thread: Unsuccessful attempts to add some static IPs

Hybrid 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.

  2. #2
    Join Date
    Apr 2008
    Beans
    25

    Re: Unsuccessful attempts to add some static IPs

    iface eth0 inet static
    address 192.168.1.222

    iface eth0 inet static
    address 192.168.111.222

    why is eth0 defined twice? Shouldn't the second one be eth1? This at least also seems to be the complaint from the OS, "/etc/network/interfaces:13: duplicate interface". Just for fun try changing the second eth0 to eth1 and see what happens.

  3. #3
    Join Date
    Jun 2008
    Beans
    61

    Re: Unsuccessful attempts to add some static IPs

    As I understand eth represents a physical networks card. I have only one physical interface on my system. Besides that I have moved the host machine to the basement and no display or keyboard is connected to. The only option to manage the system is SSH – Putty.
    If I do something wrong with network I’ll be forced to do a lot of physical work to recreate the system.

    Generally I need to bind only one interface to some networks with different IP ranges.
    Last edited by volmark; June 8th, 2008 at 07:52 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
  •