Operating System - HP-UX
1830598 Members
2426 Online
110015 Solutions
New Discussion

Re: HPUX 11.11 - HomeNetwork - Setup

 
SOLVED
Go to solution
Dietmar_P
New Member

HPUX 11.11 - HomeNetwork - Setup

Hi, I recently bought a sencond hand C3700 Workstation for study purpose.
All PC'S workstations are connected through a router (smc barricade) which is connected to the ISP (PPOE). After editing the /etc/hosts file I can reach all the PCs attached to the router but I can't get access to the internet. I configured static ip addresses on the systems. I did not setup a DNS Server in my Environment. Using the MS Windows Systems the access to internet works right away.
How do I need to configure the HPUX system to be able to get into the internet? Rgds Dietmar
11 REPLIES 11
Senthil Kumar .A_1
Honored Contributor
Solution

Re: HPUX 11.11 - HomeNetwork - Setup

Hi Dietmar,


Make sure the DNS address is set in your /etc/resolv.conf file...


ex:
#more /etc/resolv.conf
domain testdrive.hp.com
nameserver 15.170.178.132

Since you have connected the system to your router directly which uses PPOE connection for internet, i think in you case the nameserver IP can point to ur router IP itself. If this does not work, try using the DNS IP provided by your service provider directly in /etc/resolv.conf file.

To test the setup, you could for example try the following from ur HPUX box once you make changes to resolv.conf file,

ping www.yahoo.com

and see wether it gets resolved and pings.

Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Dietmar_P
New Member

Re: HPUX 11.11 - HomeNetwork - Setup

Hi - thanks for the quick response. I changed the the ip address from 192.168.2.22 (local address) to 192.168.2.1 and a traceroute to i.e. www.hp.com works.

But now I run into another problem.
I use KEA!X (a X-Window Tool) on my Windows PC to access the HPUX Box (CDE). When starting mozilla now I receive following error.

# mozilla

Gtk-WARNING **: cannot open display: tiger:0.0
#

Before I could start mozilla to view local html pages.

Any idea? Rgds Dietmar
Senthil Kumar .A_1
Honored Contributor

Re: HPUX 11.11 - HomeNetwork - Setup

Hi Dietmar,

I understand from my response that u have changed the IP address. But make sure you change using the command "set_parms" this would take care of updating the required files.

After changing the IP, using set_parms and rebooting, I think ur set up should be working.


Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Steven E. Protter
Exalted Contributor

Re: HPUX 11.11 - HomeNetwork - Setup

Shalom,

For new learners, the set_parms approach is more efficient. However look at the configuration files it generates to get a feel for how the networking works.

Good Luck, have fun.

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
Dietmar_P
New Member

Re: HPUX 11.11 - HomeNetwork - Setup

Hi Senthil,

I ran set_parms addl_netwrk, approved the settings for
Subnetwork mask: 255.255.255.0
Gateway IP address: 192.168.2.1

Domain name: testit.com
DNS server address: 192.168.2.1

and receive following error/warning:
_______________________________________________________________________________

WARNING: This system's current hostname (LION) and address (192.168.2.22)
could not be verified with the name server.

Some possible reasons include:

- This system has not been registered with the name server
- This system's host name or address is incorrect
- The domain, name server host name or address is incorrect
- The name server is unresponsive

If some of the networking parameters for this system are incorrect,
you may adjust them by re-executing "/sbin/set_parms initial" and changing
anything necessary.


Well - the problem now still is - that the X-Session won't run anymore and I can't login to the HPUX using X anymore. I use putty to login.

What would I need to modify to be able to run the X-Sessions again?

Regards - Dietmar
Senthil Kumar .A_1
Honored Contributor

Re: HPUX 11.11 - HomeNetwork - Setup

Hi Dietmar,

via putty, issue the command "nslookup", in the secondary prompt give the command "policy". Then exit nslookup command. If the policy output gave you dns as the first entry, please modify the hosts part your /etc/nsswitch.conf looks something like this....

hosts: files [NOTFOUND=continue] dns


regards,
Senthil Kumar .A

P.S: anyway can you paste the output of policy command when run after nslookup.

In my system it looks like this...
--------------------------------------------
td192> nslookup
Using /etc/hosts on: td192

> policy
#Lookups = 2
files [RCCC] dns [RRRR]
> td192>
--------------------------------------------

I have attached my /etc/nsswitch.conf file, so that it could of some help to you.
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Senthil Kumar .A_1
Honored Contributor

Re: HPUX 11.11 - HomeNetwork - Setup

Hi,

Please reboot the system after u make the change to nsswitch.conf file, so that your CDE subsystem could be reinitiated.

Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Dietmar_P
New Member

Re: HPUX 11.11 - HomeNetwork - Setup

Hi Senthil,

there was no /etc/nsswitch.conf.

I created it manually with following entries:

hosts: files [NOTFOUND=continue] dns
ipnodes: files [NOTFOUND=continue] dns
services: files
networks: files
protocols: files
rpc: files
publickey: files
netgroup: files
automount: files
aliases: files

than ran set_parms addl_netwrk again - and rebooted the system. Now I can connect to the box again using X and connect to the internet.

nslookup returns this. Is that a normal behavour or would I need to modify something else.

# nslookup tiger
*** Can't find server name for address 192.168.2.1: Non-existent domain
*** Default servers are not available
Using /etc/hosts on: LION

looking up FILES
Name: tiger.testit.com
Address: 192.168.2.13
Aliases: tiger

Regards - Dietmar
Bharat Katkar
Honored Contributor

Re: HPUX 11.11 - HomeNetwork - Setup

Hi Dietmar,
That means your DNS server was not able to find tiger and hence it used files as i.e. /etc/hosts to seacrh for teh server it got that tiger.

Yes it looks normal.

Regards,
You need to know a lot to actually know how little you know
Senthil Kumar .A_1
Honored Contributor

Re: HPUX 11.11 - HomeNetwork - Setup

It looks fine.

Anyway you can cross check by issuing "policy" command after you enter nslookup interactively. Just type the command nslookup.


If file comes first and then later DNS and NIS ... I rechon then the setting is fine.

in my case the output is ...

files [RCCC] dns [RRRR]


Anyway, glad that,it has solved your issues..

Regards,
Senthil kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Dietmar_P
New Member

Re: HPUX 11.11 - HomeNetwork - Setup

Thank all of you very much for you help - enjoy the rest of the weekend

Best Regards
Dietmar