Give your Optware Pogoplug/Dockstar a static IP (from a note by OddballHero)

Do this at your own risk! No warranty implied.
Be careful, modifying you rcS can “brick/break” the plug!
If you don’t feel comfortable doing this then don’t.
If you don’t know how to edit the file, then don’t.
Make sure that you read everything below before doing anything and that you know how to perform the modifications. If not, don’t.

You should also make a backup of your rcS.

You need to leave the rcS mostly unchanged to minimize the chance of bricking your Pogoplug. Let “udhcpc” get most of the information and create the resolv.conf so that in case parameters change with your network, you can recover. Using nano/vim, create a file:

nano /opt/etc/init.d/S22static

#!/bin/sh
/sbin/ifconfig eth0 192.168.aaa.bbb
echo “nameserver 192.168.ccc.ddd” >> /tmp/resolv.conf
## Uncomment the lines below to add Google’s public name servers.
#echo “nameserver 8.8.8.8″ >> /tmp/resolv.conf
#echo “nameserver 8.8.4.4″ >> /tmp/resolv.conf

Modify aaa.bbb with the information for your static ip and ccc.ddd with the address of your local dns server. Then save and close the editor.

Next make the file executable with:

chmod 755 /opt/etc/init.d/S22static

This way, if something goes wrong, you can boot up without the usb drive and can still get the dhcp info like the stock setup.

Reboot and check your ip address with:

ipconfig

It should show your static IP.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: