Operating System - HP-UX
1825942 Members
2652 Online
109689 Solutions
New Discussion

Re: acces internet from hpux11i

 
Nabil Boussetta
Frequent Advisor

acces internet from hpux11i

i'd like to access internet from my hpux11i server . i must add a gateway adress and a DNS adress to my lan config.

how to do ?
5 REPLIES 5
Arunvijai_4
Honored Contributor

Re: acces internet from hpux11i

Hello,

You need to edit /etc/resolv.conf and add nameserver

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Luk Vandenbussche
Honored Contributor

Re: acces internet from hpux11i

Hi Nabil,

You need to add a gateway to handle your request to the internet.

You need to update /etc/resolv.conf to update your DNS on your unix server
Muthukumar_5
Honored Contributor

Re: acces internet from hpux11i

To access internet,

You have to configure hostname and ip-address resolvation setup and routing.

Configure /etc/nsswitch.conf file for hosts: entry as,

hosts: files dns

will use /etc/hosts for files and /etc/resolv.conf for dns.

You can setup routing with route command. For permanent effect configure with /etc/rc.config.d/netconf file.

You have to check with nslookup or ping with some internet domains and has to get successfull return.

-Muthu
Easy to suggest when don't know about the problem!
Tvs
Regular Advisor

Re: acces internet from hpux11i

hi


for gateway edit /etc/rc.config.d/netconf file. or use ifconfig command
example:

INTERFACE_NAME[0]="lan0"
IP_ADDRESS[0]="10.14.9.19"
SUBNET_MASK[0]="255.255.255.224"
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="10.14.9.11"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""


for dns edit the /etc/resolv.conf file

exmaple :

domain testserver.com
nameserver 10.125.26.56


regards

Tvs

Nabil Boussetta
Frequent Advisor

Re: acces internet from hpux11i

ok