How can server reply to a ping from pc if server does not have default gateway?
1970-01-01 00:00:00 UTC
How can server reply to a ping from pc if server does not have default gateway?
Four answers:
?
2016-11-29 01:18:33 UTC
we want a lot greater innovations. maximum heavily, how is the laptop meant to be responsive to the place the deliver the respond? Does the laptop have no default gateway? Or is the default gateway already set to an present router? if so, do you have administration over that router? What precisely connects the two networks? Does each community have its very own router? Is there any single router it extremely is on the two networks? the simplest thank you to allow computers on 2 distinctive networks to attain one yet another is to make the objective of each community's default path is conscious a thank you to attain machines on the different community.
2010-05-10 21:09:59 UTC
You don't need a default gateway. You just need a gateway for the specific subnet.
The reason the local network doesn't need a gateway is because there is a route in your routing table (type ROUTE PRINT in Windows) which tells Windows to dump traffic for the "local subnet" directly onto the network without using a gateway.
All you need to do to reach the other subnet is create another route for this subnet in your routing table. This route would point at a gateway machine (router), but it doesn't have to be your default gateway.
This allows you to create a route to the other subnet while leaving your default gateway untouched.
Toby
2010-05-10 10:34:31 UTC
Assuming that the default gateway isn't being set by DHCP, then it will only reply to pings from within the same subnet. If your VPN dumps you into the same subnet as the server, then it would reply.
Edit: whle it is true that a router almost always separates subnets, it is possible to configure something called a VLAN to have the same subnet on two sides of a router.
Vrtigo1
2010-05-10 11:27:57 UTC
Toby is correct - a computer can only communicate with other hosts that are on the same IP subnet if it doesn't have a default gateway set.
Based on your description, I'm not sure you understand what a subnet is. A subnet is an IP network, it really has nothing to do with how everything is cabled together.
For example (assuming default subnet masks):
192.168.1.1, 192.168.1.50 and 192.168.1.254 are all on the same subnet (192.168.1.0).
192.168.1.1 and 192.168.2.1 are on different subnets.
In a class C (24 bit subnet mask - 255.255.255.0), as long as the first three numbers in the IP address are the same, the addresses are on the same subnet.
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.