Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Junior Member
    Join Date
    Feb 2010
    Posts
    2

    How to set static IP address?

    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.

  2. #2
    Senior Member aubuti's Avatar
    Join Date
    Oct 2005
    Posts
    8,354
    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.

  3. #3
    Junior 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.

  4. #4
    Senior Member Mnyb's Avatar
    Join Date
    Feb 2006
    Location
    Västerås Sweden
    Posts
    11,673
    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

  5. #5
    Senior Member
    Join Date
    Aug 2005
    Posts
    246
    Quote Originally Posted by Mnyb View Post
    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.
    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, -mark
    Last edited by mbonsack; 2010-03-18 at 14:40.

  6. #6
    Senior Member Mnyb's Avatar
    Join Date
    Feb 2006
    Location
    Västerås Sweden
    Posts
    11,673
    Quote Originally Posted by mbonsack View Post
    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, -mark
    No idea, but it would be a cool feature, when you use it with battery sometimes you have a nearby ethernet outlet, so this would make sense to me.
    --------------------------------------------------------------------
    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

  7. #7
    Senior Member
    Join Date
    Jan 2010
    Posts
    122
    Quote Originally Posted by Mnyb View Post
    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.
    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.

  8. #8
    Senior Member Mnyb's Avatar
    Join Date
    Feb 2006
    Location
    Västerås Sweden
    Posts
    11,673
    [QUOTE=stevedresden;526357]
    Quote Originally Posted by Mnyb View Post
    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.

    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?
    Donu I have the redo the network config after a factory reset so i thinks its gone, but i keep a text file in my computer i just cut and paste, you could have a copy and scp it over.
    --------------------------------------------------------------------
    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

  9. #9
    Senior 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

  10. #10
    Senior Member Mnyb's Avatar
    Join Date
    Feb 2006
    Location
    Västerås Sweden
    Posts
    11,673
    Here is whatwhat I'm using:

    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
    Obviusly I'm on wireless "eth0"

    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.4
    Last 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •