Hello everyone, I'm trying to understand why a client connected to a switch can broadcast DHCPDISCOVER
messages but cannot receive the DHCPOFFER
from the router.
To explain my network I prepared a diagram:
x86 OpenWRT "SWITCH"
+---------------------------------+
| +----------|
| | untagged |
| +------+ to |
|--------+ | | vid 17 |
ROUTER | trunk | | +----------| CLIENT 1
+---------------------+ | vid 11 +---BRIDGE | +--------------------+
| +--------| +-----+ vid 17 | | +----------| | |
| | trunk | | |--------+ | | untagged | |----------+ |
| | vid 11 +---+ | +------+ to +-------+ DHCP | |
|-------+ | vid 17 | | | vid 17 | | untagged | |
| wan | +--------| | +----------| |----------+ |
| pppoe | +--------| +---------------------------------+ | |
|-------+ | trunk | +--------------------+
| | vid 11 +-----------------------------------+
| | vid 17 | |
| +--------| | CLIENT 2
+---------------------+ | +--------------------+
| | |
| |--------+ |
| | DHCP | |
+---------------+ vid 17 | |
|--------+ |
| |
+--------------------+
You can see that my router has two LAN ports that I made into trunks with only tagged packages using VLANs 11
and 17
. To one port I connected a client that I configured to use VLAN 17 and it can get an IP using DHCP. To the other port I connect a x86 OpenWRT that I want to use as a managed switch; it can get an IP using DHCP through VLAN 17
, and bridges a trunk port with two ports to receive untagged packages and tag them using VLAN 17
.
My problem is, when I connect a client to one of the "untagged" ports of the "switch" I can see logs on the router of that client macaddr broadcasting DHCPDISCOVER
and the router offering a DHCPOFFER
, but these packages never arrive back to the client. If I try running a tcpdump on the client I can only see packages going out but nothing coming in. It seems that the bridge on the "switch" is not working....
On the OpenWRT x86 "switch", I have disabled/stopped the firewall, dnsmasq and odhcpcd.
Here is the /etc/config/network
:
config interface loopback
option device lo
option proto static
option ipaddr 127.0.0.1
option netmask 255.0.0.0
config device
option name switch
option type bridge
option ipv6 0
list ports eth0
list ports eth1
list ports eth2
config bridge-vlan
option device switch
option vlan 11
list ports 'eth0:t'
config bridge-vlan
option device switch
option vlan 17
list ports 'eth0:t'
list ports 'eth1:u*'
list ports 'eth2:u*'
config device
option name main
option type 8021q
option ifname switch
option vid 17
option ipv6 0
config interface wan
option device main
option proto dhcp
Am I missing anything on this bridge config?