>>>>> "Nguyễn" == Nguyễn Hồng Quân <quanngu...@mbm.vn> writes:

Nguyễn> Hello, Here is the picture for my question:
Nguyễn> http://i.imgur.com/pFwuhsZ.png

Nguyễn> Two Wifi network A & B have same IP range (192.168.2.x) but
Nguyễn> separated.  Two routers connect to the same wired network via
Nguyễn> their WAN interface.

Nguyễn> How can I bridge these two A & B network (with OpenWrt) so
Nguyễn> that: - The IP is provided by one DHCP server in one router.
Nguyễn> - Client in network A can ping to client in network B and vice
Nguyễn> versa.  - Can set the same ESSIS for two routers, so that user
Nguyễn> see only 1 ESSID in his wifi list.

Nguyễn> Is it possible to use DHCP server of wired network to provide
Nguyễn> IP for A&B clients?

Have one wireless virtual interface in adhoc and another in AP mode,
run batman-adv over the adhoc interface.  Add kmod-batman-adv.  I have
a configuration roughly like this (from r27000-era):

/etc/config/wireless:

config wifi-device  radio0
        option type     mac80211
        option channel  6
        option hwmode   11g
        option phy      phy0

        # REMOVE THIS LINE TO ENABLE WIFI:
        # option disabled 1

config wifi-iface
        option device   radio0
        option network  lan
        option mode     ap
        option ssid     YOURSSID
        option encryption none

config wifi-iface
        option device   radio0
        option network  mesh
        option mode     adhoc
        option ssid     MESHSSID
        option encryption none

/etc/config/network:

#### Loopback configuration
config interface loopback
       option ifname   "lo"
       option proto    static
       option ipaddr   127.0.0.1
       option netmask  255.0.0.0


#### LAN configuration
config interface lan
       option type     bridge
       option ifname   "bat0 eth0"
       option proto   static
       option ipaddr  10.11.80.15
       option netmask 255.255.252.0
       option gateway 10.11.80.1
       option dns     10.11.80.1

config 'interface' 'mesh'
       option 'proto' 'none'
       option 'mtu' '1528'

/etc/config/batman-adv:

config 'mesh' 'bat0'
        option 'interfaces' 'wlan0-1'
        option 'orig_interval'
        option 'log_level'
        option 'aggregated_ogms'
        option 'bonding'
        option 'fragmentation'
        option 'vis_mode'

(you might need to rejigger the interface names for modern openwrt)


-- 
Russell Senior, President
russ...@personaltelco.net
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to