- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ping problem
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
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
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
04-11-2002 08:24 AM
04-11-2002 08:24 AM
The ehernet card we want to use it just to communicate between the two unix boxes. We connected two boxes thro' the hub. gave two local IP addresses. 192.10.10.10 and 192.10.10.11
I cannot ping from one to other.
As soon as I ping when I do netstat -rn. I see the entry of a default gateway of my token ring card. It is going thro' the default gateway.
Can some shed some light? Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2002 08:40 AM
04-11-2002 08:40 AM
Re: ping problem
Use traceroute command to find out if the packets are really trying to go through the default gateway. Theoritically, they should not go through the gateway as the other IP address falls in the same broadcast domain.
There are few things to look at.
1. On each system, make sure the interfaces are up by doing ifconfig lan#
2. Ping to the local 192 IP and make sure it works.
3. Check your hub.
4. Use linkloop command to ping to the hardware addr. Run lanscan and get the hardware addresses on both the systems. From one system try this way..
#linkloop -n 1 -i 2 -v hardware_addr
where 2 is the ppa (if lan2 is your lancard) and hardware_addr is the physical addr of the remote system corresponding to the lan card having the same subnet.
5. If you couldn't find the problem still, listout the follwoing outputs.
#lanscan
#netstat -rn
#ifconfig lan?
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2002 08:41 AM
04-11-2002 08:41 AM
Re: ping problem
I think you need to add a static route.
route add 192.10.0.0 netmask 255.255.0.0 192.10.10.11 1
I think that I gave you the right syntax
GL,
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2002 08:42 AM
04-11-2002 08:42 AM
Re: ping problem
Yes it probably is.
You'll need to set static routes up:
# route add 192.10.10.10 192.10.10.11 0
Do a #man route for further info on the route command.
And vice-versa on the other system to force them to route thru those NICs.
You'll also want to add the
ROUTE_DESTINATION[x]=192.10.10.11
ROUTE_GATEWAY[x]=192.10.10.10 entries to /etc/rc.config.d/netconf on both systems to make changes permanent.
See the following doc for more info on configuring the netconf file:
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90748/B2355-90748_top.html&con=/hpux/onlinedocs/B2355-90748/00/00/23-con.html&toc=/hpux/onlinedocs/B2355-90748/00/00/23-toc.html&searchterms=netconf&queryid=20020411-093733
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2002 08:42 AM
04-11-2002 08:42 AM
Re: ping problem
in both machines.
-pap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2002 08:47 AM
04-11-2002 08:47 AM
Re: ping problem
It should not use the gateway as the other network card is falling on the same subnet. Check your configurations properly.
Check this too:
http://us-support.external.hp.com/cki/bin/doc.pl/sid=57d91a93012e263ca9/screen=ckiDisplayDocument?docId=200000009872320
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2002 08:48 AM
04-11-2002 08:48 AM
Re: ping problem
What does your netstat -rn show?
Default should be present and it should point toward your Token Ring Gateway.
There should be an entry for your 192.10.10 network and it should go through the eth0 (or whatever it shows up as)
Try:
lanadmin
lan
display
and it will show you the first card. You may have to change to ppa n+1 to see the Ethernet. It should show you if it's running or not. Packets in/out etc.
Did you install this with SAM or manually enter the changes in your netconf?
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2002 08:51 AM
04-11-2002 08:51 AM
Re: ping problem
You might have duplicate entries for you servers hostnames with the different IP addresses and the hosts file will only take the first entry. The way I set it up is by modifying the name of you host entry in /etc/hosts to something diffrent (see attached). This was to facilitate private networks for my dedicated heartbeat networks for MCSG.
Hope this helps
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2002 10:20 AM
04-11-2002 10:20 AM
Re: ping problem
YES BOTH THE LIGHTS ARE UP ON THE HUB.
PINGING ON THE SAME BOX WORKS.
NETSTAT OUTPUT:
-------------------
#Routing tables
Dest/Netmask Gateway Flags Refs Use Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 274169 lo0 4136
10.10.10.1 10.10.10.1 UH 0 19 du0 1500
192.10.10.10 192.10.10.10 UH 0 0 lan0 4136
172.21.128.48 172.21.128.48 UH 0 3130 lan2 4136
172.21.150.48 172.21.150.48 UH 0 0 lan1 4136
10.10.10.100 10.10.10.1 UH 2 0 du0 1500
172.21.150.0 172.21.150.48 U 2 0 lan1 1500
172.21.128.0 172.21.128.48 U 2 0 lan2 4500
127.0.0.0 127.0.0.1 U 0 0 lo0 4136
default 172.21.128.1 UG 0 0 lan2 4500
#
I tried everything what all you said. When I entered static route entry it said
192.10.10.11 is unreachable cannot add route:
The following is from lanadmin. It says operation status is down??
----------------------------------------------
Lanadmin output
Description = lan0 Hewlett-Packard 10/100 TX Half-Duplex Manual TT = 1500
Type (value) = ethernet-csmacd(6)
MTU Size = 1500
Speed = 100000000
Station Address = 0x306e03c930
Administration Status (value) = up(1)
Operation Status (value) = down(2)
Last Change = 26904830
Inbound Octets = 0
Inbound Unicast Packets = 0
Inbound Non-Unicast Packets = 0
Inbound Discards = 0
Inbound Errors = 0
Inbound Unknown Protocols = 0
Outbound Octets = 2460
Outbound Unicast Packets = 60
Outbound Non-Unicast Packets = 0
Outbound Discards = 62
Outbound Errors = 0
Outbound Queue Length = 0
Specific = 655367
-----------------------------------------
linkloop output I did this on one machine:
for both machines
# linkloop -n 1 -i 0 -v 0x00306E0CACF7
Link connectivity to LAN station: 0x00306E0CACF7
error: expected primitive 0x30, got DL_ERROR_ACK
dl_error_primitive = 0x2d
dl_errno = 0x04
dl_unix_errno = 57
error - did not receive data part of message
# linkloop -n 1 -i 0 -v 0x00306E03C930
Link connectivity to LAN station: 0x00306E03C930
error: expected primitive 0x30, got DL_ERROR_ACK
dl_error_primitive = 0x2d
dl_errno = 0x04
dl_unix_errno = 57
error - did not receive data part of message
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2002 10:30 AM
04-11-2002 10:30 AM
Re: ping problem
#ifconfig lan0
report?
If down, then do
#ifconfig lan0 up
On both systems (if both lan0) & retry.
Also make sure both systems show the SAME speed & duplex settings. Use lanadmin to match them if not.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2002 11:41 AM
04-11-2002 11:41 AM
SolutionFirst question:
Do you have more than one NIC card? Are you sure you have it plugged into the correct card? Sometimes UNIX's idea of lan0 is different than yours. If you have another card or a built-in network connection that you aren't using try plugging your cable in there.
Second Question:
Is there a link light on the HP? Some NICs don't have it but most do. Does it light?
(Does it go out if you unplug it?)
Third question:
Lanadmin says you have Speed = 100000000. Does your hub even do 100 meg? Perhaps you need to set the speed back to 10hd?
4th:
Tried a new cable? If no new cable can you reverse the one you have and see if you still get a link light.
5th:
Tried a crossover cable between the two PCs?
6th:
Replaced the NIC?
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2002 11:47 AM
04-11-2002 11:47 AM
Re: ping problem
Your operation status on lan0 is showing as "down". Also your linkloop if failing. This shows that there is a connectivity problem. Try a crossover cable instead of the hub.
Can you give your ifconfig lan0 on both the systems?
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2002 12:24 PM
04-11-2002 12:24 PM
Re: ping problem
Answer to your fist question resolved the problem.
It was pluuged into the wrong card.
Thanks to all of you. It is great!!!