Question:
Lose internet after plugging in NAS?
Tek
2011-07-10 17:35:37 UTC
I have a wireless router, Win XP PC and NAS box. The PC has two Ethernet network adapters, one for a wireless NIC card ("WLAN0") to access the router and the other ("LAN0") directly connected to the NAS.

Normally, my NAS box is off (the "LAN0" adapter will indicate "disconnected").

But, when I plug in my NAS box and mount it as a network drive, I lose access to the external internet (but the NAS works fine).

I think I may have misconfigured my static IP addresses, subnet or gateway settings. Can anyone point me in the right direction?

Upon reviewing the routing tables (via "route print") I see that plugging in the NAS box adds a default route through the "LAN0" interface and duplicates a number of other table entries. I suspect that this change is causing my internet traffic to get routed to my NAS box which is why it fails.

I have assigned static IPs to the WLAN0 and LAN0 adapters as well as the NAS box. I have done this to simplify things and enable me to mount the drive easier.

- Wireless router: IP:192.168.1.1
- PC:"WLAN0" adapter: IP:192.168.1.190, subnet:255.255.255.0, gateway: 192.168.1.1
- PC:"LAN0" adapter: IP:192.168.1.200, subnet:255.255.255.0, gateway: none
- NAS: IP: 192.168.1.199, subnet:255.255.255.0, gateway: 192.168.1.1

Thank you very much for any help!
Four answers:
Andrew S
2011-07-10 18:05:47 UTC
The problem you have here is that both networks cards are configured with the same network address. When the NAS is turned on and the interface is marked up (bringing its routing tables into play) it continues to forward non-local traffic to 192.168.1.1. However, because the IP addresses are on the same network your computer regards the interfaces as equivalent, and will attempt to reach the gateway via the wired link in preference to the wireless one.



To resolve this you need to switch the network range of one or other interface. I suggest the NAS device. Log into it and change its IP settings to e.g. 192.168.2.199 netmask 255.255.255.0, and then on your computer change LAN0's address to 192.168.2.200 netmask 255.255.255.0. That should resolve the issue.
?
2011-07-10 18:11:04 UTC
I think you may be correct about the traffic routing issue. I would either attach the NAS to a switch or directly to the router. Or set up the NAS and LAN0 as a separate network, ie 192.168.2.xxx Or possibly set the NAS Gateway as the LAN0 address.
Adrian
2011-07-10 19:23:32 UTC
LAN0 needs the same gateway, 192.168.1.1.

That said, all this should be off one network adapter only, on the same subnet - then you will not have problems...
lolita
2016-11-30 16:38:36 UTC
you're eathier unpluging some thing it incredibly is concerning your internet connection once you plug on your ipod or the ipod takes up the mandatory bandwith/power necessary to bypass on line once you plug it in. attempt contacting apple. they have shopper service on their web site.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...