Results 1 to 7 of 7

Thread: /etc/network/interfaces misplaced options

  1. #1
    Join Date
    Jan 2008
    Location
    USA
    Beans
    751
    Distro
    Ubuntu 12.10 Quantal Quetzal

    /etc/network/interfaces misplaced options

    Hi,

    I installed a new 11.04 Ubuntu Server with basic server, dns, lamb, etc. Networking is giving me trouble. I am unable to setup static IP and Dyndns is not working. Dyndns gives me no error but networking restart gives me following error. I can reach server locally using pre-assigned local IP address but not my Dyndns account or localhost/ or ubuntu/.

    Code:
    sudo /etc/init.d/networking restart
     * Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces
     * Reconfiguring network interfaces...                                          /etc/network/interfaces:2: misplaced option
    ifdown: couldn't read interfaces file "/etc/network/interfaces"
    /etc/network/interfaces:2: misplaced option
    ifup: couldn't read interfaces file "/etc/network/interfaces"
    Code:
    cat /etc/network/interfaces
    # 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 192.168.0.86
    netmask 255.255.255.0
    gateway 192.168.0.1
    Code:
    cat /etc/resolv.conf
    nameserver 192.168.0.1
    nameserver 8.8.8.8
    nameserver 8.8.4.4
    Code:
    cat /etc/hosts
    127.0.0.1       localhost
    127.0.1.1       ubuntu
    
    # The following lines are desirable for IPv6 capable hosts
    ::1     ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    Code:
    donnie@ubuntu:~$ sudo cat /etc/ddclient.conf
    # Configuration file for ddclient generated by debconf
    #
    # /etc/ddclient.conf
    
    #protocol=dyndns2
    #use=web, web=checkip.dyndns.com, web-skip='IP Address'
    #server=members.dyndns.org
    #login=
    #password=''
    
    ## ddclient configuration file
    daemon=600
    
    # check every 600 second
    syslog=yes
    
    # log update msgs to syslog
    mail-failure=sudhirskhanger@gmail.com
    
    # Mail failed updates to user
    pid=/var/run/ddclient.pid
    
    # record PID in file.
    ## Detect IP with our CheckIP server
    
    use=web, web=checkip.dyndns.com/, web-skip='IP Address'
    
    ## DynDNS username and password here
    login=username
    password=password
    
    ## Default options
    protocol=dyndns2
    server=members.dyndns.org
    
    ## Dynamic DNS hosts
    myserver.dyndns.org
    Amor cuerdo, no es Amor.

  2. #2
    Join Date
    Jun 2007
    Beans
    1,941

    Re: /etc/network/interfaces misplaced options

    Quote Originally Posted by donniezazen View Post
    Hi,

    I installed a new 11.04 Ubuntu Server with basic server, dns, lamb, etc. Networking is giving me trouble. I am unable to setup static IP and Dyndns is not working. Dyndns gives me no error but networking restart gives me following error. I can reach server locally using pre-assigned local IP address but not my Dyndns account or localhost/ or ubuntu/.
    First, it would appear you haven't modified the ddclient.conf file. Make sure you populate it with the correct information.

    It also appears your /etc/network/interfaces file has a line that should be commented, but it is not. Look at line 2... That should be part of line 1.

    Code:
    # This file describes the network interfaces available on your system
     and how to activate them. For more information, see interfaces(5).
    Should all be one line.

  3. #3
    Join Date
    Jun 2011
    Location
    Atlanta Georgia
    Beans
    1,769
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: /etc/network/interfaces misplaced options

    If you look at your interfaces file you will notice the first line wraps and is not commented, comment out the second line or make it one line.

    That I am pretty sure is the problem.

    EDIT : got beat to the punch :-/ lol

  4. #4
    Join Date
    Jan 2008
    Location
    USA
    Beans
    751
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: /etc/network/interfaces misplaced options

    Thank you both. commenting out the wrapped up line made everything work.

    arrrghhh, i have modified ddclient.conf but removed sensitive information.
    Amor cuerdo, no es Amor.

  5. #5
    Join Date
    Jun 2007
    Beans
    1,941

    Re: /etc/network/interfaces misplaced options

    Quote Originally Posted by donniezazen View Post
    Thank you both. commenting out the wrapped up line made everything work.

    arrrghhh, i have modified ddclient.conf but removed sensitive information.
    Understood, and understandable.

    Glad you got it working .

  6. #6
    Join Date
    Apr 2008
    Beans
    7

    Smile Re: /etc/network/interfaces misplaced options

    Ohhhh that's it! I just installed Ubuntu 12.04 TLS and I had a same problem.
    Thanks
    Quote Originally Posted by arrrghhh View Post
    First, it would appear you haven't modified the ddclient.conf file. Make sure you populate it with the correct information.

    It also appears your /etc/network/interfaces file has a line that should be commented, but it is not. Look at line 2... That should be part of line 1.

    Code:
    # This file describes the network interfaces available on your system
     and how to activate them. For more information, see interfaces(5).
    Should all be one line.

  7. #7
    Join Date
    Dec 2010
    Location
    La La Land
    Beans
    11
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: /etc/network/interfaces misplaced options

    Quote Originally Posted by minja View Post
    Ohhhh that's it! I just installed Ubuntu 12.04 TLS and I had a same problem.
    Thanks
    I had the exact same problem.

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
  •