OpenWrt Forum Archive

Topic: DHCP relay on same network

The content of this topic has been archived on 23 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello, I trying to configure my home network.

I have a DSL router connected to some computers with wireless, in my room I have a computer connected with ethernet wire to the DSL router. I wan to plug a Fonera with OpenWrt on my room, and connect my computer to Openwrt and get more cover with the wifi interface.

This is my questions:

1. How can I configure the Fonera router to replay all the DSL router DHCP server IPs?

2. Is possible to power the wireless cover with Foneras wifi interface? It will great to make one "virtual" AP.

My "dreams" network will be this one:

                    (DHCP server)
                     (192.168.1.1)               (192.168.1.x/24)
  Internet  ---  DSL_router  ---  PCs (wireless and ethernet)
                            |
                            |
                     OpenWrt  ---  PCs (wireless and ethernet)
                  (192.168.1.2)         (192.168.1.x/24)

Can you help with "wireless" and "network" files?

Thanks for all and best regards.

check for existence of command "brctl" or install it ...

Thanks for the reply, I have search for "brctl" command but i don't know what it makes.

I read something like WDS, it will work for me?

I am a little bit lost on this item, thanks for all the help.

Regards.

jlazkano wrote:

Thanks for the reply, I have search for "brctl" command but i don't know what it makes.

I read something like WDS, it will work for me?

I am a little bit lost on this item, thanks for all the help.

Regards.

brctl only bridges wan/lan... so you can drop the dhcp server on la fonera

for WDS please look at http://www.coova.org/CoovaAP/WDS
they are using openwrt I believe as an engine...

the alternative is "meshing" but these use dhcp's on each node...
like OpenMesh

Thanks again, so I will look for "brctl", I have a wired to connect the DSL router with Fonera, so I don't need WDS, isn't it?

For the wireless is enougt to configure with same SSID, encrypt and channel?

Thanks again.

jlazkano wrote:

Thanks again, so I will look for "brctl", I have a wired to connect the DSL router with Fonera, so I don't need WDS, isn't it?
For the wireless is enougt to configure with same SSID, encrypt and channel?
Thanks again.

yes that should work...I tried this in the past with "freewlan"... 4 foneras on 4 floors with thesame ssid/encrypt to a 4port router with "bridging"...
so my 192.168.0.x stayed working when I moved from floor to floor...it connected to the ssid with the best signal...
I believe you can still put them each on a different channel (1 or 6 or 11) so they don't interfere with each other...

your device can "hop" without a problem...
the "nat" table is on the router in the basement...
just a few pings lost during transition from 1 to another ap perhaps...

Thanks again, I will start configuring at night, now I will look for some "brctl" examples.

Thanks!

Hello again, I searched for "brctl" but I didn't find any example for my configuration, how I must configure it? I am lost.

This my openwrt network configuration:

# cat /etc/config/network

config 'interface' 'loopback'
    option 'ifname' 'lo'
    option 'proto' 'static'
    option 'ipaddr' '127.0.0.1'
    option 'netmask' '255.0.0.0'

config 'interface' 'lan'
    option 'type' 'bridge'
    option 'proto' 'static'
    option 'netmask' '255.255.255.0'
    option 'ifname' 'eth0.0'
    option 'ipaddr' '192.168.4.1'
    option 'gateway' '192.168.4.1'
    option 'dns' '87.216.1.65'

config 'interface' 'wan'
    option 'ifname' 'eth0.1'
    option 'proto' 'dhcp' (DSL router has 192.168.1.0/24 network)
# cat /etc/config/wireless 

config 'wifi-device' 'wifi0'
    option 'type' 'atheros'
    option 'disabled' '0'
    option 'channel' '1'

config 'wifi-iface'
    option 'device' 'wifi0'
    option 'network' 'lan'
    option 'mode' 'ap'
    option 'key' 'pass'  (same as DSL wifi pass)
    option 'ssid' 'name' (same as DSL wifi name)
    option 'encryption' 'psk'

That my ideal network:

http://i35.tinypic.com/28vvsl3.jpg

Can you help me with this?

Thanks for all and best regards.

The discussion might have continued from here.