PDA

View Full Version : [ubuntu] Newbie need help with network not working



lollylegs
November 17th, 2008, 09:33 PM
* Reconfiguring network interfaces... /etc/network/interfaces:11: misplaced option
ifdown: couldn't read interfaces file "/etc/network/interfaces"
/etc/network/interfaces:11: misplaced option
ifup: couldn't read interfaces file "/etc/network/interfaces"

I got the above when I tried to restart networking after getting message that networking not starting correctly.

marea@ubuntu:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:d0:b7:c0:bd:4e
inet addr:10.1.1.2 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1111 errors:0 dropped:0 overruns:0 frame:0
TX packets:1216 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1024409 (1000.3 KB) TX bytes:215098 (210.0 KB)

I cant even edit interfaces - get message NO SUCH DEVICE - even though
I do have an /etc/network/interfaces file

Would appreciate any help
Regards
Marea (lollylegs)
Australia

Titan8990
November 17th, 2008, 10:12 PM
Mind posting the contents of /etc/network/interfaces

lollylegs
November 18th, 2008, 02:14 PM
hi Titan
Thanks for answering my post.
Sorry about delay getting back to you, but upgraded to Intrepid thinking this might solve my problem, but it didn't, so here's my interfaces file as requested.

# 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 dhcp


Also this is my resolv.conf

# Generated by NetworkManager
nameserver 10.1.1.1

Thanks again for trying to help me.

Because I keep getting interfaces fail message.


Regards
Marea

handydan918
November 18th, 2008, 03:03 PM
just curious...
What does
sudo dhclient give you for output?


And what about
sudo ping 10.1.1.1?

iponeverything
November 18th, 2008, 04:07 PM
you might be missing a newline. Do:


sudo echo >> /etc/network/interfaces


This will add a newline to the end of the file.