|Deletions are marked like this.||Additions are marked like this.|
|Line 102:||Line 102:|
|root@DD-WRT:~# nvram commit|
This documents details of how the core switching infrastructure is built, in case it needs to be redone in the future.
Some random notes on the core switch build and configuration...
two Cisco/Linksys E4200 v1 for redundant operation and a third as a cold spare
- higher-capacity 5A power supplies for each (radio dropouts are suspected to be due to under-specified factory supplies)
- remove the original housings and add heatsinks and thermal adhesive for the switch chips (similarly, stability issues are thought to come from overheating)
DD-WRT standard instead of mini (because it adds IPv6 and SNMP support)
with modern Iceweasel/Firefox use Web Developer -> Get More Tools and install the Web Developer Extension, then after restarting use Web Developer Extension -> Miscellaneous -> Clear Private Data -> Clear HTTP Authentication to clear HTTP Basic Auth credentials after changing DD-WRT management passwords (otherwise any attempts to Save/Apply changes just go to a failure error or blank page)
beer (yes, it is necessary to the process)
First perform these steps on each device to get the hardware up on the current DD-WRT firmware with desired features...
perform a 30/30/30 hard reset to make sure it's at factory defaults (note this is using the recessed red reset button, not the protruding blue one for WDS)
plug your machine's wired interface into the Ethernet 4 port
set the interface to a static address of 192.168.1.2 and make sure you can reach the device at 192.168.1.1 (sudo ip address add 192.168.1.2/30 dev eth0 ; sudo ip link set up dev eth0 ; ping -c1 192.168.1.1 >/dev/null ; ip neighbor show dev eth0)
connect to the management WebUI (initial login is a username of root with the password admin)
upgrade the flash with a trailed E4200 mini build like dd-wrt.v24-18777_NEWD-2_K2.6_mini-e4200.bin (the Cisco/Linksys firmware updater looks for special headers, so this is the first in a two-stage load)
- wait five minutes to make sure everything's booted and written to NVRAM (now is a good time to grab a beer)
perform another 30/30/30 to make sure any configuration artifacts are reset to the defaults for this build
confirm the DD-WRT password reset page is displayed
- set root/admin as the new login (yes, I know that's the same as the old login)
upgrade flash with a more featureful NV60K build like dd-wrt.v24-20453_NEWD-2_K2.6_std_usb_nas-nv60k.bin (this adds IPv6 and SNMP support, which we'll want)
- wait an additional five minutes (and grab another beer if you like)
perform yet another 30/30/30
- wait five more minutes (another beer... why not?)
confirm password reset page is displayed and Firmware: DD-WRT v24-sp2 (12/31/12) std-usb-nas shows in the top-right corner
- set root/admin as the new login again (if you've managed not bricking it, congrats... celebrate your success with more beer)
After sobering up a bit, set these basic configuration options which deviate from the factory default configuration settings...
Replace Telnet And HTTP With SSH And HTTPS
fungi@tsathoggua:~$ telnet 192.168.1.1 Trying 192.168.1.1... Connected to 192.168.1.1. Escape character is '^]'. DD-WRT v24-sp2 std (c) 2012 NewMedia-NET GmbH Release: 12/31/12 (SVN revision: 20453) DD-WRT login: root Password: admin ========================================================== ____ ___ __ ______ _____ ____ _ _ | _ \| _ \ \ \ / / _ \_ _| __ _|___ \| || | || | || ||____\ \ /\ / /| |_) || | \ \ / / __) | || |_ ||_| ||_||_____\ V V / | _ < | | \ V / / __/|__ _| |___/|___/ \_/\_/ |_| \_\|_| \_/ |_____| |_| DD-WRT v24-sp2 http://www.dd-wrt.com ========================================================== BusyBox v1.20.2 (2012-12-31 04:45:18 CET) built-in shell (ash) Enter 'help' for a list of built-in commands. root@DD-WRT:~# nvram set sshd_enable=1 root@DD-WRT:~# startservice sshd root@DD-WRT:~# nvram set https_enable=1 root@DD-WRT:~# nvram set http_enable=0 root@DD-WRT:~# startstop httpd root@DD-WRT:~# nvram set telnetd_enable=0 root@DD-WRT:~# stopservice telnetd Connection closed by foreign host. fungi@tsathoggua:~$ ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no firstname.lastname@example.org Warning: Permanently added '192.168.1.1' (RSA) to the list of known hosts. DD-WRT v24-sp2 std (c) 2012 NewMedia-NET GmbH Release: 12/31/12 (SVN revision: 20453) email@example.com's password: admin ========================================================== ____ ___ __ ______ _____ ____ _ _ | _ \| _ \ \ \ / / _ \_ _| __ _|___ \| || | || | || ||____\ \ /\ / /| |_) || | \ \ / / __) | || |_ ||_| ||_||_____\ V V / | _ < | | \ V / / __/|__ _| |___/|___/ \_/\_/ |_| \_\|_| \_/ |_____| |_| DD-WRT v24-sp2 http://www.dd-wrt.com ========================================================== BusyBox v1.20.2 (2012-12-31 04:45:18 CET) built-in shell (ash) Enter 'help' for a list of built-in commands. root@DD-WRT:~# nvram commit root@DD-WRT:~#
root@DD-WRT:~# setuserpasswd root somepassword root@DD-WRT:~# setpasswd root somepassword
Turn Off Both Radios
root@DD-WRT:~# wl -i eth1 radio off root@DD-WRT:~# wl -i eth2 radio off
root@DD-WRT:~# reboot root@DD-WRT:~# Connection to 192.168.1.1 closed by remote host. Connection to 192.168.1.1 closed.