- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Static routes
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-25-2005 11:10 PM
08-25-2005 11:10 PM
Static routes
It´s true that I can try to put the file "/etc/sysconfig/network-scripts/route-eth0" to restore the routes for this interface. But when I´ve vlans for this interface, I need to put mulitple files like "/etc/sysconfig/network-scripts/route-eth0.vlanid"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2005 11:13 PM
08-25-2005 11:13 PM
Re: Static routes
service network restart
The default route configuration in /etc/sysconfig/network-scripts
should re-establish routes.
I'm not sure abut the route-eth0.vlanid trick, but you should try it on a test box. It really can't hurt to give it a try on a non-production server.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2005 11:23 PM
08-25-2005 11:23 PM
Re: Static routes
My problem is that rarely only one NIC at time lose his link, and the associated routes for this interface disappear. I only need to restore the routes for this interface, vlans included....
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2005 12:24 AM
08-26-2005 12:24 AM
Re: Static routes
ifup ifname
ifdown ifname
And i think that you need to configure the routes for every network interface configuration file. And according to the ifup script, the file should be named ifcfg-vlan* and probably, route-vlan*.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2005 01:12 PM
08-27-2005 01:12 PM
Re: Static routes
global file /etc/sysconfig/static-routes. This file is used for non interface-specific static-routes.
Example for a static route defined in /etc/sysconfig/network-scripts/route-${INTERFACE}:
123.4.5.6/25 via 123.8.7.8
I use "service network restart" very often and never had problems. You can even issue this over a ssh connection and keep your connection, although it might be smart to have a console connection handy just in case.
HTH,
Ross