我的设置如下所示:
Switch (T1600G-28TS)
-------------------------------
| 1 | | | 6 | 5 | | ... |
-------------------------------
| | | * SSID: NW1 | VLANID: 2
| | | AP (AP500) /
| | | ---------------/
| | +---------| Multi SSID |--* SSID: NW2 | VLANID: 3
| | ---------------\
| | \
| | * SSID: Guest | VLANID: 4
| +----- Client PC
|
|
+----- DHCP Server
交换机端口配置:
--------------------------
| Port | PVID | VLANs |
| 1 | 99 | 2,3,4,99 |
| 5 | 99 | 2,3,4,99 |
| 6 | 2 | 2 |
--------------------------
DHCP 服务器是一个 ubuntu linux 16.x LTS;dhcpd 监听这些接口:
eth0.2 192.168.0.0/24 "NW1"
eth0.3 192.168.1.0/24 "NW2"
eth0.4 192.168.2.0/24 "Guest"
当我将客户端 PC 连接到交换机时,我希望从NW1
(子网 0)获得 IP 地址,但有时我会从Guest
(子网 2)范围获得 IP。
dhcpd 日志如下所示:
dhcpd[2909]: DHCPDISCOVER from b8:27:eb:5e:bc:ee (twis) via eth0.2
dhcpd[2909]: DHCPDISCOVER from b8:27:eb:5e:bc:ee via eth0.4
dhcpd[2909]: DHCPDISCOVER from b8:27:eb:5e:bc:ee (twis) via eth0.3
dhcpd[2909]: DHCPOFFER on 192.168.0.126 to b8:27:eb:5e:bc:ee (twis) via eth0.2
dhcpd[2909]: DHCPOFFER on 192.168.2.104 to b8:27:eb:5e:bc:ee (twis) via eth0.4
dhcpd[2909]: DHCPOFFER on 192.168.1.108 to b8:27:eb:5e:bc:ee (twis) via eth0.3
在我看来,AP正在将 DHCP 广播转发到所有 VLAN。如果我断开连接,一切都会按预期工作:
dhcpd[2909]: DHCPDISCOVER from b8:27:eb:5e:bc:ee (twis) via eth0.2
dhcpd[2909]: DHCPOFFER on 192.168.0.126 to b8:27:eb:5e:bc:ee (twis) via eth0.2
AP 已将其 DHCP 设置设置为off
,并且没有菜单可以配置诸如 DHCP 侦听或多播之类的任何内容。
我错过了什么吗?
更新: AP 显然将 DHCPREQUEST 广播到他所在的所有 VLAN(根据交换机配置)。将 AP 上的 NW2 和访客 VLANID 更改为 93 和 94,但行为没有改变......