<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,建議上面的那種發廣播的方式。
    主站蜘蛛池模板: 亚洲影视自拍揄拍愉拍| 久久久亚洲精品无码| 亚洲国产视频久久| 国产精品美女午夜爽爽爽免费| 亚洲免费一级视频| 免费福利网站在线观看| 一本色道久久88亚洲精品综合| 大香人蕉免费视频75| 亚洲精品伦理熟女国产一区二区| 国产h视频在线观看免费| 亚洲精品天堂成人片AV在线播放| 在线观看成人免费| 亚洲Av永久无码精品黑人| 国产大片线上免费看| 性生大片视频免费观看一级| 中文字幕亚洲专区| 久久久久久夜精品精品免费啦| 亚洲最大的成网4438| 免费无码又爽又刺激聊天APP| 亚洲国产无线乱码在线观看| 又黄又爽无遮挡免费视频| 精品人妻系列无码人妻免费视频 | 亚洲噜噜噜噜噜影院在线播放 | 无遮挡国产高潮视频免费观看| 亚洲中久无码不卡永久在线观看| 免费a级毛片无码a∨免费软件| 久久亚洲精品无码aⅴ大香| 野花高清在线观看免费3中文 | 精品日韩亚洲AV无码| 午夜毛片不卡免费观看视频| 一级黄色片免费观看| 亚洲AV日韩AV永久无码久久| 在线观看视频免费完整版| 免费看内射乌克兰女| 亚洲高清在线视频| 成人毛片免费视频| 国产在线精品免费aaa片| 亚洲午夜在线播放| 中文字幕亚洲一区二区三区 | 国产精品免费一级在线观看| 中文在线免费视频|