{"id":198,"date":"2010-05-20T22:13:37","date_gmt":"2010-05-20T14:13:37","guid":{"rendered":"http:\/\/www.lonelyword.com\/?p=198"},"modified":"2011-04-14T08:55:57","modified_gmt":"2011-04-14T00:55:57","slug":"cisco%e8%b7%af%e7%94%b1%e5%99%a8%e4%b8%8a%e5%81%9anat%e5%92%8cdhcp","status":"publish","type":"post","link":"http:\/\/www.lonelyword.com\/?p=198","title":{"rendered":"Cisco\u8def\u7531\u5668\u4e0a\u505aNAT\u548cDHCP"},"content":{"rendered":"<p>\u8981\u5728\u8def\u7531\u5668\u4e0a\u505aNAT\uff0c\u5e76\u4e14\u914d\u7f6eDHCP\u7684\u547d\u4ee4<\/p>\n<p>\/\/\u914d\u7f6eDHCP<\/p>\n<p>ip dhcp excluded-address 192.168.1.1 192.168.1.100<br \/>\n!<br \/>\nip dhcp pool office<br \/>\nnetwork 192.168.1.0 255.255.255.0<br \/>\ndefault-router 192.168.1.1<br \/>\ndns-server 8.8.8.8\u00a0 8.8.4.4<\/p>\n<p>\/\/\u914d\u7f6eNAT<br \/>\n\/\/\u5916\u90e8\u5730\u5740<br \/>\nint fa0\/0<br \/>\nip add 1.1.1.2 255.255.255.248<br \/>\nip nat outside<\/p>\n<p>\/\/\u5185\u90e8\u5730\u5740<br \/>\nint fa0\/1<br \/>\nip add 192.168.1.1 255.255.255.0<br \/>\nip nat inside<\/p>\n<p>\/\/\u8def\u7531<br \/>\nip route 0.0.0.0 0.0.0.0 1.1.1.1<\/p>\n<p>\/\/NAT\u8f6c\u6362<br \/>\nip nat pool Net 1.1.1.2 1.1.1.7 netmask 255.255.255.248<br \/>\nip nat inside source list 1 pool Net overload<br \/>\n!<br \/>\naccess-list 1 permit 192.168.1.0 0.0.0.255<\/p>\n<p>\/\/\u7aef\u53e3\u6620\u5c04<br \/>\nip nat inside source static tcp 192.168.1.8 80 1.1.1.6 80<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8981\u5728\u8def\u7531\u5668\u4e0a\u505aNAT\uff0c\u5e76\u4e14\u914d\u7f6eDHCP\u7684\u547d\u4ee4 \/\/\u914d\u7f6eDHCP ip dhcp excluded-address 192.168.1.1 192.168.1.1&#8230;<\/p>\n<p class=\"read-more\"><a href=\"http:\/\/www.lonelyword.com\/?p=198\" > Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"ngg_post_thumbnail":0,"footnotes":""},"categories":[202],"tags":[203,204],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.lonelyword.com\/index.php?rest_route=\/wp\/v2\/posts\/198"}],"collection":[{"href":"http:\/\/www.lonelyword.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.lonelyword.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.lonelyword.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.lonelyword.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=198"}],"version-history":[{"count":0,"href":"http:\/\/www.lonelyword.com\/index.php?rest_route=\/wp\/v2\/posts\/198\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.lonelyword.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.lonelyword.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=198"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.lonelyword.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}