Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HPUX connecting thru Solaris to Internet

Status
Not open for further replies.

slymac

IS-IT--Management
Sep 20, 2001
36
CA
I have an HP9000 running HPUX v10 and I also have a Sparcstation 5 running solaris 7. The Sparcstation is my connection to the internet on my internal network. It runs Apache.

I am trying to get my unix box to see the internet. If I ping an internet ip address from the sun box it will see it, just as if I ftp or telnet to an internet site, I can connect. Problem is if I do the same thing from my hp box, it doesn't see outside our internal network. Both machines have ip addresses on my internal network. I can telnet to the sun box from the hp and then do whatever, though.

I need to find a way to make my hp box see thru my sun box. I would think it would require some setup on both machines but I'm not sure how to do this or if it would work.

Does anyone have any ideas? If not to just send me in the correct direction!
Thanks
 
Hi Slymac,
I am not expert on this internet things. How about if you put ip of your sun system as a proxy server on hp's netscape configuration.

Patel
 
As the Sun box can get to the Internet, it must have a default route defined, pointing to whatever device is actually connecting to the Net.

Use this as an example for setting up the HP to point to the sun box in a similar way. TandA

One by one, the penguins steal my sanity.
 
Hi If above guys says then
ON HP box
#route add default ip_of_sun 1

#netstat -rn (to see if you have gatway setup) O/p will look like
default IP_of_sun UG 010735840 lan0 1500

In order to set this route at evertime when you boot system.
Edit /etc/rc.config.d/netconf file.
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="ip_of_sun_system"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""

Patel
 
Thanks, I looked into it and already have the default route info in the netconf file. Could something else need to be done to trigger this? Or possibly some other setting on the Sun box to allow the hp box access to the internet?
 
Here is the info from netstat -r:

Destination Gateway Flags Refs Use Interface Pmtu PmtuTime

localhost localhost UH 0 118 lo0 4608
hp9000.group.com localhost UH 1 2358 lo0 4608
default ttinternet UG 1 37077 lan0 1500
192.50.50 hp9000.group.com U 5719643506 lan0 1500


Here's something else.. if I connect thru my PC on my network, I have to put my proxy server info in my browser to connect to the internet. IP & port number.
 
Hmmm - I'm confused (not for the 1st time!) ...

[tt]
Destination Gateway Flags Refs Use Interface Pmtu PmtuTime

localhost localhost UH 0 118 lo0 4608
hp9000.group.com localhost UH 1 2358 lo0 4608
default ttinternet UG 1 37077 lan0 1500
192.50.50 hp9000.group.com U 5719643506 lan0 1500[/tt]

- where's the IP address 192.50.50 coming from? Shouldn't it be n.n.n.n - ie. 4 dotted numbers?

Anyway, your other comment, about proxy settings, seems to bring you back to patel's comments about setting up netscape on your HP box with proxy definitions.


TandA

One by one, the penguins steal my sanity.
 
I will like to put IP address on gatway rather then name so if sometime your nameresolv messed up still you will be able to connect to outside.

Patel
 
ayjaycee,

the numbers 198.50.50 are defining a network route through the gateway hp9000.group.com. A dotted quad (n.n.n.n) consists of network.host

slymac,

this sounds like you have the sparcstation setup as proxy machine as opposed to just being a gateway. i'm not that familiar with the sparcstations but if you want to have the hp see the internet on a low level (ie ping) then you would have to setup ip forwarding or address translation (NAT).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top