- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Trying to Add a Route
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
01-10-2005 06:16 AM
01-10-2005 06:16 AM
I've been just asked to add a route to my system.
I've been given an
- IP to a Router
- A new Subne
- A Gateway for the route
I've made my edits in the /etc/rc.config.d/netconf file, but I'm unfamiliar with what I need to do at the command line for syntax to add the above route.
Can someone help?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2005 06:19 AM
01-10-2005 06:19 AM
Re: Trying to Add a Route
check this link from itrc,
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000074886373
The itrc doc id is HONCIKKBRC00000016.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2005 06:47 AM
01-10-2005 06:47 AM
Solution> route add 192.168.0.25 1
Man route for all of the options and don't forget the trailing 1 on the command I listed above. That means that the router is NOT local or on this maching but a router on the LAN. If you must also use the netmask they gave you then use:
> route add 192.168.0.25 netmask 255.255.xxx.xxx 1
Still not forgeting the trailing 1 .
Good luck,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2005 05:44 PM
01-10-2005 05:44 PM
Re: Trying to Add a Route
We are saying we want anything to the 15.43.9 subnet to use gateway 15.32.7.1
This command statement is only good until the next reboot.
Anything you want to have permanent must be hard coded in the /etc/rc.config.d/netconf file.
Remember that you cannot back up the netconf file in the /etc/rc.config.d directory. If you want to save a backup before modifying, move the backup (netconf.old, .save, etc) to a different directory.
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=15.32.7.1
ROUTE_COUNT[0]=1
ROUTE_DESTINATION[1]="net" 15.43.9
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]=15.32.7.1
ROUTE_COUNT[1]=1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2005 06:30 PM
01-10-2005 06:30 PM
Re: Trying to Add a Route
But I would also reccomend doing a reboot to verify that what you have put in /etc/rc.config.d/netconf is correct. I have too often seen such changes forgotten when the system is remooted several months later.
Regards,
Trond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2005 06:46 PM
01-10-2005 06:46 PM
Re: Trying to Add a Route
route add net
or an enrty in /etc/rc.config.d/netconf
ROUTE_DESTINATION[1]="net
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]=
ROUTE_COUNT[1]=1
#/sbin/init.d/net stop
#/sbin/init.d/net start
will do
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2005 07:28 PM
01-10-2005 07:28 PM
Re: Trying to Add a Route
Adding route and modifying netconf is rightly explained above. Points to take care of are :
1. As twang has rightly suggested do not keep copy/backup of netconf file under /etc directory.
2. Reboot the server to confirm about the correctness of netconf file.
3. Don't forget to put "1" at the end of route add command. This is commonly done mistake.
All the best.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2005 08:17 PM
01-10-2005 08:17 PM
Re: Trying to Add a Route
for temporary purposes you can add new route from command line:
route add net 10.32.127.0 netmask 255.255.255.0 10.32.113.177 1
where
net=10.32.127.0
netmask=255.255.255.0
router=10.32.113.177
metric/route count =1
for permanent solution use
/etc/rc.config.d/netconf
reboot machine and check the setting
rgds Jan