PING REQUEST TO HOST ONLY SUCCESFUL RIGHT AFTER I DO TRACERT TO THE SPECIFIC HOST? - networking

Our Company has a VPN connection provided by the ISP in our country , I can Traceroute to a Remote host on another site connected to the VPN but I cant ping to it. The ping command works to hosts on remote site only for a short while right after I do the traceroute to the particular host. Why is it that the ping command only successful right after the tracert command is excueted??

At a guess, this sounds like its potentially Proxy ARP? I would check to see whether or not the Traceroute is temporarily populating your ARP table, allowing the ping to work. Just because you can't ping a device right off the bat doesn't mean its not reachable.

Related

What exactly happens when we are trying to ping domain and what difference to ping to wakodikarkanchan.com and www.wakodikarkanchan.com

What exactly happens when we are trying to ping domain and what difference to ping to wakodikarkanchan.com and www.wakodikarkanchan.com
when I try to ping www.google.com its ping to www.google.com and when ping to my website i.e www.wakodikarkanchan.com its ping to wakodikarkanchan.com, what difference in both stages.
this is how ping to both domains and its take more time to ping with my site
and same, I cant browse my website with IP address how do I activate it ?
It pings the IP, not the domain. The domain is resolved to the IP and then the domain is not used. All packages are sent to IP address.
www.google.com has an A record pointed to an IP. Ping resolves it to that IP and pings the IP.
www.wakodikarkanchan.com has a CNAME record, pointed to wakodikarkanchan.com, which has an A record pointed to the IP address. So Ping resolves it to the domain name and then to the IP, that is why you see this change.
As for the screenshot - as I said ping pings the IP and the time depends on everything between you and that IP. If you have a good connectivity with Google, than with your web host (for instance if the Google's server you are pinging is in your country and your web host is at the other end of the world) then it is normal to see such time differences.

IP address is not reachable or is invalid

I am facing a strange issue these days. I have a list of IP addresses which I want to connect to during the deployment using Jenkins. Now what is happening is, if I am deploying at one IP address (remote machine but in same location) in my local location server, I can successfully do that. But If I am trying to deploy to an IP address (remote machine in other country/region) It is throwing the error, saying
Error : Ip address XYZ is not reachable or is invalid.
Please be notified that I am able to get the response from the machine when I ping it using:
ping XYZ
But while trying to deploy on it using Jenkins, I am not.
Please let me know if there's any solution for this problem.
There isn't enough data points but you can look for these things
1. IP address, Check if all three machines are in same n/w (Jenkins Server, target and your machine)
You can check it with IP address of each machine
2. check Gateway set for Jenkins server
3. Best way if feasible is to ssh / rdp to your Jenkins server and try running your command manually that will give you
Local machine get loopback address(127.0.0.1), so it will be reachable or any local machine having IP address with same subnet mask thats called LAN.
When you are reaching out to remote machine, either it should be public IP address(visible to everyone in the world) or you must have connect to that Area-Network via VPN, this is called tunnelling to remote over the WAN (wide area network). Their(remote location) again, you will notice that all the IP address have same subnet mask as you have on the local machine.
So their could be be IP address duplication case in VPN scenario, where you are bale to ping but not able to reach. This is because, IP address is assigned to other machine but not you yours and ping responses are coming from that other machine. That means your machine is in failed to resolve ARP and in dormant state.

How to ping a server from another remote IP using the command line

A client of mine says they're not able to connect to the site and I would like to check if they can ping the server their site is on, obviously I'd want to do it myself rather than explain how to do that to them.
How do I ping my server if I have both my server's IP address and the remote client's IP address in Mac's Terminal?
It doesn't have to be the Terminal app either, I would much prefer an answer that was available for any UNIX machine.
I'm expecting something like this:
ping www.example.com from 123.45.678.901
Actually, you can not, unless the customer allows you to his network by some means. At max you can ping your site from some ping test web site (just google "ping test" or similar)
ping -c 3 <url/ip>(substitute <url/ip> with whatever you have, works on any Unix Terminal)

arp response received but ICMP packets are not reaching to own host even

My environment has 2 hosts and a VM on each host. NVGRE tunnel is created, as VMs and Hosts belongs to different subnets. I am using Windows server 2012 R2 hosts and same VMs. Hosts are connected back to back. If I put VMs and Hosts in same subnet Ping works.
Both the VMs are receiving ARP requests and responses from each other. ARP cache of each VM is having dynamic entry of other VM.
BUT ICMP request packet from VM is not even seen on its Host.
You cannnot just ping from one host to another host.
To ping provider address from your host, -p option is needed.
Example:
$address = (Get-NetVirtualizationProviderAddress).ProviderAddress
ping -p $address
Please put virtualization lookup records when you need more help.
Run following commands as administrator.
Get-NetVirtualizationLookupRecord
Get-NetVirtualizationCustomerRoute
Also make sure your VM's firewall allows ICMP echo.

Find my IP address when ssh'ing when behing a web proxy

I'm on a corporate network and need to find out the external IP address that my ssh is showing up as so I can white-list it.
I can't use whatismyip.com or "curl ifconfig.me" because this network is proxying all the web traffic, so the IP is different than what SSH goes out as.
Is there an equivalent service that I can SSH to and it will repeat my external IP address?
Ok, finally got around to solving this myself:
http://ipcheck.finne.us/
Chrome won't do a request on port 22, so
curl http://ipcheck.finne.us:22/

Resources