On node AB you should define the interfaces as:
/etc/config/network
[...]
config 'interface' 'ap'
option 'proto' 'static'
option 'ipaddr' '192.168.2.1'
option 'netmask' '255.255.255.0'
config 'interface' 'mesh'
option 'proto' 'static'
option 'ipaddr' '10.0.0.2'
option 'netmask' '255.255.255.0'
/etc/config/wireless
[...]
config 'wifi-iface' 'mesh0'
option 'device' 'radio0'
option 'network' 'mesh'
option 'mode' 'mesh'
option 'mesh_id' 'mymesh'
option 'ssid' 'mesh'
config 'wifi-iface' 'ap0'
option 'device' 'radio1'
option 'network' 'ap'
option 'mode' 'ap'
option 'mesh_id 'meshap'
option 'encryption' 'none'
The configuration on node EF will be
/etc/config/network
[...]
config 'interface' 'wan'
option 'ifname' 'eth0'
option 'proto' 'dhcp'
config 'interface' 'mesh'
option 'proto' 'static'
option 'ipaddr' '10.0.0.5'
option 'netmask' '255.255.255.0'
# add routes to the remote AP networks (no need to IP masq?, just use routing)
config 'route'
option 'interface' 'mesh'
option 'target' '192.168.2.0'
option 'netmask' '255.255.255.0'
option 'gateway' '10.0.0.2'
/etc/config/wireless
[...]
config 'wifi-iface' 'mesh0'
option 'device' 'radio0'
option 'network' 'mesh'
option 'mode' 'mesh'
option 'mesh_id' 'mymesh'
option 'ssid' 'mesh'
With that in place you should be able to ping the MPP from the AP
network to get the internet working though you will need to configure
the firewall on the MPP to masquerade (NAT) to your offnet subnets.
the firewall configuration is a bit more complex, so If all you want
to do is allow all traffic out to the internet, I like to use iptables
in a /etc/rc.local file to setup my masquerading.
iptables -t nat -A POSTROUTING -o br-wan -j MASQUERADE
David.
On Mon, Apr 23, 2012 at 8:40 AM, maxe wifi <[email protected]> wrote:
> Dear All,
>
>
>
>
> Please find mentioned below the network diagram for Mesh (.11s) lab
> environment we have created at office.
>
>
>
> I am able to communicate (ping) from Laptop upto interface F of MPP.
>
>
>
> I have achieved this using “IP masq” between interfaces B and C.
>
>
>
> Similarly the same has been done between interfaces D and E.
>
>
>
> I am unable to connect to the internet from laptop which is connected at
> interface A. The internet is connected at interface F.
>
>
>
> As per the forums we are required to execute NAT at interface F.
>
> Please advise if this is the correct method and if so please help with NAT
> configuration.
>
>
>
>
>
>
>
> Thanks
>
> Maxe
>
>
> _______________________________________________
> Devel mailing list
> [email protected]
> http://lists.open80211s.org/cgi-bin/mailman/listinfo/devel
>
_______________________________________________
Devel mailing list
[email protected]
http://lists.open80211s.org/cgi-bin/mailman/listinfo/devel