Most times when I switch on my SBR I have lost my connection to MSB.com so I was going to try using a static wireless IP in case its something to do with my DHCP but I can't seem to find in the settings where I can set that up. Can anyone help? TIA.
Results 1 to 10 of 11
Thread: How to set static IP address?
-
2010-03-18, 10:52 #1Junior Member
- Join Date
- Feb 2010
- Posts
- 2
How to set static IP address?
-
2010-03-18, 11:27 #2
It is possible to ssh into the SB Radio and tweak a few settings to set a true static IP, but it may be wiped out be a firmware upgrade or factory reset. An easier way is to use the settings on your router to reserve an IP address for the SB Radio (so-called "static DHCP"). Be sure that the address you choose to give the Radio is from outside the range that the router allocates dynamically via DHCP.
-
2010-03-18, 13:46 #3Junior Member
- Join Date
- Feb 2010
- Posts
- 2
Thanks for the quick reply.
Unfortunately my linksys WRT54G does not appear to have that ability unless I upgrade to 3rd party DD-WRT firmware which I could do but is a lot of effort to just prove a theory.
I think I'll remove the squeezebox server I have running and see if that makes the connection to msb.com more reliable and if I still have problems re-post in a different thread.
-
2010-03-18, 14:08 #4
If you edit the "etc/network/interfaces" file.
This can be done with ssh and vi .
This change survives firmware update but not factory reset.
Trues static ip removes both the DCHP server and DCHP client out of the equation .
If one is using ip reservation the router you are still exposed to possible bugs and hickups in the DCHP mechanism at both ends--------------------------------------------------------------------
Main hifi: Touch + CIA PS +MeridianG68J MeridianHD621 MeridianG98DH 2 x MeridianDSP5200 MeridianDSP5200HC 2 xMeridianDSP3100 +Rel Stadium 3 sub.
Bedroom/Office: Boom
Kitchen: Touch + powered Fostex PM0.4
Misc use: Radio (with battery)
iPad1 with iPengHD & SqueezePad
(in storage SB3, reciever ,controller )
server HP proliant micro server N36L with ClearOS Linux
http://people.xiph.org/~xiphmont/demo/neil-young.html
-
2010-03-18, 14:37 #5Senior Member
- Join Date
- Aug 2005
- Posts
- 246
Along these same lines, I'm finding it difficult to revert to hardwired use after previously setting up the Radio for wireless, particularly if the wireless access point is still available and accepting connections. Is there a simple way to edit this file to have the Radio use the eth0 interface by default instead of eth1 (which wireless uses)? Ideally, I'd like to have the radio use eth0 if it's plugged in and eth1 if not, but I don't think that level of automation is in the cards with the limited version of linux on the Radio.
Thanks, -markLast edited by mbonsack; 2010-03-18 at 14:40.
-
2010-03-18, 14:45 #6--------------------------------------------------------------------
Main hifi: Touch + CIA PS +MeridianG68J MeridianHD621 MeridianG98DH 2 x MeridianDSP5200 MeridianDSP5200HC 2 xMeridianDSP3100 +Rel Stadium 3 sub.
Bedroom/Office: Boom
Kitchen: Touch + powered Fostex PM0.4
Misc use: Radio (with battery)
iPad1 with iPengHD & SqueezePad
(in storage SB3, reciever ,controller )
server HP proliant micro server N36L with ClearOS Linux
http://people.xiph.org/~xiphmont/demo/neil-young.html
-
2010-03-19, 02:50 #7Senior Member
- Join Date
- Jan 2010
- Posts
- 122
I didn't know that Factory Reset would wipe this out but I guess it makes sense
I have saved copies of the "static IP" interfaces file and the original DHCP interfaces file in the /etc/networks directory. Does a Factory Reset wipe and recreate the file system completely? Would I lose these backup files?Last edited by stevedresden; 2010-03-19 at 03:17.
-
2010-03-19, 03:02 #8--------------------------------------------------------------------
Main hifi: Touch + CIA PS +MeridianG68J MeridianHD621 MeridianG98DH 2 x MeridianDSP5200 MeridianDSP5200HC 2 xMeridianDSP3100 +Rel Stadium 3 sub.
Bedroom/Office: Boom
Kitchen: Touch + powered Fostex PM0.4
Misc use: Radio (with battery)
iPad1 with iPengHD & SqueezePad
(in storage SB3, reciever ,controller )
server HP proliant micro server N36L with ClearOS Linux
http://people.xiph.org/~xiphmont/demo/neil-young.html
-
2010-03-19, 03:21 #9Senior Member
- Join Date
- Jan 2010
- Posts
- 122
As I mentioned elsewhere the more detailed instructions to set a static IP are buried in other threads, so here is a fuller explanation
HOW TO SET A STATIC IP ADDRESS
==============================
On your router, assign a static IP address to the Squeezebox radio, outside of the DHCP address space. It's also worth considering setting a static IP address on the server/PC you have running SBS for maximum stability of the connection.
Enable remote login on the Squeezebox radio, and note the username and password for SSH. (default user name is root and default password is 1234)
To enable remote login: From the home menu, go to Settings > Advanced > Remote Login > Enable SSH.
To make an SSH / telnet connection to radio you need to load a piece of software - PuTTY is ideal as it's free and excellent. You will need to know the current DHCP IP address of the player and connect to that using the username/password.
Once you have connected and got a command prompt it is enormously helpful if you know a bit of UNIX. If you don't then I can add more info but I'm assuming that anyone brave enough to even think about this will know enough to get by
NB:The first thing I did was change the default password! just type passwd at the command shell and follow the prompts
The file with the networking config you need to edit is called interfaces and sits in the /etc/network directory
The default file looks something like this:
===========================================
auto lo
iface lo inet loopback
mapping eth1
script /etc/network/if_mapping
auto eth1=YOUR-WIRELESS-NETWORK-SSID
iface YOUR-WIRELESS-NETWORK-SSID inet dhcp
script /etc/network/udhcpc_action
===========================================
Take a copy of this file before you attempt to change it! (eg unix command - cp interfaces interfaces.orig)
Once you have a safe backup you need to edit the interfaces file using the VI editor.
The new file for a static IP address should look like this
============================================
auto lo
iface lo inet loopback
mapping eth1
script /etc/network/if_mapping
auto eth1=YOUR-WIRELESS-NETWORK-SSID
iface YOUR-WIRELESS-NETWORK-SSID inet static
address YOUR.STATIC.IP.ADDRESS
netmask 255.255.255.0
gateway YOUR.ROUTER.IP.ADDRESS
dns YOUR.ROUTER.IP.ADDRESS
up echo 'nameserver YOUR.ROUTER.IP.ADDRESS' > /etc/resolv.conf
==================================================
Obviously the IP addresses should just be in standard xxx.xxx.xxx.xxx format usually something like 192.168.100.1
Once you've double-checked that you have this right then reboot the radio by typing reboot at the command prompt
Hey presto should now have the static IP address - if it goes horribly wrong then you'll need to either move the interfaces.orig back (which may not be possible if you have screwed the radio connectivity - you might not be able to SSH!) do a factory reset
-
2010-03-19, 04:28 #10
Here is whatwhat I'm using:
Obviusly I'm on wireless "eth0"Code:auto lo iface lo inet loopback mapping eth0 script /etc/network/if_mapping auto eth0=Liogor iface Liogor inet static address 192.168.1.6 network 192.168.1.0 broadcast 192.168.1.255 netmask 255.255.255.0 gateway 192.168.1.1 dns 192.168.1.1 up echo 'nameserver 192.168.1.1' > /etc/resolv.conf
not this line auto eth0=<my SSID> "auto eth0=Liogor"
This is a difference after 7.3 this was not needed in 7.3 but 7.4 and above needs this line for some reason.
I figured by looking at the file the controller itself had created and noticed the difference 7.3 vs 7.4Last edited by Mnyb; 2012-12-22 at 13:29.
--------------------------------------------------------------------
Main hifi: Touch + CIA PS +MeridianG68J MeridianHD621 MeridianG98DH 2 x MeridianDSP5200 MeridianDSP5200HC 2 xMeridianDSP3100 +Rel Stadium 3 sub.
Bedroom/Office: Boom
Kitchen: Touch + powered Fostex PM0.4
Misc use: Radio (with battery)
iPad1 with iPengHD & SqueezePad
(in storage SB3, reciever ,controller )
server HP proliant micro server N36L with ClearOS Linux
http://people.xiph.org/~xiphmont/demo/neil-young.html

Reply With Quote

