System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting C3750 to internet via router

SOLVED
Go to solution
Nivel
Frequent Advisor

Connecting C3750 to internet via router

Hi. Any help on this would be appreciated.
C3750 with HP-UX 11.11, router Netgear WGR614v9.
Router (192.168.1.1) set up to get DNS automatically from ISP.
Made the following changes:
/etc/hosts: added 192.168.1.1 WGR614v9.virgin.net
/etc/rc.config.d/netconf:
ROUTE_GATEWAY = 192.168.1.1
ROUTE_COUNT = 1
/etc/nsswitch.conf:
All entries set to "files" except:
hosts: files [NOTFOUND=continue UNAVAIL=continue] dns
ipnodes: files [NOTFOUND=continue] dns
/etc/resolv.conf:
domain virgin.net
nameserver 192.168.1.1
When resolv.conf is present, I can ping eg. www.google.com, when resolv.conf is absent, I cannot ping anything beyond the router.
However, when resolv.conf is present, the C3750 will not start up correctly ie. cannot login to CDE - a blank grey screen appears. When I remove resolv.conf in single user mode, then can login to CDE again.
Any thoughts anyone? Thanks in advance.
4 REPLIES
TTr
Honored Contributor

Re: Connecting C3750 to internet via router

Your nameserver entry in /etc/resolv.conf points to your router so if that's where the DNS service is running, you have to include the C3750 host name and IP in the DNS tables.

You have to be able to resolve the FQDN name of your C3750 in order for CDE to start up.

"nslookup hostname_of_C3750" must return the right info from DNS.
Steven Schweda
Honored Contributor
Solution

Re: Connecting C3750 to internet via router

> Made the following changes:
> /etc/hosts: added 192.168.1.1 WGR614v9.virgin.net

And what's in there for the C3750 itself?

I would not start throwing "virgin.net"
around if I had no control over the actual
DNS data at "virgin.net". I'd start by
cleaning all that stuff out.

> nameserver 192.168.1.1

_That_ part should be safe. Is that enough
to get you to, say, "www.google.com"? (I
have a real domain, so I haven't tried any of
this without one, so I know nothing, but ...)

> However, when resolv.conf is present, [...]

Well, what _that_ "resolv.conf" is present,
[...]. I'd try a reduced one, without the
"virgin.net" stuff. (Same for "hosts", and
anyplace else where it doesn't really
belong.)
Steven Schweda
Honored Contributor

Re: Connecting C3750 to internet via router

> Well, what _that_ "resolv.conf" is present,

Make that:

Well, when _that_ "resolv.conf" is present,

(If I could read better the first time, ...)
Nivel
Frequent Advisor

Re: Connecting C3750 to internet via router

Thanks Steven, this worked fine.
Thanks TTr, my router assigns DNS automatically (ie. DNS done by my ISP), so didn't really know how to follow your suggestion.