I’m having some problems with setting static ip and maintaining Internet
access on my Frelink Linkstation Pro

If I enable the dhcp Internet access is fine but I want a fixed IP to
setup my Squeezebox 3  Alien BBC etc

When I use the script as below with my network particulars which are
all based on a 192.168.10.1 gateway 
I get my required static ip but I loose my internet connection.

In the old days one could add the 
Nameserver line in /etc/resolv.conf  and all would be well 
but with current Debian this seems to be not so. 

I noted the below post from Tired legs written a few months back which
still has the vi /etc/resolv.conf
mentioned . When I try to do this I get some warning that the file will
be overwritten.


QUOTE
When I FreeLinked my LS Pro, I used this sequence to create the static
IP address:

vi /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.10.30
network 192.168.10.0
netmask 255.255.255.0
#broadcast 192.168.10.255
gateway 192.168.10.1
#dns-nameservers 192.168.10.1
[The lines starting with "#" were in the file previously. Adding "#"
comments them out, but leaves them readable in case you need to back
out the edits.]

vi /etc/resolv.conf
nameserver 192.168.10.1
END QUOTE 

I’m no expert at this but has anyone got a working solution. 

I don’t think my network is that unusual. I have a Cisco ADSL modem
which acts as my router and is set up as 192.168.10.1 
This connects to an 8 port switch into which my PC’s and Linkstation
Pro are all hardwired. I also have a Linksys wireless router connected
into the switch with ip’s in the range 192.1687.1.x on the wireless
side. This communicates fine with the SB3 and the SB3 and Linkstation
Pro communicate just fine.

I think I have the dhcp switched off on the Linksys leaving the Cisco
doing all the dhcp stuff

I saw an article somewhere on the net pointing out that one should
bring down the network before making changes to
/etc/network/interfaces. Clearly if I do this with an Ethernet
connected Linkstation I’m not going to get very far as it will drop off
my ssh session

Should I add some nameservers into the above script?. Should I
uncomment the broadcast? I think I’ve tried both 
I’m a bit nervous about random changes as some combination left me with
a Linkstation I could not talk to without invoking EM mode

Any ideas?

Thanks in advance

Eddie


-- 
jwepugh
------------------------------------------------------------------------
jwepugh's Profile: http://forums.slimdevices.com/member.php?userid=1606
View this thread: http://forums.slimdevices.com/showthread.php?t=42015

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix

Reply via email to