• February 28, 2025, 06:53:17 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: NAS not connecting to internet when using static IP  (Read 7871 times)

beefy314

  • Level 2 Member
  • **
  • Posts: 34
NAS not connecting to internet when using static IP
« on: March 10, 2010, 10:11:12 PM »

Using a Linksys DDWRT, if the NAS is set to have a static IP, it can't access the internet but as a DHCP client, it works.

I also tried configuring the NAs to have an IP outside of the DHCP range and iput the MAC address and IP address of the NAS on the routers static IP clients. Still didn't work.

Can anyone help me?
Logged

fordem

  • Level 10 Member
  • *****
  • Posts: 2168
Re: NAS not connecting to internet when using static IP
« Reply #1 on: March 11, 2010, 04:16:16 AM »

Are you setting DNS server and gateway entries?
Logged
RAID1 is for disk redundancy - NOT data backup - don't confuse the two.

beefy314

  • Level 2 Member
  • **
  • Posts: 34
Re: NAS not connecting to internet when using static IP
« Reply #2 on: March 11, 2010, 04:24:57 AM »

I don't recall doing anything of that sort. All I did was to enable the DHCP server of the router.
Logged

dosborne

  • Level 5 Member
  • *****
  • Posts: 598
Re: NAS not connecting to internet when using static IP
« Reply #3 on: March 11, 2010, 05:19:21 AM »

If you set the DNS-323 to use DHCP client, and the router is running a DHCP server, then the DNS-323 gets its IP, subnet mask and default gateway info from the router. The DNS servers must be manually entered.
Example:
Router has a static IP of 192.168.1.1 and has a DHCP server configure for the range 192.168.1.50 to 192.168.1.99
The DNS-323 is set to use the DHCP client, it will be assigned an address (first would be 192.168.1.50) and the subnet mask would be set to 255.255.255.0 and the gateway would be automatically set to 192.168.1.1 (the IP of the router), you would have to set the DNS servers to the proper values for your ISP.

If you set the DNS-323 to use a static IP, then you must manually configure the IP, subnet mask, DNS servers and default gateway.
Example:
Router has a static IP of 192.168.1.1
DNS-323 has a staic IP of 192.168.1.2, subnet mask of 255.255.255.0, gateway of 192.168.1.1 (the IP of your router), DNS1 and DNS2 have the IP addresses of the DNS servers of your ISP.

You should not have to set any routing tables/entries using these configurations (unless you have a very complex environment - which it sounds like you do not have).
« Last Edit: March 11, 2010, 05:28:59 AM by dosborne »
Logged
3 x DNS-323 with 2 x 2TB WD Drives each for a total of 12 TB Storage and Backup. Running DLink Firmware v1.08 and Fonz Fun Plug (FFP) v0.5 for improved software support.

gunrunnerjohn

  • Level 11 Member
  • *
  • Posts: 2717
Re: NAS not connecting to internet when using static IP
« Reply #4 on: March 11, 2010, 05:28:20 AM »

FWIW, both my DNS-321 and DNS-323 are configured with static IP addresses, and they access the Internet just fine.  If you properly configure the IP addresses it'll work.
Logged
Microsoft MVP - Windows Desktop Experience
Remember: Data you don't have two copies of is data you don't care about!
PS: RAID of any level is NOT a second copy.

dosborne

  • Level 5 Member
  • *****
  • Posts: 598
Re: NAS not connecting to internet when using static IP
« Reply #5 on: March 11, 2010, 05:30:20 AM »

Same here, I always use static IP addresses for all my wired systems and use DHCP only for my wireless clients (laptops).
Logged
3 x DNS-323 with 2 x 2TB WD Drives each for a total of 12 TB Storage and Backup. Running DLink Firmware v1.08 and Fonz Fun Plug (FFP) v0.5 for improved software support.

gunrunnerjohn

  • Level 11 Member
  • *
  • Posts: 2717
Re: NAS not connecting to internet when using static IP
« Reply #6 on: March 11, 2010, 05:39:35 AM »

I use static IP addresses for any server devices, network printers, NAS, Linux server, etc.  I use DHCP for all the standard workstations, makes it easier to maintain the network. :)
Logged
Microsoft MVP - Windows Desktop Experience
Remember: Data you don't have two copies of is data you don't care about!
PS: RAID of any level is NOT a second copy.

beefy314

  • Level 2 Member
  • **
  • Posts: 34
Re: NAS not connecting to internet when using static IP
« Reply #7 on: March 11, 2010, 08:36:24 AM »

My NAs used to work with a static IP and my router(Siemens) being the DHCP server.

But when I changed my router to linksys(DD-wrt firmware), the NAS couldn't access the net anymore unless I set it to DHCP client.

When set to have static IP, it automatically inputs the correct values for subnet mask, gateway and DNS1. But even with these parameters, it still couldn't connect to the net :(
Logged

Wiggs

  • Level 3 Member
  • ***
  • Posts: 137
    • dwithers.com
Re: NAS not connecting to internet when using static IP
« Reply #8 on: March 11, 2010, 09:17:19 AM »

Are you sure that the static IP address you have assigned the NAS is outside the DHCP ip range on the router?  Is it possible another device is using the same IP address?

Logged
Wiggs,

DNS-323, 2-500GB Seagate Drives, FW 1.08
D-Link DGS-1005G Gigabit Switch
Asus O!Play Air Media Player
WinXP PC
OpenSuse 11.2 PC
Macbook 5,2 - Snow Leopard

fordem

  • Level 10 Member
  • *****
  • Posts: 2168
Re: NAS not connecting to internet when using static IP
« Reply #9 on: March 11, 2010, 01:08:43 PM »

When set to have static IP, it automatically inputs the correct values for subnet mask, gateway and DNS1. But even with these parameters, it still couldn't connect to the net :(

There is no "automatic input" when you're configuring a static address - the onus is on YOU to make sure ALL of the required entries are in place.

Consider the "ghost" entries you see on a DNS-323 to be suggestions, but the final say as to what should be there comes from you.
Logged
RAID1 is for disk redundancy - NOT data backup - don't confuse the two.

dosborne

  • Level 5 Member
  • *****
  • Posts: 598
Re: NAS not connecting to internet when using static IP
« Reply #10 on: March 11, 2010, 04:44:13 PM »

Sounds like you are missing the default gateway or you used an incorrect value.
Logged
3 x DNS-323 with 2 x 2TB WD Drives each for a total of 12 TB Storage and Backup. Running DLink Firmware v1.08 and Fonz Fun Plug (FFP) v0.5 for improved software support.