Advertisement

12.23.2005 at 11:05AM PST, ID: 21674519
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Gateway not persisting in debian
Tags: debian, gateway, route, persistent
I have a basic debian installation on a machine with two ethernet cards (I don't know if that's an issue).  eth1 is currently kept down and eth0 is used for all communication.

The machine is using a static IP on eth0 and when booted it looses all access to computers beyond teh gateway.  Not surprisingly

route add default gateway 192.168.100.1

brings everything up nicely.  The odd part is that the gatway is set up in /etc/network/interfaces, but it still loses this when rebooted (which makes ssh'ing in from outside the network problematic).  It looks like the broadcast setting is also being ignored.

Any ideas?
Start your free trial to view this solution
Question Stats
Zone: Networking
Question Asked By: KurtVon
Solution Provided By: jlevie
Participating Experts: 2
Solution Grade: A
Views: 0
Translate:
Loading Advertisement...
12.23.2005 at 02:32PM PST, ID: 15544914

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
12.28.2005 at 07:55AM PST, ID: 15563121

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
12.28.2005 at 08:42AM PST, ID: 15563473

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
12.28.2005 at 12:08PM PST, ID: 15565211

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.18.2006 at 01:52PM PST, ID: 15733428

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.19.2006 at 12:55PM PST, ID: 15742760

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.19.2006 at 01:52PM PST, ID: 15743415

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.19.2006 at 02:09PM PST, ID: 15743568

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
12.23.2005 at 02:32PM PST, ID: 15544914

Rank: Sage

A linux kernel will drop a route if the target of the route is unreachable. It sounds like there might be a problem with the router or the NIC on this machine.
 
12.28.2005 at 07:55AM PST, ID: 15563121
My experience is that routing tables are not persistent, but I don't know about debian.  I know in RHEL I always have to add the route using the /etc/rc.local script.  I just edit that file adding the route at the end like such:

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
route add default  gw 192.168.100.1
~                                
 
12.28.2005 at 08:42AM PST, ID: 15563473
Already done that under RHEL (which is what the other servers use).  In debian it causes a large number of odd crashes that eventually take out the entire networking system.  Under debian you are supposed to use /etc/network/interfaces and add a gateway line.  Did this, but it seems to be ignored.
 
12.28.2005 at 12:08PM PST, ID: 15565211

Rank: Sage

The only time I've ever seen this happen on any version of RedHat or Fedora is if the default router isn't reachable when the ethernet interface is brought on line. I can't say if that's what's happening here, but it isn't hard to find out if it is. You'll need to capture a sniffer trace of all network activity involving this machine as it boots. That of course means using another machine and either a hub or a switch port set to span mode.
 
01.18.2006 at 01:52PM PST, ID: 15733428
Did a little digging and the default router is definately reachable at boot time (I was able to watch the packets moving between other machines as it boots).

The odd part is that the default router is completely reachable if I plug into eth1.  I'm using that for now, but it's not a good long-term solution since we will eventually need to have both network cards working.  It also works (or at least tries to contact the worng gateway) if I replace the old /etc/network/interfaces file, so I'm pretty sure there's a typo there.
 
01.19.2006 at 12:55PM PST, ID: 15742760

Rank: Sage

What does 'ifconfig -a'  & 'netstat -nr' show?
Accepted Solution
 
01.19.2006 at 01:52PM PST, ID: 15743415
Damn.  Nearly a month of banging my head against the wall and it was just a stupid typo after all.  My manager had used dpkg to reconfigure the ethernet interface and typed a comma for one of the periods in the broadcast address.  I just fixed it and now everything works.

I suspect the code to bring up eth0 was just failing becasue of the broadcast typo, and since the gateway was listed after the broadcast address it never set one up.

I'm marking your last one as the answer since that's what triggered the "I've done this a million times, but I'll try again -- huh, that's odd, why is the broadcast address the default?" (we reconfiged 192.168.x.x as a /16 instead of a /24) that made me look more closely at the correct spot in the interfaces file.
 
01.19.2006 at 02:09PM PST, ID: 15743568

Rank: Sage

Well, that would certainly explain it. At any rate I'm glad the problem has been resolved.
 
 
20080236-EE-VQP-29