I often ran into problems using .0
When the last digit is a zero it is the network. A gateway on 192.168.1.1 is on network 192.168.1.0.
And got the RPI working as a router. It had an eth0 address 192.168.1.50 before. I added the Cisco USB adapter. That was given the address 192.168.1.116.
I added a route to network 2.0 with "route add 192.168.2.0 eth0"
I went into /etc/network/interfaces and changed the eth0 static address from 192.168.1.50 to 192.168.2.50 and changed the broadcast address as well. Then I restarted networking with /etc/init.d/networking restart which this time didn't disconnect me because wlan0 stayed.
Then I booted my WinXP and gave its internet connection a static address of 192.168.2.6 and changed the gateway to 192.168.2.50 and rebooted.
Could ping 192.168.2.50 and 192.168.1.116 so the WinXP laptop was reaching the wlan0 port of the RPI but when I tried pinging 192.168.1.1 it failed.
I gave the command as root on RPI "sysctl -w net.ipv4.conf.all.forwarding=1" the tried pinging 192.168.1.1 from a dos box on the WinXP home and Bob's your uncle it worked. Then I pinged yahoo.com from WinXP with complete success.
Now I can use the RPI as a wireless router I'll just have to establish a static address in the .2.0 net on the machine that's going to be forwarded.
Bet it's possible to do the reverse. Say you have a non-wireless router. Bring up the RPI, plug in a USB wireless, put the wireless on another net, adding routing and forwarding, boot a tablet and assign it a static IP in that new net, and you've converted a non-wireless router into a wireless router.
You guys are making integration into a wireless network waaaaay too difficult. I mean, if you enjoy creating Rube Goldberg inspired networks, then by all means don't let me stop you. However for those who want something a little more straight-forward, let me introduce you to:
http://www.amazon.com/gp/product/B003KPBRRW/ref=oh_details_o04_s02_i01?ie=UTF8&psc=1
What? spend more money?