{"id":1517,"date":"2018-07-10T12:25:27","date_gmt":"2018-07-10T04:25:27","guid":{"rendered":"http:\/\/www.eumz.com\/?p=1517"},"modified":"2018-07-10T12:25:27","modified_gmt":"2018-07-10T04:25:27","slug":"suse-linux-11%e9%85%8d%e7%bd%ae%e5%a4%9a%e7%bd%91%e5%8d%a1%e5%90%8e%e7%bd%91%e7%bb%9c%e4%b8%8d%e9%80%9a%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.wxcn.com\/?p=1517","title":{"rendered":"Suse linux 11\u914d\u7f6e\u591a\u7f51\u5361\u540e\u7f51\u7edc\u4e0d\u901a\u7684\u89e3\u51b3\u529e\u6cd5"},"content":{"rendered":"\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"http:\/\/support.huawei.com\/enterprise\/product\/images\/28cb706553cc417b80bf422b2d4aa5d9\" alt=\"\"\/><\/figure>\n\n\n\n<p><strong>\u95ee\u9898\u63cf\u8ff0<br><\/strong><br>1.RH2288-1\u3001RH2288-2\u5b89\u88c5\u7684\u662fSUSE11\u64cd\u4f5c\u7cfb\u7edf\u3002<br>2.\u670d\u52a1\u5668\u91c7\u7684\u662f\u53cc\u7f51\u5361\u7ed1\u5b9a\uff0cbond0\u5728VLAN100\u3001bond1\u5728VLAN200\u3002<br>3.VLAN100\u7684\u7f51\u5173\u4e3a172.16.0.1\u3001VLAN200\u7684\u7f51\u5173\u4e3a192.168.0.1\u3002<br>RH2288-1\u7684\u9ed8\u8ba4\u7f51\u5173\u4e3a192.168.0.1\uff0cRH2288-2\u7684\u9ed8\u8ba4\u7f51\u5173\u4e3a172.16.0.1\u3002<br>4.RH2288-2 ping RH2288-1\u7684bond1\u7f51\u5361 192.168.0.187\u4e0d\u901a\u3002<\/p>\n\n\n\n<p><strong>\u544a\u8b66\u4fe1\u606f<\/strong><br>FY-NMS:~ # ping -c 1 192.168.0.187<br>PING 192.168.0.187 (192.168.0.187) 56(84) bytes of data.<br>&#8212; 192.168.0.187 ping statistics &#8212;<br>1 packets transmitted, 0 received, 100% packet loss, time 0ms<\/p>\n\n\n\n<p><strong>\u5904\u7406\u8fc7\u7a0b<\/strong><br>1.\u5728RH2288-1\u3001RH2288-2 ping \u5404\u81ea\u9ed8\u8ba4\u7f51\u5173\u662f\u5426\u6b63\u5e38\u3002<br>\u7ed3\u679c\u6b63\u5e38\uff0c\u65e0\u4e22\u5305\u3002<br>2.\u68c0\u67e5RH2288-1\u3001RH2288-1\u9ed8\u8ba4\u7f51\u5173\u914d\u7f6e\u6b63\u786e\u3002<br>RH2288-1\u914d\u7f6e\u6b63\u786e\uff0c\u68c0\u67e5\u7ed3\u679c\u5982\u4e0b\uff1a<br>FY-HIS:\/etc # route -n<br>Kernel IP routing table<br>Destination Gateway Genmask Flags Metric Ref Use Iface<br>0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 bond1<br>RH2288-2\u914d\u7f6e\u6b63\u786e\uff0c\u68c0\u67e5\u7ed3\u679c\u5982\u4e0b\uff1a<br>FY-NMS ~ # route<br>Kernel IP routing table<br>Destination Gateway Genmask Flags Metric Ref Use Iface<br>default 172.16.0.1 0.0.0.0 UG 0 0 0 bond0<br>3.\u5728RH2288-1\u6293\u53d6\u7f51\u7edc\u6570\u636e\u5305\uff0c\u662f\u5426\u80fd\u6536\u5230RH2288-2\u8bf7\u6c42\u7684ping\u8bf7\u6c42\u3002<br>FY-HIS:~ # tcpdump -ni bond1 icmp<br>tcpdump: verbose output suppressed, use -v or -vv for full protocol decode<br>listening on bond1, link-type EN10MB (Ethernet), capture size 96 bytes<br>09:45:38.900680 IP 172.16.0.188 &gt; 192.168.0.188: ICMP echo request, id 24523, seq 54, length 64<br>09:45:39.908686 IP 172.16.0.188 &gt; 192.168.0.188: ICMP echo request, id 24523, seq 55, length 64<br>09:45:40.916731 IP 172.16.0.188 &gt; 192.168.0.188: ICMP echo request, id 24523, seq 56, length 64<br>09:45:41.924674 IP 172.16.0.188 &gt; 192.168.0.188: ICMP echo request, id 24523, seq 57, length 64<br>4.\u6839\u636e\u6293\u5305\u663e\u793a\uff0c\u4eceRH2288-2 ping RH2288-1 192.168.0.188\u4e0d\u901a\uff0c\u662f\u56e0\u4e3a\u5728RH2288-1\u4e0a\u53ea\u80fd\u6293\u5230RH2288-2\u7684request\u62a5\u6587\uff0c\u4f46\u6ca1\u6709\u6293\u5230RH2288-1 \u7684reply\u7684\u62a5\u6587\u3002<\/p>\n\n\n\n<p><strong>\u539f\u56e0<\/strong><br>\u95ee\u9898\u4ea7\u751f\u7684\u6839\u56e0\u5e94\u8be5\u662fSUSE \u7cfb\u7edf\u8def\u7531\u8868\u7b56\u7565\uff0c\u4f18\u5148\u7ea7\u4f4e\u7684\u8def\u7531\uff0c\u5b83\u4e0d\u56de\u590d\u5bf9\u7aef\u7684arp\u8bf7\u6c42\u3002<\/p>\n\n\n\n<p><strong>\u89e3\u51b3\u65b9\u6848<\/strong><br>1\uff0esysctl -a |grep rp_fi\uff0c\u67e5\u770b\u8fd4\u56de\u503c\u662f\u5426\u90fd\u4e3a0\u3002<br>2\uff0e\u5c06\u4e0d\u4e3a0\u7684\u503c\u6539\u4e3a0\u3002<br>\u5982net.ipv4.conf.all.rp_filter = 1\uff0c\u5219\u4fee\u6539sysctl -w net.ipv4.conf.all.rp_filter=0<br>3\uff0e\u5c06\u8be5\u4fee\u6539\u503c\u5199\u5165\u914d\u7f6e\u6587\u4ef6\uff1a<br>vi \/etc\/sysctl.conf<br>\u5728\u8be5\u6587\u4ef6\u4e2d\u5c06\u9700\u8981\u4fee\u6539\u4e3a0\u7684\u503c\u8fdb\u884c\u66f4\u6539\uff0c\u9700\u8981\u6ce8\u610f\u683c\u5f0f\u4e0e\u6587\u4ef6\u4e2d\u5176\u4ed6\u914d\u7f6e\u4e00\u81f4\u3002<\/p>\n\n\n\n<p><strong>\u5efa\u8bae\u4e0e\u603b\u7ed3<\/strong><br>\u5728\u5904\u7406\u670d\u52a1\u5668\u4fa7\u7f51\u7edc\u4e0d\u901a\u65f6\uff0c\u5efa\u8bae\u591a\u4f7f\u7528\u6293\u5305\u7684\u65b9\u6cd5\uff0c\u901a\u8fc7\u5206\u6790\u7f51\u7edc\u62a5\u6587\u5feb\u901f\u5b9a\u4f4d\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u95ee\u9898\u63cf\u8ff01.RH2288-1\u3001RH2288-2\u5b89\u88c5\u7684\u662fSUSE11\u64cd\u4f5c\u7cfb\u7edf\u30022.\u670d\u52a1\u5668\u91c7\u7684\u662f\u53cc\u7f51\u5361\u7ed1\u5b9a\uff0cbon [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[53,247,278,394],"class_list":["post-1517","post","type-post","status-publish","format-standard","hentry","category-operating-system","tag-arp","tag-rp_filter","tag-suse","tag-394"],"_links":{"self":[{"href":"https:\/\/www.wxcn.com\/index.php?rest_route=\/wp\/v2\/posts\/1517","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wxcn.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wxcn.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wxcn.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wxcn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1517"}],"version-history":[{"count":0,"href":"https:\/\/www.wxcn.com\/index.php?rest_route=\/wp\/v2\/posts\/1517\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wxcn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wxcn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wxcn.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}