我查看了许多文章,并且可以看起来似乎找到了一个有效的答案.我正在建立一个运行Ubuntu 12.04 LTS的DHCP服务器,但我无法让手机获取IP地址.这些是需要Option-176的Avaya手机,其中包含以下所有字符串.如果我注释掉其中一个VLAN的DHCP信息并连接手机似乎工作正常,但对于手机的实际vlan没有去.我确信修复很简单,希望你能指出来.谢谢.
来自dhcpd.conf
shared-network OVKData { subnet 192.168.226.0 netmask 255.255.255.0 { option routers 192.168.226.1; option broadcast-address 192.168.226.255; range 192.168.226.30 192.168.226.100; option option-176 "MCIPADD=192.168.30.3,192.168.30.4,MCPORT=1719,TFTPSRVR=192.168.222.129,L2Q=1,L2QVLAN=888,VLANTEST=0"; # option option-176 "L2Q=1,VLANTEST=0"; # option option-176 "MCIPADD=192.168.30.3,TFTPSRVR=192.168.222.129"; } #shared-network OVKVoice { subnet 192.168.98.0 netmask 255.255.255.0 { option routers 192.168.98.1; option broadcast-address 192.168.98.255; range 192.168.98.30 192.168.98.100; # option option-176 "MCIPADD=192.168.30.3,VLANTEST=0"; option option-176 "L2Q=1,VLANTEST=0"; option option-176 "MCIPADD=192.168.30.3,TFTPSRVR=192.168.222.129"; } }
从界面
auto vlan226 auto vlan888 #auto vlan300 # OVKData vlan888 iface vlan226 inet static address 192.168.226.4 netmask 255.255.255.0 gateway 192.168.226.1 network 192.168.226.0 broadcast 192.168.226.255 mtu 1500 vlan_raw_device eth0 # OVKVoice Vlan 888 iface vlan888 inet static address 192.168.98.4 netmask 255.255.255.0 gateway 192.168.98.1 network 192.168.98.0 broadcast 192.168.98.255 mtu 1500 vlan_raw_device eth0
FROM Syslog
Jul 17 13:20:17 NOCDHP dhcpd: DHCPOFFER on 192.168.226.32 to 00:04:0d:29:3b:f9 via vlan888 Jul 17 13:20:17 NOCDHP dhcpd: DHCPDISCOVER from 00:04:0d:29:3b:f9 via vlan888 Jul 17 13:20:17 NOCDHP dhcpd: DHCPOFFER on 192.168.226.32 to 00:04:0d:29:3b:f9 via vlan888 Jul 17 13:20:17 NOCDHP dhcpd: DHCPDISCOVER from 00:04:0d:29:3b:f9 via 192.168.98.5 Jul 17 13:20:17 NOCDHP dhcpd: DHCPOFFER on 192.168.226.32 to 00:04:0d:29:3b:f9 via 192.168.98.5 Jul 17 13:20:17 NOCDHP dhcpd: DHCPDISCOVER from 00:04:0d:29:3b:f9 via 192.168.98.1 Jul 17 13:20:17 NOCDHP dhcpd: DHCPOFFER on 192.168.226.32 to 00:04:0d:29:3b:f9 via 192.168.98.1 Jul 17 13:20:17 NOCDHP dhcpd: DHCPDISCOVER from 00:04:0d:29:3b:f9 via 192.168.98.1 Jul 17 13:20:17 NOCDHP dhcpd: DHCPOFFER on 192.168.226.32 to 00:04:0d:29:3b:f9 via 192.168.98.1 Jul 17 13:20:17 NOCDHP dhcpd: DHCPDISCOVER from 00:04:0d:29:3b:f9 via vlan888
我相信你遇到的问题是你实际上已经在相反的VLAN的DHCP范围中注释掉了不正确的字符串.
原文链接:https://www.f2er.com/ubuntu/347860.html在数据VLAN上,您只想告诉手机查看语音VLAN,因此您只需要在数据DHCP范围内使用以下字符串
option option-176 "L2Q=1,VLANTEST=0"
然后在语音VLAN上你想要的字符串:
option option-176 "MCIPADD=192.168.30.3,TFTPSRVR=192.168.222.129"
也许我忽略了一些东西,因为我之前从未使用Linux作为DHCP服务器,但这似乎是原因,特别是因为你可以让它在数据VLAN上工作.