I'm having trouble understanding how to "bridge" my router. I am using USB tethering on my Android to provide internet access. What I want to achieve is to have a second router (Router 2) "behind" the OpenWRT router that gets the WAN IP address from the phone. So the setup would look like this:
Android --usb--> Router 1 (OpenWRT, Bridged) --> Router 2
I found this post which essentially boils down to this:
$ cat /etc/config/network
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1 eth1'
option proto 'static'
option ipaddr '10.0.1.150'
option netmask '255.255.255.0'
option gateway '10.0.1.1'
option broadcast '10.0.1.255'
I have three main questions at this point:
What does the
option broadcast '10.0.1.255'portion do? Is that part of bridging the interfaces or something unrelated?What is the purpose of the static IP address? That's obviously an internal IP, but how would you even access it if the router is bridged? I just don't quite understand bridging well enough.
How should the firewall on Router 1 be configured? Since, this router is supposed to be pretty transparent on the network, I'm assuming I should disable the firewall on the bridged interface and rely on Router 2's firewall. Is that correct?