|
Networking Use this board for problem solving and the discussion of Networking, router, and Wi-Fi issues |
|
Topic Tools |
#1
|
||||
|
||||
No internet with static IP
I just installed windows 7 and I'm trying to set a static IP for this computer but whenever I do, I lose internet access. I've tried disabling/enabling the adapter and restarting after the changes. Neither worked. I also tried disabling IPv6 to no avail. I had the same setup working fine on vista just a few days ago. Here's the output from ipconfig /all when DHCP is enabled:
Code:
Windows IP Configuration Host Name . . . . . . . . . . . . : Antec Primary Dns Suffix . . . . . . . : Node Type . . . . . . . . . . . . : Hybrid IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . : No DNS Suffix Search List. . . . . . : hsd1.nj.comcast.net. Ethernet adapter Internet: Connection-specific DNS Suffix . : hsd1.nj.comcast.net. Description . . . . . . . . . . . : Realtek RTL8139/810x Family Fast Ethernet NIC Physical Address. . . . . . . . . : 00-0E-2E-32-91-06 DHCP Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes IPv4 Address. . . . . . . . . . . : 192.168.40.9(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.255.0 Lease Obtained. . . . . . . . . . : Wednesday, June 08, 2011 4:18:38 PM Lease Expires . . . . . . . . . . : Thursday, June 09, 2011 4:18:38 PM Default Gateway . . . . . . . . . : 192.168.40.254 DHCP Server . . . . . . . . . . . : 192.168.40.254 DNS Servers . . . . . . . . . . . : 8.8.8.8 8.8.4.4 NetBIOS over Tcpip. . . . . . . . : Enabled Code:
Windows IP Configuration Host Name . . . . . . . . . . . . : Antec Primary Dns Suffix . . . . . . . : Node Type . . . . . . . . . . . . : Hybrid IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . : No Ethernet adapter Internet: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Realtek RTL8139/810x Family Fast Ethernet NIC Physical Address. . . . . . . . . : 00-0E-2E-32-91-06 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes IPv4 Address. . . . . . . . . . . : 192.168.40.5(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.40.254 DNS Servers . . . . . . . . . . . : 8.8.8.8 8.8.4.4 NetBIOS over Tcpip. . . . . . . . : Enabled |
#2
|
||||
|
||||
What do you have for a modem/router?
With the static IP can you ping the default gateway? Are there other machines on your LAN? You want to make sure you don't have an IP address conflict with one of them. It is best to use an IP address outside of the DHCP address range when assigning a static IP. |
#3
|
||||
|
||||
I went to set up the static IP again today and for some reason it worked. Then I turned on my laptop and it stopped working. So I decided to try pulling out the cable connecting my desktop and laptop and it worked again. It seems like its trying to connect to the internet through the wrong adapter. I tried switching the order under advanced settings but that didn't help. Any ideas?
Oh and the static IP im assigning is outside of the DHCP range Last edited by telanor; June 9th, 2011 at 08:29 PM. |
#4
|
||||
|
||||
SO the machine you are setting up with a static IP has two NICs.
Can you run ipconfig/all and route print on that machine and post the output back here? Maybe we can get a better idea as to what is up with it. |
#5
|
||||
|
||||
Heres the full output from ipconfig
Code:
Windows IP Configuration Host Name . . . . . . . . . . . . : Antec Primary Dns Suffix . . . . . . . : Node Type . . . . . . . . . . . . : Hybrid IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . : No DNS Suffix Search List. . . . . . : hsd1.nj.comcast.net. Ethernet adapter Internet: Connection-specific DNS Suffix . : hsd1.nj.comcast.net. Description . . . . . . . . . . . : Realtek RTL8139/810x Family Fast Ethernet NIC Physical Address. . . . . . . . . : 00-0E-2E-32-91-06 DHCP Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes IPv4 Address. . . . . . . . . . . : 192.168.40.9(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.255.0 Lease Obtained. . . . . . . . . . : Thursday, June 09, 2011 7:04:23 PM Lease Expires . . . . . . . . . . : Friday, June 10, 2011 3:28:11 PM Default Gateway . . . . . . . . . : 192.168.40.254 DHCP Server . . . . . . . . . . . : 192.168.40.254 DNS Servers . . . . . . . . . . . : 8.8.8.8 8.8.4.4 NetBIOS over Tcpip. . . . . . . . : Enabled Ethernet adapter LAN: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Realtek PCIe GBE Family Controller Physical Address. . . . . . . . . : 00-26-18-FA-51-63 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Link-local IPv6 Address . . . . . : fe80::18ca:dc9:309f:e6b5%11(Preferred) IPv4 Address. . . . . . . . . . . : 1.0.0.1(Preferred) Subnet Mask . . . . . . . . . . . : 255.0.0.0 Default Gateway . . . . . . . . . : 0.0.0.0 DHCPv6 IAID . . . . . . . . . . . : 301999640 DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-15-80-9C-F8-00-0E-2E-32-91-06 DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1 fec0:0:0:ffff::2%1 fec0:0:0:ffff::3%1 NetBIOS over Tcpip. . . . . . . . : Enabled Tunnel adapter isatap.hsd1.nj.comcast.net.: Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : hsd1.nj.comcast.net. Description . . . . . . . . . . . : Microsoft ISATAP Adapter Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Tunnel adapter isatap.{E8F93D71-EF0A-4F29-BA82-D38AA10EFD47}: Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2 Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Tunnel adapter Teredo Tunneling Pseudo-Interface: Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Tunnel adapter 6TO4 Adapter: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Microsoft 6to4 Adapter Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes IPv6 Address. . . . . . . . . . . : 2002:100:1::100:1(Preferred) Default Gateway . . . . . . . . . : 2002:c058:6301::c058:6301 DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1 fec0:0:0:ffff::2%1 fec0:0:0:ffff::3%1 NetBIOS over Tcpip. . . . . . . . : Disabled Code:
=========================================================================== Interface List 10...00 0e 2e 32 91 06 ......Realtek RTL8139/810x Family Fast Ethernet NIC 11...00 26 18 fa 51 63 ......Realtek PCIe GBE Family Controller 1...........................Software Loopback Interface 1 16...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter 12...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2 13...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface 14...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter =========================================================================== IPv4 Route Table =========================================================================== Active Routes: Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 On-link 1.0.0.1 266 0.0.0.0 0.0.0.0 192.168.40.254 192.168.40.9 20 1.0.0.0 255.0.0.0 On-link 1.0.0.1 266 1.0.0.1 255.255.255.255 On-link 1.0.0.1 266 1.255.255.255 255.255.255.255 On-link 1.0.0.1 266 127.0.0.0 255.0.0.0 On-link 127.0.0.1 306 127.0.0.1 255.255.255.255 On-link 127.0.0.1 306 127.255.255.255 255.255.255.255 On-link 127.0.0.1 306 192.168.40.0 255.255.255.0 On-link 192.168.40.9 276 192.168.40.9 255.255.255.255 On-link 192.168.40.9 276 192.168.40.255 255.255.255.255 On-link 192.168.40.9 276 224.0.0.0 240.0.0.0 On-link 127.0.0.1 306 224.0.0.0 240.0.0.0 On-link 1.0.0.1 266 224.0.0.0 240.0.0.0 On-link 192.168.40.9 276 255.255.255.255 255.255.255.255 On-link 127.0.0.1 306 255.255.255.255 255.255.255.255 On-link 1.0.0.1 266 255.255.255.255 255.255.255.255 On-link 192.168.40.9 276 =========================================================================== Persistent Routes: Network Address Netmask Gateway Address Metric 0.0.0.0 0.0.0.0 1.0.0.1 Default =========================================================================== IPv6 Route Table =========================================================================== Active Routes: If Metric Network Destination Gateway 14 1110 ::/0 2002:c058:6301::c058:6301 1 306 ::1/128 On-link 14 1010 2002::/16 On-link 14 266 2002:100:1::100:1/128 On-link 11 266 fe80::/64 On-link 11 266 fe80::18ca:dc9:309f:e6b5/128 On-link 1 306 ff00::/8 On-link 11 266 ff00::/8 On-link =========================================================================== Persistent Routes: None |
#6
|
||||
|
||||
yes, please provifr the route print with the static IP set and the laptop connected.
|
#7
|
||||
|
||||
Here ya go:
Code:
Windows IP Configuration Host Name . . . . . . . . . . . . : Antec Primary Dns Suffix . . . . . . . : Node Type . . . . . . . . . . . . : Hybrid IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . : No Ethernet adapter Internet: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Realtek RTL8139/810x Family Fast Ethernet NIC Physical Address. . . . . . . . . : 00-0E-2E-32-91-06 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes IPv4 Address. . . . . . . . . . . : 192.168.40.5(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.40.254 DNS Servers . . . . . . . . . . . : 8.8.8.8 8.8.4.4 NetBIOS over Tcpip. . . . . . . . : Enabled Ethernet adapter LAN: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Realtek PCIe GBE Family Controller Physical Address. . . . . . . . . : 00-26-18-FA-51-63 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Link-local IPv6 Address . . . . . : fe80::18ca:dc9:309f:e6b5%11(Preferred) IPv4 Address. . . . . . . . . . . : 1.0.0.1(Preferred) Subnet Mask . . . . . . . . . . . : 255.0.0.0 Default Gateway . . . . . . . . . : 0.0.0.0 DHCPv6 IAID . . . . . . . . . . . : 301999640 DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-15-80-9C-F8-00-0E-2E-32-91-06 DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1 fec0:0:0:ffff::2%1 fec0:0:0:ffff::3%1 NetBIOS over Tcpip. . . . . . . . : Enabled Tunnel adapter isatap.{BED8395F-A857-4376-B123-EC440700B0D8}: Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Microsoft ISATAP Adapter Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Tunnel adapter isatap.{E8F93D71-EF0A-4F29-BA82-D38AA10EFD47}: Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2 Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Tunnel adapter Teredo Tunneling Pseudo-Interface: Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Tunnel adapter 6TO4 Adapter: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Microsoft 6to4 Adapter Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes IPv6 Address. . . . . . . . . . . : 2002:100:1::100:1(Preferred) Default Gateway . . . . . . . . . : 2002:c058:6301::c058:6301 DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1 fec0:0:0:ffff::2%1 fec0:0:0:ffff::3%1 NetBIOS over Tcpip. . . . . . . . : Disabled Code:
=========================================================================== Interface List 10...00 0e 2e 32 91 06 ......Realtek RTL8139/810x Family Fast Ethernet NIC 11...00 26 18 fa 51 63 ......Realtek PCIe GBE Family Controller 1...........................Software Loopback Interface 1 16...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter 12...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2 13...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface 14...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter =========================================================================== IPv4 Route Table =========================================================================== Active Routes: Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 On-link 1.0.0.1 266 0.0.0.0 0.0.0.0 192.168.40.254 192.168.40.5 276 1.0.0.0 255.0.0.0 On-link 1.0.0.1 266 1.0.0.1 255.255.255.255 On-link 1.0.0.1 266 1.255.255.255 255.255.255.255 On-link 1.0.0.1 266 127.0.0.0 255.0.0.0 On-link 127.0.0.1 306 127.0.0.1 255.255.255.255 On-link 127.0.0.1 306 127.255.255.255 255.255.255.255 On-link 127.0.0.1 306 192.168.40.0 255.255.255.0 On-link 192.168.40.5 276 192.168.40.5 255.255.255.255 On-link 192.168.40.5 276 192.168.40.255 255.255.255.255 On-link 192.168.40.5 276 224.0.0.0 240.0.0.0 On-link 127.0.0.1 306 224.0.0.0 240.0.0.0 On-link 1.0.0.1 266 224.0.0.0 240.0.0.0 On-link 192.168.40.5 276 255.255.255.255 255.255.255.255 On-link 127.0.0.1 306 255.255.255.255 255.255.255.255 On-link 1.0.0.1 266 255.255.255.255 255.255.255.255 On-link 192.168.40.5 276 =========================================================================== Persistent Routes: Network Address Netmask Gateway Address Metric 0.0.0.0 0.0.0.0 1.0.0.1 Default 0.0.0.0 0.0.0.0 192.168.40.254 Default =========================================================================== IPv6 Route Table =========================================================================== Active Routes: If Metric Network Destination Gateway 14 1110 ::/0 2002:c058:6301::c058:6301 1 306 ::1/128 On-link 14 1010 2002::/16 On-link 14 266 2002:100:1::100:1/128 On-link 11 266 fe80::/64 On-link 11 266 fe80::18ca:dc9:309f:e6b5/128 On-link 1 306 ff00::/8 On-link 11 266 ff00::/8 On-link =========================================================================== Persistent Routes: None |
#8
|
||||
|
||||
Can you ping your default gateway? What happens if you set the static ip to the same one as DHCP assigns?
Just to make sure, the PC your are working on is not the laptop you mentioned above (and that one has DHCP on? Last edited by vive; June 10th, 2011 at 09:46 PM. |
#9
|
||||
|
||||
Yes I can ping the gateway when the static IP is set. And setting the static IP to the same as the DHCP given one still doesn't work. The PC I'm working on is not the laptop.
Just to explain my network setup (which is a bit weird): Code:
Internet -> Modem -> Router A (No wireless) -> Desktop | ------> Router B (wireless) -> Laptop |
#10
|
||||
|
||||
Just to keep the cross chatter down, I'm going to pipe in here quickly with an explanation of what I believe is happening, but will have to think about what the solution should be and get back to you.
The problem can be seen in the last route print. Quote:
|
#11
|
||||
|
||||
Based on z1p's comment, my first thought is to clear the table and see if it solves the problem.
If you choose to do this, >ipconfig /flushdns then ping the default gateway. This should add the IP into the table. Post the new table if this doesn't work. |
#12
|
||||
|
||||
Since you guys were saying it was a problem with the metric, I tried changing the interface metric to 1 in the advanced settings page and that seems to have fixed it. Thanks for the help guys.
|
#13
|
||||
|
||||
Glad to here you're all set. Not sure why win7 wants to set the metric so high, but obviously manually setting it does the trick.
|
Bookmarks |
«
Previous Topic
|
Next Topic
»
Topic Tools | |
|
|
Similar Topics | ||||
Topic | Topic Starter | Forum | Replies | Last Post |
Static IP | komby | Networking | 1 | August 17th, 2007 02:25 PM |
Static IP | linkmaster03 | Networking | 19 | August 16th, 2006 09:48 PM |
Static IP | tom_36 | Networking | 5 | March 28th, 2006 12:47 AM |
Static. | Jimmye | Malware Removal | 2 | March 4th, 2006 04:53 AM |
Setting up static IP stops internet | gibson | Internet / Browsers | 5 | December 31st, 2005 02:22 AM |
All times are GMT +1. The time now is 03:08 PM.