The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
google unix.com



HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Route Add sudhir_shet SUN Solaris 3 04-24-2008 09:44 AM
Route add probleme waterboy IP Networking 5 08-17-2007 11:20 AM
SOLARIS does not route bong02 SUN Solaris 4 06-21-2006 03:58 AM
Do I need to add a route?? agoodrich IP Networking 6 07-05-2005 11:15 PM
route add cubicle^dweller AIX 6 10-05-2003 02:32 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-05-2007
efrenba efrenba is offline
Registered User
  
 

Join Date: May 2005
Posts: 21
Unhappy Add Route on HP-UX v10.x, help.

Hi,

My H-UX box has the GW pointing to 10.10.10.1 and I need add it a new route pointing to 192.168.80.x with the GW 10.10.10.13

I tried with:
#route add 192.168.80.2 255.255.255.255 10.10.10.13

but I get: add net 192.168.80.0: gateway 255.255.255.0: Network is unreachable

I tried with
#route add 192.168.80.2 10.10.10.13

netstar -rn:
192.168.80.2 10.10.10.13 UH 0 0 lan0 1500

but I can reach it, when I exec a traceroute 192.168.80.2, it uses the GW 10.10.10.1 instead of 10.10.10.13

What am I doing wrong? I've tried on WinXP and it works OK.


Thanks....
  #2 (permalink)  
Old 04-05-2007
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
I'm not sure what it is you're trying to do, you seem to have two theories. To add a route to the 192.168.80.0 network that uses 10.10.10.13, I think it is:

route add net 192.168.80.0 255.255.255.0 10.10.10.13 1

But I don't have access to a 10.x box to test it.
  #3 (permalink)  
Old 04-05-2007
efrenba efrenba is offline
Registered User
  
 

Join Date: May 2005
Posts: 21
I tried with:
#route add net 192.168.80.0 netmask 255.255.255.0 10.10.10.13 11

and it works OK.

My /etc/rc.config.d/netconf is:
------------------------------
HOSTNAME="mainsrv"
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1

INTERFACE_NAME[0]="lan0"
IP_ADDRESS[0]="10.10.10.7"
SUBNET_MASK[0]="0xffffff00"
BROADCAST_ADDRESS[0]="10.10.10.255"
LANCONFIG_ARGS[0]="ether"
DHCP_ENABLE[0]=0

ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="10.10.10.1"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""



To add the route statically. Would it be valid?

ROUTE_DESTINATION[1]="net 192.168.80.0"
ROUTE_MASK[1]="255.255.255.0"
ROUTE_GATEWAY[1]="10.10.10.13"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[1]=""
  #4 (permalink)  
Old 04-05-2007
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
I think it's:
ROUTE_DESTINATION[1]="192.168.80.0"

The script figures out net or host based on the value of this field and netmask.
  #5 (permalink)  
Old 04-06-2007
efrenba efrenba is offline
Registered User
  
 

Join Date: May 2005
Posts: 21
ok, thanks for your time...
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:33 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0