- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Add routing entry at system startup
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
Discussions
Discussions
Discussions
Forums
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
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
тАО10-22-2004 03:22 PM
тАО10-22-2004 03:22 PM
Add routing entry at system startup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2004 05:30 PM
тАО10-22-2004 05:30 PM
Re: Add routing entry at system startup
what linux system you are using . if you are using redhat
go to /etc/sysconfig/network-scripts/
in that you can find the files with name ifcfg-eth(interface no) example your net interface is eth0 then edit
ifcfg-eth0 in that there is an option called
GATEWAY . enter your gateways ip address
That all man why your are worried .
if you stiil having probs feel freee to contact me
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-23-2004 02:58 PM
тАО10-23-2004 02:58 PM
Re: Add routing entry at system startup
However, you should look into the proper way to accomplish what you want in the proper way specific to the distribution you use. For instance, while adding the route command to /etc/rc.inet2 IS the proper slackware way, 'the right way' for RH (below 9.0) is to add the static route to a file named /etc/sysconfig/static-routes, while for RH 9.0 and Fedora Core, the static routes should be placed in files named /etc/sysconfig/network-scripts/route-ethN (N being the index of the interface for which you define the routes), while on Debian you could place a script in /etc/network/if-up.d/
Examples:
RH (below 9.0):
# cat /etc/sysconfig/static-routes
eth1 net 192.168.100.128 netmask 255.255.255.128 gw 192.168.100.102
eth1 net 192.168.100.120 netmask 255.255.255.248 gw 192.168.100.102
Fedora:
# cat /etc/sysconfig/network-scripts/route-eth0
193.231.236.0/27 via 81.196.24.1
193.231.191.40 via 81.196.24.1
213.157.160.0/19 via 81.196.24.1
If you still cannot figure out what to do, give more details (mostly what distribution you are using) and you will receive more detailed help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-23-2004 05:41 PM
тАО10-23-2004 05:41 PM
Re: Add routing entry at system startup
____________________________________
Network GUI COnfiguration tools:-
____________________________________
1./usr/bin/redhat-config-network (/usr/bin/neat) (RH 7.2+)
2./usr/bin/redhat-config-network-tui
(text console RH 9.0)
3./usr/bin/gnome-network-preferences
(nome Desktop Network Configuration (RH 9.0) - proxy configuration)
Also in redhat Linux,
Static routes are set with the route command and with the configuration file /etc/sysconfig/static-routes.
You can see the following too
see the following file
Configuration settings for your first ethernet port (0).
/etc/sysconfig/network-scripts/ifcfg-eth0
Hope this helps you,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2004 12:46 AM
тАО10-24-2004 12:46 AM
Re: Add routing entry at system startup
But please consider the case when someone restarts network services while the system is up. For example "service network restart". Then you loose your route(s) that you added to /etc/rc.d/rc.local
That's why there are file (as Manuel said) that you should use to avoid the above described problem. For Red Hat - based distros:
RHL 7.x:
/etc/sysconfig/static-routes
RHEL & Fedora:
/etc/sysconfig/network-scripts/route-eth0
For examples use the ones Manuel provided in his post.
HTH,
Ross