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
Bookmarks