You are not logged in.

#1 2009-09-20 11:28:03

kurt
Member
Registered: 2009-09-06
Posts: 140

Directly Attached Storage

Currently I connect to the internet with a USB Wireless dongle (on wlan0)  via router (192.168.0.1).

Previously my Thecus NAS (192.168.0.100) was attached via the router. I now want to have this directly connected to my computer using eth0,

However when I plug the cable into eth0 my computer refuses to see the NAS. Cannot ping etc.

Any help appreciated.

My ipconfig is as follows:

eth0      Link encap:Ethernet  HWaddr 00:30:05:69:9C:C7 
          inet6 addr: fe80::230:5ff:fe69:9cc7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3598 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4382 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2049783 (1.9 Mb)  TX bytes:548587 (535.7 Kb)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:29056 errors:0 dropped:0 overruns:0 frame:0
          TX packets:29056 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4170519 (3.9 Mb)  TX bytes:4170519 (3.9 Mb)

wlan0     Link encap:Ethernet  HWaddr 00:1E:2A:BB:A6:E9
          inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::21e:2aff:febb:a6e9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4954888 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3489009 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2700019751 (2574.9 Mb)  TX bytes:343260453 (327.3 Mb)

wmaster0  Link encap:UNSPEC  HWaddr 00-1E-2A-BB-A6-E9-00-00-00-00-00-00-00-00-00-00
          UP RUNNING  MTU:0  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

Offline

#2 2009-09-20 11:37:12

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: Directly Attached Storage

You need to configure either your NAS to serve out DHCP leases, or set the NAS and your eth0 to use static addresses....

Offline

#3 2009-09-20 12:05:18

kurt
Member
Registered: 2009-09-06
Posts: 140

Re: Directly Attached Storage

fukawi2 wrote:

You need to configure either your NAS to serve out DHCP leases, or set the NAS and your eth0 to use static addresses....

Thankyou very much worked like a treat. Not surer if what I did was correct but if anyones interested this is what I did:

1) My NAS was already using a fixed IP - 192.168.0.100
2) I copied /etc/network.d/examples/ethernet-static to /etc/network.d/eth0-static
3) Edited eth0-static as follows:

CONNECTION="ethernet-iproute"
DESCRIPTION="A basic static ethernet connection using iproute"
INTERFACE="eth0"
IP="static"
ADDR="192.168.0.101"
#GATEWAY="192.168.1.1"
#DNS=("192.168.1.1")

4) Upped the network - netcfg eth0-static and I can see and mount my shares on the NAS

So once again fukawi2 thankyou.

Offline

Board footer

Powered by FluxBB