- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- can't ping outside router
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2002 11:39 AM
тАО11-15-2002 11:39 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2002 11:51 AM
тАО11-15-2002 11:51 AM
Re: can't ping outside router
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2002 12:32 PM
тАО11-15-2002 12:32 PM
Re: can't ping outside router
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2002 01:05 PM
тАО11-15-2002 01:05 PM
Re: can't ping outside router
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2002 08:57 AM
тАО11-17-2002 08:57 AM
Re: can't ping outside router
ipconfig /all
from a command window.
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2002 09:18 PM
тАО11-17-2002 09:18 PM
Re: can't ping outside router
ipconfig /all &
netstat -nr|more
from the NT Laptop end.
Add the routing information as in the laptop on the hpux.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2002 12:06 PM
тАО11-18-2002 12:06 PM
Re: can't ping outside router
Try traceroute instead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2002 12:25 PM
тАО11-18-2002 12:25 PM
Re: can't ping outside router
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2002 12:46 PM
тАО11-18-2002 12:46 PM
Re: can't ping outside router
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2002 01:39 PM
тАО11-18-2002 01:39 PM
SolutionWhen 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2002 02:17 PM
тАО11-18-2002 02:17 PM
Re: can't ping outside router
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2002 02:33 PM
тАО11-18-2002 02:33 PM
Re: can't ping outside router
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2002 02:41 PM
тАО11-18-2002 02:41 PM
Re: can't ping outside router
What is the output from
ipconfig /all
Please post it.
thanks,
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2002 10:43 AM
тАО11-26-2002 10:43 AM
Re: can't ping outside router
Now everything works! Thanks for your help.