Hi,
I’m trying to configure a VLAN-aware bridge, but I couldn’t get clients to obtain IP address from DHCP server. My configuration is shown below. If I connect the client to eth2/3/4 it can get IP address 192.168.3.x from the DHCP server, but if I connect to eth5 the client can’t get an IP address. There is no entry in dhcpd log and monitor traffic interface eth5
shows the client repeatedly sending DHCP request with no reply at all:
19:49:32.031215 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from xx:xx:xx:xx:xx:xx (oui Unknown), length 300
19:49:35.859017 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from xx:xx:xx:xx:xx:xx (oui Unknown), length 300
19:49:39.862225 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from xx:xx:xx:xx:xx:xx (oui Unknown), length 300
But if I manually assign an IP address 192.168.4.x and gateway 192.168.4.1 on the client, the connection works fine. Is there something I missed in the configuration?
My config:
interfaces {
bridge br0 {
address 192.168.3.1/24
description LAN
enable-vlan
member {
interface eth2 {
allowed-vlan 30
native-vlan 1
}
interface eth3 {
allowed-vlan 30
native-vlan 1
}
interface eth4 {
allowed-vlan 30
native-vlan 1
}
interface eth5 {
native-vlan 30
}
}
vif 30 {
address 192.168.4.1/24
description Guest
}
}
ethernet eth2 {
hw-id xx:xx:xx:xx:xx:xc
}
ethernet eth3 {
hw-id xx:xx:xx:xx:xx:xd
}
ethernet eth4 {
hw-id xx:xx:xx:xx:xx:xe
}
ethernet eth5 {
hw-id xx:xx:xx:xx:xx:xf
}
}
service {
dhcp-server {
hostfile-update
shared-network-name Guest1 {
subnet 192.168.3.0/24 {
default-router 192.168.3.1
lease 86400
name-server 61.139.2.69
name-server 218.6.200.139
range 0 {
start 192.168.3.100
stop 192.168.3.199
}
}
}
shared-network-name Guest2 {
subnet 192.168.4.0/24 {
default-router 192.168.4.1
lease 86400
name-server 61.139.2.69
name-server 218.6.200.139
range 0 {
start 192.168.4.100
stop 192.168.4.199
}
}
}
}
}