<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 88, comments - 3, trackbacks - 0, articles - 0
      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

    關于arp_ignore

    Posted on 2012-11-27 17:16 Milo的海域 閱讀(663) 評論(0)  編輯  收藏 所屬分類: Linux
    今天有同事反應一個網絡現象,一個多網卡環境,發給eth1的數據包都被eth0接收了。
    第一印象是arp的問題。Google了下得到了確認,有個相關的kernal參數:
    arp_ignore - INTEGER
    Define different modes for sending replies in response to
    received ARP requests that resolve local target IP addresses:
    0 - (default): reply for any local target IP address, configured
    on any interface
    1 - reply only if the target IP address is local address
    configured on the incoming interface
    2 - reply only if the target IP address is local address
    configured on the incoming interface and both with the
    sender's IP address are part from same subnet on this interface
    3 - do not reply for local addresses configured with scope host,
    only resolutions for global and link addresses are replied
    4-7 - reserved
    8 - do not reply for all local addresses
    默認是0,解決這個問題需要配置為1

    臨時配置下
    sysctl -w net.ipv4.conf.all.arp_ignore=1

    持久配置
    sysctl -w net.ipv4.conf.all.arp_ignore=1
    echo 'net.ipv4.conf.all.arp_ignore
    =1' >> /etc/sysctl.conf

    這個弄好可以重啟network服務來確保其他機器更新arp cache,如果不方便重啟network,自己手動敲arping命令,比如
    arping -q -A -c 1 -I eth1 10.197.24.177
    這個命令是在 /etc/sysconfig/network-scripts/ifup-eth里看到的

    如果機器比較少,也可以直接用arp -d 來刪除相關的cache,建議上面的那種發廣播的方式。
    主站蜘蛛池模板: 亚洲成A人片777777| 久久亚洲国产成人影院网站| 亚洲视频一区二区三区| 久久九九全国免费| 在线播放亚洲第一字幕| 中文字幕免费在线看线人动作大片| 亚洲Av无码乱码在线znlu| 国产精品亚洲专区无码不卡| 国产精品嫩草影院免费| 免费的黄色的网站| 亚洲国产精品自产在线播放| 国产免费AV片在线观看播放| a级亚洲片精品久久久久久久| 一级毛片免费全部播放| 亚洲AV无码成人精品区蜜桃| 无码人妻精品中文字幕免费| 久久久久亚洲av无码专区导航| 亚洲国产精品免费视频| 亚洲妓女综合网99| 成人免费视频小说| 男女猛烈激情xx00免费视频| 国产亚洲精品免费视频播放 | 精品无码专区亚洲| 亚洲精品国精品久久99热| 岛国精品一区免费视频在线观看| 亚洲成AV人在线观看天堂无码| 最新黄色免费网站| 亚洲av日韩综合一区二区三区| 亚洲成?v人片天堂网无码| 两个人的视频www免费| 久久亚洲AV无码精品色午夜麻豆 | 狼人大香伊蕉国产WWW亚洲| 国产偷国产偷亚洲清高动态图 | 韩国免费一级成人毛片| 黄色免费在线观看网址| 亚洲精品中文字幕无码蜜桃| 99久久国产热无码精品免费| 国产亚洲精彩视频| 亚洲精品高清久久| 免费在线不卡视频| 美丽姑娘免费观看在线观看中文版|