1

Before I start I would like to point out that I do not want to get hung up on DNS issues with this question. EVEN IF DNS issues are apparent that would have nothing to do with basic IP traffic and that's what this question is about. I was wondering if anyone else has experienced this issue before...

Preface:

I have a machine that is set up with a dynamic IP address. It works perfectly fine and has no issues at all. I simply want to set a static IP address on it so it never changes and it's always the same (for purposes such as sharing etc). The current DHCP info that is returned when setting up the machine as a dynamic IP is as follows...

IP: 10.10.63.152
Subnet Mask: 255.255.225.0
Gateway: 10.10.63.1
Primary DNS: 10.10.63.1
Secondary DNS: (none)
WINs Server: 10.10.63.1

Problem:

I take all the dynamic information and use that as my static IP info (EXACTLY the same). When I click the enter button to apply I lose all network connectivity to the internet. I can still access local network resources (such as ping 10.10.63.19, etc.) A week ago I had it set up as a static IP address using 10.10.63.80 using the same information just a different IP and it was working perfectly. Just to trouble shoot I was using the assigned DHCP IP because everything seemed to work with that (unless I set it statically). I have also tried various different settings trying to achieve success such as...

IP: 10.10.63.80
Subnet Mask: 255.255.225.0
Gateway: 10.10.63.1
Primary DNS: 10.10.63.1
Secondary DNS: (none)
WINs Server: 10.10.63.1

IP: 10.10.63.80
Subnet Mask: 255.255.225.0
Gateway: 10.10.63.1
Primary DNS: 10.10.63.1
Secondary DNS: (none)
WINs Server: (none)

IP: 10.10.63.152
Subnet Mask: 255.255.225.0
Gateway: 10.10.63.1
Primary DNS: 10.10.63.1
Secondary DNS: (none)
WINs Server: 10.10.63.1

IP: 10.10.63.152
Subnet Mask: 255.255.225.0
Gateway: 10.10.63.1
Primary DNS: 10.10.63.1
Secondary DNS: (none)
WINs Server: 10.10.63.1

IP: 10.10.63.80
Subnet Mask: 255.255.225.0
Gateway: 10.10.63.1
Primary DNS: 8.8.8.8
Secondary DNS: (none)
WINs Server: (none)

IP: 10.10.63.152
Subnet Mask: 255.255.225.0
Gateway: 10.10.63.1
Primary DNS: 8.8.8.8
Secondary DNS: (none)
WINs Server: (none)

Any ideas what might be happening?


Further Testing Results:

I have tried to ping local resources when the IP is changed to static and results were good!

ping 10.10.63.19

Pinging 10.10.63.19 with 32 bytes of data:
Reply from 10.10.63.19: bytes=32 time=64ms TTL=125
Reply from 10.10.63.19: bytes=32 time=64ms TTL=125
Reply from 10.10.63.19: bytes=32 time=64ms TTL=125
Reply from 10.10.63.19: bytes=32 time=63ms TTL=125

Ping statistics for 10.10.63.19:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 63ms, Maximum = 64ms, Average = 63ms

I have tried to ping an internet resource and results failed.

ping 8.8.8.8

Pinging 8.8.8.8 with 32 bytes of data:
PING: transmit failed. General failure.
PING: transmit failed. General failure.
PING: transmit failed. General failure.
PING: transmit failed. General failure.

Ping statistics for 8.8.8.8:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

I have tried to do a trace route and it failed as well.

tracert 8.8.8.8

Tracing route to google-public-dns-a.google.com [8.8.8.8]
over a maximum of 30 hops:

  1  Transmit error: code 1231.

Trace complete.

3 Answers 3

4

Your subnet mask, 255.255.225.0, is not valid and is probably breaking your network config. Is it supposed to be 255.255.255.0?

9
  • ... "Not valid" um I disagree. It is completely valid and that mask would encompass all IPs from 10.10.63.1 to 10.10.63.255. Yes it is supposed to be 255.255.255.0... That is a very common subnet mask that is used, why would you say it's not valid?
    – Arvo Bowen
    Jun 17, 2016 at 20:06
  • 2
    You can disagree if you like, however it's not a valid subnet mask: link. To get a mask of 225, the binary would be 11100001, however subnet masks must consist of contiguous bits in order to be valid. Jun 17, 2016 at 20:14
  • This is comical... Let's approach this from a different way. Maybe I'll learn something, or maybe I'll clear something up. Either way it helps to tell someone what your thinking rather than just telling them "your wrong". If I have a network with id of 10.10.63.0/24 what would be the correct subnet mask I should use in your mind?
    – Arvo Bowen
    Jun 17, 2016 at 20:43
  • I'm not sure what you are finding confusing. In all of your codeblock snippets that you have included in your original post, you have the subnet mask for the interface as Subnet Mask: 255.255.225.0 however 255.255.225.0 is NOT a valid subnet mask. If it should be 255.255.255.0 you will need to configure your interface to use that subnet mask. Jun 17, 2016 at 20:50
  • I would also like to point out that I linked to an article which confirms that 255.255.225.0 is not a valid subnet mask and also explained why at the bit level. A bit fair to claim I just told you "You're wrong". Jun 17, 2016 at 20:52
1

From what you are saying, you got a DHCP address, then attempted to assign the same IP statically. This is not a good way to do this. You are assigning an IP inside the DHCP range. This is basically telling the router to give you an IP that it may or may not have anymore because it leased it to another computer. You're not telling the router that this IP is this computer, it is still thinking that it is an IP it can freely give to someone else.

4
  • Agreed. Statically assigned IP addresses should be outside of the DHCP scope, otherwise you can end up with duplicate IP addresses on the network. Jun 17, 2016 at 20:20
  • OK, yes I agree too... But as you can clearly see in my question that was one of many things I tried just to test and debug the situation. I never intended to use a static IP in the DHCP range. Even though I did that would not cause the issues I'm describing. Long term it might be an issue but for testing it would have not made any difference at all. The DHCP server handed out that IP to my mac address and expected my PC to be using that IP. Regardless it was simply for testing purposes to show I have tried all kinds of things.
    – Arvo Bowen
    Jun 17, 2016 at 20:46
  • What I was trying to get at was why would you be doing this in the first place? It is a bad practice and will more than likely never happen in a real world environment. Jun 17, 2016 at 20:50
  • Great advice, but doesn't really answer the question.
    – Sam Erde
    Jun 18, 2016 at 7:22
0

So I figured out the issue. I was remotely setting the static IP (not sitting in front of the PC). I have never seen Windows do this before but when I went to set the IP address and hit the "OK" button, Windows was REMOVING the default gateway! The only way I learned this was by hopping on a different machine remotely then using that machine to RDP to the machine having the issues. I then quickly realized the issue was the default gateway was getting removed.

Answer:

Default gateway was getting automatically removed by Windows when setting the static IP remotely.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .