Configuration Wifi and LAN, no bridge?

Hello,

I want to have my wifi (2,4 and 5ghz) to the same network as my LAN.

If I choose my LAN in Network on wireless setting, I can't connect and have DHCP with wifi.

I can't have bridge with lan and wlan on interfaces/devices.

If I create one interface with other network it works.

If I create one interface with the same network, I can't have internet.

I would like have lan : 10.0.1.0, wifi 2,4 : 10.0.1.100 and wifi 5 : 10.0.1.200 with dchp.

It's possible ?

No - this description is not the "same network". All will be 10.0.1.0 on the same network. There's no way to set IPs for interfaces unless you "sub"net - hence different networks.

So, how can I set all wifi to my LAN ?

It should be this way by default; but here's a screenshot:

screen114

Simply set network as LAN.

Ok, I tried but when I try to connect my phone to my wifi I have "Connexion...." but nothing happen.

DHCP is up.

It's normal that I can't bridge wlan (wifi) and others lan ?

Not sure what you mean. If you're trying to connect (or bridge) wireless another way, that maybe your issue.

Please provide your settings. Please copy the output of the following commands and post it here using the "Preformatted text </> " button:
grafik
Remember to redact passwords, MAC addresses and any public IP addresses you may have:

cat /etc/config/network
cat /etc/config/wireless
cat /etc/config/dhcp

My wireless :

config wifi-device 'radio0'
        option type 'mac80211'
        option path 'platform/18000000.wmac'
        option channel '1'
        option band '2g'
        option htmode 'HT20'
        option cell_density '0'
        option country 'FR'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option mode 'ap'
        option ssid 'Awxdn'
        option encryption 'psk2'
        option key 'x'
        option network 'IoT'

config wifi-device 'radio1'
        option type 'mac80211'
        option path '1a143000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0'
        option channel '36'
        option band '5g'
        option htmode 'HE80'
        option cell_density '0'
        option country 'FR'

config wifi-iface 'default_radio1'
        option device 'radio1'
        option mode 'ap'
        option encryption 'psk2'
        option ssid 'HOME-5GHz'
        option key 'x'
        option network 'HOME'

config wifi-iface 'wifinet3'
        option device 'radio0'
        option mode 'ap'
        option ssid 'Guest'
        option encryption 'psk2'
        option key 'x'
        option network 'Guest'

config wifi-iface 'wifinet4'
        option device 'radio0'
        option mode 'ap'
        option ssid 'HOME'
        option encryption 'psk2'
        option key 'x'
        option network 'HOME'

My dhcp :

config dnsmasq
        option domainneeded '1'
        option localise_queries '1'
        option rebind_protection '1'
        option rebind_localhost '1'
        option local '/lan/'
        option domain 'lan'
        option expandhosts '1'
        option authoritative '1'
        option readethers '1'
        option leasefile '/tmp/dhcp.leases'
        option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
        option localservice '1'
        option ednspacket_max '1232'
        list address '/gribiere.com/10.0.0.5'

config dhcp 'wan'
        option interface 'wan'
        option ignore '1'

config odhcpd 'odhcpd'
        option maindhcp '0'
        option leasefile '/tmp/hosts/odhcpd'
        option leasetrigger '/usr/sbin/odhcpd-update'
        option loglevel '4'

config dhcp 'HOME'
        option interface 'HOME'
        option start '1'
        option leasetime '48h'
        option limit '100'
        option force '1'

config dhcp 'DMZ'
        option interface 'DMZ'
        option start '1'
        option limit '15'
        option leasetime '48h'

config host
        option name 'PROXMOX'
        option dns '1'
        option mac 'A8:A1:59:67:D8:E8'
        option ip '10.0.0.1'

config host
        option name 'NAS'
        option dns '1'
        option mac 'C2:0A:9E:46:74:82'
        option ip '10.0.0.2'

config host
        option name 'JEEDOM'
        option dns '1'
        option mac 'B8:27:EB:29:5C:98'
        option ip '10.0.0.3'

config host
        option name 'BACKUP'
        option dns '1'
        option mac '00:11:32:C6:66:66'
        option ip '10.0.0.4'

config host
        option name 'REVERSE-PROXY'
        option dns '1'
        option mac '1e:44:63:68:19:58'
        option ip '10.0.0.5'

config host
        option name 'MESHCENTRAL'
        option dns '1'
        option mac '6E:27:E1:81:35:F6'
        option ip '10.0.0.6'

config host
        option name 'VPN'
        option dns '1'
        option ip '10.0.0.7'
        option mac 'F2:C9:C0:98:42:00'

config host
        option name 'I3S'
        option dns '1'
        option mac 'B8:27:EB:43:E7:7D'
        option ip '10.0.0.11'

config host
        option name 'I3SX'
        option dns '1'
        option mac 'B8:27:EB:32:0E:5D'
        option ip '10.0.0.12'

config host
        option name 'GUILLAUME-PC'
        option dns '1'
        option mac 'D8:BB:C1:1A:84:E1'
        option ip '10.0.1.1'

config host
        option name 'ONEPLUS7'
        option dns '1'
        option mac '96:38:4B:B0:4A:C0'
        option ip '10.0.1.103'

config host
        option name 'MacBookPro'
        option dns '1'
        option mac '8C:85:90:12:4E:48'
        option ip '10.0.1.200'

config host
        option name 'ONEPLUS75ghz'
        option dns '1'
        option mac '8E:60:45:59:75:7A'
        option ip '10.0.1.202'

config host
        option name 'I3MK3S'
        option dns '1'
        option mac 'B8:27:EB:43:E7:7D'
        option ip '10.0.1.251'

config host
        option name 'I3MK3SX'
        option dns '1'
        option mac 'B8:27:EB:32:0E:5D'
        option ip '10.0.1.252'

config host
        option name 'CAMERAFOURMIS'
        option dns '1'
        option mac '50:13:95:F0:7E:02'
        option ip '10.0.2.5'

config host
        option name 'ROBOROCK'
        option dns '1'
        option mac '64:90:C1:1A:D0:2B'
        option ip '10.0.2.15'

config host
        option name 'CAMERASALON'
        option dns '1'
        option mac '50:13:95:F0:4C:4C'
        option ip '10.0.2.29'

config host
        option name 'SHELLYCHAMBRE'
        option dns '1'
        option mac '8C:AA:B5:5D:67:E0'
        option ip '10.0.2.36'

config host
        option name 'SHELLYSDB'
        option dns '1'
        option mac '48:3F:DA:8D:2F:57'
        option ip '10.0.2.40'

config host
        option name 'SHELLYBUREAU'
        option dns '1'
        option mac '34:94:54:78:CA:68'
        option ip '10.0.2.41'

config host
        option name 'ESP'
        option dns '1'
        option mac 'E8:68:E7:28:52:7C'
        option ip '10.0.2.44'

config host
        option name 'PRINTER'
        option dns '1'
        option mac '44:1C:A8:6D:40:D0'
        option ip '10.0.2.48'

config dhcp 'Guest'
        option interface 'Guest'
        option leasetime '12h'
        option start '1'
        option limit '15'

config domain
        option name 'PROXMOX'
        option ip '10.0.0.1'

config domain
        option name 'NAS'
        option ip '10.0.0.2'

config domain
        option name 'JEEDOM'
        option ip '10.0.0.3'

config domain
        option name 'BACKUP'
        option ip '10.0.0.4'

config domain
        option name 'REVERSE-PROXY'
        option ip '10.0.0.5'

config domain
        option name 'MESHCENTRAL'
        option ip '10.0.0.6'

config domain
        option name 'PRINTER'
        option ip '10.0.2.48'

config dhcp 'IoT'
        option interface 'IoT'
        option leasetime '12h'
        option start '1'
        option limit '100'

My network :

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

config globals 'globals'
        option ula_prefix 'fd7d:9daf:db85::/48'

config interface 'wan'
        option device 'wan'
        option proto 'dhcp'
        option peerdns '0'
        list dns '208.67.222.222'
        list dns '208.67.220.220'

config interface 'wan6'
        option device 'wan'
        option proto 'dhcpv6'

config interface 'HOME'
        option proto 'static'
        option device 'lan3'
        option ipaddr '10.0.1.254'
        option netmask '255.255.255.0'
        option type 'bridge'

config interface 'DMZ'
        option proto 'static'
        option ipaddr '10.0.0.254'
        option netmask '255.255.255.0'
        option device 'DMZ'

config device
        option type 'bridge'
        option name 'DMZ'
        list ports 'lan1'
        list ports 'lan2'
        option ipv6 '0'

config device
        option name 'eth0'
        option ipv6 '0'

config device
        option name 'lan1'
        option ipv6 '0'

config device
        option name 'wan'
        option ipv6 '0'

config device
        option name 'lan3'
        option ipv6 '0'

config device
        option name 'lan2'
        option ipv6 '0'

config interface 'Guest'
        option proto 'static'
        option device 'wlan0-1'
        option ipaddr '10.0.5.254'
        option netmask '255.255.255.240'

config device
        option name 'wlan1'
        option ipv6 '0'

config device
        option name 'wlan0'
        option ipv6 '0'

config device
        option name 'wlan0-1'
        option ipv6 '0'

config interface 'IoT'
        option proto 'static'
        option device 'wlan0'
        option ipaddr '10.0.2.254'
        option netmask '255.255.255.0'

config device
        option name 'wlan0-2'
        option ipv6 '0'

My LAN : HOME

Thanks you

Change to LAN. Where is your LAN network?

My LAN it's HOME (sorry) and my wifi it's HOME_WIFI and HOME_WIFI_5

Set all as HOME.

I already did it :

1 Like

Glad you got it working.

(I assume you also fixed any config domain stanzas that give incorrect IPs.)

No, it's not working.

I can't connect to my wifi HOME.

  • What device - does it have a config host parameter?
  • If so did you fix it?
  • What happens?

option type bridge within a config interface section is deprecated. The new syntax declares bridges separately. Create a bridge br-home then use it as the home network's device.

If the network is going to be only wifi, the bridge definition will start out empty. If Ethernet ports should be in the network, add them to the bridge with list ports.

This is already set up in the default configuration with br-lan and the interface lan.

1 Like

Ohh, perfect.

I create a bridge device with only LAN inside.

And now all wifi can be add to the LAN-bridge.

I was thinking that it will do it automaticly.

Thanks you two.

Last question, it's not possible to have a multiple configuration with my DNS and my bridge ?

To start dhcp from different number depending on the devices ?

No, the DHCP server serves everything in a bridge the same. A kernel bridge is a software equivalent to an unmanaged Ethernet switch.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.