- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: help with 'route' command
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
06-04-2002 07:44 AM
06-04-2002 07:44 AM
I have a branch that access's our server via a vpn. Well the route has to be entered on the unix server.
I added the route with the route command:
route add 192.0.3.0 192.0.1.111 1
OK, that works fine. Until I re-boot the server. Then I lose that route? And have to manually enter it again.
I check that with the netstat command. netstat -rn
How do I set it up so the route command stays in the system even after a re-boot?
I have added route before that stayed in, but forgot how I did it. Plus I have posted a question about this before, and I do not know how to 'search' this forum, or find an old post?
Troy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2002 07:48 AM
06-04-2002 07:48 AM
Re: help with 'route' command
Edit /etc/netconf file and put your entries in the file.
Or else go to SAM---Netwworking---Netwrok Interface cards - Gateway and then add the IP address.
# set_parms addln_netwrk
It will ask you for you default gateway and you can enter the parameters.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2002 07:49 AM
06-04-2002 07:49 AM
Solutionjust add all the new info into a new section like this, make sure the [1] is unique and there you go..
GL,
C
ROUTE_DESTINATION[1]=""
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]=""
ROUTE_COUNT[1]=""
ROUTE_ARGS[1]=""
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2002 07:50 AM
06-04-2002 07:50 AM
Re: help with 'route' command
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
Goodluck,
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2002 07:50 AM
06-04-2002 07:50 AM
Re: help with 'route' command
ROUTE_DESTINATION[0],ROUTE_MASK[0], ...
you simply create another set of parallel array entries with the next higher subscript value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2002 07:51 AM
06-04-2002 07:51 AM
Re: help with 'route' command
You need to edit /etc/rc.config.d/netconf file to make it permanent , after editinfg it you will ahve to stop and star the network services .
you may also like to look at this documnet :
http://support1.itrc.hp.com/service/cki/docDisplay.do?docId=200000049791567
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2002 07:52 AM
06-04-2002 07:52 AM
Re: help with 'route' command
Sorry /etc/rc.config.d/netconf file
# set_parms addl_network
Typing mistakes !!!!
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2002 07:54 AM
06-04-2002 07:54 AM
Re: help with 'route' command
ROUTE_DESTINATION[0]=default
ROUTE_GATEWAY[0]=x.x.x.x
ROUTE_ARGS[0]=
ROUTE_MASK[0]=
ROUTE_COUNT[0]=1
ROUTE_DESTINATION[1]="net y.y.y"
ROUTE_GATEWAY[1]=y.y.y.y
ROUTE_ARGS[1]=
ROUTE_MASK[1]=
ROUTE_COUNT[1]=1
......
Just plug in the appropriate values and to test.. (but make sure the system is not being access while you do this)..
# route -f
==> flush routing table
# /sbin/init.d/net start
==> re-read netconf
# netstat -rn
==> check it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2002 08:18 AM
06-04-2002 08:18 AM
Re: help with 'route' command
I appreciate the reminder that I have to stop, then start the service to use the edited netconf file.
The servier is live, so after the next re-boot it will use the new netconf file. I did this before but did not recall what file I had to edit.
Appreciate the help.
Troy