{"id":7662,"date":"2020-05-23T18:43:26","date_gmt":"2020-05-23T10:43:26","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=7662"},"modified":"2022-05-29T17:19:29","modified_gmt":"2022-05-29T09:19:29","slug":"brctl","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/brctl","title":{"rendered":"brctl\u547d\u4ee4 – \u7ba1\u7406\u4ee5\u592a\u7f51\u7f51\u6865"},"content":{"rendered":"\n
brctl\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201cbridge control\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u7ba1\u7406\u4ee5\u592a\u7f51\u7f51\u6865\u3002brctl\u547d\u4ee4\u80fd\u591f\u8bbe\u7f6e\u3001\u7ef4\u62a4\u3001\u68c0\u67e5Linux\u7cfb\u7edf\u5185\u6838\u4e2d\u7684\u4ee5\u592a\u7f51\u7f51\u6865\u914d\u7f6e\u53c2\u6570\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>brctl [\u53c2\u6570] \u7f51\u6865\u540d\u79f0<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u521b\u5efa\u4e00\u4e2a\u6307\u5b9a\u540d\u79f0\u7684\u7f51\u6865\uff1a<\/p>\n\n\n\n \u5220\u9664\u4e00\u4e2a\u6307\u5b9a\u540d\u79f0\u7684\u7f51\u6865\uff1a<\/p>\n\n\n\n \u67e5\u770b\u6240\u6709\u7684\u7f51\u6865\u4fe1\u606f\uff1a<\/p>\n\n\n\n \u542f\u7528\u4e00\u4e2a\u6307\u5b9a\u540d\u79f0\u7684\u7f51\u6865\uff1a<\/p>\n\n\n\n \u5173\u95ed\u4e00\u4e2a\u6307\u5b9a\u540d\u79f0\u7684\u7f51\u6865\uff1a<\/p>\n\n\n\n brctl\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201cbridge control\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u7ba1\u7406\u4ee5\u592a\u7f51\u7f51\u6865\u3002brctl\u547d\u4ee4 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7662"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=7662"}],"version-history":[{"count":7,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7662\/revisions"}],"predecessor-version":[{"id":10197,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7662\/revisions\/10197"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=7662"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=7662"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=7662"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}addbr<\/td> \u521b\u5efa\u7f51\u6865<\/td><\/tr> delbr<\/td> \u5220\u9664\u7f51\u6865<\/td><\/tr> addif<\/td> \u5c06\u7f51\u5361\u63a5\u53e3\u63a5\u5165\u7f51\u6865<\/td><\/tr> delif<\/td> \u5220\u9664\u7f51\u6865\u63a5\u5165\u7684\u7f51\u5361\u63a5\u53e3<\/td><\/tr> show<\/td> \u67e5\u8be2\u7f51\u6865\u4fe1\u606f<\/td><\/tr> stp {on|off}<\/td> \u542f\u7528\u7981\u7528 STP<\/td><\/tr> showstp<\/td> \u67e5\u770b\u7f51\u6865 STP \u4fe1\u606f<\/td><\/tr> setfd<\/td> \u8bbe\u7f6e\u7f51\u6865\u5ef6\u8fdf<\/td><\/tr> showmacs<\/td> \u67e5\u770b mac \u4fe1\u606f<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# brctl addbr br10<\/strong><\/pre>\n\n\n\n
[root@linuxcool ~]# brctl delbr br10<\/strong><\/pre>\n\n\n\n
[root@linuxcool ~]# brctl show<\/strong><\/pre>\n\n\n\n
[root@linuxcool ~]# brctl stp br10 on<\/strong><\/pre>\n\n\n\n
[root@linuxcool ~]# brctl stp br10 off<\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"