{"id":1051,"date":"2018-12-30T12:24:25","date_gmt":"2018-12-30T04:24:25","guid":{"rendered":"https:\/\/blog.pfchina.org\/?p=1051"},"modified":"2020-08-24T21:44:23","modified_gmt":"2020-08-24T13:44:23","slug":"%e5%9c%a8pfsense%e4%b8%ad%e9%85%8d%e7%bd%ae%e5%a4%9awan%e8%b4%9f%e8%bd%bd%e5%b9%b3%e8%a1%a1%e5%92%8c%e6%95%85%e9%9a%9c%e8%bd%ac%e7%a7%bb","status":"publish","type":"post","link":"https:\/\/blog.pfchina.org\/?p=1051","title":{"rendered":"pfSense\u914d\u7f6e\u591aWAN\u8d1f\u8f7d\u5e73\u8861\u548c\u6545\u969c\u8f6c\u79fb"},"content":{"rendered":"<header>\u591awan\u8bbe\u7f6e\u80fd\u589e\u52a0\u4e92\u8054\u7f51\u5e26\u5bbd\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u8981\u5bf9\u5e26\u5bbd\u8fdb\u884c\u8d1f\u8f7d\u5747\u8861\u548c\u6545\u969c\u8f6c\u79fb\u3002\u5982\u679c\u4e00\u4e2a\u8fde\u63a5\u65ad\u5f00\uff0c\u6d41\u91cf\u5c06\u81ea\u52a8\u8def\u7531\u5230\u5907\u4efd\u8fde\u63a5\u3002<\/header>\n<div>\n<p>\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u6211\u4eec\u6765\u914d\u7f6epfSense\u7684\u591aWAN\u8bbe\u7f6e\uff0c\u4ee5\u5b9e\u73b0\u8d1f\u8f7d\u5747\u8861\u548c\u6545\u969c\u8f6c\u79fb\u3002<\/p>\n<h1>\u57fa\u672c\u8981\u6c42<\/h1>\n<p>\u6765\u81ea\u4e24\u4e2a\u4e0d\u540cISP\u7684\u4e24\u4e2a\u4e92\u8054\u7f51\u8fde\u63a5\uff0c\u540c\u4e00\u5bb6ISP\u7684\u4e5f\u884c\uff0c\u4f46\u7f51\u5173\u4e0d\u80fd\u76f8\u540c\u3002\u53ef\u4ee5\u662f\u62e8\u53f7\u4e5f\u53ef\u4ee5\u662f\u9759\u6001\u8fde\u63a5\u3002<\/p>\n<ol>\n<li>\u5177\u6709\u4e09\u4e2a\u7f51\u7edc\u7aef\u53e3\u7684pfSense\u9632\u706b\u5899\u3002<\/li>\n<li>\u4e24\u4e2a\u5e26\u7f51\u7edc\u7aef\u53e3\u7684ISP\u8c03\u5236\u89e3\u8c03\u5668<\/li>\n<li>\u6765\u81eaISP\u7684\u9759\u6001\u6216\u52a8\u6001IP<\/li>\n<li>\u76d1\u63a7ISP1\u7684IP1 &#8211; 8.8.8.8\uff08google dns IP\uff09<\/li>\n<li>\u76d1\u63a7ISP2\u7684IP2 &#8211; 208.69.38.205\uff08opendns IP\uff09<\/li>\n<\/ol>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/pfsense-sample-setup-welcome.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3052\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/pfsense-sample-setup-welcome.jpg\" alt=\"\u56fe01\uff1a\u5f00\u59cb\u4f7f\u7528\u6b64\u8bbe\u7f6e\u9700\u8981\u4ec0\u4e48\" width=\"600\" height=\"337\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/pfsense-sample-setup-welcome.jpg 600w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/pfsense-sample-setup-welcome-300x169.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/pfsense-sample-setup-welcome-500x281.jpg 500w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p><em>\u7f51\u7edc\u62d3\u6251\u56fe<\/em><\/p>\n<h1>\u8be6\u7ec6\u8bbe\u7f6e<\/h1>\n<p>\u5728\u5f00\u59cb\u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u6240\u6709WAN\u7c7b\u578b\u63a5\u53e3\u90fd\u542f\u7528\u4e86\u9759\u6001IP\uff0c\u00a0\u5e76\u6b63\u5e38\u8bbe\u7f6e\u4e86\u7f51\u5173\u3002<\/p>\n<h2>1\uff1a\u914d\u7f6epfsense LAN\u63a5\u53e3<\/h2>\n<p>\u901a\u8fc7http:\/\/172.16.1.254\u8bbf\u95eepfSense\u7684WEB\u914d\u7f6e\u754c\u9762\uff0c\u5bfc\u822a\u5230 Interfaces&gt; LAN\uff0c\u6309\u4e0b\u56fe\u8fdb\u884c\u8bbe\u7f6e\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/lan.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3053\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/lan.jpg\" alt=\"\u56fe02\uff1aLAN\u63a5\u53e3\u8bbe\u7f6e\" width=\"599\" height=\"650\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/lan.jpg 599w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/lan-276x300.jpg 276w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/a><\/p>\n<h2>2\uff1a\u914d\u7f6epfsense wan01\u63a5\u53e3\uff08ADSL ISP1\uff09<\/h2>\n<p>\u5bfc\u822a\u5230\u63a5\u53e3&gt; WAN 01\uff0c\u6309\u4e0b\u56fe\u8fdb\u884c\u8bbe\u7f6e\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/wan-01.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3054\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/wan-01.jpg\" alt=\"\u56fe02\uff1aWan 01\uff08ADSL ISP 1\uff09\u63a5\u53e3\u8bbe\u7f6e\" width=\"599\" height=\"663\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/wan-01.jpg 599w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/wan-01-271x300.jpg 271w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/a><\/p>\n<p>\u73b0\u5728\uff0c\u7b2c\u4e00\u4e2aWAN\u63a5\u53e3\u914d\u7f6e\u4e86\u9759\u6001IP\u3002\u5982\u679c\u9700\u8981\uff0c\u53ef\u4ee5\u6839\u636eISP1\u8c03\u5236\u89e3\u8c03\u5668\u8bbe\u7f6e\u5c06\u7c7b\u578b\u8bbe\u7f6e\u4e3aDHCP\u3002\u63a5\u4e0b\u6765\u786e\u4fdd\u7f51\u5173IP\u54cd\u5e94ping\uff0c\u4ee5\u786e\u8ba4WAN1\u5728\u7ebf\u5e76\u6b63\u5e38\u5de5\u4f5c\uff0c\u7136\u540e\u7ee7\u7eed\u3002<a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/ping-wan-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3055\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/ping-wan-1.jpg\" alt=\"\u786e\u4fddISP\uff031\u7f51\u5173\u54cd\u5e94ping\u4ee5\u786e\u8ba4\u6bcf\u4e2aWAN 1\u5b9e\u9645\u4e0a\u662f\u5426\u5728\u7ebf \" width=\"566\" height=\"628\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/ping-wan-1.jpg 566w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/ping-wan-1-270x300.jpg 270w\" sizes=\"auto, (max-width: 566px) 100vw, 566px\" \/><\/a><\/p>\n<h2>3\uff1a\u914d\u7f6epfsense wan02\u63a5\u53e3\uff08ADSL ISP2\uff09<\/h2>\n<p>\u5bfc\u822a\u5230\u63a5\u53e3&gt; WAN 02\uff0c\u6309\u4e0b\u56fe\u8fdb\u884c\u8bbe\u7f6e\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/wan-02.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3056\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/wan-02.jpg\" alt=\"\u56fe03\uff1aWan 02\uff08ADSL ISP 2\uff09\u63a5\u53e3\u8bbe\u7f6e\" width=\"599\" height=\"663\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/wan-02.jpg 599w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/wan-02-271x300.jpg 271w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/a><\/p>\n<p>\u73b0\u5728\uff0c\u7b2c\u4e8c\u4e2aWAN\u63a5\u53e3\u914d\u7f6e\u4e86\u9759\u6001IP\u3002\u5982\u679c\u9700\u8981\uff0c\u53ef\u4ee5\u6839\u636eISP1\u8c03\u5236\u89e3\u8c03\u5668\u8bbe\u7f6e\u5c06\u7c7b\u578b\u8bbe\u7f6e\u4e3aDHCP\u3002\u540c\u4e0a\u6211\u4eec\u786e\u8ba4WAN1\u5728\u7ebf\u5e76\u6b63\u5e38\u5de5\u4f5c\uff0c\u7136\u540e\u7ee7\u7eed\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/ping-wan-2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3057\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/ping-wan-2.jpg\" alt=\"\u786e\u4fddISP\uff032\u7f51\u5173\u54cd\u5e94ping\u4ee5\u786e\u8ba4\u6bcf\u4e2aWAN 2\u5b9e\u9645\u4e0a\u5728\u7ebf\" width=\"532\" height=\"627\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/ping-wan-2.jpg 532w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/ping-wan-2-255x300.jpg 255w\" sizes=\"auto, (max-width: 532px) 100vw, 532px\" \/><\/a><\/p>\n<h2>4\uff1a\u786e\u8ba4\u4e24\u4e2a\u7f51\u5173\u90fd\u5728\u7ebf<\/h2>\n<p>\u5bfc\u822a\u5230\u72b6\u6001 &gt;\u00a0\u7f51\u5173\uff0c\u67e5\u770b\u7f51\u5173\u5728\u7ebf\u60c5\u51b5\uff1a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/gateway-status.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3058\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/gateway-status.jpg\" alt=\"\u56fe04\uff1aWan\u7f51\u5173\u72b6\u6001\u5fc5\u987b\u4e3a\u7eff\u8272\" width=\"599\" height=\"159\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/gateway-status.jpg 599w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/gateway-status-300x80.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/gateway-status-500x133.jpg 500w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/a><\/p>\n<p>\u5982\u679c\u5b83\u4eec\u662f\u7eff\u8272\u7684\uff0c\u5219\u4e0e\u7f51\u5173\u7684\u8fde\u63a5\u6b63\u5e38\uff0c\u8fd9\u91cc\u9700\u8981\u914d\u7f6e\u76d1\u63a7P\u3002<\/p>\n<h2>5\uff1a\u4e3a\u6bcf\u4e2a\u7f51\u5173\u914d\u7f6e\u76d1\u63a7IP<\/h2>\n<p>\u5bfc\u822a\u5230\u7cfb\u7edf&gt;\u00a0\u8def\u7531 \uff0c\u9009\u62e9\u7f51\u5173\u9009\u9879\u5361\uff0c\u60a8\u5c06\u770b\u5230\u5982\u4e0b\u9875\u9762\uff1a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/system-routing.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3059\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/system-routing.jpg\" alt=\"\u56fe05\uff1a\u786e\u4fdd\u6bcf\u4e2aWAN\u63a5\u53e3\u90fd\u5b58\u5728\u7f51\u5173\u6761\u76ee\" width=\"599\" height=\"306\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/system-routing.jpg 599w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/system-routing-300x153.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/system-routing-500x255.jpg 500w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/a><\/p>\n<p>\u5355\u51fbwan_adsl2_l1GW\u7684\u7f16\u8f91\u56fe\u6807\uff0c\u5c06\u76d1\u63a7IP\u8bbe\u7f6e\u4e3a8.8.8.8\uff1a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/adsl-monitor-ip-1.8.8.8.8.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3060\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/adsl-monitor-ip-1.8.8.8.8.jpg\" alt=\"\u56fe06\uff1a\u8bbe\u7f6eWAN 1\u7684\u76d1\u63a7IP\uff08ADSL ISP\uff031\uff09\" width=\"599\" height=\"859\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/adsl-monitor-ip-1.8.8.8.8.jpg 599w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/adsl-monitor-ip-1.8.8.8.8-209x300.jpg 209w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/a><\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u5355\u51fbWAN_ADSL2_L2\uff08ADSL ISP2\uff09\u7684\u7f16\u8f91\u7f51\u5173\u56fe\u6807\uff0c\u5c06\u76d1\u63a7IP\u8bbe\u7f6e\u4e3a208.69.38.205\uff1a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/adsl-monitor-ip-2.208.69.38.205.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3061\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/adsl-monitor-ip-2.208.69.38.205.jpg\" alt=\"\u56fe07\uff1a\u8bbe\u7f6eWAN 2\u7684\u76d1\u63a7IP\uff08ADSL ISP\uff032\uff09\" width=\"599\" height=\"958\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/adsl-monitor-ip-2.208.69.38.205.jpg 599w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/adsl-monitor-ip-2.208.69.38.205-188x300.jpg 188w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/a><\/p>\n<p>\u7f51\u5173\u914d\u7f6e\u5df2\u66f4\u6539\u3002\u5e94\u7528\u66f4\u6539\u624d\u80fd\u4f7f\u5176\u751f\u6548\u3002<br \/>\n<a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/update-apply-gateway-config.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3062\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/update-apply-gateway-config.jpg\" alt=\"\u66f4\u65b0\u7533\u8bf7\uff0c\u7f51\u5173\u914d\u7f6e\" width=\"599\" height=\"395\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/update-apply-gateway-config.jpg 599w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/update-apply-gateway-config-300x198.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/update-apply-gateway-config-455x300.jpg 455w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/a><\/p>\n<h2>6\uff1a\u914d\u7f6e\u53ccWAN\u94fe\u8def\u8d1f\u8f7d\u5747\u8861<\/h2>\n<p>\u5bfc\u822a\u5230\u00a0\u7cfb\u7edf\u00a0&gt;\u8def\u7531 \uff0c\u9009\u62e9\u7f51\u5173\u7ec4\uff0c\u5355\u51fb\u201c\u00a0\u6dfb\u52a0\u00a0\u201d\u6309\u94ae\uff0c\u914d\u7f6e\u8d1f\u8f7d\u5747\u8861\uff1a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/pfsense-dual-lan-load-balancer-config.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3063\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/pfsense-dual-lan-load-balancer-config.jpg\" alt=\"\u56fe08\uff1a\u53cc\u4e07\u7528\u8d1f\u8f7d\u5747\u8861\u5668\u914d\u7f6e \" width=\"599\" height=\"493\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/pfsense-dual-lan-load-balancer-config.jpg 599w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/pfsense-dual-lan-load-balancer-config-300x247.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/pfsense-dual-lan-load-balancer-config-365x300.jpg 365w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/a><\/p>\n<p>\u8bbe\u7f6e\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li>\u5c06\u7ec4\u540d\u8bbe\u7f6e\u4e3a\u201c\u00a0WanLoadBalancer\u00a0\u201d\u3002<\/li>\n<li>\u5c06\u4e24\u4e2a\u7f51\u5173\u7684\u7f51\u5173\u4f18\u5148\u7ea7\u8bbe\u7f6e\u4e3a\u201c\u00a0\u7b2c1\u5c42\u00a0\u201d\u3002\u8bf7\u6ce8\u610f\uff0c\u5f53\u4e24\u4e2a\u7f51\u5173\u4f4d\u4e8e\u540c\u4e00\u5c42\uff08\u4f8b\u5982\u7b2c1\u5c42\uff09\u65f6\uff0c\u5b83\u4eec\u5c06\u8d1f\u8f7d\u5e73\u8861\u3002\u8fd9\u610f\u5473\u7740\uff0c\u5728\u6bcf\u4e2a\u8fde\u63a5\u7684\u57fa\u7840\u4e0a\uff0c\u8fde\u63a5\u4ee5\u5faa\u73af\u65b9\u5f0f\u5728\u6bcf\u4e2aWAN\u4e0a\u8def\u7531\u3002\u5982\u679c\u540c\u4e00\u5c42\u4e0a\u7684\u4efb\u4f55\u7f51\u5173\u51fa\u73b0\u6545\u969c\uff0c\u5219\u5c06\u5176\u4ece\u4f7f\u7528\u4e2d\u5220\u9664\uff0c\u5e76\u4e14\u8be5\u5c42\u4e0a\u7684\u5176\u4ed6\u7f51\u5173\u7ee7\u7eed\u6b63\u5e38\u8fd0\u884c\u3002<\/li>\n<li>\u5c06\u89e6\u53d1\u6761\u4ef6\u8bbe\u7f6e\u4e3a\u201c\u00a0Memberdown\u00a0\u201d\u3002<\/li>\n<li>\u5c06\u63cf\u8ff0\u8bbe\u7f6e\u4e3a\u201c\u00a0My Dual ADSL Wan Link Load Balancer\u00a0\u201d<\/li>\n<li>\u6700\u540e\u5355\u51fb\u201c\u00a0\u4fdd\u5b58\u00a0\u201d&gt;\u201c\u00a0\u5e94\u7528\u66f4\u6539\u00a0\u201d\u6309\u94ae\u3002<\/li>\n<\/ul>\n<h2>7\uff1a\u914d\u7f6e\u94fe\u8def\u6545\u969c\u8f6c\u79fb<\/h2>\n<p>\u63a5\u4e0b\u6765\uff0c\u5bfc\u822a\u5230\u00a0\u7cfb\u7edf\u00a0&gt;\u8def\u7531 \uff0c\u9009\u62e9\u7f51\u5173\u7ec4\uff0c\u5355\u51fb\u201c\u00a0\u6dfb\u52a0\u00a0\u201d\u6309\u94ae\uff0c\u914d\u7f6e\u6545\u969c\u8f6c\u79fb\uff1a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/link-failover-adsl-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3064\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/link-failover-adsl-1.jpg\" alt=\"\u56fe09\uff1aADSL\u94fe\u8def1\u7684\u94fe\u8def\u6545\u969c\u8f6c\u79fb\uff08wan1 \/ isp1\uff09\" width=\"599\" height=\"482\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/link-failover-adsl-1.jpg 599w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/link-failover-adsl-1-300x241.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/link-failover-adsl-1-373x300.jpg 373w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/a><\/p>\n<p>\u5f53\u4e24\u4e2a\u7f51\u5173\u4f4d\u4e8e\u4e0d\u540c\u5c42\u65f6\uff0c\u8f83\u4f4e\u5c42\u7f51\u5173\u662f\u9996\u9009\u3002\u5982\u679c\u8f83\u4f4e\u5c42\u7f51\u5173\u51fa\u73b0\u6545\u969c\uff0c\u5219\u5c06\u5176\u4ece\u4f7f\u7528\u4e2d\u5220\u9664\uff0c\u5e76\u4f7f\u7528\u4e0b\u4e00\u4e2a\u6700\u9ad8\u5c42\u7f51\u5173\u3002\u8fd9\u5c31\u662f\u6545\u969c\u8f6c\u79fb\u5728pfSense\u4e0a\u7684\u5de5\u4f5c\u539f\u7406\u3002\u6240\u4ee5\u8981\u4e3aADSL 1\u8bbe\u7f6e\u94fe\u8def\u6545\u969c\u8f6c\u79fb\uff1a<\/p>\n<ul>\n<li>\u5c06\u7ec4\u540d\u8bbe\u7f6e\u4e3a\u201c\u00a0ADSLLinkFailover2\u00a0\u201d<\/li>\n<li>\u5c06\u7f51\u5173\u4f18\u5148\u7ea7\u00a0wan_adsl2_l1GW\uff08ISP 1\uff09\u8bbe\u7f6e\u4e3a\u201c\u00a0\u7b2c1\u5c42\u00a0\u201d<\/li>\n<li>\u5c06\u7f51\u5173\u4f18\u5148\u7ea7\u00a0wan_adsl2_l2GW\uff08ISP 2\uff09\u8bbe\u7f6e\u4e3a\u201c\u00a0\u7b2c2\u5c42\u00a0\u201d<\/li>\n<li>\u5c06\u89e6\u53d1\u6761\u4ef6\u8bbe\u7f6e\u4e3a\u201c Memberdown\u00a0\u201d<\/li>\n<li>\u5c06\u63cf\u8ff0\u8bbe\u7f6e\u4e3a\u201c Link failover for ADSL 1\u00a0\u201d<\/li>\n<\/ul>\n<p>\u540c\u7406\uff0c\u6309\u5982\u4e0b\u65b9\u5f0f\u4e3aADSL 2\u8bbe\u7f6e\u94fe\u8def\u6545\u969c\u8f6c\u79fb\u5e76\u5207\u6362\u7f51\u5173\u4f18\u5148\u7ea7\uff1a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/link-failover-adsl-2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3065\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/link-failover-adsl-2.jpg\" alt=\"\u56fe10\uff1aADSL\u94fe\u8def2\u7684\u94fe\u8def\u6545\u969c\u8f6c\u79fb\uff08wan2 \/ isp2\uff09\" width=\"599\" height=\"496\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/link-failover-adsl-2.jpg 599w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/link-failover-adsl-2-300x248.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/link-failover-adsl-2-362x300.jpg 362w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/a><\/p>\n<p>\u6700\u540e\u5355\u51fb\u201c\u00a0\u4fdd\u5b58\u00a0\u201d&gt;\u201c\u00a0\u5e94\u7528\u66f4\u6539\u00a0\u201d\uff0c\u5b8c\u6210\u8d1f\u8f7d\u5747\u8861\u548c\u6545\u969c\u8f6c\u79fb\u7f51\u5173\u914d\u7f6e\u3002<\/p>\n<h2>8\uff1a\u4e3a\u8d1f\u8f7d\u5747\u8861\u5668\u914d\u7f6e\u9632\u706b\u5899\u89c4\u5219<\/h2>\n<p>\u4f7f\u7528\u9632\u706b\u5899\u89c4\u5219\u4e0a\u7684\u7f51\u5173\u8bbe\u7f6e\u5c06\u6d41\u91cf\u4f20\u9012\u5230\u8fd9\u4e9b\u8d1f\u8f7d\u5747\u8861\uff0c\u00a0\u5355\u51fb\u9632\u706b\u5899\u00a0&gt;\u00a0\u89c4\u5219\u00a0&gt;\u00a0Lan\u00a0&gt;\u00a0\u6dfb\u52a0\u5e76\u6309\u5982\u4e0b\u6240\u793a\u8fdb\u884c\u8bbe\u7f6e\uff1a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/lb-firewall-rules.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3066\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/lb-firewall-rules.jpg\" alt=\"\u56fe11\uff1aLB\u9632\u706b\u5899\u89c4\u5219\" width=\"599\" height=\"948\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/lb-firewall-rules.jpg 599w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/lb-firewall-rules-190x300.jpg 190w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>\u5355\u51fb\u201c\u00a0\u663e\u793a\u9ad8\u7ea7\u00a0\u201d\u6309\u94ae&gt;\u5411\u4e0b\u6eda\u52a8&gt;\u67e5\u627e\u7f51\u5173\u9009\u9879\u5e76\u5c06\u5176\u8bbe\u7f6e\u4e3aWanLoadBalancer\uff1a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/lb-adanced-rules-save.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3067\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/lb-adanced-rules-save.jpg\" alt=\"\u8bbe\u7f6eWanLoadBalancer\u7684\u7f51\u5173\" width=\"532\" height=\"426\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/lb-adanced-rules-save.jpg 532w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/lb-adanced-rules-save-300x240.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/lb-adanced-rules-save-375x300.jpg 375w\" sizes=\"auto, (max-width: 532px) 100vw, 532px\" \/><\/a><\/p>\n<p>\u5355\u51fb\u201c\u4fdd\u5b58\u201d&gt;\u201c\u5e94\u7528\u66f4\u6539\u201d\u6309\u94ae\u4ee5\u4fdd\u5b58\u9632\u706b\u5899\u89c4\u5219\u3002<\/p>\n<h2>9\uff1a\u914d\u7f6e\u9632\u706b\u5899\u89c4\u5219\u4ee5\u8fdb\u884c\u6545\u969c\u8f6c\u79fb<\/h2>\n<p>\u4f7f\u7528\u9632\u706b\u5899\u89c4\u5219\u4e0a\u7684\u7f51\u5173\u8bbe\u7f6e\u5c06\u6d41\u91cf\u4f20\u9012\u5230\u8fd9\u4e9b\u6545\u969c\u8f6c\u79fb\u7f51\u5173\u3002\u5355\u51fb\u9632\u706b\u5899\u00a0&gt;\u00a0\u89c4\u5219\u00a0&gt;\u00a0Lan\u00a0&gt;\u00a0\u6dfb\u52a0\u5e76\u6309\u5982\u4e0b\u6240\u793a\u8fdb\u884c\u8bbe\u7f6e\uff1a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/lf1-p1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3068\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/lf1-p1.jpg\" alt=\"\u56fe12\uff1aISP 1 \/ ADSL 1\u94fe\u8def\u7684\u6545\u969c\u8f6c\u79fb\u9632\u706b\u5899\u89c4\u5219\" width=\"599\" height=\"965\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/lf1-p1.jpg 599w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/lf1-p1-186x300.jpg 186w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>\u70b9\u51fb\u201c\u663e\u793a\u9ad8\u7ea7\u201d\u00a0\u6309\u94ae&gt;\u5411\u4e0b\u6eda\u52a8&gt;\uff0c\u67e5\u627e\u7f51\u5173\u9009\u9879\u5e76\u5c06\u5176\u8bbe\u7f6e\u4e3aADSLLinkFailover1\uff1a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/lf1-p2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3069\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/lf1-p2.jpg\" alt=\"\u5c06\u7f51\u5173\u8bbe\u7f6e\u4e3aADSLLinkFailover1\" width=\"599\" height=\"397\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/lf1-p2.jpg 599w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/lf1-p2-300x199.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/lf1-p2-453x300.jpg 453w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/a><\/p>\n<p>\u5355\u51fb\u201c\u4fdd\u5b58\u201d&gt;\u201c\u5e94\u7528\u66f4\u6539\u201d\u6309\u94ae\uff0c\u6765\u4fdd\u5b58\u9632\u706b\u5899\u89c4\u5219\u3002\u91cd\u590dADSLLinkFailover2\u7684\u9632\u706b\u5899\u89c4\u5219\u3002<\/p>\n<h2>10\uff1a\u5ba2\u6237\u7aef\u914d\u7f6e<\/h2>\n<p>\u5c06\u4ee5\u4e0b\u8303\u56f4\u5185\u7684\u6240\u6709IP\u5730\u5740\u5206\u914d\u7ed9\u5ba2\u6237\u7aef\u8ba1\u7b97\u673a\uff1a<\/p>\n<ul>\n<li>\u7f51\u7edc\uff1a172.16.1.254\/24<\/li>\n<li>IP\u8303\u56f4\uff1a172.16.1.1-172.16.1.253<\/li>\n<li>\u9ed8\u8ba4\u7f51\u5173\uff1a172.16.1.254<\/li>\n<li>DNS\u670d\u52a1\u5668\uff1a172.16.1.254\uff08\u62168.8.8.8\/8.8.4.4\uff09<\/li>\n<\/ul>\n<p>\u4ece\u5ba2\u6237\u7aef\u7cfb\u7edf\uff08OpenBSD\uff09\u6d4b\u8bd5\u5982\u4e0b\uff1a<br \/>\n$ ifconfig vio0<br \/>\n$ netstat -nr -f inet<br \/>\n$ ping -c 2 google.com<br \/>\n$ host cyberciti.biz 172.16.1.254<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/openbsd-client-config-test.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3070\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/openbsd-client-config-test.jpg\" alt=\"\u56fe13\uff1a\u6d4b\u8bd5pfSense LB \/\u6545\u969c\u8f6c\u79fb\u8def\u7531\u5668\" width=\"599\" height=\"673\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/openbsd-client-config-test.jpg 599w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/openbsd-client-config-test-267x300.jpg 267w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/a><\/p>\n<p>\u4f60\u53ef\u4ee5\u4f7f\u7528<a href=\"http:\/\/speedtest.net\/\" target=\"_blank\" rel=\"noopener noreferrer\">speedtest.net<\/a>\u8fdb\u884c\u901f\u5ea6\u6d4b\u8bd5\u3002\u5728\u4f7f\u7528Torrent\u4e0b\u8f7d\u8f83\u5927\u6587\u4ef6\u65f6\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4<a href=\"https:\/\/www.cyberciti.biz\/faq\/install-speedtest-cli-on-centos-redhat-fedoa-scientific-to-measure-internetspeed\/\">speedtest-cli<\/a>\u6765\u9a8c\u8bc1\u5ba2\u6237\u7aef\u8ba1\u7b97\u673a\u7684\u5e26\u5bbd\u662f\u5426\u7ffb\u500d\uff1a<br \/>\n$ python speedtest-cli<\/p>\n<p>\u5982\u679c\u4e00\u4e2aInternet\u8fde\u63a5\u65ad\u5f00\uff0c\u4f60\u4ecd\u53ef\u4ee5\u901a\u8fc7\u6545\u969c\u8f6c\u79fb\u8fdb\u884c\u4e92\u8054\u7f51\u8fde\u63a5\u3002<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u591awan\u8bbe\u7f6e\u80fd\u589e\u52a0\u4e92\u8054\u7f51\u5e26\u5bbd\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u8981\u5bf9\u5e26\u5bbd\u8fdb\u884c\u8d1f\u8f7d\u5747\u8861\u548c\u6545\u969c\u8f6c\u79fb\u3002\u5982\u679c\u4e00\u4e2a &hellip; <a href=\"https:\/\/blog.pfchina.org\/?p=1051\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[112],"class_list":["post-1051","post","type-post","status-publish","format-standard","hentry","category-pfsense","tag-wan"],"_links":{"self":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/1051","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1051"}],"version-history":[{"count":0,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/1051\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1051"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1051"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1051"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}