/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
Re: /etc/network/interfaces misplaced options
Quote:
Originally Posted by
donniezazen
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.
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
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.
Re: /etc/network/interfaces misplaced options
Quote:
Originally Posted by
donniezazen
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 ;).
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
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.
Re: /etc/network/interfaces misplaced options
Quote:
Originally Posted by
minja
Ohhhh that's it! I just installed Ubuntu 12.04 TLS and I had a same problem.
Thanks
I had the exact same problem.