LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-29-2009, 12:45 PM   #1
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,681
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Wired network static IP default route won't save correctly in Ubuntu 9.10


In Ubuntu 9.10, when configuring a default route under "System > Preferences > Network Connections > Wired > Auto eth0 > Edit > IPv4 Settings > Routes" it does not always work right. Sometimes the route just doesn't show up. Sometimes it does show up but the gateway is set to 0.0.0.0 (just like a local LAN would be). When it didn't show up, the entry was lost from the "Routes" submenu. When it did show up wrong, it was in that submenu correctly (so it seems it merely configured the network wrong).

I got it to work accidentally by a means that doesn't seem right. When I manually configured the ethernet interface with "ifconfig" and set the route with "route add", everything works ... for a while. Then the network connection goes away. Apparently the network manager in Gnome decided to "refresh" the system from what it thought were appropriate settings. It even did this when it thought the network should be done (by taking it down).

But here's what made it work. I did the manual config complete with the default route while the network manager believed the network was up. I went into "System > Preferences > Network Connections > Wired > Auto eth0 > Edit > IPv4 Settings > Routes" and added nothing (nothing was there) and clicked "OK". Then in "Editing Auto eth0" I clicked "Apply". The effect should have been to change nothing. However, NOW it seems the default route is present (and stays even over a reboot). It seems the route actually had to be in the kernel's route table for it to get saved, and the network manager or the network configuration tool would not set it. Yet it seems to have saved it from there.

OK, the LAN configuration does have a Gateway entry, and that is set to the default gateway. Is that really supposed to be a default route shortcut? It still didn't work even with that set (to the same gateway).

Note that there is nothing wrong with the network or the kernel since manual configuration with the command line tools works exactly as expected. It's the GUI tool that seems to be getting things confused (or some other tools it might be using, such as saving the configuration information wherever it saves it).

This happened on 3 different machines, all running Ubuntu 9.10 64-bit.
 
Old 12-29-2009, 10:13 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Hi Skaperen,

I'm a little confused... are you trying to add a default gateway to an interface that uses dhcp ? ..

Also.. I may be wrong but I thought 'Auto' interfaces were only active while you are logged on, I don't think they were supposed to survive a reboot unless you check 'Available to all users'.

cheers
 
  


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
non-default route to static host through gateway for ppp failover testing jrscandora Linux - Networking 3 04-21-2009 02:20 AM
Ubuntu Studio 8.10: Wired Internet/USB ports not working correctly Kendob Linux - General 2 03-16-2009 02:33 PM
Dual IP's on Ubuntu 8.10 but route add does not work correctly wvw Linux - Networking 6 02-09-2009 09:43 PM
add a static route in Network init files Ghitza Linux - Networking 1 11-19-2004 05:26 AM
Route to subnet exists but I get "Network unreachable" when adding default route fciuffani Linux - Networking 4 08-18-2004 02:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:01 AM.

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