LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 06-14-2010, 01:45 PM   #1
davidstvz
Member
 
Registered: Jun 2008
Posts: 405

Rep: Reputation: 31
Network settings fouled up


I've got a laptop that was recently being used in India, and now that the professor is back I need to reset the network connection to work with our system again. However, I'm having quite a bit of trouble. I've gotten it working manually (by editing the /etc/network/interfaces file, running ifup and then manually adding the gateway to the routing table using the route command), but it won't automatically start with the system.

Simply using the System tool for Network Connections has no effect.

After a fresh reboot, if I use route or netstat -nr there is an extra entry that normally isn't present on our other machines (169.254.0.0). I can't even find a file where that number is stored. It's not in /etc/networks or /etc/network/interfaces

Is there anyway to just erase the existing settings and start fresh?

EDIT

Well I just fixed it with an ugly hack (going into /etc/init.d/networking and adding 'ifup eth0' and 'route add default gw [my gateway ip]' just before the exit command, but I'd still like to get a better idea of what's going on if anyone has some info. Maybe I can do it the right way.

Last edited by davidstvz; 06-14-2010 at 02:16 PM.
 
Old 06-14-2010, 02:21 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
You need to tell us what distro you are using. By the presence of /etc/network/interfaces, it's Debian-derived, but that's all we know.

Post the contents of /etc/network/interfaces. You probably want "auto eth0" instead of "iface eth0" or whatever your eth0 stanza starts with.

As for 169.254.0.0:
Quote:
Comment: This is the "link local" block. It was set
Comment: aside for this special use in the Standards
Comment: Track document, RFC 3927 and was further
Comment: documented in the Best Current Practice
Comment: RFC 5735, which can be found at:
Comment: http://www.rfc-editor.org/rfc/rfc3927.txt
Comment: http://www.rfc-editor.org/rfc/rfc5735.txt
Comment: It is allocated for communication between hosts
Comment: on a single link. Hosts obtain these addresses
Comment: by auto-configuration, such as when a DHCP
Comment: server cannot be found.
Comment: A router MUST NOT forward a packet with an IPv4
Comment: Link-Local source or destination address,
Comment: irrespective of the router's default route configuration
Comment: or routes obtained from dynamic routing protocols.
Comment: A router which receives a packet with an IPv4
Comment: Link-Local source or destination address MUST NOT
Comment: forward the packet. This prevents forwarding of
Comment: packets back onto the network segment from which
Comment: they originated, or to any other segment.
 
1 members found this post helpful.
Old 06-14-2010, 02:24 PM   #3
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
Code:
"Autoconfiguration" IP Addresses:
        169.254.0.0 - 169.254.255.255
Addresses in the range 169.254.0.0 to 169.254.255.255 are used automatically by some PCs and Macs when they are configured to use IP, do not have a static IP Address assigned, and are unable to obtain an IP address using DHCP.

This traffic is intended to be confined to the local network, so the administrator of the local network should look for misconfigured hosts. Some ISPs inadvertently also permit this traffic, so you may also want to contact your ISP. This is documented in RFC 5735.
This isn't an error most times, it usually happens when it can't correctly dhcp an address. Check your settings to see what is running on startup...

What is in your interfaces file?
 
1 members found this post helpful.
Old 06-15-2010, 09:37 AM   #4
davidstvz
Member
 
Registered: Jun 2008
Posts: 405

Original Poster
Rep: Reputation: 31
The distro is some version of Ubuntu (that's why I'm in the Ubuntu forum).

For the manual config, it may be as simple as changing iface to auto. I'll try it.

I'm still wondering where the GUI networking tool stores its info. I was swapping between two IPs (to make sure there wasn't a conflict) and the networking tool definitely isn't reading the /etc/network/interfaces file.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Who Fouled My Carpet...? LXer Syndicated Linux News 0 02-03-2008 01:10 PM
Network settings / DNS Server settings uid0sd Linux - Newbie 3 02-22-2007 03:39 PM
Network Settings kunkumd Linux - Software 1 05-06-2005 12:53 PM
Backorder or fouled up shipping? jabberwock486 Linux - Distributions 0 06-08-2004 03:23 PM
Fouled Linux Install, Won't boot into windows! sxa Linux - General 6 12-29-2003 05:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration