免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
1234567
最近访问板块 发新帖
楼主: 散步的风
打印 上一主题 下一主题

如何防止局域网中的IP冲突? [复制链接]

论坛徽章:
0
61 [报告]
发表于 2005-02-18 10:49 |只看该作者

如何防止局域网中的IP冲突?

原帖由 "JohnBull" 发表:


PPPoE啊


小弟不解,望版主大人明示!
PPPoE 不是虚拟拨号吗?难道每一个客户端都需要虚拟拨号拨上去?

论坛徽章:
0
62 [报告]
发表于 2005-02-18 11:35 |只看该作者

如何防止局域网中的IP冲突?

原帖由 "ljily000" 发表:


小弟不解,望版主大人明示!
PPPoE 不是虚拟拨号吗?难道每一个客户端都需要虚拟拨号拨上去?


对呀!
这才是最彻底的方法。

论坛徽章:
0
63 [报告]
发表于 2005-03-20 22:04 |只看该作者

如何防止局域网中的IP冲突?

原因是这样的.
linux 的IP为192.168.0.1

windows 系统启动网卡时发出一个ARP问询包
21:39:55.892237 arp who-has 192.168.0.1 tell 192.168.0.99
linux系统会给一个应答包
arp reply 192.168.0.99 is-at 0:a0:18:b8:16:59
当windows 系统的IP为192.168.0.1时
发一个ARP包
arp who-has 192.168.0.1 tell 192.168.0.1
Linux 系统不知怎么处理了.

有高人给了解决办法
在LINUX上执行
arp -s   IP    MAC -i  DEV

效果还行

论坛徽章:
0
64 [报告]
发表于 2005-03-21 00:11 |只看该作者

如何防止局域网中的IP冲突?

在http://www.linuxgazette.com/node/509找到了关于ARP daemon support的资料,
At me one network in which now 1400 devices. While them was less than 1024 made the static
table, now dynamic and periodically out the message " Neighbour table overflow ". It can is possible to
correct something in a kernel?

If I'm reading this correctly: you have a LAN segment with about 1400 (ethernet) devices on it. When
you surpassed 1024 devices on the segment you started noticing errors regarding the Neighbour table
overflow.

The solution to this is to move ARP (address resolution protocol) handling out of the kernel and into
user space. This involves two steps. Reconfigure your kernel with CONFIG_ARPD = y (You'll have to enabled
the option to "rompt for experimental features/drivers" near the top of your make menuconfig or make
xconfig.

Under: Code maturity level options --->;

   
  • Prompt for development and/or incomplete code/drivers

    Then under: Networking options --->;

       
  •    IP: ARP daemon support (EXPERIMENTAL) (NEW)

    Then from the help text thereunder:

    ...............

    Normally, the kernel maintains an internal cache which maps IP addresses to hardware addresses
    on the local network, so that Ethernet/Token Ring/ etc. frames are sent to the proper address on
    the physical networking layer. For small networks having a few hundred directly connected hosts or
    less, keeping this address resolution (ARP) cache inside the kernel works well. However,
    maintaining an internal ARP cache does not work well for very large switched networks, and will use
    a lot of kernel memory if TCP/IP connections are made to many machines on the network.

    If you say Y here, the kernel's internal ARP cache will never grow to more than 256 entries (the
    oldest entries are expired in a LIFO manner) and communication will be attempted with the user
    space ARP daemon arpd. Arpd then answers the address resolution request either from its own cache
    or by asking the net.

    ...............

    Then you have to go fetch and install an ARP daemon. Under Debian
    that would be as simple as: apt-get -f install arpd

    看起来这个似乎也不能解决应答windows的IP是否占用的查询吧。有谁试试?

    楼上有人说DHCP之类纯属瞎说,别人不会自己改么?行政手段之类也只是对有的情况有些作用,但也不是根本之道,因为有的情况,比如网吧,该怎么办?现在连传奇木马这样的程序都可能改IP为网关的IP!!!
  • 您需要登录后才可以回帖 登录 | 注册

    本版积分规则 发表回复

      

    北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
    未成年举报专区
    中国互联网协会会员  联系我们:huangweiwei@itpub.net
    感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

    清除 Cookies - ChinaUnix - Archiver - WAP - TOP