- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Adding a static route to HP UX box
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
тАО02-05-2006 11:46 AM
тАО02-05-2006 11:46 AM
Wondering if you can help me.
I've got a DR site set up and need to move a HP UX Box from my head office to the DR site for database log shipping (I FTP dbase AI logs from one box to another).
The provider tried to give us a 'bridged ethernet' connection, but was unable to, so we have a 'routed' connection instead.
As such, at each end of the WAN I have a CISCO router.
Our head office uses a network address range of 89.0.3.x and subnet of 255.0.0.0 (Weird I know but it's to support legacy equipment).
It has been suggested that I do this:
Head office Router.. 89.0.3.249
Router at DR Site... 89.0.2.249
I then need to add an 'route' on the UNIX machine on the 89.0.3.x network so it knows that in order to send things to the 89.0.2.x network it needs to send it to the router at 89.0.3.249.
I'm told this a 'route add net' type of command. I'm also advised that this will need to be done at the other end so that box UNIX boxes can talk to each other.
Does this make sense? I don't want to give the UNIX boxes a 'default gateway' as they are not allowed to access the internet.
How hard is this to do? Do I need to reboot the machines?
Any advice appreciated. I know a bit about UNIX but do not consider myself a fully trained System Admin, I'll be getting assistance from our HP partner on this one but would like some feedback before I take up their time.
-John
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2006 01:13 PM
тАО02-05-2006 01:13 PM
SolutionYou don't have to reboot the system.
# vi /etc/rc.config.d/netconf
INTERFACE_NAME[0]="lan0"
IP_ADDRESS[0]="89.0.3.249"
SUBNET_MASK[0]="255.0.0.0"
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=
DHCP_ENABLE[0]=0
INTERFACE_NAME[1]="lan1"
IP_ADDRESS[1]="89.0.2.249"
SUBNET_MASK[1]="255.0.0.0"
BROADCAST_ADDRESS[1]=""
INTERFACE_STATE[1]=
DHCP_ENABLE[1]=0
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="89.0.3.1"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
ROUTE_DESTINATION[1]="net 89.0.2" ==> Default gateway must be set one.
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]="89.0.2.1"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[1]=""
After edit netconf file you have to restart the network.
# /sbin/init.d/net stop
# /sbin/init.d/net start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2006 02:15 PM
тАО02-05-2006 02:15 PM
Re: Adding a static route to HP UX box
# route add net
change prefix based on route man page.
For permanent effect configure with /etc/rc.config.d/netconf file. You can add more gateway(s) as well.
No reboot is needed at all. You can check the connectivity with nslookup or ping after route setting.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2006 03:14 PM
тАО02-05-2006 03:14 PM
Re: Adding a static route to HP UX box
You can do it with # route add <..>
Check # man route for more information. After you add, there is no need to reboot your machine, just you can restart network alone.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2006 06:21 PM
тАО02-05-2006 06:21 PM
Re: Adding a static route to HP UX box
beside this, you can use route command
Syntax:
route add host|net IP/net GW
You can man route for more!
HTH
tienna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2006 09:01 PM
тАО02-05-2006 09:01 PM
Re: Adding a static route to HP UX box
Using the route command, we can manually manipulate the routing tables.
The syntax is
route add {ip} {netmask} {gateway} count
eg:
route add 192.11.100.1 255.255.255.0 192.11.100.250 1
where
192.11.100.1 -> IP
255.255.255.0 -> Netmask
192.11.100.250 -> Gateway
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2006 04:53 PM
тАО02-06-2006 04:53 PM
Re: Adding a static route to HP UX box
-John O'Neill