{"id":188,"date":"2010-06-22T15:45:29","date_gmt":"2010-06-22T12:45:29","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=188"},"modified":"2015-01-08T16:56:21","modified_gmt":"2015-01-08T14:56:21","slug":"%d1%82%d1%80%d0%b0%d0%bd%d1%81%d0%bb%d1%8f%d1%86%d0%b8%d1%8f-%d0%b0%d0%b4%d1%80%d0%b5%d1%81%d0%be%d0%b2-nat-%d0%bd%d0%b0-%d1%80%d0%be%d1%83%d1%82%d0%b5%d1%80%d0%b5","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=188","title":{"rendered":"\u0422\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044f \u0430\u0434\u0440\u0435\u0441\u043e\u0432 NAT \u043d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0435"},"content":{"rendered":"<p>\u0412\u0441\u0451 \u043d\u0438\u0436\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u043f\u0440\u043e\u0434\u0435\u043b\u044b\u0432\u0430\u043b\u043e\u0441\u044c \u043d\u0430 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0435\u00a0<strong>Packet Tracer 5.1<\/strong>. \u041f\u043e \u0438\u0434\u0435\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438 \u043d\u0430 \u043e\u0431\u044b\u0447\u043d\u043e\u043c \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0438. \u0418 \u0442\u0430\u043a, \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0435\u043c. \u0415\u0441\u0442\u044c \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0430\u0434\u0440\u0435\u0441\u00a0<strong>20.20.20.20<\/strong> \u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u0441\u0435\u0442\u044c\u00a0<strong>10.10.10.0\/24<\/strong>. \u041d\u0443\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c\u00a0<strong>NAT<\/strong>. \u0412\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0441\u00a0<strong>fa0\/0<\/strong>, \u0432\u043d\u0435\u0448\u043d\u0438\u0439\u00a0<strong>fa0\/1<\/strong>. \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u044e, \u0447\u0442\u043e \u0430\u0434\u0440\u0435\u0441\u0430 \u0443 \u0432\u0430\u0441 \u0443\u0436\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u044b \u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0443\u0436\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0430.<\/p>\n<p><!--more--><\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c\u00a0<strong>access-list<\/strong>, \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u043c \u0432\u0441\u0451 (\u043f\u043e \u0434\u0435\u0444\u043e\u043b\u0442\u0443 \u0432\u0441\u0451 \u0431\u043b\u043e\u0447\u0438\u0442\u044c\u0441\u044f).<\/p>\n<p><code>Router#conf t<br \/>\nRouter(config)#access-list 1 permit any<br \/>\n<\/code><br \/>\n\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438:<\/p>\n<p><code>Router#conf t<br \/>\nRouter(config)#ip nat inside source list 1 interface FastEthernet0\/1 overload<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044e \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u0445 (\u043d\u0430 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u043c\u00a0<strong>inside<\/strong>, \u043d\u0430 \u0432\u043d\u0435\u0448\u043d\u0435\u043c &#8211;\u00a0<strong>outside<\/strong>):<\/p>\n<p><code>Router#conf t<br \/>\nRouter(config)#int fa0\/0<br \/>\nRouter(config-if)#ip nat inside<br \/>\nRouter(config-if)#exit<br \/>\nRouter(config)#int fa0\/1<br \/>\nRouter(config-if)#ip nat outside<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u043a\u0443\u0434\u0430-\u0442\u043e \u0437\u0430\u0439\u0442\u0438, \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0438\u043d\u0433\u043e\u043d\u0443\u0442\u044c \u0432\u043d\u0435\u0448\u043d\u044e\u044e \u0441\u0435\u0442\u044c. \u0414\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u044b\u00a0<strong>NAT<\/strong> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443\u00a0<strong>sh ip nat traslation<\/strong> (\u044f \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b \u043f\u0438\u043d\u0433 \u0441 \u043c\u0430\u0448\u0438\u043d\u044b\u00a0<strong>10.10.10.10<\/strong> \u043d\u0430 \u0430\u0434\u0440\u0435\u0441\u00a0<strong>30.30.30.1<\/strong>):<\/p>\n<p><code>Router#sh ip nat\u00a0 translations<br \/>\nPro\u00a0 Inside global\u00a0\u00a0\u00a0\u00a0 Inside local\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Outside local\u00a0\u00a0\u00a0\u00a0\u00a0 Outside global<br \/>\nicmp 20.20.20.20:909\u00a0\u00a0\u00a0\u00a0 10.10.10.10:909\u00a0\u00a0\u00a0\u00a0 30.30.30.1:909\u00a0\u00a0\u00a0\u00a0\u00a0 30.30.30.1:909<br \/>\nicmp 20.20.20.20:910\u00a0\u00a0\u00a0\u00a0 10.10.10.10:910\u00a0\u00a0\u00a0\u00a0 30.30.30.1:910\u00a0\u00a0\u00a0\u00a0\u00a0 30.30.30.1:910<br \/>\nicmp 20.20.20.20:911\u00a0\u00a0\u00a0\u00a0 10.10.10.10:911\u00a0\u00a0\u00a0\u00a0 30.30.30.1:911\u00a0\u00a0\u00a0\u00a0\u00a0 30.30.30.1:911<br \/>\nicmp 20.20.20.20:912\u00a0\u00a0\u00a0\u00a0 10.10.10.10:912\u00a0\u00a0\u00a0\u00a0 30.30.30.1:912\u00a0\u00a0\u00a0\u00a0\u00a0 30.30.30.1:912<br \/>\nicmp 20.20.20.20:913\u00a0\u00a0\u00a0\u00a0 10.10.10.10:913\u00a0\u00a0\u00a0\u00a0 30.30.30.1:913\u00a0\u00a0\u00a0\u00a0\u00a0 30.30.30.1:913<\/code><\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u043e\u0440\u0442 \u0432 \u043b\u043e\u043a\u0430\u043b\u043a\u0443, \u0442\u043e \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<p><code>Router#conf t<br \/>\nRouter(config)#ip nat inside source static tcp 10.10.10.2 25 20.20.20.20 25<\/code><\/p>\n<p>\u0433\u0434\u0435 \u0441\u0435\u0440\u0432\u0430\u043a\u00a0<strong>10.10.10.2<\/strong> &#8211; \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440.<\/p>\n<p>\u0410 \u0432\u043e\u0442 \u044d\u043a\u0437\u043e\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 (\u0432\u0437\u044f\u0442 \u0438\u0437 \u0441\u0435\u0442\u0438) <strong>NAT<\/strong> \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u043f\u043ep\u0442\u0443 (\u0442.\u0435. \u0442\u043e\u043b\u044c\u043a\u043e 1 <strong>FastEthernet 0\/0<\/strong>, \u043e\u043d \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u0431\u044b \u0438 <strong>inside<\/strong> \u0438 <strong>outside<\/strong>):<\/p>\n<p>&#8211; \u0435\u0441\u043b\u0438 IOS Ip only<\/p>\n<pre>!\r\ninterface Loopback0\r\n ip address 10.254.6.1 255.255.255.0\r\n no ip directed-broadcast\r\n ip accounting output-packets\r\n ip nat inside\r\n!\r\ninterface Ethernet0\/0\r\n ip address 10.0.1.1 255.255.255.0 secondary\r\n ip address 195.10.1.100 255.255.255.0\r\n no ip directed-broadcast\r\n ip nat outside\r\n ip policy route-map test\r\n!\r\nip nat pool ONE 195.10.1.200 195.10.1.200 netmask 255.255.255.0\r\nip nat inside source list 1 pool ONE overload\r\nip classless\r\nip route 0.0.0.0 0.0.0.0 195.10.1.1\r\nno ip http server\r\n!\r\naccess-list 1 permit 10.0.1.0 0.0.0.255\r\naccess-list 101 deny   ip 10.0.1.0 0.0.0.255 10.0.1.0 0.0.0.255\r\naccess-list 101 permit ip any any\r\nroute-map test permit 10\r\n match ip address 101\r\n set interface Loopback0\r\n!\r\n<\/pre>\n<p>&#8211; \u0435\u0441\u043b\u0438 IP plus \u0438 \u0432\u044b\u0448\u0435<\/p>\n<pre>!\r\ninterface Ethernet0\/0.1\r\n ip address 10.0.1.1 255.255.255.0\r\n no ip directed-broadcast\r\n ip nat inside\r\n!\r\ninterface Ethernet0\/0.2\r\n ip address 195.10.1.100 255.255.255.0\r\n no ip directed-broadcast\r\n ip nat outside\r\n!\r\nip nat pool ONE 195.10.1.200 195.10.1.200 netmask 255.255.255.0\r\nip nat inside source list 1 pool ONE overload\r\nip classless\r\nip route 0.0.0.0 0.0.0.0 195.10.1.1\r\nno ip http server\r\n!\r\naccess-list 1 permit 10.0.1.0 0.0.0.255\r\n!<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u0412\u0441\u0451 \u043d\u0438\u0436\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u043f\u0440\u043e\u0434\u0435\u043b\u044b\u0432\u0430\u043b\u043e\u0441\u044c \u043d\u0430 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0435\u00a0Packet Tracer 5.1. \u041f\u043e \u0438\u0434\u0435\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438 \u043d\u0430 \u043e\u0431\u044b\u0447\u043d\u043e\u043c \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0438. \u0418 \u0442\u0430\u043a, \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0435\u043c. \u0415\u0441\u0442\u044c \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0430\u0434\u0440\u0435\u0441\u00a020.20.20.20 \u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u0441\u0435\u0442\u044c\u00a010.10.10.0\/24. \u041d\u0443\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c\u00a0NAT. \u0412\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0441\u00a0fa0\/0, \u0432\u043d\u0435\u0448\u043d\u0438\u0439\u00a0fa0\/1. \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u044e, \u0447\u0442\u043e \u0430\u0434\u0440\u0435\u0441\u0430 \u0443 \u0432\u0430\u0441 \u0443\u0436\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u044b \u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0443\u0436\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0430.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-188","post","type-post","status-publish","format-standard","hentry","category-cisco"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/188","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=188"}],"version-history":[{"count":5,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/188\/revisions"}],"predecessor-version":[{"id":4626,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/188\/revisions\/4626"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}