{"id":6299,"date":"2020-01-19T19:39:58","date_gmt":"2020-01-19T11:39:58","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6299"},"modified":"2020-05-23T21:29:50","modified_gmt":"2020-05-23T13:29:50","slug":"dhcrelay","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/dhcrelay","title":{"rendered":"dhcrelay\u547d\u4ee4 – \u63d0\u4f9b\u4e2d\u7ee7DHCP\u548cBOOTP\u8bf7\u6c42"},"content":{"rendered":"\n

dhcrelay\u547d\u4ee4\u53ef\u4ee5\u63d0\u4f9b\u4e2d\u7ee7DHCP\u548cBOOTP\u8bf7\u6c42\uff0c\u4ece\u4e00\u4e2a\u6ca1\u6709DHCP\u670d\u52a1\u5668\u7684\u5b50\u7f51\u76f4\u63a5\u8fde\u63a5\u5230\u5176\u5b83\u5b50\u7f51\u5185\u7684\u4e00\u4e2a\u6216\u591a\u4e2aDHCP\u670d\u52a1\u5668\u3002\u8be5\u547d\u4ee4\u5728DHCP\u4e2d\u7ee7\u670d\u52a1\u5668\u4e0a\u4f7f\u7528\uff0c\u540c\u65f6\u652f\u6301DHCPv4\/BOOTP\u548cDHCPv6\u534f\u8bae\u3002 <\/p>\n\n\n\n

DHCP\u4e2d\u7ee7\u4ee3\u7406\u5728\u4e00\u4e2a\u6216\u591a\u4e2a\u63a5\u53e3\u4e0a\u4fa6\u542c\u6765\u81ea\u5ba2\u6237\u7aef\u6216\u5176\u4ed6\u4e2d\u7ee7\u4ee3\u7406\u7684DHCPv4\u6216DHCPv6\u67e5\u8be2\uff0c\u5e76\u5c06\u5176\u4f20\u9012\u5230\u6307\u5b9a\u7684\u201c\u4e0a\u6e38\u201d\u670d\u52a1\u5668\u6216\u4e2d\u7ee7\u4ee3\u7406\u3002\u4ece\u4e0a\u6e38\u63a5\u6536\u5230\u7b54\u590d\u540e\uff0c\u4f1a\u5c06\u5176\u7ec4\u64ad\u6216\u5355\u64ad\u53d1\u9001\u56de\u539f\u59cb\u8bf7\u6c42\u7684\u6e90\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f: <\/strong> dhcrelay [\u53c2\u6570] [DHCP\u670d\u52a1\u5668] <\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-c <\u8df3\u6570><\/td>\u5f53\u8f6c\u53d1\u6570\u636e\u5305\u65f6\uff0cdhcrelay\u4e22\u5f03\u5df2\u7ecf\u8fbe\u5230\u4e00\u4e2a\u6700\u5927\u8df3\u6570\u7684\u6570\u636e\u5305\u3002\u9ed8\u8ba4\u503c\u662f10\uff0c\u6700\u5927\u503c\u662f255<\/td><\/tr>
-4<\/td>\u8fd0\u884cdhcrelay\u547d\u4ee4\u4f5c\u4e3aDHCPv4\/BOOTP\u4e2d\u7ee7\u4ee3\u7406\u3002\u8fd9\u662f\u9ed8\u8ba4\u64cd\u4f5c\u6a21\u5f0f<\/td><\/tr>
-6<\/td>\u8fd0\u884cdhcrelay\u547d\u4ee4\u4f5c\u4e3aDHCPv6\u4e2d\u7ee7\u4ee3\u7406<\/td><\/tr>
-q<\/td>\u5b89\u9759\u6a21\u5f0f<\/td><\/tr>
-p <\u7aef\u53e3><\/td>\u76d1\u542c\u548c\u53d1\u9001\u7aef\u53e3\u3002DHCPv4\/BOOTP\u9ed8\u8ba4\u7aef\u53e3\u662f67\uff0cDHCPv6\u9ed8\u8ba4\u7aef\u53e3\u662f547<\/td><\/tr>
-A <\u957f\u5ea6><\/td>\u6307\u5b9a\u53d1\u9001\u5230DHCP\u670d\u52a1\u5668\u7684\u6700\u5927\u6570\u636e\u5305\u5927\u5c0f<\/td><\/tr>
-d<\/td>\u5f3a\u5236dhcrelay\u547d\u4ee4\u4f5c\u4e3a\u524d\u53f0\u8fdb\u7a0b\u8fd0\u884c<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u6307\u5b9aDHCP\u670d\u52a1\u5668\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# dhcrelay 192.168.20.4<\/pre>\n\n\n\n

\u6307\u5b9a\u5230DHCP\u670d\u52a1\u5668\u7684\u6700\u5927\u6311\u6570\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# dhcrelay -c 15 192.168.20.4<\/pre>\n\n\n\n

\u53d1\u9001\u5230DHCP\u670d\u52a1\u5668\u7684\u6700\u5927\u6570\u636e\u5305\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# dhcrelay -A 2048 192.168.20.4<\/pre>\n","protected":false},"excerpt":{"rendered":"

dhcrelay\u547d\u4ee4\u53ef\u4ee5\u63d0\u4f9b\u4e2d\u7ee7DHCP\u548cBOOTP\u8bf7\u6c42\uff0c\u4ece\u4e00\u4e2a\u6ca1\u6709DHCP\u670d\u52a1\u5668\u7684\u5b50\u7f51\u76f4\u63a5\u8fde\u63a5\u5230\u5176\u5b83\u5b50\u7f51\u5185\u7684 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6299"}],"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=6299"}],"version-history":[{"count":9,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6299\/revisions"}],"predecessor-version":[{"id":7448,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6299\/revisions\/7448"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6299"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6299"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}