Operating System - HP-UX
1820568 Members
2118 Online
109626 Solutions
New Discussion юеВ

How to connect hpux machine to internet

 
Mehdi_1
Regular Advisor

How to connect hpux machine to internet

Hi

This may seems a basic question!

I want to connect my old B-132 hpux machine at home to internet. I have NTL broadband access, My boradband doesn't even support NT system, never mind the Unix machines. Someone told me I can use my windows-98 machine as gateway to access to internet through my unix machine. Has anyne has done this before?? Any help is highly appreciated.

Please note I am not a unix admin, try to be more specific.

Thanks

Mehdi
7 REPLIES 7
Mark Grant
Honored Contributor

Re: How to connect hpux machine to internet

You need to set up IP masquerading on your windows box. Essentially this means that the windows machine will pretend to be your HPUX box over the internet and send packets out on it's behalf and route them back. I have no idea how to do this on windows (it's very easy with Linux by the way) but I do know it can be done.

When this is done you have to make the windows box the default route (route add default gateway ip.of.your.pc ). I think it is supposed to just work at that point.

You might get a more complete picture from the Microsoft forum though.
Never preceed any demonstration with anything more predictive than "watch this"
Brian Bergstrand
Honored Contributor

Re: How to connect hpux machine to internet

Be careful here, Win9x "Internet Sharing" only works for other Windows boxes. It will not work with any other OS.

The better way to do this, is to spend $50 on a dedicated broadband router. These have built-in NAT (internet sharing) and work with all OS's. I know someone who tried Windows Internet Sharing with Solaris -- never worked; he went out and bought a dedicated router and his Windows and Solaris boxes both worked.

When you get the router, you plug your broadband link into the WAN/Broadband port, and then all of your clients (including the Win98 machine) into the router's built-in switch. Turn on DHCP for the router, and then you never have to worry about client configuration either.

HTH.
Jamie_24
Occasional Advisor

Re: How to connect hpux machine to internet

I agree with Brian that a dedicated router would be the best solution. However, if you do turn on internet sharing on the Windows box, it will change you internal IP address to 192.168.0.1 on the windows box. If you set the IP on the unix box to 192.168.0.2 with a default route of 192.168.0.1, the windows box will act as an internet gateway.

Mehdi_1
Regular Advisor

Re: How to connect hpux machine to internet

Hi

Thanks for the responses.

In fact I was thinking in the same line my self, but the problem is that, My broadband connection ( ntl home), runs a software that only works on windows. Basically when I switch my computer on, this software runs and gets the IP address and sets the connection. How can I run this on the router or switch??

thanks

Mehdi
DGH_2
Valued Contributor

Re: How to connect hpux machine to internet

Hi,
when you configure internet sharing, the second network card will have this IP Adrress 192.168.0.1

so go to the configuration and change it to 192.168.250.1 for example.
on the unix machine configure the lan and give it any ip like 192.168.250.2 and default gateway 192.168.250.1

only you have to add the proxy and DNS in netscape if you have a proxy.
i tried this and it's working.

DGH
DGH_2
Valued Contributor

Re: How to connect hpux machine to internet

Hi,
dis you tried the last config?
it works or not?
DGH
Mehdi_1
Regular Advisor

Re: How to connect hpux machine to internet

Hi

Sorry for the late reply.

I didn't try it! because my machine has crashed and it won't come up any more. I was logged in as root for half a day, when I got back, the machnie was lock ( something like xlock ), and it was asking for the passward. I typed in my root passward few times, but it didn't accept it. I power cycled the machine, since then the machine won't turn on!!!

thanks anyway ( it was a old machine).

Mehdi