<br />
<b>Warning</b>:  Undefined array key "HTTP_ACCEPT_LANGUAGE" in <b>/www/wwwroot/01xj.net/wp-content/plugins/wp-ue/main.php</b> on line <b>13</b><br />
{"id":114,"date":"2011-09-19T11:02:57","date_gmt":"2011-09-19T11:02:57","guid":{"rendered":"http:\/\/www.01xj.net\/0\/?p=114"},"modified":"2011-09-19T11:02:57","modified_gmt":"2011-09-19T11:02:57","slug":"freebsd-7-2%e9%85%8d%e7%bd%aeip%e4%b8%8edns","status":"publish","type":"post","link":"https:\/\/www.01xj.net\/?p=114","title":{"rendered":"Freebsd 7.2\u914d\u7f6eIP\u4e0eDNS"},"content":{"rendered":"<p>OS:freebsd 7.2<\/p>\n<p>1\u3001\u7528ifconfig -a\u6765\u67e5\u770b\u6b63\u786e\u7684\u7f51\u5361\u540d<\/p>\n<p>#ifconfig<\/p>\n<p># \u624b\u5de5\u6307\u5b9a\u7684\u65b9\u5f0f<br \/>\n################################<\/p>\n<p># ifconfig fxp0 192.168.8.33\/24\u00a0\u00a0\u00a0\u00a0 # \u6dfb\u52a0\u7f51\u5361ip<br \/>\n# route add default 192.168.8.1\u00a0\u00a0\u00a0\u00a0 # \u6dfb\u52a0\u8def\u7531\uff08\u4e5f\u53ef\u7406\u89e3\u4e3a\u7f51\u5173\uff09<br \/>\n\u7acb\u5373\u751f\u6548\uff0c\u4f46\u662f\u91cd\u542f\u540e\u5931\u6548\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>#\u91cd\u65b0\u542f\u52a8\u540e\u4ecd\u7136\u751f\u6548<\/p>\n<p># ee \/etc\/rc.conf<br \/>\nifconfig_fxp0=&#8221;inet 192.168.8.8 netmask 255.255.255.0 &#8221;\u00a0\u00a0 # fxp0 \u7f51\u5361\u5730\u5740\u548c\u5b50\u7f51\u63a9\u7801<br \/>\ndefaultrouter=&#8221;192.168.8.10&#8243;\u00a0\u00a0\u00a0\u00a0\u00a0 # \u7f51\u5173\u5730\u5740<br \/>\nhostname=&#8221;study.nowire.com.cn&#8221;\u00a0\u00a0\u00a0\u00a0\u00a0 # \u673a\u5668\u540d<br \/>\nifconfig_wi0=&#8221;inet 192.168.8.55 netmask 255.255.255.0&#8243;\u00a0\u00a0 # wi0 \u7f51\u5361\u5730\u5740\uff0c\u5bf9\u5e94\u65e0\u7ebf\u7f51\u5361<\/p>\n<p>\u4fee\u6539 \/etc\/rc.conf \u914d\u7f6e\u4e4b\u540e\u53ef\u4ee5\u901a\u8fc7\u5982\u4e0b\u65b9\u5f0f\u751f\u6548\uff1a<br \/>\n\u7b2c\u4e00\u79cd\u65b9\u6cd5\uff1a# sh \/etc\/rc<br \/>\n\u7b2c\u4e8c\u79cd\u65b9\u6cd5\uff1a# \/etc\/netstart<br \/>\n\u7b2c\u4e09\u79cd\u65b9\u6cd5\uff1a\u91cd\u542f\u673a\u5668<\/p>\n<p>&nbsp;<\/p>\n<p># DHCP \u65b9\u5f0f<br \/>\n################################<\/p>\n<p>\u5728 \/etc\/rc.conf \u4e2d\u6dfb\u52a0\uff1a<br \/>\nifconfig_fxp0=&#8221;DHCP&#8221;<br \/>\n\u9700\u8981\u6839\u636e\u5177\u4f53\u60c5\u51b5\u6307\u5b9a\u7f51\u5361\u540d\u79f0\u3002<\/p>\n<p>\u4fee\u6539 \/etc\/rc.conf \u914d\u7f6e\u4e4b\u540e\u53ef\u4ee5\u901a\u8fc7\u5982\u4e0b\u65b9\u5f0f\u751f\u6548\uff1a<br \/>\n\u7b2c\u4e00\u79cd\u65b9\u6cd5\uff1a# sh \/etc\/rc<br \/>\n\u7b2c\u4e8c\u79cd\u65b9\u6cd5\uff1a# \/etc\/netstart<br \/>\n\u7b2c\u4e09\u79cd\u65b9\u6cd5\uff1a\u91cd\u542f\u673a\u5668<\/p>\n<p>#####<\/p>\n<p>\u5173\u4e8e DNS \u5730\u5740\u7684\u914d\u7f6e<br \/>\n################################<\/p>\n<p># ee \/etc\/resolv.conf<br \/>\nnameserver 202.96.209.133<br \/>\nnameserver 202.96.209.5<\/p>\n<p>&nbsp;<\/p>\n<p>\u63a7\u5236\u7f51\u5361\u7684\u5f00\u5173<br \/>\n################################<\/p>\n<p>ifconfig fxp0 up<br \/>\nifconfig fxp0 down<\/p>\n<p>#####<br \/>\n# \u8def\u7531\u65b9\u9762\u7684\u914d\u7f6e<br \/>\n################################<\/p>\n<p>\u67e5\u770b\u8def\u7531<br \/>\nnetstat -rn<\/p>\n<p>\u6dfb\u52a0\u8def\u7531(\u76f8\u5f53\u4e8e\u914d\u7f6egateway)<br \/>\nroute add default 192.168.8.1\u00a0\u00a0\u00a0\u00a0\u00a0 # 192.168.8.1\u4e3a\u7f51\u5173\u5730\u5740<\/p>\n<p>\u5982\u679c\u8981\u4fee\u6539\u5f53\u524d\u8def\u7531\u914d\u7f6e\uff0c\u9700\u8981\u5148\u5220\u9664\uff0c\u518d\u65b0\u589e\u4e00\u6761\uff0c\u5f53\u7136\u5982\u679c\u4e0d\u662f\u540c\u540d\u7684\uff0c\u5982\u4e0d\u662fdefault\u7684\u53ef\u4ee5\u76f4\u63a5\u6dfb\u52a0<br \/>\nroute delete default 192.168.8.1<br \/>\nroute add default 192.168.8.10<\/p>\n<p>#####<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OS:freebsd 7.2 1\u3001\u7528ifconfig -a\u6765\u67e5\u770b\u6b63\u786e&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-114","post","type-post","status-publish","format-standard","hentry","category-freebsd-"],"_links":{"self":[{"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/posts\/114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.01xj.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=114"}],"version-history":[{"count":2,"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/posts\/114\/revisions"}],"predecessor-version":[{"id":116,"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/posts\/114\/revisions\/116"}],"wp:attachment":[{"href":"https:\/\/www.01xj.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.01xj.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.01xj.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}