- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- adding route in HP UX
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-28-2008 02:34 AM
тАО10-28-2008 02:34 AM
adding route in HP UX
Dears,
I have a collegue on another office trying to access my hp ux server.
I need to add a route to my server with his ip address.
The following are the ip addresses: 10.5.0.0.0 and 10.2.0.0 howw do i go about it.
Can someone help pls.
Nadine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2008 02:47 AM
тАО10-28-2008 02:47 AM
Re: adding route in HP UX
You need to know the default gateway address.
on both networks.
You can try also to add your default on the server itself.
then routers on both subnets must know how to go from one subnet to the other.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2008 03:17 AM
тАО10-28-2008 03:17 AM
Re: adding route in HP UX
>>I need to add a route to my server with his ip address.<<
Question :- add route static or perm route
if static :- please follow the below command you should have root access to perform this
route add net
Example :-
route add net 10.1.5.16 netmask 255.255.255.255 10.58.1.120 1
to verfiy
# netstat -rn
Prem route :-
# vi /etc/rc.config.d/netconf
#add the below entries
ROUTE_DESTINATION[0]="10.1.5.16"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="10.58.1.120"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
# inetd -c
to verfiy
# netstat -rn
Rgds,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2008 03:41 AM
тАО10-28-2008 03:41 AM
Re: adding route in HP UX
Thanks, but i have 2 route to add .
I have added the first one in the /etc/rc.config.d/netcong.
Please how do i add the second one.
Nadine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2008 03:55 AM
тАО10-28-2008 03:55 AM
Re: adding route in HP UX
Can you post the output of netstat -rn? It might help us to see what gateway's and routes are currently defined.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2008 04:03 AM
тАО10-28-2008 04:03 AM
Re: adding route in HP UX
To add a route this is the command
route add net/host netmask gateway count
where count means
An integer that indicates whether the gateway is a remote host or the local host. If the route leads to a destination through a remote gateway, count should be a number greater than 0. If the route leads to destination and the gateway is the local host, count should be 0. The default for count is zero. The result is not defined if count is negative.
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2008 04:09 AM
тАО10-28-2008 04:09 AM
Re: adding route in HP UX
>>>>The following are the ip addresses: 10.5.0.0.0 and 10.2.0.0 howw do i go about it.
The information is not enough to conclude, whats the problem. It seems both of your servers are in the same subnet, and there is no need to add the route.
Please post the o/p of following command (From both servers) to get more specific answer.
#ifconfig
eg: # ifconfig lan0
# netstat -rn
Rgds
Sreekanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2008 04:59 AM
тАО10-28-2008 04:59 AM
Re: adding route in HP UX
ROUTE_DESTINATION[1]="10.1.5.16"
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]="10.58.1.120"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[1]=""
ROUTE_DESTINATION[2]="X.X.X.X"
ROUTE_MASK[2]=""
ROUTE_GATEWAY[2]="Y.Y.Y.Y"
ROUTE_COUNT[2]="1"
ROUTE_ARGS[2]=""
You can apply the new routes by "/sbin/init.d/net start"