Operating System - HP-UX
1821534 Members
2970 Online
109633 Solutions
New Discussion юеВ

Re: problems linking to netowork

 
SOLVED
Go to solution
Tarek
Super Advisor

problems linking to netowork

Using ws C200 - hpux 11.00.
On boot - configure lan interface: failes.
When ws is up, i tried to ping, but i can only ping and telnet to ws of my subnet. If i try to ping a ws out of my subnet i have:
PING host: 64 byte packets.
If i try a telnet:
Trying....
telnet: Unable to connect to remote host: Network is unreachable.
I have configured /etc/rc.config.d/netconf and namesvrs. Gateway and subnet mask are right.
The lancard is configured. /etc/nsswitch.conf is ok. Am i missing something??
First i was using nis and everything was ok. Then we tried use nis+, but at reboot i had lot of problems and it even couldn't load CDE. I reconfigured nis, but this time it doesn't work. I tried even to take away nis and to link ws to network, but i'm having the problems above.
Thanks
8 REPLIES 8
Bruce Regittko_1
Esteemed Contributor

Re: problems linking to netowork

Hi,

Whenever I have had "network unreachable" errors, it has either been a subnet mask problem or a router (gateway) problem. And usually, I can still connect with the machines on my subnet.

If you made a backup of netconf in the /etc/rc.config.d directory, move it to another directory. It may still be getting read.

--Bruce
www.stratech.com/training
Tarek
Super Advisor

Re: problems linking to netowork

are there any other files to be configured??
I checked again the subnet mask and the gateway and they are correct....
I don't know what to do?? what should be the problem???
John Bolene
Honored Contributor

Re: problems linking to netowork

If you can get to other machines on your subnet, then it has to be either a router problem or a routing problem.
Is your IP right?
Is your hostname right?
Is this info in the /etc/hosts file?
Is your DNS info right (/etc/nsswitch.conf, /etc/resolv.conf)?
Is your subnet mask right?
Is your default gateway right?
What info is shown with a netstat -rn?

More info needed, you may have to post the info from these files.
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
Tom Danzig
Honored Contributor

Re: problems linking to netowork

If the network is unreachable, you don't have a route to it. Check your routing table.

As Bruce stated, make sure that you don't leave a backup netconf file in /etc/rc.config.d. All config files are sourced from this directory and having a backup there will cause it to be sourced (i.e netconf.bk will be source AFTER netconf). Put the backup copy in another directory.
Rick Garland
Honored Contributor

Re: problems linking to netowork

When you do netstat -nr, is there a default route?
Is this configured in the /etc/rc.config.d/netconf file so it is set on boot?

Sounds as if you are missing the default route entry for your routing table.

Also check and make sure you have the appropriate gateway address. Add this route entry with a metric of 1
Tarek
Super Advisor

Re: problems linking to netowork

netstat -rn:
Dest/Netmask Gateway Flags Use Inter Pmtu
127.0.0.1 127.0.0.1 UH 0 469 lo0 4136
172.16.159.110 172.16.159.110 UH 0 24108 lan0 4136
172.16.156.0 172.16.159.0 U 2 0 lan0 1500
127.0.0.0 127.0.0.1 U 0 0 lan0 4136
What is the name of the file backup of netconf?? Under /etc/rc.config.d/ there's only one netconf
Tarek
Super Advisor

Re: problems linking to netowork

Ip address OK
Gateway OK
Dns OK
/etc/hosts OK
subnet_mask OK
Gateway OK
/etc/resolv.conf OK
/etc/rc.config.d/netconf OK
John Bolene
Honored Contributor
Solution

Re: problems linking to netowork

You do not have a default gateway.

There should be an entry that says
default 172.16.yournetwork.xxx UG

In SAM this is configured by going to the Network and Communications -> internet addresses -> and add a default gateway

You cannot use 172.16.156.0 as a gateway, it has to be at least 1.
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com