<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,建議上面的那種發廣播的方式。
    主站蜘蛛池模板: 成年女人毛片免费观看97| 182tv免费视频在线观看| 毛色毛片免费观看| 亚洲免费视频网址| 好先生在线观看免费播放| 四虎必出精品亚洲高清| 在线观看人成网站深夜免费| 中文字幕亚洲情99在线| 成年女人毛片免费播放人| 亚洲精品人成网线在线播放va| 丁香花免费高清视频完整版| 亚洲欧洲AV无码专区| 国产精品免费综合一区视频| 亚洲av日韩精品久久久久久a| jjzz亚洲亚洲女人| 国产日韩久久免费影院| 久久久久久久综合日本亚洲 | 亚洲成a人在线看天堂无码| 青青青视频免费观看| 亚洲色欲久久久综合网| 久久国产精品成人片免费| 亚洲日韩乱码中文无码蜜桃臀| 国产1024精品视频专区免费| 国产亚洲精品免费| 国产亚洲精品观看91在线| 亚洲黄色片免费看| 看成年女人免费午夜视频| 国产亚洲精品a在线观看app| 97在线观免费视频观看| 一边摸一边桶一边脱免费视频| 亚洲AV无码成人精品区蜜桃| 97无码免费人妻超级碰碰碰碰| 免费无码专区毛片高潮喷水| 亚洲综合婷婷久久| 国产一区视频在线免费观看 | 大陆一级毛片免费视频观看i| 日本特黄特色AAA大片免费| 亚洲视频在线播放| 亚洲A丁香五香天堂网 | 免费激情视频网站| 免费无码又爽又刺激网站直播|