Changing your CeroWrt IP Addresses, DNS settings, SSID¶
Changing interfaces, router name, your ip addresses or SSID are tedious using the default web interface, and it is much faster to do it at the command line.
The Automated Configuration of CeroWrt page provides a script that systematically changes these addresses, as well as configuring other aspects of the router in a single step.
Changing your IP subnets using sed¶
NEWIP=your.new.ip REVIP=ip.new.your sed -i s#172.30.42#$NEWIP#g /etc/config/* /etc/babel* /etc/chroot/named/etc/bind/*/* sed -i s#42.30.172#$REVIP#g /etc/chroot/named/etc/bind/*/*
Say, for example, you wanted to have a 192.168.1 layout (not that we recommend you do this):
sed -i s#172.30.42#192.168.1#g /etc/config/* /etc/babel* /etc/chroot/named/etc/bind/*/* sed -i s#42.30.172#1.168.192#g /etc/chroot/named/etc/bind/*/*
Note that this preserves the /27 networks (so that ethernet devices need to be in the 1-31 range) which we think is a good idea regardless, due to the multicast issue.
Changing your CeroWrt domain via sed¶
You can also change the default 'home.lan' domain to something else using sed.
NEWNAME=your.domain sed -i s#home.lan#$NEWNAME#g /etc/config/* /etc/hosts /etc/chroot/named/etc/bind/*/*
Changing your SSID globally¶
CeroWrt has a multitude of network interfaces enabled. The SSIDs all contain the string "CEROwrt", and it's hard to change the SSID via the web interface. However, if you want your own SSIDs, another sed command will get you there.
sed -i s#CEROwrt#YOURNEWSSID#g /etc/config/wireless
Note: After doing any of these modifications your router will be thoroughly confused unless you reboot, so reboot.