Warning: strpos() [function.strpos]: needle is not a string or an integer in /home/customer/www/home.beardeddonkey.com/public_html/comments.php on line 34
hOme.beardedDonkey - OpenWRT Wireless Networking on a Netgear WGT634U Router
OpenWRT Wireless Networking on a Netgear WGT634U Router 
So I have no idea how to set up my router in my network because:
1. I struggle with Linux networking as it is (routing settings mainly)
2. I've never done two networks that comminicate with each other

So I guess I can start by "drawing" my network setup, then drawing the setup I want to have.

This is what I have:

----- = wired connection
~ ~ ~ = wireless connection

+----------+ 192.168.1.1 192.168.1.x
| | +---------+ +-----------------+
| Internet |---| Billion | ~ ~ ~| Numerous Wired/ |
| | | Router |------| Wireless Devices|
+----------+ +---------+ +-----------------+
|
|
|
192.168.1.12
+---------+
| Netgear | Wifi Not Going!
| OpenWRT | :(
+---------+

----------------------------------------------------
This is what I want:

+----------+ 192.168.1.1 192.168.1.x
| | +---------+ +-----------------+
| Internet |---| Billion | ~ ~ ~| Numerous Wired/ |
| | | Router |------| Wireless Devices|
+----------+ +---------+ +-----------------+
~

~
192.168.2.1 192.168.2.x
+---------+ +----------------+
| Netgear | | Numerous Wired |
| OpenWRT |------| Devices |
+---------+ +----------------+

Anyone that knows how to do this is most welcome to email me and lessen the time it takes to do this.

March 5th, 2011


Pre-Wireless Configuration Setup


I am pretty sure there was something I did to free up space on the router's flash memory as initially mine was full. I can't remember what I did but. I may end up googling around to find what I did as I know I searched about it and found a solution. I also had to add some settings to make the router see the internet through my existing home network router/gateway. To do this I used the web interface OpenWRT offers. Here is a step-by-step guide to adding the settings:
1. Enter the IP address of the router into a browser on a computer attached to the same network as the router. My router's IP is 192.168.1.12 so I just type that IP number into the URl bar of a browser and press enter. The login page will be presented to you. Enter the username 'root' (no quotes) and if you have set a password via the web interface enter the password. Submit the form to login.
2. On the right hand side click on Administration.
3. Hover the mouse over Network -> Interfaces and click on your local network interface name. Mine is LAN. I assume this is the default.
4. You will see details like Protocol, IP, Netmask etc. You need to ensure the default gateway vaule i set to the IP of your gateway to the internet (mine is 192.168.1.1) and also set the IP of the DNS server you use (mine is 220.233.0.3). You may need to click on the Add button next to the Additional Field button after selecting the field type you want to add.
5. Click Save & Apply button.
6. Connect to the router via ssh (use putty) and login. Ensure the router can see the internet and resolve domain names by pinging www.google.com: at the prompt, type: ping www.google.com and press enter. If you get replies to the pings you are good to go. If you get no replies, there is a configuration problem with the router's network.

Installing Required Packages for Wireless


The Netgear WGT346U uses the Atheros wireless chipset (not Atheros 9xxx or 5xxx or 2xxx, just plain 'Atheros') and needs the kmod-madwifi package for the wireless drivers. (See: http://wiki.openwrt.org/toh/start#netgear (Atheros Wireless), http://wiki.openwrt.org/doc/howto/wirel ... ls#atheros (Packages required to use Atheros wireless). To install these packages, I used the command line through a ssh login. All commands from now on you can assume you have to login via ssh as root to perform. Here is a step-by-step guide:
1. opkg update
2. opkg install kmod-madwifi
3. opkg install wpad-mini
4. reboot
If you recieve errors about not being able to retrieve the packages list or install packages, you may have a network configuration problem, a storage space problem or some other problem. The wpad-mini package may already be installed.

You may also like to install a text editor of your liking. I install nano for editing text files:
1. opkg install nano

Configure Wireless


We are now ready to do wireless configuration. After the router reboots, enter the following commands:
1. rm -f /etc/config/wireless
2. wifi detect > /etc/config/wireless
This will create the /etc/config/wireless file for you. You need to edit the wireless config file and remove the line that disables the wireless device. Simply delete the line that obviously disables the device and save the file.:
1.nano /etc/config/wireless
2. remove the line: option disabled 1 by pressing Ctrl + K
3. Save file by pressing Ctrl + O, then press Enter
4. Exit nano pressing Ctrl + X



"So, when is the estimated completion date of the project?"
...
*fade to black*

Jon Fleig 
I'm in the process of setting up my WGT634U in pretty much the same intended topology as yours. Mine had been running as my main AP using the factory firmware since I got it in 2006. I just migrated my AP to a tp-link tl-wr1043nd, freeing the Netgear for OpenWRT fun-n-games.

I have backfire 10.03 running on the 634U with the madwifi driver, but I haven't been able to configure it as a wireless client bridge yet.

I'll probably try to get an initial network config functioning as a standard AP (as it was with the factory firmware).

When I have the network running as desired, then I'll probably waste some more time playing the USB.

At the very least, we're learning something and not watching the telly.

regards,
Jon


Nathan 
Jon,

I have actually gotten my WGT634U going on the network as described above. I followed the "Routed Client" guide on openwrt.org not using masquerading (as I want devices on the two different subnets to see each other directly).

It all works good... almost.

There seems to be a bug with OpenWRT 10.03 and the WGT634Us when using them as routed clients. Devices on either subnet can talk to each other (192.168.1.x and 192.168.2.x can communicate) and devices behind the openwrt router (192.168.2.x) can all see internet (as 192.168.1.1 is my internet gateway in my network) but devices on 192.168.1.x cannot talk to the openwrt router 192.168.2.1 until it talks to them! And it seems to only last about a minute, if communication stops device on 192.168.1.x cannot see openwrt again.

The related links I have found are:
https://forum.openwrt.org/viewtopic.php?id=19875
https://dev.openwrt.org/ticket/7469

I guess it is thumb twiddling time hoping for an update that will fix this problem?

Nathan 
And an interesting development. After running the openwrt router for 8 days, it seem that I can access it perfectly over the network via the .1.x subnet. Strange indeed. Very strange.

Comments 
Comments are not available for this entry.