- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- ping command to look every time for the next hop
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
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
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
тАО01-22-2006 08:34 PM
тАО01-22-2006 08:34 PM
how is the ping command to look every time for the next hop ?
for example:
first ping:
# ping 192.168.24.1 -c 4
PING 192.168.24.1 (192.168.24.1) 56(84) bytes of data.
From 192.168.0.10: icmp_seq=1 Redirect Host(New nexthop: 192.168.0.15)
64 bytes from 192.168.24.1: icmp_seq=1 ttl=255 time=37.8 ms
64 bytes from 192.168.24.1: icmp_seq=2 ttl=255 time=33.6 ms
64 bytes from 192.168.24.1: icmp_seq=3 ttl=255 time=35.1 ms
64 bytes from 192.168.24.1: icmp_seq=4 ttl=255 time=37.8 ms
--- 192.168.24.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3002ms
rtt min/avg/max/mdev = 33.658/324.144/37.895/1.831 ms
second ping:
# ping 192.168.24.1 -c 4
PING 192.168.24.1 (192.168.24.1) 56(84) bytes of data.
64 bytes from 192.168.24.1: icmp_seq=1 ttl=255 time=34.7 ms
64 bytes from 192.168.24.1: icmp_seq=2 ttl=255 time=36.2 ms
64 bytes from 192.168.24.1: icmp_seq=3 ttl=255 time=37.1 ms
64 bytes from 192.168.24.1: icmp_seq=4 ttl=255 time=34.3 ms
--- 192.168.24.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3003ms
rtt min/avg/max/mdev = 34.393/35.641/37.153/1.152 ms
first ping looks for the next hop but following next one it doesn't.
kind regards
chris
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2006 08:50 PM
тАО01-22-2006 08:50 PM
Re: ping command to look every time for the next hop
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2006 08:53 PM
тАО01-22-2006 08:53 PM
Re: ping command to look every time for the next hop
netstat -rn
# before the command
netstat -rn
# after the first ping.
You should see the routing tables updated.
ifconfig eth#
Your routing/network environment is the source of this issue.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2006 09:05 PM
тАО01-22-2006 09:05 PM
Re: ping command to look every time for the next hop
but howto delete the routing cache ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2006 09:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2006 09:44 PM
тАО01-22-2006 09:44 PM
Re: ping command to look every time for the next hop
# route add -net 192.168.24.0 netmask 255.255.255.0 gw 192.168.0.15
Regards,
Sergejs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2006 05:02 AM
тАО01-23-2006 05:02 AM
Re: ping command to look every time for the next hop
linux:~# ip route flush cache
-bash: ip: command not found
I've written a small perl program to check the routing and I must delete the routing cache all the time before I do a ping
and:
# route add -net 192.168.24.0 netmask 255.255.255.0 gw 192.168.0.15
will not help in my case.
greetings
chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2006 05:32 AM
тАО01-23-2006 05:32 AM
Re: ping command to look every time for the next hop
# apt-get install iproute
helps
and
# ip route flush cache
solved my problem !