HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Two questions about modifying the routing tabl...
Operating System - HP-UX
1834480
Members
3807
Online
110067
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
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
08-31-2007 07:12 AM
08-31-2007 07:12 AM
Two questions about modifying the routing tables
Hi there --
We have a 10.20 server, and I need to do two things to the routing tables on it.
1. I need to add a static route to the server, and I want to know what the correct syntax is in order to accomplish this.
2. This route needs to supercede several routes that are already in place. Specifically this route will encompass an entire network, and I need to remove any references to specific hosts that are on subnets on that network. How can I do this?
Thanks.
We have a 10.20 server, and I need to do two things to the routing tables on it.
1. I need to add a static route to the server, and I want to know what the correct syntax is in order to accomplish this.
2. This route needs to supercede several routes that are already in place. Specifically this route will encompass an entire network, and I need to remove any references to specific hosts that are on subnets on that network. How can I do this?
Thanks.
A Journey In The Quest Of Knowledge
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2007 07:40 AM
08-31-2007 07:40 AM
Re: Two questions about modifying the routing tables
First, you probably want to do this on the console.
You want to issue all of your delete commands first.
route delete net 10.1.2.0
route delete net 10.1.3.0
Next issue your add command:
route add net 10.1.0.0 netmask 255.255.0.0 10.1.1.1 1
Now, assuming that you want to keep your static routes across boots, you need to edit /etc/rc.config.d/netconf and add entries to the routing array.
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=
...
...
you can add [1]'s,[2]'s to this array but make sure that you don't skip any index values. Using this array, n static routes can be added.
You want to issue all of your delete commands first.
route delete net 10.1.2.0
route delete net 10.1.3.0
Next issue your add command:
route add net 10.1.0.0 netmask 255.255.0.0 10.1.1.1 1
Now, assuming that you want to keep your static routes across boots, you need to edit /etc/rc.config.d/netconf and add entries to the routing array.
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=
...
...
you can add [1]'s,[2]'s to this array but make sure that you don't skip any index values. Using this array, n static routes can be added.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2007 08:08 PM
09-02-2007 08:08 PM
Re: Two questions about modifying the routing tables
send us the 'netstat -rn' output and let us know how you would like the output to appear like. also send us the file /etc/rc.config.d/netconf. that should be sufficient to resolve your issue.
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