Operating System - HP-UX
1833136 Members
3341 Online
110051 Solutions
New Discussion

Re: Connecting HP-UX to Internet

 
SOLVED
Go to solution
Frank Wrench
Occasional Advisor

Connecting HP-UX to Internet

How can I get HP-UX 11.11i on the internet through commercial ISP and connected through a LINKSYS router?
19 REPLIES 19
Jeeshan
Honored Contributor

Re: Connecting HP-UX to Internet

HI Frank

Your subject and questions are contradictory.

Anyway, HP-UX whatever the release or version is not free.

It comes with the machine or you can buy it individually.

So if you enough B/W or any router it woun't help u :)

a warrior never quits
Steven E. Protter
Exalted Contributor

Re: Connecting HP-UX to Internet

Shalom,

Yes, change the GATEWAY enter in /etc/rc.config.d/netconf to be the IP address of the linksys router.

Take a copy of the netconf file to another location as a backup. Do not keep a backup in /etc/rc.config.d unless you want all networking to fail.

Change /etc/resolv.conf to the same entry as the router picks up from your ISP.

Wala, after a reboot, you have internet access for your HP-UX box.

I do have to say the subject of the question has nothing to do with the question. Many of us in ITRC subject surf. Having the subject accurate gets you better assistance.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Frank Wrench
Occasional Advisor

Re: Connecting HP-UX to Internet

sorry, I had SAMBA on the mind.
wait but aren't the IP's of these linksys routers always the default 192.168.whatever...It just seems weird that the "GATEWAY" in the netconf file would be something so generic. I'll give it a shot once I finish re-installing HP-UX (messed with some network settings, now it just gives me a black screen at boot up)
I'll probably just copy the netconf file with the name netconf.bak in the same dir. seems safe.
By changing the resolv.conf to the same "entry" as the router picks up from the ISP you mean ....
Internet IP Address:
Subnet Mask:
Default Gateway:
Static DNS1:
Static DNS2:
Right?

appreciate the info

Cheers.
Steven Schweda
Honored Contributor

Re: Connecting HP-UX to Internet

> It just seems weird that the "GATEWAY" in
> the netconf file would be something so
> generic.

If the configuration of the gateway itself is
"generic", then why should a system using
that gateway have an _exotic_ configuration?

> seems safe.

Actual safety might depend on how similarly
named files might be used and/or ignored.

> By changing the resolv.conf to the same
> "entry" as the router picks up from the ISP
> you mean ....
> [...]

I'd guess that most HP-UX systems are
configured with static IP addresses rather
than being DHCP clients. Using DHCP normally
gets a client all kinds of info, including an
IP address, a netmask, a default route, and
DNS server info. When assigning a static IP
address, _you_ need to supply these data
instead. It may be that the (unspecified)
Linksys router will forward DNS inquiries, so
that you could specify it as both a default
gateway and a DNS server. If not, then you
could probably look at the router's own
configuration info (probably acquired by DHCP
fron the WAN) to learn what it's using for a
DNS server, and then specify that (those) in
the HP-UX system's network configuration.
(It's that, or ask your ISP what to use for
DNS servers.)

When assigning a static IP address, it's
normally wise to avoid choosing one from the
router's DHCP adddress pool, which requires
you to find out what that includes, so that
you can avoid it.


> How can I get HP-UX 11.11i on the internet
> [...]?

This rather ambiguous question was apparently
first interpreted as, "From where can I
download an HP-UX installation kit?". I
gather that your question really was, "How
can I configure an HP-UX system on my home
network so that it can access the Internet?".
Precise use of language can help to avoid
such ambiguity and/or confusion.
Steven Schweda
Honored Contributor

Re: Connecting HP-UX to Internet

There was a vaguely similar inquiry recently,
but it hasn't reached a conclusion yet.

http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1217928

You may wish to compare notes with that
fellow.

A forum search might find more. This may be
(or be becoming) a FAQ.

(Interesting that no one who owns a Linksys
router seems to think that its model might be
an interesting datum. Perhaps they're all
equivalent.)
Frank Wrench
Occasional Advisor

Re: Connecting HP-UX to Internet

oh I see how my first post looks like I'm trying to purchase/illegally download HP-UX, but I'm just trying to surf the web using my HP box via Mozilla.
Filled in the blanks in the netconf file i.e. GATEWAY=192.168.1.1 ..The main issue at hand is that the /etc/resolv.conf asks for a domain name when I don't have a domain, just a workgroup.
So I did an nslookup of "Static DNS1" (the entry that shows up on the status page when accessing my router via http://192.168.1.1)
And tried using the name it gave back (somecrazynumber.ISPname.net)
as the "domain" in resolv.conf.....
now instead of the logon screenI get a black screen, and can't do a ctrl + \
now I have a new main issue.
Currently performing a cold install.
Goodnight, nurse
Steven Schweda
Honored Contributor

Re: Connecting HP-UX to Internet

> The main issue at hand is that the
> /etc/resolv.conf asks for a domain name
> when I don't have a domain, just a
> workgroup.

How does a file ask for something?

I have a real domain name, so this is not a
problem here, but I'd assume that you could
supply something fictional, like, say,
"home.local", and then have an entry in
/etc/hosts like, say:

192.168.1.5 fred.home.local fred

where I've chosen 192.168.1.5 as the static
IP address for the HP-UX system (named
"fred").

> [...] now instead of the logon screenI get
> a black screen [...]

The X/CDE stuff tends to desire some kind of
consistent correlation between the host name
and an IP address, and gets upset when this
is missing. Specifying some domain over
which you have no control is probably not the
best way to go. Specifying the whole name of
some DNS server as the domain name is not
appropriate.

A system needs to know its own domain name,
so that it can tell what a foreign (external)
domain name looks like. If you're not
running your own DNS server, it doesn't
matter much what you choose, so long as it
doesn't collide with something in the real
world.

> now instead of the logon screen [...]

Booting in single-user mode should let you
fiddle with this stuff with a shorter
turn-around time than a complete OS
re-installation.
Frank Wrench
Occasional Advisor

Re: Connecting HP-UX to Internet

OK, so now I set it up HP-UX 11i version 1 without configuring the NIC. What's the best way to connect the HP box to the linksys router in order to browse an ISP's Internet service? Go throuh SAM, or run set_parms ....Then which files should be modified? just the /etc/rc.config.d/netconf, /etc/resolv.conf, /etc/hosts ? seems like there should be more. and what exactly needs to be in these files? What I tried so far (after running set_parms initial) without success is the HP box's IP and Gateway in netconf the 2 DNS servers (what I got from the linksys router) in resolv.conf and the HP box's IP and loopback address in hosts.
Any more ideas?
Steven Schweda
Honored Contributor

Re: Connecting HP-UX to Internet

> What's the best way to connect the HP box
> [...]

Ethernet cable?

It's been a while, but I'm pretty sure that I
used SAM to do the configuration, unless the
HP-UX installer asked me questions.

> What I tried so far [...]

is not described in enough detail to merit
comment.

> [...] without success [...]

is not a useful description of what you did,
or what happened when you did it.

What's the HP-UX system's IP address?
(Static or DHCP?) Netmask? Default gateway?

What's the router's IP address? Netmask?

Can you run any Web browser, say, Mozilla, on
the HP-UX system? Can you use it to get to
the router's Web page ("http://192.168.1.1/",
or whatever its address is)? Can you get to
the outside world by address? Hint:

Name: google.com
Addresses: 72.14.207.99, 64.233.167.99, 64.233.187.99

Until that stuff works, there's little point
in worrying about DNS.
Frank Wrench
Occasional Advisor

Re: Connecting HP-UX to Internet

HP system's IP: 192.168.1.102 (DHCP)
(x.x.x.100 and x.x.x.101 taken by Windows XP machines on same router)
HP system's Subnet Mask: 255.255.255.0 (same as router's subnetmask)

HP system's Default Gateway: 192.168.1.1 (same as router's IP)
When I had these IP's typed into thier respective files (with guidance from Protter's reply) I was able to successfully ping the other 2 Windows machines and the router, telnet from my Windows machine into the HP system (not vice versa), and open up mozilla and go to the router's webpage (http://192.168.1.1) just as if I opened the router's webpage from the windows machine.

after reboot, (this is the no success part)took about 30 min on service start up, then the screen turned black right before logon screen was expected. Left it like that over night and woke up to a beige screen (same general color of logon screen).

I'll have to look into seting up SAMBA and trying that route.
Thanks for y'alls resonses.
Steven Schweda
Honored Contributor

Re: Connecting HP-UX to Internet

> HP system's IP: 192.168.1.102 (DHCP)

Ok, but a problem with DHCP is that you don't
automatically get a host name associated with
the address. You can add an entry like
192.168.1.102 my_host_name
to /etc/hosts, but if you get a different
address some day (it's called "Dynamic" for a
reason), then you'll disconnect from that
name again.

Personally, I'd still vote for a static IP
address, like, say, 192.168.1.10, and a
corresponding entry in /etc/hosts.

> [...] then the screen turned black [...]

As I said:

> The X/CDE stuff tends to desire some kind of
> consistent correlation between the host name
> and an IP address, and gets upset when this
> is missing.

With an address of 192.168.1.102, and no name
to go with it, I'd expect X/CDE trouble.

After it starts up and displays nothing
useful, can you still Telnet or rsh/remsh
into the thing from one of your Windows
systems? If so, it should be possible to
do some ifconfig commands to set the address,
and/or edit some files to do that and/or fix
/etc/hosts to get a host name associated with
the address.

If you have an X server running on the
Windows system, you might still be able to do
X stuff from there, even though the CDE login
stuff is bewildered. (Note: X comes with the
OS on a Mac.)

> I'll have to look into seting up SAMBA and
> trying that route.

Yikes. How many cans of worms do you want to
open at one time?
Frank Wrench
Occasional Advisor

Re: Connecting HP-UX to Internet

>After it starts up and displays nothing
>useful, can you still Telnet or rsh/remsh
>into the thing from one of your Windows
>systems?

Negative. I was able to telnet and stuff immediately after editing those 3 config files. I was able to ping by IP but not by host name, which appears to be one of a cornucopia of problems. Then after reboot, displayed nothing useful.

>Personally, I'd still vote for a static IP
>address, like, say, 192.168.1.10, and a
>corresponding entry in /etc/hosts.

How would I go about setting this up?

>Yikes. How many cans of worms do you want to open at one time?

Now that you mention it, I have SAMBA 2.0 on a CD that came with a "Learn SAMBA in 24 Hours" book, unsuccessful in unzipping the .gz file on the HP system. Hate to change the subject of this forum again, but anyone intalled SAMBA before, that can provide a few pointers?

Steven Schweda
Honored Contributor

Re: Connecting HP-UX to Internet

> Negative. I was able to telnet and stuff
> immediately after editing those 3 config
> files.

Editing files is generally harmless, until
someone actually reads them.

> I was able to ping by IP but not by host
> name, which appears to be one of a
> cornucopia of problems.

Did anyone tell the (Windows?) system which
address went with the new host name? (These
systems are not very intuitive.) I haven't
looked lately, but I assume that Windows XP
has (or can have) a "hosts" file somewhere,
and you should be able to attack it with
Notepad (or something else which _won't_ turn
it into a Word document).

> Then after reboot, displayed nothing
> useful.

That would be after someone actually read
those files. Which files, by the way, only
you have seen, making a firm diagnosis
difficult.

> How would I go about setting this up?

As I said, I probably used SAM, but if that's
not practical, some more brutish scheme may
be needed. Because you can't talk to the
thing now, I suppose that you'd start by
booting into single-user mode, so that you
can edit some files. (Google can find a FAQ
doc somewhere to provide the details for
that. I assume that vi can deal with the
resulting environment, but I can't recall
having to deal with it on HP-UX.)

Around here, /etc/rc.config.d/netconf says
things like:

[...]
HOSTNAME="dy"
[...]
INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=10.0.0.39
SUBNET_MASK[0]=255.255.255.0
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0
[...]
ROUTE_GATEWAY[0]=10.0.0.1
ROUTE_COUNT[0]=1
ROUTE_DESTINATION[0]=default
[...]

You'd probably prefer a different HOSTNAME,
and, for you, I'd suggest some different
things like:

IP_ADDRESS[0]=192.168.1.10
ROUTE_GATEWAY[0]=192.168.1.1

Then, at least, I'd have something in
/etc/hosts like:

192.168.1.10 desired_hp-ux_host_name

and the name here should agree with the
HOSTNAME specified elsewhere.

> Hate to change the subject of this forum
> again [...]

Then don't do it? If you can get the basic
networking to go, you'll be able to do an
ITRC forum search for Samba, and I suspect
that you'll find all you could want. If you
can't get the basic networking to go, then
you'll probably have a tough time with Samba,
too.

> [...] unsuccessful in unzipping the .gz
> file [...]

Lesson Zero: "Didn't work" is not a useful
problem description. Show your work. Actual
commands with actual output are uniformly
more helpful than vague descriptions.
Dennis Handly
Acclaimed Contributor
Solution

Re: Connecting HP-UX to Internet

>Steven: Did anyone tell the Windows system which address went with the new host name? but I assume that Windows XP has (or can have) a "hosts" file somewhere

See Bill and my replies in this recent thread about HP-UX being seduced by the dark side. :-)
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1197847
Steven Schweda
Honored Contributor

Re: Connecting HP-UX to Internet

> See Bill and my replies [...]

I asked Google to find something like:
windows xp hosts
and was led to a page which claimed that it
might be
c:\winnt\system32\drivers\etc\hosts (Pro)
or
c:\windows\system32\drivers\etc\hosts (Home)

With only "XP" as a description of the
environment of interest, I decided to throw
up my hands and let him see what he could
find on his own. (I assume that %WINDOWS% or
some such drivel could be used here, but I
don't keep a Windows machine around for the
required experimentation.)

In any case, name resolution on the Windows
side would seem to be the least of his
problems.
Frank Wrench
Occasional Advisor

Re: Connecting HP-UX to Internet

BTW, the C:\WINDOWS\system32\drivers\etc\hosts file on my Microsoft Windows XP Professional Version 2002 Service Pack 2 (two) machine was modified to to reflect the IP and host name of the HP box, when I edited the hosts file and others on the HP box.

Thanks for the link, Dennis.

>I decided to throw up my hands and let him see what he could find on his >own. In any case, name resolution on the Windows side would seem to be >the least of his problems.

roger.
Frank Wrench
Occasional Advisor

Re: Connecting HP-UX to Internet

Finally, this issue is resolved (for now any way)
Here's what I did...
ran set_parms initial
IP: 192.168.1.102
Subnet: 255.255.255.0
Default Gateway: 192.168.1.1
and 3 DNS servers I got from router webpage.
modified /etc/hosts as follows:
(got from nslookup of DNS IP)

127.0.0.1 localhost


<"Default Gateway" IP from router webpage>

modified /etc/resolv.conf as follows:
domain
nameserver
nameserver
nameserver

modified /etc/nsswitch.conf as follows:
hosts: files [NOTFOUND=continue UNAVAIL=continue] dns

modified /etc/rc.config.d/netconf as follows:
HOSTNAME=
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1
INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=
SUBNET_MASK[0]=255.255.255.0
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=1
GATED=0
GATED_ARGS=""
RDPD=0
RARP=0
ROUTE_GATEWAY[0]=192.168.1.1
ROUTE_COUNT[0]=1
ROUTE_DESTINATION[0]=default
LANCONFIG_ARGS[0]=ether

and set up the windows machine's hosts files just like the HP

Got the nsswitch.conf mod strait from link

Thanks for y'alls input SEP-Steven-Dennis.

Cheers
Frank Wrench
Occasional Advisor

Re: Connecting HP-UX to Internet

MISSION ACCOMPLISHED.



Thanks again.

Steven Schweda
Honored Contributor

Re: Connecting HP-UX to Internet

> MISSION ACCOMPLISHED.

What happens when your router gives some
other system the IP address 192.168.1.102,
which seems to be in its DHCP address pool?

I suggested 192.168.1.10 for a reason, you
know.

I suspect that somewhere in the router's Web
jive, it will tell you which addresses it
will use for DHCP. You should avoid those
when choosing a static address. (See the
posting from Apr 7, 2008 02:56:42 GMT.)