HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Default route entry gets deleted on my linux box o...
Operating System - Linux
1829149
Members
2163
Online
109986
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
12-09-2003 10:15 PM
12-09-2003 10:15 PM
Hi,
Whenever i reboot my linux server one of
its route entry gets deleted and i have to
type it manually.
#route add default gw 192.168.1.4
Which is the IP address of my server.
How can i make this entry permanenet.
Linux (Redhat 5.2 Apollo).
Thanks,
Amit.
Whenever i reboot my linux server one of
its route entry gets deleted and i have to
type it manually.
#route add default gw 192.168.1.4
Which is the IP address of my server.
How can i make this entry permanenet.
Linux (Redhat 5.2 Apollo).
Thanks,
Amit.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 10:30 PM
12-09-2003 10:30 PM
SolutionIn red hat it would appear that you need to edit /etc/sysconfig/network to put the gateway in.
However, if you want to do it in a generaic way that will work on every distribution (with the possible exception of the one I'm actually using) you need to put the command command in the rc.local file within the start-up scripts or better still, earlier within the startup scripts, but rc.local will work.
Never preceed any demonstration with anything more predictive than "watch this"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 10:31 PM
12-09-2003 10:31 PM
Re: Default route entry gets deleted on my linux box on every reboot
add new string to the /etc/sysconfig/network:
GATEWAY=192.168.1.4
Regards,
Sergejs
GATEWAY=192.168.1.4
Regards,
Sergejs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 10:41 PM
12-09-2003 10:41 PM
Re: Default route entry gets deleted on my linux box on every reboot
to add persitent routes you must create a file
/etc/sysconfig/static-routes
and to add an entry like the following-for adding route to subnet
any net 10.0.0.0 netmask 255.0.0.0 gw 192.168.100.1 eth0
use this example as guide
best regards
/etc/sysconfig/static-routes
and to add an entry like the following-for adding route to subnet
any net 10.0.0.0 netmask 255.0.0.0 gw 192.168.100.1 eth0
use this example as guide
best regards
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP