{"id":1576,"date":"2025-11-17T11:46:43","date_gmt":"2025-11-17T02:46:43","guid":{"rendered":"https:\/\/mylifeisbeautiful555.net\/?page_id=1576"},"modified":"2025-11-17T11:46:43","modified_gmt":"2025-11-17T02:46:43","slug":"nat%e3%81%ae%e8%a8%ad%e5%ae%9a","status":"publish","type":"page","link":"https:\/\/mylifeisbeautiful555.net\/?page_id=1576","title":{"rendered":"NAT\u306e\u8a2d\u5b9a"},"content":{"rendered":"\n<p>NAT\u306e\u8a2d\u5b9a\u306f\u300c3\u30b9\u30c6\u30c3\u30d7\u300d\u3060\u3051\uff01<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>STEP 1\uff1a\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306b inside \/ outside \u3092\u6307\u5b9a<\/strong><\/h2>\n\n\n\n<p>\u307e\u305a\u3001\u30eb\u30fc\u30bf\u306e\u3069\u3061\u3089\u5074\u304c LAN\uff08\u5185\u5074\uff09\u3067<br>\u3069\u3061\u3089\u5074\u304c \u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\uff08\u5916\u5074\uff09\u304b\u3092\u6c7a\u3081\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>interface GigabitEthernet0\/0\n ip address 192.168.1.1 255.255.255.0\n ip nat inside\n\ninterface GigabitEthernet0\/1\n ip address 203.0.113.5 255.255.255.0\n ip nat outside\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>ip nat inside<\/strong> \u2192 \u5185\u90e8\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u5074<\/li>\n\n\n\n<li><strong>ip nat outside<\/strong> \u2192 \u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u5074<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>STEP 2\uff1aNAT\u5bfe\u8c61\u3068\u306a\u308b\u5185\u90e8\u30a2\u30c9\u30ec\u30b9\u3092\u6c7a\u3081\u308b<\/strong><\/h2>\n\n\n\n<p>\u300c\u3069\u306e\u5185\u90e8IP\u3092NAT\u3055\u305b\u308b\u304b\u300d\u3092 ACL \u3067\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4f8b\uff1a\u5185\u90e8\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u304c <strong>192.168.1.0\/24<\/strong> \u306e\u5834\u5408<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>access-list 1 permit 192.168.1.0 0.0.0.255<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>STEP 3\uff1aNAT\u65b9\u5f0f\uff08Static \/ Dynamic \/ PAT\uff09\u3092\u8a2d\u5b9a<\/strong><\/h2>\n\n\n\n<p>\u76ee\u7684\u306b\u5fdc\u3058\u3066\u3001NAT\u306e\u7a2e\u985e\u3092\u9078\u3073\u307e\u3059\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u26051\uff1aPAT\uff08\u591a\u5bfe1\uff09\u203b\u4e00\u756a\u3088\u304f\u4f7f\u3046NAT<\/h3>\n\n\n\n<p>\u5185\u90e8\u306e\u305f\u304f\u3055\u3093\u306e\u7aef\u672b\u3092<br><strong>1\u3064\u306e\u30b0\u30ed\u30fc\u30d0\u30ebIP\u3067\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306b\u51fa\u3059<\/strong> \u65b9\u6cd5\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ip nat inside source list 1 interface GigabitEthernet0\/1 overload\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>interface GigabitEthernet0\/1<\/code> \u2192 \u5916\u5074\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306eIP\u3092\u4f7f\u3046<\/li>\n\n\n\n<li><code>overload<\/code> \u2192 \u591a\u5bfe1\u306e NAT\uff08PAT\uff09\u306b\u306a\u308b<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">&#x2714; \u5b9f\u969b\u306e\u5909\u63db\u4f8b<\/h3>\n\n\n\n<p>\u5185\u90e8\uff1a<code>192.168.1.10:50000<\/code><br>\u5916\u90e8\uff1a<code>203.0.113.5:30010<\/code> \u306b\u5909\u63db\u3055\u308c\u308b\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u26052\uff1a\u9759\u7684 NAT\uff081\u5bfe1\uff09<\/h3>\n\n\n\n<p>\u5185\u90e8\u306e\u30b5\u30fc\u30d0\u3092\u3001\u5916\u90e8\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u3044\u5834\u5408\u3002<\/p>\n\n\n\n<p>\u4f8b\uff1a<br>\u5185\u90e8\u30b5\u30fc\u30d0 \u2192 192.168.1.100<br>\u30b0\u30ed\u30fc\u30d0\u30ebIP \u2192 203.0.113.10<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ip nat inside source static 192.168.1.100 203.0.113.10\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">&#x2714; \u52d5\u4f5c<\/h3>\n\n\n\n<p>\u5916\u90e8\u304b\u3089 <code>203.0.113.10<\/code> \u306b\u6765\u305f\u901a\u4fe1\u306f<br>\u5185\u90e8\u306e <code>192.168.1.100<\/code> \u3078\u8ee2\u9001\u3055\u308c\u308b\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u26053\uff1a\u52d5\u7684 NAT\uff08\u591a\u5bfe\u591a\uff09<\/h3>\n\n\n\n<p>\u8907\u6570\u306e\u30b0\u30ed\u30fc\u30d0\u30ebIP\u3092\u30d7\u30fc\u30eb\u3068\u3057\u3066\u904b\u7528\u3059\u308b\u5834\u5408\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ip nat pool GLOPOOL 203.0.113.10 203.0.113.20 netmask 255.255.255.0\naccess-list 1 permit 192.168.1.0 0.0.0.255\nip nat inside source list 1 pool GLOPOOL<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\">NAT\u306e\u52d5\u4f5c\u78ba\u8a8d\u30b3\u30de\u30f3\u30c9<\/h1>\n\n\n\n<pre class=\"wp-block-code\"><code>show ip nat translations\nshow ip nat statistics<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\">NAT\u304c\u52d5\u304b\u306a\u3044\u3068\u304d\u306e\u30c1\u30a7\u30c3\u30af<\/h1>\n\n\n\n<ol class=\"wp-block-list\">\n<li>inside\/outside \u306e\u5411\u304d\u304c\u6b63\u3057\u3044\u304b<\/li>\n\n\n\n<li>ACL \u306e\u30a2\u30c9\u30ec\u30b9\u7bc4\u56f2\u304c\u6b63\u3057\u3044\u304b<\/li>\n\n\n\n<li>\u30c7\u30d5\u30a9\u30eb\u30c8\u30eb\u30fc\u30c8\u304c\u3042\u308b\u304b<\/li>\n\n\n\n<li>\u5916\u5074\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306b IP \u304c\u3042\u308b\u304b<\/li>\n\n\n\n<li>NAT\u30c6\u30fc\u30d6\u30eb\u306b\u30a8\u30f3\u30c8\u30ea\u304c\u4f5c\u3089\u308c\u3066\u3044\u308b\u304b<\/li>\n<\/ol>\n\n\n\n<h1 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h1>\n\n\n\n<h3 class=\"wp-block-heading\">NAT\u8a2d\u5b9a\u306f\u300c3\u30b9\u30c6\u30c3\u30d7\u300d\u3067\u7d42\u308f\u308b\uff01<\/h3>\n\n\n\n<p>1&#xfe0f;&#x20e3; inside \/ outside<br>2&#xfe0f;&#x20e3; \u3069\u306e\u5185\u90e8IP\u3092\u5bfe\u8c61\u306b\u3059\u308b\u304b<br>3&#xfe0f;&#x20e3; NAT\u306e\u7a2e\u985e\uff08Static \/ Dynamic \/ PAT\uff09<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>NAT\u306e\u8a2d\u5b9a\u306f\u300c3\u30b9\u30c6\u30c3\u30d7\u300d\u3060\u3051\uff01 STEP 1\uff1a\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306b inside \/ outside \u3092\u6307\u5b9a \u307e\u305a\u3001\u30eb\u30fc\u30bf\u306e\u3069\u3061\u3089\u5074\u304c LAN\uff08\u5185\u5074\uff09\u3067\u3069\u3061\u3089\u5074\u304c \u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\uff08\u5916\u5074\uff09\u304b\u3092\u6c7a\u3081\u307e\u3059\u3002 STEP 2\uff1aN [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1576","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mylifeisbeautiful555.net\/index.php?rest_route=\/wp\/v2\/pages\/1576","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mylifeisbeautiful555.net\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mylifeisbeautiful555.net\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mylifeisbeautiful555.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mylifeisbeautiful555.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1576"}],"version-history":[{"count":1,"href":"https:\/\/mylifeisbeautiful555.net\/index.php?rest_route=\/wp\/v2\/pages\/1576\/revisions"}],"predecessor-version":[{"id":1577,"href":"https:\/\/mylifeisbeautiful555.net\/index.php?rest_route=\/wp\/v2\/pages\/1576\/revisions\/1577"}],"wp:attachment":[{"href":"https:\/\/mylifeisbeautiful555.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1576"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}