#v1.4 Feb 29, 2012
#***************************
#Settings start here
#***************************
#basic connection settings
SERVER_IP4_ADDR="enter ip here"
CLIENT_IPV6_ADDR="enter ip here"
ROUTED_64_ADDR="enter ip here"
#account info to auto update endpoint
USERID="enter your hex user id. NOT text username"
PASSWD="your plain text password"
TUNNELID="your numeric tunnel id"
#HE's endpoint verificiation server ip to add to whitelist
HE_VERIFY_SERVER_IP="66.220.2.74"
#WAN IP Source settings
#Set below to 1 to use internal NVRAM wan address instead of fetching it from a site
USE_NVRAM_WAN_ADDR_INSTEAD=1
WAN_IP_SOURCE_ADDR="http://automation.whatismyip.com/n09230945.asp"
#logging settings (set to /dev/null for no logging)
STARTUP_SCRIPT_LOG_FILE="/tmp/ipv6.log"
CRON_STATUS_LOG_FILE="/tmp/lastHEUpdate.log"
#Enable this to generate a .wanup script to automatically update local tunnel endpoint address on wan change
ENABLE_WANUP_SCRIPT=1
WANUP_SCRIPT_FILE_PATH="/tmp/etc/config/tunnelUpdate.wanup"
#get a hash of the plaintext password
MD5PASSWD=`echo -n $PASSWD | md5sum | sed -e 's/ -//g'`
echo `date` >> $STARTUP_SCRIPT_LOG_FILE
#cut out the "/64" if user typed it in
ROUTED_64_ADDR=`echo $ROUTED_64_ADDR|cut -f1 -d/`
SERVER_IP4_ADDR=`echo $SERVER_IP4_ADDR|cut -f1 -d/`
CLIENT_IPV6_ADDR=`echo $CLIENT_IPV6_ADDR|cut -f1 -d/`
echo "User added addresses cleaned/checked" >> $STARTUP_SCRIPT_LOG_FILE
#get wan ip for our own use
if [ $USE_NVRAM_WAN_ADDR_INSTEAD -eq 1 ]
then
echo "Fetching WAN IP from NVRAM" >> $STARTUP_SCRIPT_LOG_FILE
WANIP=$(nvram get wan_ipaddr);
else
echo "Fetching WAN IP from External Site: " $WAN_IP_SOURCE_ADDR >> $STARTUP_SCRIPT_LOG_FILE
WANIP=`wget $WAN_IP_SOURCE_ADDR -O - 2>/dev/null`
fi
echo "External IP detected as:" $WANIP >> $STARTUP_SCRIPT_LOG_FILE
if [ -n $WANIP ]
then
echo "configuring tunnel" >> $STARTUP_SCRIPT_LOG_FILE
#update HE endpoint
#need to alllow wan ping or HE will not validate new endpoint
iptables -I INPUT 2 -s $HE_VERIFY_SERVER_IP -p icmp -j ACCEPT
echo -e wget -q "http://ipv4.tunnelbroker.net/ipv4_end.php?ip=$WANIP&pass=$MD5PASSWD&apikey=$USERID&tid=$TUNNELID" -O $CRON_STATUS_LOG_FILE >>$CRON_JOB_FILE
chmod +x $CRON_JOB_FILE
echo "Cron script created, sending endpoint update request to HE" >> $STARTUP_SCRIPT_LOG_FILE
etime=`date +%s`
wget -q "http://ipv4.tunnelbroker.net/ipv4_end.php?ip=$WANIP&pass=$MD5PASSWD&apikey=$USERID&tid=$TUNNELID" -O /tmp/wget.tmp.$etime
cat /tmp/wget.tmp.$etime >> $STARTUP_SCRIPT_LOG_FILE
echo "" >> $STARTUP_SCRIPT_LOG_FILE
rm /tmp/wget.tmp.$etime
# The following commands are straight from HE's website
ip tunnel add he-ipv6 mode sit remote $SERVER_IP4_ADDR local $WANIP ttl 255
ip link set he-ipv6 up
ip addr add $CLIENT_IPV6_ADDR/64 dev he-ipv6
ip route add ::/0 dev he-ipv6
ip -f inet6 addr
TEMP_ADDR=`echo $ROUTED_64_ADDR'1'`
# These commands aren't on HE's website, but they're necessary for the tunnel to work
ip -6 addr add $TEMP_ADDR/64 dev br0
ip route add 2000::/3 dev he-ipv6
- its SO IMPORTANT to do a proper 30-30-30
sometime the GUI is showing one thing and in the back it runs something different.
- Set the TIME correctly ... put in a time server "time.nist.gov"
During the initial setup ... I had both routers in my office ... just a few meters apart and got 1300
Now in my final setup a few rooms and walls apart I still get 350 to 400 Mbits
Good luck,
Robert
So to remove the possibility that there is too much interference in the city, I took my routers to the middle of nowhere. I have no AT&T cellular connection here, barely have verizon cellular, on 35 acre wooded plot, with the nearest house about 0.1 miles away. In the basement with routers about 10 feet apart with no walls between and still get 150Mbps. So I t think it's safe to say, it's not interference.
I'm going to try adding the time server as time.nist.gov and doing a 30-30-30 reboot and see what happens.
Update: I did a reboot via telnet > erase nvram > reboot on both routers.
Changed settings as previously discussed (AP, N only, channel 149, lower lower, 80) and client bridge, etc. did the time zone and time.nist.gov....
And still get 150Mbps... I am beginning to think there is something wrong with the hardware as I am now trying this in a rural setting with little interference.
Would it be possible to connect two D1800H via WDS on the 5GHZ band so that clients (i just have ABGN clients) could connect to each of the two router and the speed is not halfed due to WDS since the WDS is on the seperate 5GHZ band?
Joined: 06 Jun 2006 Posts: 5786 Location: Dresden, Germany
Posted: Sun Jun 24, 2012 12:24 Post subject:
you dont need that. the D1800 has 2 wireless interfaces.
the first one wl0 is 5 ghz only and 802.11ac compatible. wl1 is 2.4 and 5 ghz capable and does 3x3 802.11n (450 mbit) _________________ one cigarette costs 2 minutes of your life.
one bottle of beer costs 4 minutes of your life.
one working day costs 8 hours of your life.
DD-WRT supported Concerts @ Bunker Dresden
6.4. - Black Celebration Depeche Mode Fanmeeting LIVE: Blind Passenger vs. Modular Majesty
28.6. - Fixmer & McCarthy
17.8. - Frontline Assembly & Haujobb
you dont need that. the D1800 has 2 wireless interfaces.
the first one wl0 is 5 ghz only and 802.11ac compatible. wl1 is 2.4 and 5 ghz capable and does 3x3 802.11n (450 mbit)
So could I use the first one, 5 ghz only for the backbone between the two router, and the wl1 on each of the two router for connection for the clients.
I'd like to have just two SSIDs
wdslink is the one of wl0 802.11ac used for WDS and should not used by clients
homenet is the SSID of both routers to which the clients (max up to N) should connect to
So I have merely just one net "homenet" used for the clients to connect to with up to 300mbits. Since the backbone is 802.11ac it should be fast enough even with halfed speed due to WDS?
Joined: 06 Jun 2006 Posts: 5786 Location: Dresden, Germany
Posted: Sun Jun 24, 2012 14:33 Post subject:
if will not be half speeded since you're just using a single wds link. but consider also to use simply client bridge mode. it works as good as wds with the last broadcom drivers and does also not have any problems with encrypted networks. _________________ one cigarette costs 2 minutes of your life.
one bottle of beer costs 4 minutes of your life.
one working day costs 8 hours of your life.
DD-WRT supported Concerts @ Bunker Dresden
6.4. - Black Celebration Depeche Mode Fanmeeting LIVE: Blind Passenger vs. Modular Majesty
28.6. - Fixmer & McCarthy
17.8. - Frontline Assembly & Haujobb
if will not be half speeded since you're just using a single wds link. but consider also to use simply client bridge mode. it works as good as wds with the last broadcom drivers and does also not have any problems with encrypted networks.
Thank you so much, that helped me a lot.
Just two more things, are there any drawbacks from client bridge mode? I want to have just one visible network for the guests anyway.
In case of one of my family members is buing a new laptop with 802.11AC support, would it be possible for him to connect to the 5GHZ WDS SSID and use it although the speed is halfed then? Would it be the same case if I use client bridged?
Joined: 21 Nov 2010 Posts: 132 Location: North America
Posted: Fri Jun 29, 2012 12:39 Post subject: Bricked One Of My WZR-D1800H Routers.
Last weekend I somehow managed to brick one of my Buffalo routers while using WinSCP to copy some files. The Buffalo led displayed a Flash ROM Error which is not resettable. Hooked up some console serial equipment to jack J4 on the system board to monitor the system messages and discovered an invalid boot block message in the firmware. Used the CFE Flash command with embedded TFTP Client to re-flash DD-WRT firmware to device nflash1.trx. Rebooted the router and now it works fine. And while I was at it, I cracked open the case on a brand new, factory fresh WZR-D1800H, and copied the Buffalo factory firmware. I'll be happy to post it with the Administrator’s permission and if there is a request for it.
- Magnetron1.1
Last edited by Magnetron1.1 on Sat Jun 30, 2012 4:54; edited 6 times in total
My friend gave me the base router with the radio modules removed since he needs the new AC module for development and to test compatibility, without contacting Broadcom. Now I have the router with no radios and I have a spare Atheros and Marvel WIFI modules. I am thinking of recompiling the source to enable Marvel/Atheros Wifi driver.
Is this possible with the DDWRT source? If it is, can you to send me the source?
I tried to open WLI-H4-D1300 to replace internal antennas but no luck, i think if i try one more time i will break the plastic, can someone help me whit this? Video of "how to" would be awesome...
So is this router ready for prime time with DD-WRT? I need a new router that handles 60mbit download along with all the other DD-WRT goodness, and the WZR-D1800H one looks good with a lot of future potential, even if still a little immature on the firmware side of things right now.
Any reason I should not pull the trigger on a purchase?
I tried to use a BCM4322 module on WL1 but the ddwrt firmware won't initialize since wl0 is not present.
Can the firmware be made generic so that the bcm4322 on wl1 can be used without wl0?