OpenWrt Forum Archive

Topic: No DHCP on VLAN

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

Hi,
I have a Turris Omnia and want to use two interfaces:

"LAN": With access to WAN interface and to "LANonly"
"LANonly": With access to "LAN"

LAN contains my WiFi network and the VLAN 1 (device "eth0.1")
LANonly contains only VLAN 3 (device "eth0.3")

Both interface have a static ip (192.168.x.1, with x = VLAN id) and a /24 network and the dhcp server activated, with the dhcp option "6,192.168.x.1"

In the switch settings, I have VLAN functionality activated, all ports on off, except port 0, on which my LANonly device is connected (row VLAN 3, "untagged") and port 1, on which my LAN device is connected (row VLAN 1, "untagged").

Now, logging into my wifi (interface LAN), I get a DHCP address assigned to my notebook. But, if I connect a PC on one of my VLAN ports, doesn't matter if VLAN1 oder VLAN3, no dhcp address is assigned.

The PC itself doesn't have a special configuration since it is a untagged VLAN, just a DHCP client running

So my question is, why is DHCP not working on my VLAN-assigned LAN ports?

I hope someone can give me a hint.

Thanks a lot
confuso

Please, post your config files here.

Hello,

do you have created a dhcp-server instance for vlan 3?
here are examples for vlan:
https://wiki.openwrt.org/inbox/doc/exte … ged_switch
https://wiki.openwrt.org/doc/recipes/guest-wlan.

Ich nutze diese Einstellungen auch und das VLAN arbeitet.

/etc/config/dhcp

config ‘dhcp’
option ‘interface’ ‘vlan10’
option ‘start’ ‘100’
option ‘limit’ ‘150’
option ‘leasetime’ ‘720m’
option ‘ignore’ ‘0’

https://forum.lede-project.org/t/guest- … lan/3978/3

I hope this helps.
Best wishes

(Last edited by AnyfiTester on 3 Dec 2017, 02:21)

Thanks a lot. Actually, late in the night yesterday I found the schematics of the internal wiring of the router. The switch is connected over two ports to the SoC, using VLANs to seperate these connections. So I also had to set the VLAN for the switch-SoC connection to let my VLAN communicate with the operating system (and the DHCP). Now it's working.

turris.cz/doc/en/howto/vlan_settings_omnia

The discussion might have continued from here.