Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
zh:docs:guide-user:base-system:dhcp.dnsmasq [2019/11/05 03:54] – [Log spammed with DHCPINFORM/DHCPACK] longgenxingzh:docs:guide-user:base-system:dhcp.dnsmasq [2019/11/05 04:17] longgenxing
Line 1: Line 1:
-FIXME **This page is not fully translated, yet. Please help completing the translation.**\\ //(remove this paragraph once the translation is finished)// 
- 
 ====== Dnsmasq ===== ====== Dnsmasq =====
 ====== Dnsmasq软件 ===== ====== Dnsmasq软件 =====
Line 133: Line 131:
  
 ==== Log spammed with DHCPINFORM/DHCPACK ==== ==== Log spammed with DHCPINFORM/DHCPACK ====
 +==== DHCP通知/DHCP回复确认的垃圾日志 ====
 Windows 7 among others ask for proxy settings using DHCP. Windows 7 among others ask for proxy settings using DHCP.
 The issue is that they do not stop asking until they have received an answer. The issue is that they do not stop asking until they have received an answer.
Line 153: Line 152:
  
 ==== Static lease issues ==== ==== Static lease issues ====
 +==== 静态地址绑定的问题 ====
 Windows 7 has introduced a new [[http://answers.microsoft.com/en-us/windows/forum/windows_7-networking/windows-7-refuses-dhcp-addresses-if-they-were/1b72b289-0f58-492f-afb8-e76c80a81f00|Microsoft-enhanced]] feature. Windows 7 has introduced a new [[http://answers.microsoft.com/en-us/windows/forum/windows_7-networking/windows-7-refuses-dhcp-addresses-if-they-were/1b72b289-0f58-492f-afb8-e76c80a81f00|Microsoft-enhanced]] feature.
 It won't assign IP address obtained from a DHCP server to an interface, if the IP was used before for another interface, even if that other interface is **NOT** active currently (i.e. cable disconnected). It won't assign IP address obtained from a DHCP server to an interface, if the IP was used before for another interface, even if that other interface is **NOT** active currently (i.e. cable disconnected).
Line 158: Line 158:
  
 If you try configure MAC address hot swap on your router, Windows 7 clients will end up in an infinite [[http://tools.ietf.org/html/rfc1531#section-3.1|DORA]] loop. If you try configure MAC address hot swap on your router, Windows 7 clients will end up in an infinite [[http://tools.ietf.org/html/rfc1531#section-3.1|DORA]] loop.
 +
 +**中文翻译**:
 +Windows7包含一个新的功能 [[http://answers.microsoft.com/en-us/windows/forum/windows_7-networking/windows-7-refuses-dhcp-addresses-if-they-were/1b72b289-0f58-492f-afb8-e76c80a81f00|Microsoft-enhanced]] 。
 +系统不会把一个之前已经由DHCP服务器分配给另外一个接口(对应网卡)的IP地址,再配置给当前接口;即使是这个接口现在已经关闭了(比如该接口的网线已经拔了)。
 +这个处理思路很清奇,在老版本的Windows、Mac OS、Linux里都没听说过。
 +
 +如果你尝试在你的路由器里配置MAC地址绑定和解绑定的功能,Windows7客户端就会无休止的循环请求。
 +
  
 Solution: Solution:
Line 166: Line 174:
     * When you plug the ethernet cable in, disable wireless interface in control panel (power off wireless won't do it).     * When you plug the ethernet cable in, disable wireless interface in control panel (power off wireless won't do it).
     * When you unplug ethernet cable, enable wireless and disable ethernet.     * When you unplug ethernet cable, enable wireless and disable ethernet.
 +
 +**中文翻译**:
 +
 +解决方案如下:
 +  - 创建一个Windows7种的有线网卡跟无线网卡的网桥,然后:
 +    * 给这个网桥添加MAC地址,并写到“/etc/config/dhcp”
 +    * 因为你的网桥可能会占用或者改变你的MAC地址,你可能会在WiFi接口上丢失SLAAC状态,这样,你如果想用无线网络,就得在你的笔记本上(假设你的客户机就是笔记本)禁掉IPv6.
 +  - 另一种对IPv6兼容一点的做法是,你可以不要添加网桥的配置,也不用手工去dnsmasq软件里添加MAC地址,但是却要做别的配置:
 +    * 如果你要用有线网络,你插网线的前,先去控制面板把无线网卡禁用掉。
 +    * 如果你要用无线网络,你拔网线的前,再把无线网卡启用,然后把有线网卡禁用。
  
 <code bash> <code bash>
Line 177: Line 195:
  
 ===== Notes ===== ===== Notes =====
 +===== 相关信息 =====
   * Project Homepage: [[http://thekelleys.org.uk/dnsmasq/doc.html]]   * Project Homepage: [[http://thekelleys.org.uk/dnsmasq/doc.html]]
   * Tutorial http://www.enterprisenetworkingplanet.com/netos/article.php/3377351   * Tutorial http://www.enterprisenetworkingplanet.com/netos/article.php/3377351
   * Tutorial http://martybugs.net/wireless/openwrt/dnsmasq.cgi   * Tutorial http://martybugs.net/wireless/openwrt/dnsmasq.cgi
  
 +
 +===== 翻译信息 =====
 +LongGenxing 20191105 第一次翻译
  • Last modified: 2023/12/28 18:34
  • by heybrowhatsup