Operating System - HP-UX
1824910 Members
3740 Online
109677 Solutions
New Discussion юеВ

can't ping outside router

 
SOLVED
Go to solution
Todd McDaniel_1
Honored Contributor

can't ping outside router

All: I have a 9000/778 workstation that used to be a V-class workstation. it is not configured to be on the network. I have added an IP that is valid and hostname as well. I am having trouble determining how to get DNS to work?

I can't ping outside the router. My IP is 10.99.84.107. My Laptop NT is on the same router 10.99.98.102 which I can ping both ways, to and from.

My problem is I don't know if I need a default gateway or is DNS enough? I have configured a resolv.conf file.

When I try to ping outside the router, I get network unreachable. Any insight would be appreciated.
Unix, the other white meat.
13 REPLIES 13
Jeff Schussele
Honored Contributor

Re: can't ping outside router

Hi Todd,

Yes - you need a default route to reach anything past the router.

Try this command - assumes the router IP is ~.1 (use appropriate router IP)

route add default 10.99.84.1 1

You *may* need a netmask value in that route statement.
Check with your network admin

This info also needs to be added to the /etc/rc.config.d/netconf file to set the route up at boot.

Your resolv.conf file should look like

domain subnet.company.com
search subnet.company.com subnet2.company.com
nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx

Where appropriate IPs & domain names are used.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Todd McDaniel_1
Honored Contributor

Re: can't ping outside router

That's the thing. I am not sure what my default gateway is. I need to find that before I can proceed.
Unix, the other white meat.
Bill Thorsteinson
Honored Contributor

Re: can't ping outside router

On your NT right click on My Network Places and secect Properties. Select Local Area Connection, right click and select properties.

On the components list select Internet Protocol (TCP/IP), then click the Properties button. The default gateway wil be on the General tab.

The default gateway does not need a net mask. If you have a firewall between you and the outside world, you may still be blocked.
Ron Kinner
Honored Contributor

Re: can't ping outside router

A faster way to get the router IP on your NT is to run

ipconfig /all

from a command window.

Ron
T G Manikandan
Honored Contributor

Re: can't ping outside router

I would do a

ipconfig /all &
netstat -nr|more

from the NT Laptop end.

Add the routing information as in the laptop on the hpux.

Oleg Zieaev_1
Regular Advisor

Re: can't ping outside router

Check with network guys that they did not disable ping reply on the router. It may be configured to DROP all TCP/IP ICMPs.
Try traceroute instead.
Professionals will prevail ...
Oleg Zieaev_1
Regular Advisor

Re: can't ping outside router

Hello.

For proper and faster DNS setup use hosts_to_named (1m) or just edit files on your DNS server. You going to need FQDN in your /etc/hosts as well.
Update /etc/resolv.conf to have your DNS server.
This should take care of the DNS resolutions from your new HP.
If ping returns unreachable messages - check your netmask.
If you have problems accessing IPs outside your network through the gateway, you require to have :
route add default 10.99.98.102

Hope this helps.
Professionals will prevail ...
Todd McDaniel_1
Honored Contributor

Re: can't ping outside router

I tried to use my laptop default gateway but it is the laptop IP of 10.99.98.102 and my HP workstation IP is 10.99.84.17. They don't seem to be compatible.

They are on the same router, but it hung when I used the laptop IP as the default gateway. When I rebooted it removed it from the netstat -rn output.

I had the net mask as 255.255.255.0, which I don't see a problem with except that it excludes the 10.99.98.xx because it is 10.99.84.255 for the broadcast with the netmask of 255.255.255.0

Once I changed it back, to 255.255.0.0 and removed the default gateway. I can still ping inside the router, but not beyond???

I am stumped. I wonder if I got a new IP assigned on the same 10.99.98.xxx as my laptop??? If that would work???

Will let you all know.
Unix, the other white meat.
Ron Kinner
Honored Contributor
Solution

Re: can't ping outside router

It sounds like you are a little confused about the gateway address. When we said to look on your laptop we just wanted you to find what gateway it used - not use its address for the gateway. The default gateway address shown in ipconfig /all should be the address of your local router. You set the HP's default to that.

When you say your address is valid - how do you know that is true? Was it assigned by your local network admin or did you just pick it out of the air. If you just picked it out of the air then that may be your problem.

If your assigned address is 10.99.84.107 and your laptop address is 10.99.98.102 then your mask can not be 255.255.255.0 since they are on two separate subnets and could not talk to each other. Your mask should be 255.255.0.0 or even 255.0.0.0. That assumes that your address is truely valid. IF your router uses a 255.255.255.0 mask then that would explain why you can't talk to it.

Is your network using DHCP? (ipconfig /all result on your laptop should have a line which says whether DHCP is enabled or not.) It could be that you should not be assigning your own address. Perhaps there is a DHCP server which provides the correct address?

If you are not using DHCP then your DNS server(s) will be listed in the ipconfig /all result. That would be the DNS server address that your HP should also use.

On your NT you can also do
nslookup
and it should come back and tell you the ip address of the first DNS server. (type exit to get back to your usual prompt.)

Once you get the gateway and DNS info from the NT then put those values on the HP but continue to use your own assigned valid IP address.

netstat -r
or
netstat -rn
will show you the routing table for either box. (the difference is that the n flag gives no names just IP addresses). Both should have the same default tho the hp will call it default and the NT will call it: 0.0.0.0 0.0.0.0.

Ron
John Dvorchak
Honored Contributor

Re: can't ping outside router

Todd, you have to contact the local LAN people, who ever gave you the address for the Workstation. Have them also tell you the correct default gateway to use and proper netmask.
If it has wheels or a skirt, you can't afford it.
Oleg Zieaev_1
Regular Advisor

Re: can't ping outside router

Tod,
on your laptop from command prompt:
ipconfig
(this should return you with IP address for your laptop along with netmask and default gateway).
on your unix box:
ifconfig lan0
(this should give you information about what you have configured).
Use ifconfig lan0 IP@ netmask
to match your IP and the netmask.
Now, add default route using the same gateway
you saw in ipconfig.
Check your dns entry to have correct NS server. (this information may be obtained using nslookup from cmd prompt on your laptop).

This should work 100%. If not - check your network infrastructure with network admins and facilities. Your cable might be connected to different switch/router/hub (than your laptop) which will bring your HP onto differentnetwork/subnet.

Get yourself some help from Network admins / Infrastructure engineers to assure cabling and correct IP info.

Good luck,
Oleg
Professionals will prevail ...
harry d brown jr
Honored Contributor

Re: can't ping outside router

Todd,

What is the output from

ipconfig /all

Please post it.


thanks,


live free or die
harry
Live Free or Die
Todd McDaniel_1
Honored Contributor

Re: can't ping outside router

Okay, my real prob was that my btlan devices weren't configured properly. I decided to cold install 11.0 to see if that would fix it since I only use this for a workstation for testing. I loaded 11.0 but still had to load the drivers from the app cd.

Now everything works! Thanks for your help.
Unix, the other white meat.