{"id":241582,"date":"2022-05-08T09:59:22","date_gmt":"2022-05-08T01:59:22","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=241582"},"modified":"2022-04-29T10:00:30","modified_gmt":"2022-04-29T02:00:30","slug":"linux-opensource-sdn","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-opensource-sdn.html","title":{"rendered":"\u628aLinux\u53d8\u6210\u5f00\u6e90SDN"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u4f7f\u7528\u5f00\u6e90\u8def\u7531\u534f\u8bae\u6808 Quagga\uff0c\u4f7f\u4f60\u7684 Linux \u7cfb\u7edf\u6210\u4e3a\u4e00\u53f0\u8def\u7531\u5668\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \u7f51\u7edc\u8def\u7531\u534f\u8bae\u5206\u4e3a\u4e24\u5927\u7c7b\uff1a\u5185\u90e8\u7f51\u5173\u534f\u8bae\u548c\u5916\u90e8\u7f51\u5173\u534f\u8bae\u3002\u8def\u7531\u5668\u4f7f\u7528\u5185\u90e8\u7f51\u5173\u534f\u8bae\u5728\u5355\u4e2a\u81ea\u6cbb\u7cfb\u7edf\u5185\u5171\u4eab\u4fe1\u606f\u3002\u5982\u679c\u4f60\u7528\u7684\u662f Linux\uff0c\u5219\u53ef\u4ee5\u901a\u8fc7\u5f00\u6e90\uff08GPLv2\uff09\u8def\u7531\u534f\u8bae\u6808 Quagga \u4f7f\u5176\u8868\u73b0\u5f97\u50cf\u4e00\u53f0\u8def\u7531\u5668\u3002<\/p>\n Quagga \u662f\u4ec0\u4e48\uff1f<\/strong><\/div>\n Quagga \u662f\u4e00\u4e2a\u8def\u7531\u8f6f\u4ef6\u5305\uff0c\u5e76\u4e14\u662f GNU Zebra \u7684\u4e00\u4e2a\u5206\u652f\u3002\u5b83\u4e3a\u7c7b Unix \u5e73\u53f0\u63d0\u4f9b\u4e86\u6240\u6709\u4e3b\u6d41\u8def\u7531\u534f\u8bae\u7684\u5b9e\u73b0\uff0c\u4f8b\u5982\u5f00\u653e\u6700\u77ed\u8def\u5f84\u4f18\u5148\uff08OSPF\uff09\uff0c\u8def\u7531\u4fe1\u606f\u534f\u8bae\uff08RIP\uff09\uff0c\u8fb9\u754c\u7f51\u5173\u534f\u8bae\uff08BGP\uff09\u548c\u4e2d\u95f4\u7cfb\u7edf\u5230\u4e2d\u95f4\u7cfb\u7edf\u534f\u8bae\uff08IS-IS\uff09\u3002<\/p>\n \u5c3d\u7ba1 Quagga \u5b9e\u73b0\u4e86 IPv4 \u548c IPv6 \u7684\u8def\u7531\u534f\u8bae\uff0c\u4f46\u5b83\u5e76\u4e0d\u662f\u4e00\u4e2a\u5b8c\u6574\u7684\u8def\u7531\u5668\u3002\u4e00\u4e2a\u771f\u6b63\u7684\u8def\u7531\u5668\u4e0d\u4ec5\u5b9e\u73b0\u4e86\u6240\u6709\u8def\u7531\u534f\u8bae\uff0c\u800c\u4e14\u8fd8\u6709\u8f6c\u53d1\u7f51\u7edc\u6d41\u91cf\u7684\u80fd\u529b\u3002 Quagga \u4ec5\u4ec5\u5b9e\u73b0\u4e86\u8def\u7531\u534f\u8bae\u6808\uff0c\u800c\u8f6c\u53d1\u7f51\u7edc\u6d41\u91cf\u7684\u5de5\u4f5c\u7531 Linux \u5185\u6838\u5904\u7406\u3002<\/p>\n \u67b6\u6784<\/strong><\/div>\n Quagga \u901a\u8fc7\u7279\u5b9a\u534f\u8bae\u7684\u5b88\u62a4\u7a0b\u5e8f\u5b9e\u73b0\u4e0d\u540c\u7684\u8def\u7531\u534f\u8bae\u3002\u5b88\u62a4\u7a0b\u5e8f\u540d\u79f0\u4e0e\u8def\u7531\u534f\u8bae\u76f8\u540c\uff0c\u52a0\u4e86\u5b57\u6bcd\u201cd\u201d\u4f5c\u4e3a\u540e\u7f00\u3002Zebra \u662f\u6838\u5fc3\uff0c\u4e5f\u662f\u4e0e\u534f\u8bae\u65e0\u5173\u7684\u5b88\u62a4\u8fdb\u7a0b\uff0c\u5b83\u4e3a\u5185\u6838\u63d0\u4f9b\u4e86\u4e00\u4e2a\u62bd\u8c61\u5c42\uff0c\u5e76\u901a\u8fc7 TCP \u5957\u63a5\u5b57\u5411 Quagga \u5ba2\u6237\u7aef\u63d0\u4f9b Zserv API\u3002\u6bcf\u4e2a\u7279\u5b9a\u534f\u8bae\u7684\u5b88\u62a4\u7a0b\u5e8f\u8d1f\u8d23\u8fd0\u884c\u76f8\u5173\u7684\u534f\u8bae\uff0c\u5e76\u57fa\u4e8e\u4ea4\u6362\u7684\u4fe1\u606f\u6765\u5efa\u7acb\u8def\u7531\u8868\u3002<\/p>\n <\/p>\n \u73af\u5883<\/strong><\/div>\n \u672c\u6559\u7a0b\u901a\u8fc7 Quagga \u5b9e\u73b0\u7684 OSPF \u534f\u8bae\u6765\u914d\u7f6e\u52a8\u6001\u8def\u7531\u3002\u8be5\u73af\u5883\u5305\u62ec\u4e24\u4e2a\u540d\u4e3a Alpha \u548c Beta \u7684 CentOS 7.7 \u4e3b\u673a\u3002\u4e24\u53f0\u4e3b\u673a\u5171\u4eab\u8bbf\u95ee 192.168.122.0\/24 \u7f51\u7edc\u3002<\/p>\n \u4e3b\u673a Alpha\uff1a<\/strong><\/span><\/div>\n IP\uff1a192.168.122.100\/24 \u7f51\u5173\uff1a192.168.122.1<\/p>\n \u4e3b\u673a Beta\uff1a<\/strong><\/span><\/div>\n IP\uff1a192.168.122.50\/24 \u7f51\u5173\uff1a192.168.122.1<\/p>\n \u5b89\u88c5\u8f6f\u4ef6\u5305<\/strong><\/div>\n \u9996\u5148\uff0c\u5728\u4e24\u53f0\u4e3b\u673a\u4e0a\u5b89\u88c5 Quagga \u8f6f\u4ef6\u5305\u3002\u5b83\u5b58\u5728\u4e8e CentOS \u57fa\u7840\u4ed3\u5e93\u4e2d\uff1a<\/p>\n \r\nyum install quagga -y\r\n<\/pre>\n |