- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Permamanently Add a route to the kernels IP routin...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2007 10:32 AM
08-08-2007 10:32 AM
route add default eth0
The change only lasts up until the next boot. How can I permanently add the route to kernels IP routing table?
ANy help would be appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2007 11:12 AM
08-08-2007 11:12 AM
Re: Permamanently Add a route to the kernels IP routing table
As you are wanting to change the default route, there's always a nice way to do it.
On a RedHat system, you modify the 'GATEWAY=' line in '/etc/sysconfig/network' for instance.
On all distributions, you'll have some sort of network manager which will give you a GUI to do it as well.
If all else fails, you can add your 'route add' line to '/etc/rc.d/rc.local'. This is the least maintainable method however, as no system utilities know of it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2007 11:36 AM
08-08-2007 11:36 AM
Re: Permamanently Add a route to the kernels IP routing table
I'm trying to add a default route. The Route command lists no default route. I'm using REd Hat Linux.
Thanks,
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2007 03:01 PM
08-08-2007 03:01 PM
Re: Permamanently Add a route to the kernels IP routing table
did u try ading some thing similar to this and restart the network service.
# cat network
NETWORKING=yes
HOSTNAME=xxx.com
GATEWAY=132.226.184.254
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2007 08:32 PM
08-08-2007 08:32 PM
Solutionhttp://www.akadia.com/services/redhat_static_routes.html