{"id":326,"date":"2025-01-15T16:40:44","date_gmt":"2025-01-15T13:10:44","guid":{"rendered":"https:\/\/zharfpouyan.net\/docs\/?p=326"},"modified":"2026-04-21T11:43:54","modified_gmt":"2026-04-21T08:13:54","slug":"%d8%b3%d8%b1%d9%88%db%8c%d8%b3-nat","status":"publish","type":"post","link":"https:\/\/zharfpouyan.net\/docs\/%d8%b3%d8%b1%d9%88%db%8c%d8%b3-nat\/","title":{"rendered":"\u0633\u0631\u0648\u06cc\u0633 NAT"},"content":{"rendered":"<p><strong>1. \u0633\u0646\u0627\u0631\u06cc\u0648 \u062a\u0633\u062a Dynamic NAT (Inside)<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"size-full wp-image-327 aligncenter\" src=\"https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1.jpg\" alt=\"\" width=\"1058\" height=\"189\" srcset=\"https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1.jpg 1058w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-300x54.jpg 300w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-1024x183.jpg 1024w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-768x137.jpg 768w\" sizes=\"(max-width: 1058px) 100vw, 1058px\" \/><\/p>\n<p><strong>1-1. \u0647\u062f\u0641<\/strong><\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0633\u0646\u0627\u0631\u06cc\u0648 \u0647\u062f\u0641 \u062f\u0633\u062a\u0631\u0633\u06cc \u0634\u0628\u06a9\u0647 \u0631\u0648\u062a\u0631 R1 \u0628\u0647 \u0634\u0628\u06a9\u0647 \u0631\u0648\u062a\u0631 R2 \u0645\u06cc\u0628\u0627\u0634\u062f. \u0628\u0631 \u0631\u0648\u06cc \u0631\u0648\u062a\u0631 Zharf1 \u06cc\u06a9 pool \u062a\u0639\u0631\u06cc\u0641 \u0634\u062f\u0647 \u06a9\u0647 \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc\u06a9\u0647 \u0627\u0632 \u0634\u0628\u06a9\u0647 10.10.10.0\/24 \u0642\u0635\u062f \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 \u0634\u0628\u06a9\u0647 20.20.20.0\/24 \u0648\u062c\u0648\u062f \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f \u060c \u0622\u062f\u0631\u0633 \u0631\u0646\u062c 20.20.20.2-20.20.20.5\u00a0 \u062c\u0647\u062a \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 \u0634\u0628\u06a9\u0647 \u0631\u0648\u062a\u0631 R2 \u0645\u0648\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0642\u0631\u0627\u0631 \u06af\u06cc\u0631\u062f.<\/p>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a Zharf1<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">Zharf1(config)#interface gbeth0\r\nZharf1(config-if)#ip nat inside\r\nZharf1(config-if)#no shutdown\r\nZharf1(config-if)#ip address 10.10.10.106\/24\r\nZharf1(config)#interface gbeth1\r\nZharf1(config-if)#ip nat outside\r\nZharf1(config-if)#no shutdown\r\nZharf1(config-if)#ip address 20.20.20.106\/24\r\nZharf1(config)#access-list 1 permit 10.10.10.0 0.0.0.255\r\nZharf1(config)#ip nat inside source list 1 pool 1\r\nZharf1(config)#ip nat pool 1 20.20.20.2 20.20.20.5 netmask 255.255.255.0\r\n<\/pre>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a R1<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true\">R1(config)#interface fastethernet0\/0\r\nR1(config-if)#no shutdown\r\nR1(config-if)#ip address 10.10.10.1 255.255.255.0\r\nR1(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.106\r\n<\/pre>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a R2<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">R2(config)#interface fastethernet0\/0\r\nR2(config-if)#no shutdown\r\nR2(config-if)#ip address 20.20.20.1 255.255.255.0\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>1-2. \u062f\u0631\u0633\u062a\u06cc \u06cc\u0627\u0628\u06cc<\/strong><\/p>\n<p>\u0628\u0639\u062f \u0627\u0632 \u0632\u062f\u0646 \u062f\u0633\u062a\u0648\u0631 ping 20.20.20.1 \u0627\u0632 \u0631\u0648\u062a\u0631 R1 \u00a0\u060c \u0645\u0634\u0627\u0647\u062f\u0647 \u0645\u06cc\u00ad\u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0631\u0633\u06cc\u062f\u0646 \u0628\u0647 \u0622\u062f\u0631\u0633 20.20.20.1 \u0628\u0647 \u0622\u062f\u0631\u0633 10.10.10.1 \u0627\u0632 pool \u06cc\u06a9 \u0622\u062f\u0631\u0633 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a \u0648 \u0639\u0645\u0644\u06cc\u0627\u062a NAT \u062f\u0631\u0633\u062a \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u00ad\u0634\u0648\u062f.<\/p>\n<pre class=\"lang:default decode:true \">Zharf1# show ip nat translation \r\nall icmp 20.20.20.3:41844 (10.10.10.1:3) -&gt; 20.20.20.1:41844       0:0\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>1-3. \u0639\u06cc\u0628 \u06cc\u0627\u0628\u06cc<\/strong><\/p>\n<p>\u062f\u0631 \u0635\u0648\u0631\u062a \u062e\u0631\u0648\u062c\u06cc \u0646\u062f\u0627\u0634\u062a\u0646 \u062f\u0633\u062a\u0648\u0631 \u0646\u0645\u0627\u06cc\u0634\u06cc\u060c \u0627\u0628\u062a\u062f\u0627 \u0627\u0632 \u0635\u062d\u062a \u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u06cc\u0646 \u0631\u0648\u062a\u0631 \u0647\u0627 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0646\u06cc\u062f \u060c \u0633\u067e\u0633 \u0627\u0632 \u062f\u0631\u0633\u062a \u0646\u0648\u0634\u062a\u0646 access-list \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0631\u062f\u0647 \u0648 \u062f\u0631 \u0646\u0647\u0627\u06cc\u062a \u0627\u0632 \u062a\u0646\u0638\u06cc\u0645 \u062f\u0633\u062a\u0648\u0631\u0647\u0627\u06cc ip nat inside \u00a0\u0648 ip nat outside \u0628\u0631 \u0631\u0648\u06cc \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 \u0635\u062d\u06cc\u062d \u0648 \u062f\u0631\u0633\u062a \u0628\u0648\u062f\u0646 \u062f\u0633\u062a\u0648\u0631 ip nat \u00a0\u062f\u0631 \u0645\u062d\u06cc\u0637 config \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>2. \u0633\u0646\u0627\u0631\u06cc\u0648 \u062a\u0633\u062a Dynamic NAT \u0628\u0647 \u06a9\u0645\u06a9 Expanded ACL (1300-1999)<\/strong><\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"size-full wp-image-327 aligncenter\" src=\"https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1.jpg\" alt=\"\" width=\"1058\" height=\"189\" srcset=\"https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1.jpg 1058w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-300x54.jpg 300w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-1024x183.jpg 1024w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-768x137.jpg 768w\" sizes=\"(max-width: 1058px) 100vw, 1058px\" \/><\/p>\n<p><strong>2-1. \u0647\u062f\u0641<\/strong><\/p>\n<p>\u0647\u062f\u0641 \u062f\u0631 \u0627\u06cc\u0646 \u0633\u0646\u0627\u0631\u06cc\u0648 \u0628\u0631\u0631\u0633\u06cc \u0635\u062d\u062a \u0639\u0645\u0644\u06a9\u0631\u062f access-list expanded \u062f\u0631 \u0631\u0646\u062c 1300-1999 \u0628\u0631\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062f\u0631 NAT \u0645\u06cc\u0628\u0627\u0634\u062f .\u062f\u0631 \u0627\u06cc\u0646 \u0633\u0646\u0627\u0631\u06cc\u0648 \u062c\u0647\u062a \u062f\u0633\u062a\u0631\u0633\u06cc \u0634\u0628\u06a9\u0647 R1 \u0628\u0627 \u0631\u0646\u062c \u0622\u062f\u0631\u0633 10.10.10.0\/24 \u0628\u0647 \u0634\u0628\u06a9\u0647 R2 \u0628\u0627 \u0631\u0646\u062c \u0622\u062f\u0631\u0633 20.20.20.0\/24 \u062f\u0631 access-list 1301 \u0631\u0646\u062c \u0634\u0628\u06a9\u0647 \u0631\u0648\u062a\u0631 R1 \u0631\u0627 \u062c\u0647\u062a \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 \u0634\u0628\u06a9\u0647 R2 \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc\u00ad\u06a9\u0646\u06cc\u0645 .<\/p>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a Zharf1<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">Zharf1(config)#interface gbeth0\r\nZharf1(config-if)#ip nat inside\r\nZharf1(config-if)#no shutdown\r\nZharf1(config-if)#ip address 10.10.10.106\/24\r\nZharf1(config-if)#interface gbeth1\r\nZharf1(config-if)#ip nat outside\r\nZharf1(config-if)#no shutdown\r\nZharf1(config-if)#ip address 20.20.20.106\/24\r\nZharf1(config)#access-list 1301 permit 10.10.10.0 0.0.0.255\r\nZharf1(config)#ip nat inside source list 1301 pool 1\r\nZharf1(config)#ip nat pool 1 20.20.20.2 20.20.20.5 netmask 255.255.255.0\r\n<\/pre>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a R1<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">R1(config)#interface FastEthernet0\/0\r\nR1(config-if)#ip address 10.10.10.1 255.255.255.0\r\nR1(config-if)#no shutdown\r\nR1(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.106\r\n<\/pre>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a R2<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">R2(config)#interface FastEthernet0\/0\r\nR2(config-if)#ip address 20.20.20.1 255.255.255.0\r\nR2(config-if)#no shutdown\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>2-2. \u062f\u0631\u0633\u062a\u06cc \u06cc\u0627\u0628\u06cc<\/strong><\/p>\n<p>\u0628\u0639\u062f \u0627\u0632 \u0632\u062f\u0646 \u062f\u0633\u062a\u0648\u0631 ping 20.20.20.1 \u0627\u0632 \u0631\u0648\u062a\u0631 R1 \u060c \u0645\u0634\u0627\u0647\u062f\u0647 \u0645\u06cc\u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0631\u0633\u06cc\u062f\u0646 \u0628\u0647 \u0622\u062f\u0631\u0633 20.20.20.1 \u060c \u0628\u0647 \u0622\u062f\u0631\u0633 10.10.10.1 \u0627\u0632 pool \u06cc\u06a9 \u0622\u062f\u0631\u0633 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a \u0648 \u0639\u0645\u0644\u06cc\u0627\u062a NAT \u062f\u0631\u0633\u062a \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u0634\u0648\u062f.<\/p>\n<pre class=\"lang:default decode:true \">Zharf1# show ip nat translation \r\nall icmp 20.20.20.3:11449 (10.10.10.1) -&gt; 20.20.20.1:11449       0:0\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>2-3. \u0639\u06cc\u0628 \u06cc\u0627\u0628\u06cc<\/strong><\/p>\n<p>\u062f\u0631 \u0635\u0648\u0631\u062a \u062e\u0631\u0648\u062c\u06cc \u0646\u062f\u0627\u0634\u062a\u0646 \u062f\u0633\u062a\u0648\u0631 \u0646\u0645\u0627\u06cc\u0634\u06cc\u060c \u0627\u0628\u062a\u062f\u0627 \u0627\u0632 \u0635\u062d\u062a \u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u06cc\u0646 \u0631\u0648\u062a\u0631 \u0647\u0627 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0646\u06cc\u062f \u060c \u0633\u067e\u0633 \u0627\u0632 \u062f\u0631\u0633\u062a \u0646\u0648\u0634\u062a\u0646 access-list \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0631\u062f\u0647 \u0648 \u062f\u0631 \u0646\u0647\u0627\u06cc\u062a \u0627\u0632 \u062a\u0646\u0638\u06cc\u0645 \u062f\u0633\u062a\u0648\u0631\u0647\u0627\u06cc ip nat inside \u00a0\u0648 ip nat outside \u0628\u0631 \u0631\u0648\u06cc \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 \u0635\u062d\u06cc\u062d \u0648 \u062f\u0631\u0633\u062a \u0628\u0648\u062f\u0646 \u062f\u0633\u062a\u0648\u0631 ip nat \u00a0\u062f\u0631 \u0645\u062d\u06cc\u0637 config \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>3. \u0633\u0646\u0627\u0631\u06cc\u0648 \u062a\u0633\u062a Dynamic NAT \u00a0\u0628\u0631 \u0631\u0648\u06cc \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 \u0647\u0627\u06cc Gbeth<\/strong><\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"size-full wp-image-327 aligncenter\" src=\"https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1.jpg\" alt=\"\" width=\"1058\" height=\"189\" srcset=\"https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1.jpg 1058w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-300x54.jpg 300w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-1024x183.jpg 1024w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-768x137.jpg 768w\" sizes=\"(max-width: 1058px) 100vw, 1058px\" \/><\/p>\n<p><strong>3-1. \u0647\u062f\u0641<\/strong><\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0633\u0646\u0627\u0631\u06cc\u0648 \u0647\u062f\u0641 \u0628\u0631\u0631\u0633\u06cc \u0639\u0645\u0644\u06a9\u0631\u062f NAT \u0628\u0631 \u0631\u0648\u06cc \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 \u0641\u06cc\u0632\u06cc\u06a9\u06cc Gbeth \u00a0\u0645\u06cc\u00ad\u0628\u0627\u0634\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u0633\u0646\u0627\u0631\u06cc\u0648 source NAT \u0628\u0631 \u0631\u0648\u06cc \u0631\u0648\u062a\u0631 Zharf1 \u0635\u0648\u0631\u062a \u0645\u06cc\u06af\u06cc\u0631\u062f \u0628\u062f\u06cc\u0646 \u062a\u0631\u062a\u06cc\u0628 \u06a9\u0647 \u062f\u0631 access-list1\u00a0 \u0622\u062f\u0631\u0633 \u0634\u0628\u06a9\u0647 \u06cc R1 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0634\u0628\u06a9\u0647 \u06cc \u0645\u0628\u062f\u0627 \u0648 \u0622\u062f\u0631\u0633 \u0634\u0628\u06a9\u0647 \u06cc R2 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0634\u0628\u06a9\u0647 \u06cc \u0645\u0642\u0635\u062f \u0645\u0634\u062e\u0635 \u0645\u06cc\u0634\u0648\u062f. \u0633\u067e\u0633 \u0627\u0632 \u0627\u06cc\u0646 access-list \u062f\u0631 \u062f\u0633\u062a\u0648\u0631 ip nat \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u0634\u0648\u062f \u0648 \u0622\u062f\u0631\u0633 \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 gbeth1 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0622\u062f\u0631\u0633\u06cc \u06a9\u0647 \u062f\u0631 \u0639\u0645\u0644\u06cc\u0627\u062a NAT \u062c\u0647\u062a \u062a\u0628\u062f\u06cc\u0644 \u0622\u062f\u0631\u0633 \u062f\u0627\u062e\u0644\u06cc \u0628\u0647 \u062e\u0627\u0631\u062c\u06cc \u0645\u0648\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0642\u0631\u0627\u0631 \u0645\u06cc\u06af\u06cc\u0631\u062f\u060c \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc\u0634\u0648\u062f.<\/p>\n<p>\u062f\u0631 \u0646\u062a\u06cc\u062c\u0647 \u062f\u0631 \u062e\u0631\u0648\u062c\u06cc \u062f\u0633\u062a\u0648\u0631 show ip nat translation \u00a0\u0622\u062f\u0631\u0633 \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 gbeth1 \u0628\u0627\u06cc\u062f \u0646\u0634\u0627\u0646 \u062f\u0627\u062f\u0647 \u0634\u0648\u062f.<\/p>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a Zharf1<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">Zharf1(config)#interface gbeth0\r\nZharf1(config-if)#ip nat inside\r\nZharf1(config-if)#ip address 10.10.10.106\/24\r\nZharf1(config-if)#exit\r\nZharf1(config)#interface gbeth1\r\nZharf1(config-if)#ip nat outside\r\nZharf1(config-if)#ip address 20.20.20.106\/24\r\nZharf1(config-if)#exit\r\nZharf1(config)#access-list 1 permit 10.10.10.0 0.0.0.255\r\nZharf1(config)#ip nat inside source list 1  interface gbeth1\r\n<\/pre>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062aR1<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">R1(config)#interface FastEthernet0\/0\r\nR1(config-if)#ip address 10.10.10.1 255.255.255.0\r\nR1(config-if)#no shutdown\r\nR1(config-if)#exit\r\nR1(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.106\r\n<\/pre>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062aR2<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">R2(config)#interface FastEthernet0\/0\r\nR2(config-if)#ip address 20.20.20.1 255.255.255.0\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>3-2. \u062f\u0631\u0633\u062a\u06cc \u06cc\u0627\u0628\u06cc<\/strong><\/p>\n<p>\u0628\u0639\u062f \u0627\u0632 \u0632\u062f\u0646 \u062f\u0633\u062a\u0648\u0631 ping 20.20.20.1 \u0627\u0632 \u0631\u0648\u062a\u0631 R1 \u060c \u0645\u0634\u0627\u0647\u062f\u0647 \u0645\u06cc\u00ad\u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0631\u0633\u06cc\u062f\u0646 \u0628\u0647 \u0622\u062f\u0631\u0633 20.20.20.1 \u060c\u0622\u062f\u0631\u0633 10.10.10.1 \u0627\u0632 \u0622\u062f\u0631\u0633 gbeth1 \u06cc\u0639\u0646\u06cc 20.20.20.106 \u0628\u0631\u0627\u06cc \u062e\u0627\u0631\u062c \u0634\u062f\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u06a9\u0646\u062f \u0648 \u0639\u0645\u0644\u06cc\u0627\u062a NAT \u062f\u0631\u0633\u062a \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u00ad\u0634\u0648\u062f.<\/p>\n<pre class=\"lang:default decode:true \">Zharf2# show ip nat translation \r\nall icmp 20.20.20.106:55778 (10.10.10.1:3) -&gt; 20.20.20.1:55778       0:0\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>3-3. \u0639\u06cc\u0628 \u06cc\u0627\u0628\u06cc<\/strong><\/p>\n<p>\u062f\u0631 \u0635\u0648\u0631\u062a \u0639\u062f\u0645 \u0639\u0645\u0644\u06a9\u0631\u062f \u0635\u062d\u06cc\u062d NAT\u060c \u0627\u0628\u062a\u062f\u0627 \u0627\u0632 \u0635\u062d\u062a \u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u06cc\u0646 \u0631\u0648\u062a\u0631 \u0647\u0627 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0646\u06cc\u062f \u060c \u0633\u067e\u0633 \u0627\u0632 \u062f\u0631\u0633\u062a \u0646\u0648\u0634\u062a\u0646 access-list \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0631\u062f\u0647 \u0648 \u062f\u0631 \u0646\u0647\u0627\u06cc\u062a \u0627\u0632 \u062a\u0646\u0638\u06cc\u0645 \u062f\u0633\u062a\u0648\u0631\u0647\u0627\u06cc ip nat inside \u00a0\u0648 ip nat outside \u0628\u0631 \u0631\u0648\u06cc \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 \u0635\u062d\u06cc\u062d \u0648 \u062f\u0631\u0633\u062a \u0628\u0648\u062f\u0646 \u062f\u0633\u062a\u0648\u0631 ip nat inside \u00a0\u0648 \u062a\u0639\u0631\u06cc\u0641 \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 \u0635\u062d\u06cc\u062d \u060c \u062f\u0631 \u0645\u062d\u06cc\u0637 config \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>4. \u0633\u0646\u0627\u0631\u06cc\u0648 \u062a\u0633\u062a Dynamic NAT \u0628\u0631 \u0631\u0648\u06cc \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 Serial<\/strong><\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"size-full wp-image-327 aligncenter\" src=\"https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1.jpg\" alt=\"\" width=\"1058\" height=\"189\" srcset=\"https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1.jpg 1058w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-300x54.jpg 300w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-1024x183.jpg 1024w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-768x137.jpg 768w\" sizes=\"(max-width: 1058px) 100vw, 1058px\" \/><\/p>\n<p><strong>4-1. \u0647\u062f\u0641<\/strong><\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0633\u0646\u0627\u0631\u06cc\u0648 \u0647\u062f\u0641 \u0628\u0631\u0631\u0633\u06cc \u0639\u0645\u0644\u06a9\u0631\u062f NAT \u0628\u0631 \u0631\u0648\u06cc \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 \u0641\u06cc\u0632\u06cc\u06a9\u06cc Serial \u0645\u06cc\u0628\u0627\u0634\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u0633\u0646\u0627\u0631\u06cc\u0648 source NAT \u0628\u0631 \u0631\u0648\u06cc \u0631\u0648\u062a\u0631 Zharf1 \u0635\u0648\u0631\u062a \u0645\u06cc\u06af\u06cc\u0631\u062f \u0628\u062f\u06cc\u0646 \u062a\u0631\u062a\u06cc\u0628 \u06a9\u0647 \u062f\u0631 access-list1\u00a0 \u0622\u062f\u0631\u0633 \u0634\u0628\u06a9\u0647 \u06cc R1 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0634\u0628\u06a9\u0647 \u06cc \u0645\u0628\u062f\u0627 \u0648 \u0622\u062f\u0631\u0633 \u0634\u0628\u06a9\u0647 \u06cc R2 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0634\u0628\u06a9\u0647 \u06cc \u0645\u0642\u0635\u062f \u0645\u0634\u062e\u0635 \u0645\u06cc\u0634\u0648\u062f. \u0633\u067e\u0633 \u0627\u0632 \u0627\u06cc\u0646 access-list \u062f\u0631 \u062f\u0633\u062a\u0648\u0631 ip nat \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u0634\u0648\u062f \u0648 \u0622\u062f\u0631\u0633 \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 Serial \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0622\u062f\u0631\u0633\u06cc \u06a9\u0647 \u062f\u0631 \u0639\u0645\u0644\u06cc\u0627\u062a NAT \u062c\u0647\u062a \u062a\u0628\u062f\u06cc\u0644 \u0622\u062f\u0631\u0633 \u062f\u0627\u062e\u0644\u06cc \u0628\u0647 \u062e\u0627\u0631\u062c\u06cc \u0645\u0648\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0642\u0631\u0627\u0631 \u0645\u06cc\u06af\u06cc\u0631\u062f\u060c \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc\u0634\u0648\u062f.<\/p>\n<p>\u062f\u0631 \u0646\u062a\u06cc\u062c\u0647 \u0647\u0646\u06af\u0627\u0645 \u0632\u062f\u0646 \u062f\u0633\u062a\u0648\u0631 show ip nat translation \u00a0\u0622\u062f\u0631\u0633 \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 serial \u0628\u0627\u06cc\u062f \u062f\u0631 \u0646\u062a\u06cc\u062c\u0647 show \u0646\u0634\u0627\u0646 \u062f\u0627\u062f\u0647 \u0634\u0648\u062f.<\/p>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a Zharf1<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">Zharf1(config)#controller e1 1\r\nZharf1(config-e1)#channel-group 1 timeslots 1-31\r\nZharf1(config)#interface serial1\/1\r\nZharf1(config-if)#ip address local 20.20.20.106 peer 20.20.20.1 net-mask 255.255.255.0\r\nZharf1(config-if)#ip nat outside\r\nZharf1(config)#interface gbeth0\r\nZharf1(config-if)#ip nat inside\r\nZharf1(config-if)#ip address 10.10.10.106\/24\r\nZharf1(config)#access-list 1 permit 10.10.10.0 0.0.0.255\r\nZharf1(config)#ip nat inside source list 1 interface serial1\/1\r\n<\/pre>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a R1<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">R1(config)#interface FastEthernet0\/0\r\nR1(config-if)#ip address 10.10.10.1 255.255.255.0\r\nR1(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.106\r\n<\/pre>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a R2<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">R2(config)#controller e1 1\r\nR2(config-controller)#framing no-crc4\r\nR2(config-controller)#channel-group 1 timeslots 1-31\r\nR2(config)#interface serial1\/1\r\nR2(config-if)#ip address 20.20.20.1 255.255.255.0\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>4-2. \u062f\u0631\u0633\u062a\u06cc \u06cc\u0627\u0628\u06cc<\/strong><\/p>\n<p>\u0628\u0627 \u0632\u062f\u0646 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0645\u0634\u0627\u0647\u062f\u0647 \u0645\u06cc\u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0631\u0633\u06cc\u062f\u0646 \u0628\u0647 \u0622\u062f\u0631\u0633 20.20.20.1 \u060c \u0622\u062f\u0631\u0633 10.10.10.1 \u0627\u0632 \u0622\u062f\u0631\u0633 \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 Serial1\/1 \u0628\u0631\u0627\u06cc \u062e\u0627\u0631\u062c \u0634\u062f\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u00ad\u06a9\u0646\u062f \u0648 \u0639\u0645\u0644\u06cc\u0627\u062a NAT \u062f\u0631\u0633\u062a \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u00ad\u0634\u0648\u062f.<\/p>\n<pre class=\"lang:default decode:true \">Zharf1# show ip nat translation \r\nall icmp 20.20.20.106:55778 (10.10.10.1:3) -&gt; 20.20.20.1:55778       0:0\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>4-3. \u0639\u06cc\u0628 \u06cc\u0627\u0628\u06cc<\/strong><\/p>\n<p>\u062f\u0631 \u0635\u0648\u0631\u062a \u0639\u062f\u0645 \u0639\u0645\u0644\u06a9\u0631\u062f \u0635\u062d\u06cc\u062d NAT\u060c \u0627\u0628\u062a\u062f\u0627 \u0627\u0632 \u0635\u062d\u062a \u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u06cc\u0646 \u0631\u0648\u062a\u0631 \u0647\u0627 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0646\u06cc\u062f \u060c \u0633\u067e\u0633 \u0627\u0632 \u062f\u0631\u0633\u062a \u0646\u0648\u0634\u062a\u0646 access-list \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0631\u062f\u0647 \u0648 \u062f\u0631 \u0646\u0647\u0627\u06cc\u062a \u0627\u0632 \u062a\u0646\u0638\u06cc\u0645 \u062f\u0633\u062a\u0648\u0631\u0647\u0627\u06cc ip nat inside \u00a0\u0648 ip nat outside \u0628\u0631 \u0631\u0648\u06cc \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 \u0635\u062d\u06cc\u062d \u0648 \u062f\u0631\u0633\u062a \u0628\u0648\u062f\u0646 \u062f\u0633\u062a\u0648\u0631 ip nat inside \u00a0\u0648 \u062a\u0639\u0631\u06cc\u0641 \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 \u0635\u062d\u06cc\u062d \u060c \u062f\u0631 \u0645\u062d\u06cc\u0637 config \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>5. \u0633\u0646\u0627\u0631\u06cc\u0648 \u062a\u0633\u062a Dynamic NAT (outside)<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"size-full wp-image-327 aligncenter\" src=\"https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1.jpg\" alt=\"\" width=\"1058\" height=\"189\" srcset=\"https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1.jpg 1058w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-300x54.jpg 300w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-1024x183.jpg 1024w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-768x137.jpg 768w\" sizes=\"(max-width: 1058px) 100vw, 1058px\" \/><\/p>\n<p><strong>5-1. \u0647\u062f\u0641<\/strong><\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0633\u0646\u0627\u0631\u06cc\u0648 \u0647\u062f\u0641 \u06a9\u0627\u0646\u0641\u06cc\u06af Outside NAT \u0628\u0631 \u0631\u0648\u06cc \u0631\u0648\u062a\u0631 Zharf1 \u0627\u0633\u062a \u0628\u062f\u06cc\u0646 \u0635\u0648\u0631\u062a \u06a9\u0647 \u0627\u062c\u0627\u0632\u0647 \u062f\u0633\u062a\u0631\u0633\u06cc \u0627\u0632 \u0634\u0628\u06a9\u0647 \u062e\u0627\u0631\u062c\u06cc \u0631\u0648\u062a\u0631 R2 \u0628\u0647 \u0634\u0628\u06a9\u0647 \u062f\u0627\u062e\u0644\u06cc \u0631\u0648\u062a\u0631 R1 \u0641\u0631\u0627\u0647\u0645 \u0634\u0648\u062f.<\/p>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a R1<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">R1(config)#interface FastEthernet0\/0\r\nR1(config-if)#ip address 10.10.10.1 255.255.255.0\r\nR1(config-if)#no shutdown\r\n<\/pre>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a Zharf1<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">Zharf1(config)#interface gbeth0\r\nZharf1(config-if)#ip nat inside\r\nZharf1(config-if)#no shutdown\r\nZharf1(config-if)#ip address 10.10.10.106\/24\r\nZharf1(config)#interface gbeth1\r\nZharf1(config-if)#ip nat outside\r\nZharf1(config-if)#no shutdown\r\nZharf1(config-if)#ip address 20.20.20.106\/24\r\nZharf1(config)#access-list 1 permit 20.20.20.0 0.0.0.255 \r\nZharf1(config)#ip nat outside source list 1 pool 1\r\nZharf1(config)#ip nat pool 1 10.10.10.2 10.10.10.3 netmask 255.255.255.0\r\nZharf1(config)#ip route 10.10.10.2  255.255.255.255  20.20.20.1\r\nZharf1(config)#ip route 10.10.10.3  255.255.255.255  20.20.20.1\r\n<\/pre>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a R2<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true\">R2(config)#interface FastEthernet0\/0\r\nR2(config-if)#ip address 20.20.20.20 255.255.255.0\r\nR2(config-if)#no shutdown\r\nR2(config)#ip route 0.0.0.0 0.0.0.0 20.20.20.106\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>5-2. \u062f\u0631\u0633\u062a\u06cc \u06cc\u0627\u0628\u06cc<\/strong><\/p>\n<p>\u0628\u0639\u062f \u0627\u0632 \u0632\u062f\u0646 \u062f\u0633\u062a\u0648\u0631 ping 10.10.10.1 \u0627\u0632 \u0631\u0648\u062a\u0631 \u060c \u0645\u0634\u0627\u0647\u062f\u0647 \u0645\u06cc\u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0631\u0633\u06cc\u062f\u0646 \u0628\u0647 \u0622\u062f\u0631\u0633 10.10.10.1 \u060c\u0627\u0632 pool \u0622\u062f\u0631\u0633 10.10.10.3 \u062c\u0647\u062a \u0648\u0631\u0648\u062f \u0628\u0647 \u0634\u0628\u06a9\u0647 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a \u0648 \u0639\u0645\u0644\u06cc\u0627\u062a nat \u062f\u0631\u0633\u062a \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u00ad\u0634\u0648\u062f.<\/p>\n<pre class=\"lang:default decode:true\">Zharf2# show ip nat translation \r\nall icmp 10.10.10.3:50393 (20.20.20.1) -&gt; 10.10.10.1:50393       0:0 \r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>5-3. \u0639\u06cc\u0628 \u06cc\u0627\u0628\u06cc<\/strong><\/p>\n<p>\u062f\u0631 \u0635\u0648\u0631\u062a \u062e\u0631\u0648\u062c\u06cc \u0646\u062f\u0627\u0634\u062a\u0646 \u062f\u0633\u062a\u0648\u0631 \u0646\u0645\u0627\u06cc\u0634\u06cc\u060c \u0627\u0628\u062a\u062f\u0627 \u0627\u0632 \u0635\u062d\u062a \u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u06cc\u0646 \u0631\u0648\u062a\u0631 \u0647\u0627 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0646\u06cc\u062f \u0648 \u0645\u0637\u0645\u0626\u0646 \u0634\u0648\u06cc\u062f \u06a9\u0647 \u0628\u0631 \u0631\u0648\u06cc \u0631\u0648\u062a\u0631 \u062e\u0627\u0631\u062c\u06cc route \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 \u062e\u0627\u0631\u062c\u06cc \u0631\u0648\u062a\u0631 Zharf1 \u0646\u0648\u0634\u062a\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a \u060c \u0633\u067e\u0633 \u0627\u0632 \u062f\u0631\u0633\u062a \u0646\u0648\u0634\u062a\u0646 access-list \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0631\u062f\u0647 \u0648 \u062f\u0631 \u0646\u0647\u0627\u06cc\u062a \u0627\u0632 \u062a\u0646\u0638\u06cc\u0645 \u062f\u0633\u062a\u0648\u0631\u0647\u0627\u06cc ip nat inside \u00a0\u0648 ip nat outside \u0628\u0631 \u0631\u0648\u06cc \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 \u0635\u062d\u06cc\u062d \u0648 \u062f\u0631\u0633\u062a \u0628\u0648\u062f\u0646 \u062f\u0633\u062a\u0648\u0631 ip nat outside \u00a0\u060c \u062f\u0631 \u0645\u062d\u06cc\u0637 config \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>6. \u0633\u0646\u0627\u0631\u06cc\u0648 \u062a\u0633\u062a Static NAT (inside)<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"size-full wp-image-327 aligncenter\" src=\"https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1.jpg\" alt=\"\" width=\"1058\" height=\"189\" srcset=\"https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1.jpg 1058w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-300x54.jpg 300w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-1024x183.jpg 1024w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-768x137.jpg 768w\" sizes=\"(max-width: 1058px) 100vw, 1058px\" \/><\/p>\n<p><strong>6-1. \u0647\u062f\u0641<\/strong><\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0633\u0646\u0627\u0631\u06cc\u0648 \u0647\u062f\u0641 \u06a9\u0627\u0646\u0641\u06cc\u06af Static NAT \u0627\u0633\u062a \u0628\u062f\u06cc\u0646 \u0635\u0648\u0631\u062a \u06a9\u0647 \u0641\u0642\u0637 \u0628\u0631\u0627\u06cc \u0622\u062f\u0631\u0633 10.10.10.1 \u0648\u0642\u062a\u06cc \u0645\u06cc\u062e\u0648\u0627\u0647\u062f \u0628\u0647 \u0634\u0628\u06a9\u0647 \u062e\u0627\u0631\u062c\u06cc 20.20.20.0\/24 \u062f\u0633\u062a\u0631\u0633\u06cc \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f \u0639\u0645\u0644\u06cc\u0627\u062a NAT \u0627\u0646\u062c\u0627\u0645 \u0634\u062f\u0647 \u0648 \u062c\u0647\u062a \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 \u062e\u0627\u0631\u062c \u0641\u0642\u0637 \u0627\u0632 \u0622\u062f\u0631\u0633 20.20.20.100 \u062c\u0647\u062a NAT \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u0648\u062f .<\/p>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a Zharf1<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">Zharf1(config)#interface gbeth0\r\nZharf1(config-if)#ip nat inside\r\nZharf1(config-if)#no shutdown\r\nZharf1(config-if)#ip address 10.10.10.106\/24\r\nZharf1(config)#interface gbeth1\r\nZharf1(config-if)#ip nat outside\r\nZharf1(config-if)#no shutdown\r\nZharf1(config-if)#ip address 20.20.20.106\/24\r\nZharf1(config)#ip nat inside source static 10.10.10.1 20.20.20.100 \r\n<\/pre>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062aR1<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">R1(config)#interface FastEthernet0\/0\r\nR1(config-if)#ip address 10.10.10.1 255.255.255.0\r\nR1(config-if)#no shutdown\r\nR1(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.106\r\n<\/pre>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062aR2<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">R2(config)#interface FastEthernet0\/0\r\nR2(config-if)#ip address 20.20.20.1 255.255.255.0\r\nR2(config-if)#no shutdown\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>6-2. \u062f\u0631\u0633\u062a\u06cc \u06cc\u0627\u0628\u06cc<\/strong><\/p>\n<p>\u0628\u0639\u062f \u0627\u0632 \u0632\u062f\u0646 \u062f\u0633\u062a\u0648\u0631 ping 20.20.20.1 \u0627\u0632 \u0631\u0648\u062a\u0631R1 \u060c \u0645\u0634\u0627\u0647\u062f\u0647 \u0645\u06cc\u00ad\u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0631\u0633\u06cc\u062f\u0646 \u0628\u0647 \u0622\u062f\u0631\u0633 20.20.20.1 \u0627\u0632 \u0622\u062f\u0631\u0633 static \u06a9\u0647 \u062f\u0631 \u0628\u0627\u0644\u0627 \u062a\u0639\u0631\u06cc\u0641 \u0634\u062f\u0647\u00a0 \u0628\u0631\u0627\u06cc \u062e\u0627\u0631\u062c \u0634\u062f\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u00ad\u0634\u0648\u062f \u0648 \u0639\u0645\u0644\u06cc\u0627\u062a NAT \u062f\u0631\u0633\u062a \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u00ad\u0634\u0648\u062f.<\/p>\n<pre class=\"lang:default decode:true \">Zharf2# show ip nat translation \r\nall icmp 20.20.20.100:39395 (10.10.10.1:25) -&gt; 20.20.20.1:39395       0:0 \r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>6-3. \u0639\u06cc\u0628 \u06cc\u0627\u0628\u06cc<\/strong><\/p>\n<p>\u062f\u0631 \u0635\u0648\u0631\u062a \u062e\u0631\u0648\u062c\u06cc \u0646\u062f\u0627\u0634\u062a\u0646 \u062f\u0633\u062a\u0648\u0631 \u0646\u0645\u0627\u06cc\u0634\u06cc\u060c \u00a0\u0627\u0628\u062a\u062f\u0627 \u0627\u0632 \u0635\u062d\u062a \u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u06cc\u0646 \u0631\u0648\u062a\u0631 \u0647\u0627 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0646\u06cc\u062f\u00a0 \u060c \u0633\u067e\u0633 \u0627\u0632 \u062f\u0631\u0633\u062a \u0646\u0648\u0634\u062a\u0646 \u0622\u062f\u0631\u0633 10.10.10.1\u00a0 \u062f\u0631 \u062f\u0633\u062a\u0648\u0631 ip nat inside\u00a0 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0631\u062f\u0647 \u0648 \u062f\u0631 \u0646\u0647\u0627\u06cc\u062a \u0627\u0632 \u062a\u0646\u0638\u06cc\u0645 \u062f\u0633\u062a\u0648\u0631\u0647\u0627\u06cc ip nat inside \u00a0\u0648ip nat outside \u0628\u0631 \u0631\u0648\u06cc \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 \u0635\u062d\u06cc\u062d \u0648 \u062f\u0631\u0633\u062a \u0628\u0648\u062f\u0646 \u062f\u0633\u062a\u0648\u0631 ip nat inside \u00a0\u060c \u062f\u0631 \u0645\u062d\u06cc\u0637 config \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>7. \u0633\u0646\u0627\u0631\u06cc\u0648 \u062a\u0633\u062a Static NAT \u0628\u0627 \u062a\u0639\u0631\u06cc\u0641 Network<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"size-full wp-image-327 aligncenter\" src=\"https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1.jpg\" alt=\"\" width=\"1058\" height=\"189\" srcset=\"https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1.jpg 1058w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-300x54.jpg 300w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-1024x183.jpg 1024w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-768x137.jpg 768w\" sizes=\"(max-width: 1058px) 100vw, 1058px\" \/><\/p>\n<p><strong>7-1. \u0647\u062f\u0641<\/strong><\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0633\u0646\u0627\u0631\u06cc\u0648\u00a0 \u0647\u062f\u0641 \u0627\u06cc\u0646 \u0627\u0633\u062a \u06a9\u0647 \u0634\u0628\u06a9\u0647 10.10.10.0\/24 \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc\u06a9\u0647 \u0628\u062e\u0648\u0627\u0647\u062f \u0628\u0647 \u0634\u0628\u06a9\u0647 \u0631\u0648\u062a\u0631 R2 \u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u0631\u0642\u0631\u0627\u0631 \u06a9\u0646\u062f \u062f\u0631 \u0639\u0645\u0644\u06cc\u0627\u062a NAT \u0627\u0632 \u0631\u0646\u062c \u0622\u062f\u0631\u0633 \u0634\u0628\u06a9\u0647 20.20.20.0\/24 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u0648\u062f \u06cc\u0639\u0646\u06cc \u0627\u0632 \u0622\u062f\u0631\u0633 20.20.20.1 &#8211; 20.20.20.254<\/p>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a Zharf1<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">Zharf1(config)#interface gbeth0\r\nZharf1(config-if)#ip nat inside\r\nZharf1(config-if)#no shutdown\r\nZharf1(config-if)#ip address 10.10.10.106\/24\r\nZharf1(config-if)#exit\r\nZharf1(config)#interface gbeth1\r\nZharf1(config-if)#ip nat outside\r\nZharf1(config-if)#no shutdown\r\nZharf1(config-if)#ip address 20.20.20.106\/24\r\nZharf1(config)#ip nat inside source static network 10.10.10.0 20.20.20.0 \/24\r\n<\/pre>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a R1<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">R1(config)#interface FastEthernet0\/0\r\nR1(config-if)#ip address 10.10.10.10 255.255.255.0\r\nR1(config-if)#no shutdown\r\nR1(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.106\r\n<\/pre>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a R2<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">R2(config)#interface FastEthernet0\/0\r\nR2(config-if)#ip address 20.20.20.20 255.255.255.0\r\nR2(config-if)#no shutdown\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>7-2. \u062f\u0631\u0633\u062a\u06cc \u06cc\u0627\u0628\u06cc<\/strong><\/p>\n<p>\u0628\u0639\u062f \u0627\u0632 \u0632\u062f\u0646 \u062f\u0633\u062a\u0648\u0631 ping 20.20.20.20 \u062f\u0631 \u0631\u0648\u062a\u0631R1 \u060c \u0645\u0634\u0627\u0647\u062f\u0647 \u0645\u06cc\u00ad\u06a9\u0646\u06cc\u062f \u0628\u0631\u0627\u06cc \u062e\u0627\u0631\u062c \u0634\u062f\u0646 \u0627\u0632 \u0634\u0628\u06a9\u0647 \u0628\u0631\u0627\u06cc \u0647\u0631 ip \u062f\u0631 \u0631\u0646\u062c 10.10.10.0\/24 \u0622\u062f\u0631\u0633\u06cc \u062f\u0631 \u0631\u0646\u062c 20.20.20.0\/24 \u062f\u0627\u062f\u0647 \u0645\u06cc\u0634\u0648\u062f \u0648 \u0628\u0631\u0627\u06cc \u0622\u062f\u0631\u0633 10.10.10.2 \u0622\u062f\u0631\u0633 20.20.20.2 \u062f\u0631 \u0646\u0638\u0631 \u06af\u0631\u0641\u062a\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a \u0648\u00a0 \u0639\u0645\u0644\u06cc\u0627\u062a NAT \u062f\u0631\u0633\u062a \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u00ad\u0634\u0648\u062f.<\/p>\n<pre class=\"lang:default decode:true \">Zharf1# show ip nat translation \r\nall icmp 20.20.20.2:17943 (10.10.10.2:25) -&gt; 20.20.20.20:17943       0:0 \r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>7-3. \u0639\u06cc\u0628 \u06cc\u0627\u0628\u06cc<\/strong><\/p>\n<p>\u062f\u0631 \u0635\u0648\u0631\u062a \u0639\u062f\u0645 \u0639\u0645\u0644\u06a9\u0631\u062f \u0635\u062d\u06cc\u062d\u06cc NAT\u060c \u00a0\u0627\u0628\u062a\u062f\u0627 \u0627\u0632 \u0635\u062d\u062a \u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u06cc\u0646 \u0631\u0648\u062a\u0631 \u0647\u0627 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0646\u06cc\u062f\u00a0 \u060c \u0633\u067e\u0633 \u0627\u0632 \u062f\u0631\u0633\u062a \u0646\u0648\u0634\u062a\u0646 \u0622\u062f\u0631\u0633\u0647\u0627\u06cc \u0634\u0628\u06a9\u0647\u00a0 10.10.10.0 \u0648 20.20.20.0\u00a0\u00a0 \u062f\u0631 \u062f\u0633\u062a\u0648\u0631 ip nat inside\u00a0 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0631\u062f\u0647 \u0648 \u062f\u0631 \u0646\u0647\u0627\u06cc\u062a \u0627\u0632 \u062a\u0646\u0638\u06cc\u0645 \u062f\u0633\u062a\u0648\u0631\u0647\u0627\u06cc ip nat inside \u00a0\u0648 ip nat outside \u0628\u0631 \u0631\u0648\u06cc \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 \u0635\u062d\u06cc\u062d \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>8. \u0633\u0646\u0627\u0631\u06cc\u0648 \u062a\u0633\u062a Static NAT \u0628\u0631 \u0631\u0648\u06cc \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 Gbeth<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"size-full wp-image-327 aligncenter\" src=\"https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1.jpg\" alt=\"\" width=\"1058\" height=\"189\" srcset=\"https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1.jpg 1058w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-300x54.jpg 300w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-1024x183.jpg 1024w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-768x137.jpg 768w\" sizes=\"(max-width: 1058px) 100vw, 1058px\" \/><\/p>\n<p><strong>8-1. \u0647\u062f\u0641<\/strong><\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0633\u0646\u0627\u0631\u06cc\u0648\u00a0 \u0647\u062f\u0641 \u0627\u06cc\u0646 \u0627\u0633\u062a \u06a9\u0647 \u0622\u062f\u0631\u0633 10.10.10.1 \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc\u06a9\u0647 \u0628\u062e\u0648\u0627\u0647\u062f \u0628\u0647 \u0634\u0628\u06a9\u0647 \u0631\u0648\u062a\u0631 R2 \u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u0631\u0642\u0631\u0627\u0631 \u06a9\u0646\u062f \u062f\u0631 \u0639\u0645\u0644\u06cc\u0627\u062a NAT \u0627\u0632 \u0622\u062f\u0631\u0633 \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 gbeth1 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u062f ( \u06cc\u0639\u0646\u06cc \u0627\u0632 \u0622\u062f\u0631\u0633 20.20.20.106 )<\/p>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a Zharf1<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">Zharf1(config)#interface gbeth0\r\nZharf1(config-if)#ip nat inside\r\nZharf1(config-if)#no shutdown\r\nZharf1(config-if)#ip address 10.10.10.106\/24\r\nZharf1(config-if)#exit\r\nZharf1(config-if)#interface gbeth1\r\nZharf1(config-if)#ip nat outside\r\nZharf1(config-if)#no shutdown\r\nZharf1(config-if)#ip address 20.20.20.106\/24\r\nZharf1(config)#ip nat inside source static 10.10.10.1 interface gbeth1\r\n<\/pre>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a R1<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">R1(config)#interface FastEthernet0\/0\r\nR1(config-if)#ip address 10.10.10.1 255.255.255.0\r\nR1(config-if)#no shutdown\r\nR1(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.106\r\n<\/pre>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a R2<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">R2(config)#interface FastEthernet0\/0\r\nR2(config-if)#ip address 20.20.20.1 255.255.255.0\r\nR2(config-if)#no shutdown\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>8-2. \u062f\u0631\u0633\u062a\u06cc \u06cc\u0627\u0628\u06cc<\/strong><\/p>\n<p>\u0628\u0639\u062f \u0627\u0632 \u0632\u062f\u0646 \u062f\u0633\u062a\u0648\u0631 ping 20.20.20.1 \u062f\u0631 \u0631\u0648\u062a\u0631 R1 \u060c \u0645\u0634\u0627\u0647\u062f\u0647 \u0645\u06cc\u00ad\u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0631\u0633\u06cc\u062f\u0646 \u0628\u0647 \u0622\u062f\u0631\u0633 20.20.20.1 \u060c \u0622\u062f\u0631\u0633 10.10.10.1 \u0627\u0632 \u0622\u062f\u0631\u0633 \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 gbeth1 \u0628\u0631\u0627\u06cc \u062e\u0627\u0631\u062c \u0634\u062f\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u06a9\u0646\u062f \u0648 \u0639\u0645\u0644\u06cc\u0627\u062a NAT \u062f\u0631\u0633\u062a \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u00ad\u0634\u0648\u062f.<\/p>\n<pre class=\"lang:default decode:true \">Zharf2# show ip nat translation \r\nall icmp 20.20.20.106:5753 (10.10.10.1:34) -&gt; 20.20.20.1:5753       0:0\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>8-3. \u0639\u06cc\u0628 \u06cc\u0627\u0628\u06cc<\/strong><\/p>\n<p>\u062f\u0631 \u0635\u0648\u0631\u062a \u0639\u062f\u0645 \u0639\u0645\u0644\u06a9\u0631\u062f \u0635\u062d\u06cc\u062d NAT\u060c \u00a0\u0627\u0628\u062a\u062f\u0627 \u0627\u0632 \u0635\u062d\u062a \u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u06cc\u0646 \u0631\u0648\u062a\u0631 \u0647\u0627 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0646\u06cc\u062f\u060c \u0633\u067e\u0633 \u0627\u0632 \u062f\u0631\u0633\u062a \u0646\u0648\u0634\u062a\u0646 \u0622\u062f\u0631\u0633\u0647\u0627\u06cc \u0645\u0628\u062f\u0627\u00a0 10.10.10.1) ( \u0648 \u0645\u0634\u062e\u0635 \u06a9\u0631\u062f\u0646 \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 \u0635\u062d\u06cc\u062d \u062f\u0631 \u062f\u0633\u062a\u0648\u0631 ip nat inside\u00a0 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0631\u062f\u0647 \u0648 \u062f\u0631 \u0646\u0647\u0627\u06cc\u062a \u0627\u0632 \u062a\u0646\u0638\u06cc\u0645 \u062f\u0633\u062a\u0648\u0631\u0647\u0627\u06cc ip nat inside \u00a0\u0648 ip nat outside \u0628\u0631 \u0631\u0648\u06cc \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 \u0635\u062d\u06cc\u062d \u0648 \u0646\u0648\u0634\u062a\u0646 default-route \u0628\u0631\u0627\u06cc \u0631\u0648\u062a\u0631 R1 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>9. \u0633\u0646\u0627\u0631\u06cc\u0648 \u062a\u0633\u062a Static NAT \u0628\u0631 \u0631\u0648\u06cc \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 Serial<\/strong><\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"size-full wp-image-327 aligncenter\" src=\"https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1.jpg\" alt=\"\" width=\"1058\" height=\"189\" srcset=\"https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1.jpg 1058w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-300x54.jpg 300w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-1024x183.jpg 1024w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-768x137.jpg 768w\" sizes=\"(max-width: 1058px) 100vw, 1058px\" \/><\/p>\n<p><strong>9-1. \u0647\u062f\u0641<\/strong><\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0633\u0646\u0627\u0631\u06cc\u0648\u00a0 \u0647\u062f\u0641 \u0627\u06cc\u0646 \u0627\u0633\u062a \u06a9\u0647 \u0622\u062f\u0631\u0633 10.10.10.1 \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc\u06a9\u0647 \u0628\u062e\u0648\u0627\u0647\u062f \u0628\u0647 \u0634\u0628\u06a9\u0647 \u0631\u0648\u062a\u0631 R2 \u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u0631\u0642\u0631\u0627\u0631 \u06a9\u0646\u062f \u062f\u0631 \u0639\u0645\u0644\u06cc\u0627\u062a NAT \u0627\u0632 \u0622\u062f\u0631\u0633 \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 serial1\/1 \u06a9\u0647 \u0645\u0633\u06cc\u0631 \u0627\u0631\u062a\u0628\u0627\u0637\u06cc \u0628\u0627 \u0631\u0648\u062a\u0631 R2 \u0645\u06cc\u00ad\u0628\u0627\u0634\u062f\u00a0 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u062f ( \u06cc\u0639\u0646\u06cc \u0627\u0632 \u0622\u062f\u0631\u0633 20.20.20.106 )<\/p>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a Zharf1<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">Zharf1(config)#controller e1 1\r\nZharf1(config-e1)#channel-group 1 timeslots 1-31\r\nZharf1(config)#interface serial1\/1\r\nZharf1(config-if)#ip address local 20.20.20.106 peer 20.20.20.1 net-mask 255.255.255.0\r\nZharf1(config-if)#ip nat outside\r\nZharf1(config)#interface gbeth0\r\nZharf1(config-if)#ip nat inside\r\nZharf1(config-if)#no shutdown\r\nZharf1(config-if)#ip address 10.10.10.106\/24\r\nZharf1(config)#ip nat inside source static 10.10.10.1 interface serial1\/1\r\n<\/pre>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a R1<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">R1(config)#interface FastEthernet0\/0\r\nR1(config-if)#ip address 10.10.10.1 255.255.255.0\r\nR1(config-if)#no shutdown\r\nR1(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.106\r\n<\/pre>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a R2<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">R2(config)#controller e1 1\r\nR2(config-controller)#channel-group 1 timeslots 1-31\r\nR2(config)#interface serial1\/1\r\nR2(config-if)#ip address 20.20.20.1 255.255.255.0\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>9-2. \u062f\u0631\u0633\u062a\u06cc \u06cc\u0627\u0628\u06cc<\/strong><\/p>\n<p>\u0628\u0639\u062f \u0627\u0632 \u0632\u062f\u0646 \u062f\u0633\u062a\u0648\u0631 ping 20.20.20.1 \u062f\u0631 \u0631\u0648\u062a\u0631 R1 \u060c \u0645\u0634\u0627\u0647\u062f\u0647 \u0645\u06cc\u00ad\u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0631\u0633\u06cc\u062f\u0646 \u0628\u0647 \u0622\u062f\u0631\u0633 20.20.20.1 \u060c\u0622\u062f\u0631\u0633 10.10.10.1 \u0627\u0632 \u0622\u062f\u0631\u0633 \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 serial1\/1 \u0628\u0631\u0627\u06cc \u062e\u0627\u0631\u062c \u0634\u062f\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u06a9\u0646\u062f \u0648 \u0639\u0645\u0644\u06cc\u0627\u062a NAT \u062f\u0631\u0633\u062a \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u00ad\u0634\u0648\u062f.<\/p>\n<pre class=\"lang:default decode:true \">Zharf1# show ip nat translation \r\nall icmp 20.20.20.106:60291 (10.10.10.1:6) -&gt; 20.20.20.1:60291       0:0\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>9-3. \u0639\u06cc\u0628 \u06cc\u0627\u0628\u06cc<\/strong><\/p>\n<p>\u062f\u0631 \u0635\u0648\u0631\u062a \u0639\u062f\u0645 \u0639\u0645\u0644\u06a9\u0631\u062f \u0635\u062d\u06cc\u062d NAT\u060c \u0627\u0628\u062a\u062f\u0627 \u0627\u0632 \u0635\u062d\u062a \u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u06cc\u0646 \u0631\u0648\u062a\u0631 \u0647\u0627 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0646\u06cc\u062f \u0645\u062e\u0635\u0648\u0635\u0627 \u0627\u0631\u062a\u0628\u0627\u0637 \u067e\u0648\u0631\u062a\u0647\u0627\u06cc \u0633\u0631\u06cc\u0627\u0644 \u060c \u0633\u067e\u0633 \u0627\u0632 \u062f\u0631\u0633\u062a \u0646\u0648\u0634\u062a\u0646 \u0622\u062f\u0631\u0633 \u0647\u0627\u06cc \u0645\u0628\u062f\u0627\u00a0 10.10.10.1) \u00a0(\u0648 \u0645\u0634\u062e\u0635 \u06a9\u0631\u062f\u0646 \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 \u0635\u062d\u06cc\u062d \u062f\u0631 \u062f\u0633\u062a\u0648\u0631 ip nat inside\u00a0 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0631\u062f\u0647 \u0648 \u062f\u0631 \u0646\u0647\u0627\u06cc\u062a \u0627\u0632 \u062a\u0646\u0638\u06cc\u0645 \u062f\u0633\u062a\u0648\u0631\u0647\u0627\u06cc ip nat inside \u00a0\u0648 ip nat outside \u0628\u0631 \u0631\u0648\u06cc \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 \u0635\u062d\u06cc\u062d \u0648 \u0646\u0648\u0634\u062a\u0646 default-route \u0628\u0631\u0627\u06cc \u0631\u0648\u062a\u0631 R1 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>10. \u0633\u0646\u0627\u0631\u06cc\u0648 \u062a\u0633\u062a Static NAT \u0628\u0631 \u0631\u0648\u06cc E1<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"size-full wp-image-327 aligncenter\" src=\"https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1.jpg\" alt=\"\" width=\"1058\" height=\"189\" srcset=\"https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1.jpg 1058w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-300x54.jpg 300w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-1024x183.jpg 1024w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-768x137.jpg 768w\" sizes=\"(max-width: 1058px) 100vw, 1058px\" \/><\/p>\n<p><strong>10-1. \u0647\u062f\u0641<\/strong><\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0633\u0646\u0627\u0631\u06cc\u0648 \u0647\u062f\u0641 \u0627\u06cc\u0646 \u0627\u0633\u062a \u06a9\u0647 \u0641\u0642\u0637 \u0628\u0631\u0627\u06cc \u0622\u062f\u0631\u0633 10.10.10.1 \u0648\u0642\u062a\u06cc \u0645\u06cc\u062e\u0648\u0627\u0647\u062f \u0628\u0647 \u0634\u0628\u06a9\u0647 \u062e\u0627\u0631\u062c\u06cc 20.20.20.0\/24 \u062f\u0633\u062a\u0631\u0633\u06cc \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f \u0639\u0645\u0644\u06cc\u0627\u062a NAT \u0627\u0646\u062c\u0627\u0645 \u0634\u0648\u062f \u0648 \u062c\u0647\u062a \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 \u062e\u0627\u0631\u062c \u0641\u0642\u0637 \u0627\u0632 \u0622\u062f\u0631\u0633 20.20.20.106 \u062c\u0647\u062a NAT \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u0648\u062f.<\/p>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a Zharf1<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">Zharf1(config)#controller e1 1\r\nZharf1(config-e1)#channel-group 1 timeslots 1-31\r\nZharf1(config-e1)#exit\r\nZharf1(config)#interface serial1\/1\r\nZharf1(config-if)#ip address local 20.20.20.106 peer 20.20.20.1 net-mask 255.255.255.0\r\nZharf1(config-if)#ip nat outside\r\nZharf1(config)#interface gbeth0\r\nZharf1(config-if)#ip nat inside\r\nZharf1(config-if)#no shutdown\r\nZharf1(config-if)#ip address 10.10.10.106\/24\r\nZharf1(config-if)#exit\r\nZharf1(config)#ip nat inside source static 10.10.10.1 20.20.20.100\r\n<\/pre>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a R1<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">R1(config)#interface FastEthernet0\/0\r\nR1(config-if)#ip address 10.10.10.1 255.255.255.0\r\nR1(config-if)#no shutdown\r\nR1(config-if)#exit\r\nR1(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.106\r\n<\/pre>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a R2<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">R2(config)#controller e1 1\r\nR2(config-controller)#channel-group 1 timeslots 1-31\r\nR2(config-controller)#exit\r\nR2(config)#interface serial1\/1\r\nR2(config-if)#ip address 20.20.20.1 255.255.255.0\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>10-2. \u062f\u0631\u0633\u062a\u06cc \u06cc\u0627\u0628\u06cc<\/strong><\/p>\n<p>\u0628\u0639\u062f \u0627\u0632 \u0632\u062f\u0646 \u062f\u0633\u062a\u0648\u0631 ping 20.20.20.1 \u0627\u0632 \u0631\u0648\u062a\u0631 R1 \u060c \u0645\u0634\u0627\u0647\u062f\u0647 \u0645\u06cc\u00ad\u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0631\u0633\u06cc\u062f\u0646 \u0628\u0647 \u0622\u062f\u0631\u0633 20.20.20.1 \u060c \u0622\u062f\u0631\u0633 10.10.10.1 \u0627\u0632 \u0622\u062f\u0631\u0633 20.20.20.106 \u0628\u0631\u0627\u06cc \u062e\u0627\u0631\u062c \u0634\u062f\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u00ad\u06a9\u0646\u062f \u0648 \u0639\u0645\u0644\u06cc\u0627\u062a NAT \u062f\u0631\u0633\u062a \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u00ad\u0634\u0648\u062f.<\/p>\n<pre class=\"lang:default decode:true\">Zharf1# show ip nat translation \r\nall icmp 20.20.20.100:60291 (10.10.10.1:6) -&gt; 20.20.20.1:60291       0:0\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>10-3. \u0639\u06cc\u0628 \u06cc\u0627\u0628\u06cc<\/strong><\/p>\n<p>\u062f\u0631 \u0635\u0648\u0631\u062a \u062e\u0631\u0648\u062c\u06cc \u0646\u062f\u0627\u0634\u062a\u0646 \u062f\u0633\u062a\u0648\u0631 \u0646\u0645\u0627\u06cc\u0634\u06cc\u060c \u00a0\u0627\u0628\u062a\u062f\u0627 \u0627\u0632 \u0635\u062d\u062a \u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u06cc\u0646 \u0631\u0648\u062a\u0631 \u0647\u0627 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0646\u06cc\u062f \u0645\u062e\u0635\u0648\u0635\u0627 \u0627\u0631\u062a\u0628\u0627\u0637 \u067e\u0648\u0631\u062a \u0647\u0627\u06cc \u0633\u0631\u06cc\u0627\u0644 \u060c \u0633\u067e\u0633 \u0627\u0632 \u062f\u0631\u0633\u062a \u0646\u0648\u0634\u062a\u0646 \u0622\u062f\u0631\u0633 \u0647\u0627\u06cc \u0645\u0628\u062f\u0627\u00a0 10.10.10.1) ( \u062f\u0631 \u062f\u0633\u062a\u0648\u0631 ip nat inside\u00a0 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0631\u062f\u0647 \u0648 \u062f\u0631 \u0646\u0647\u0627\u06cc\u062a \u0627\u0632 \u062a\u0646\u0638\u06cc\u0645 \u062f\u0633\u062a\u0648\u0631\u0647\u0627\u06cc ip nat inside \u00a0\u0648 ip nat outside \u0628\u0631 \u0631\u0648\u06cc \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 \u0635\u062d\u06cc\u062d \u0648 \u0646\u0648\u0634\u062a\u0646 default-route \u0628\u0631\u0627\u06cc \u0631\u0648\u062a\u0631 R1 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>11. \u0633\u0646\u0627\u0631\u06cc\u0648 \u062a\u0633\u062a Static NAT (Outside)<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"size-full wp-image-327 aligncenter\" src=\"https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1.jpg\" alt=\"\" width=\"1058\" height=\"189\" srcset=\"https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1.jpg 1058w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-300x54.jpg 300w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-1024x183.jpg 1024w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-1-768x137.jpg 768w\" sizes=\"(max-width: 1058px) 100vw, 1058px\" \/><\/p>\n<p><strong>11-1. \u0647\u062f\u0641<\/strong><\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0633\u0646\u0627\u0631\u06cc\u0648 \u0647\u062f\u0641 \u0627\u06cc\u0646 \u0627\u0633\u062a \u06a9\u0647 \u0627\u0645\u06a9\u0627\u0646 \u062f\u0633\u062a\u0631\u0633\u06cc \u0627\u0632 \u0622\u062f\u0631\u0633 20.20.20.1 \u0627\u0632 \u062e\u0627\u0631\u062c\u060c \u0628\u0647 \u0634\u0628\u06a9\u0647 \u062f\u0627\u062e\u0644\u06cc \u0622\u062f\u0631\u0633 10.10.10.1 \u062f\u0627\u062f\u0647 \u0634\u0648\u062f \u0648 \u062f\u0631 \u0647\u0646\u06af\u0627\u0645 NAT \u0622\u062f\u0631\u0633 10.10.10.100 \u0627\u0631\u0627\u0626\u0647 \u0634\u0648\u062f (\u062f\u0631 \u0627\u06cc\u0646 \u0633\u0646\u0627\u0631\u06cc\u0648 \u0628\u0631\u0627\u06cc \u0628\u0631\u0631\u0633\u06cc \u0646\u062a\u06cc\u062c\u0647 \u06cc \u062a\u0646\u0638\u06cc\u0645\u0627\u062a\u060c \u0627\u0632 \u00a0telnet \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u00ad\u06a9\u0646\u06cc\u0645 \u060c \u06a9\u0647 \u0627\u0644\u0628\u062a\u0647 \u0645\u06cc\u062a\u0648\u0627\u0646 \u0627\u0632 ping \u0646\u06cc\u0632 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f)<\/p>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a Zharf1<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">Zharf1(config)#interface gbeth0\r\nZharf1(config-if)#ip nat inside\r\nZharf1(config-if)#no shutdown\r\nZharf1(config-if)#ip address 10.10.10.106\/24\r\nZharf1(config-if)#exit\r\nZharf1(config)#interface gbeth1\r\nZharf1(config-if)#ip nat outside\r\nZharf1(config-if)#no shutdown\r\nZharf1(config-if)#ip address 20.20.20.106\/24\r\nZharf1(config-if)#exit\r\nZharf1(config)#ip nat outside source static 20.20.20.1 10.10.10.100\r\nZharf1(config)#ip route 10.10.10.100\/32 20.20.20.1\r\n<\/pre>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a R1<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">R1(config)#interface FastEthernet0\/0\r\nR1(config-if)#ip address 10.10.10.1 255.255.255.0\r\nR1(config-if)#no shutdown\r\nR1(config-if)#exit\r\nR1(config)#username test password test\r\nR1(config)#enable secret test\r\nR1(config)#line vty 0 4\r\nR1(config-line)#password test\r\nR1(config-line)#login local\r\nR1(config-line)#exit\r\n<\/pre>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a R2<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">R2(config)#interface FastEthernet0\/0\r\nR2(config-if)#ip address 20.20.20.1 255.255.255.0\r\nR2(config-if)#no shutdown\r\nR2(config-if)#exit\r\nR2(config)#ip route 0.0.0.0 0.0.0.0 20.20.20.106\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>11-2. \u062f\u0631\u0633\u062a\u06cc \u06cc\u0627\u0628\u06cc<\/strong><\/p>\n<p>\u0628\u0627 \u0632\u062f\u0646 telnet \u0628\u0647 \u0622\u062f\u0631\u0633 10.10.10.1 \u0628\u0627\u06cc\u062f \u0628\u062a\u0648\u0627\u0646 \u0627\u0632 \u0631\u0648\u062a\u0631 R2 \u0628\u0647 \u0631\u0648\u062a\u0631 R1 \u0645\u062a\u0635\u0644 \u0634\u062f. \u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u062f\u0631 \u0632\u06cc\u0631 \u0645\u0634\u0627\u0647\u062f\u0647 \u0645\u06cc\u0634\u0648\u062f \u0646\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631\u06cc \u0648 \u06a9\u0644\u0645\u0647 \u0639\u0628\u0648\u0631 \u0628\u0631\u0627\u06cc \u0627\u0631\u062a\u0628\u0627\u0637 telnet \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0634\u062f\u0647 \u0627\u0633\u062a \u06a9\u0647 \u0646\u0634\u0627\u0646 \u062f\u0647\u0646\u062f\u0647 \u062f\u0631\u0633\u062a\u06cc \u0639\u0645\u0644\u06cc\u0627\u062a NAT \u0628\u0631\u0627\u06cc \u062f\u0633\u062a\u0631\u0633\u06cc \u0627\u0632 \u062e\u0627\u0631\u062c \u0628\u0647 \u062f\u0627\u062e\u0644 \u0645\u06cc\u00ad\u0628\u0627\u0634\u062f.<\/p>\n<pre class=\"lang:default decode:true \">R2# telnet 10.10.10.1\r\nTrying 10.10.10.1... Open\r\nUser Access Verification\r\nUsername: test\r\nPassword:\r\n<\/pre>\n<p><strong>11-3. \u0639\u06cc\u0628 \u06cc\u0627\u0628\u06cc<\/strong><\/p>\n<p>\u062f\u0631 \u0635\u0648\u0631\u062a \u062e\u0631\u0648\u062c\u06cc \u0646\u062f\u0627\u0634\u062a\u0646 \u062f\u0633\u062a\u0648\u0631 \u0646\u0645\u0627\u06cc\u0634\u06cc\u060c \u0627\u0628\u062a\u062f\u0627 \u0627\u0632 \u0635\u062d\u062a \u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u06cc\u0646 \u0631\u0648\u062a\u0631 \u0647\u0627 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0646\u06cc\u062f \u060c \u0633\u067e\u0633 \u0627\u0632 \u062f\u0631\u0633\u062a \u0646\u0648\u0634\u062a\u0646 \u0622\u062f\u0631\u0633 \u0647\u0627\u06cc20.20.20.1 \u0648 10.10.10.100 \u062f\u0631 \u062f\u0633\u062a\u0648\u0631 ip nat outside\u00a0 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0631\u062f\u0647 \u0648 \u062f\u0631 \u0646\u0647\u0627\u06cc\u062a \u0627\u0632 \u062a\u0646\u0638\u06cc\u0645 \u062f\u0633\u062a\u0648\u0631\u0647\u0627\u06cc ip nat inside \u00a0\u0648 ip nat outside \u0628\u0631 \u0631\u0648\u06cc \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 \u0635\u062d\u06cc\u062d \u0648 \u0646\u0648\u0634\u062a\u0646 \u062f\u0633\u062a\u0648\u0631 ip route 10.10.10.100\/32 20.20.20.1 \u0628\u0631\u0627\u06cc \u0631\u0648\u062a\u0631 Zharf1 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0646\u06cc\u062f (\u0686\u0648\u0646 NAT \u0645\u0648\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0646\u0648\u0639 outside \u0645\u06cc\u00ad\u0628\u0627\u0634\u062f \u062d\u062a\u0645\u0627 \u0646\u06cc\u0627\u0632 \u0628\u0647 route \u0647\u0633\u062a)<\/p>\n<p>&nbsp;<\/p>\n<p><strong>12. \u0633\u0646\u0627\u0631\u06cc\u0648 \u062a\u0633\u062a STATIC PAT \u0628\u0647 \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 Outside<\/strong><\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-334 aligncenter\" src=\"https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-Stati-Pat.jpg\" alt=\"\" width=\"901\" height=\"161\" srcset=\"https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-Stati-Pat.jpg 901w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-Stati-Pat-300x54.jpg 300w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/NAT-Stati-Pat-768x137.jpg 768w\" sizes=\"(max-width: 901px) 100vw, 901px\" \/><strong>12-1. \u0647\u062f\u0641<\/strong><\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0633\u0646\u0627\u0631\u06cc\u0648 \u0647\u062f\u0641 \u0627\u06cc\u0646 \u0627\u0633\u062a \u06a9\u0647 \u0628\u0631 \u0631\u0648\u06cc \u067e\u0648\u0631\u062a \u0634\u0645\u0627\u0631\u0647 \u06f2\u06f3 \u0627\u06cc\u0646\u062a\u0631\u0641\u06cc\u0633 gbeth1 \u0647\u0631 \u0627\u0631\u062a\u0628\u0627\u0637\u06cc \u0627\u0632 \u062e\u0627\u0631\u062c (R2) \u0628\u0631\u0642\u0631\u0627\u0631 \u0634\u0648\u062f \u060c \u0627\u06cc\u0646 \u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u0647 \u067e\u0648\u0631\u062a \u06f2\u06f3 \u0622\u062f\u0631\u0633 10.10.10.1 \u0628\u0627 \u067e\u0631\u0648\u062a\u06a9\u0644 tcp \u0639\u0645\u0644\u06cc\u0627\u062a pat \u0631\u0627 \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u062f\u0647\u062f (\u067e\u0648\u0631\u062a 23 \u062c\u0647\u062a \u0627\u0631\u062a\u0628\u0627\u0637 telnet \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u00ad\u0634\u0648\u062f)<\/p>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a Zharf1<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">Zharf1(config)#interface gbeth0\r\nZharf1(config-if)#ip nat inside\r\nZharf1(config-if)#no shutdown\r\nZharf1(config-if)#ip address 10.10.10.106\/24\r\nZharf1(config)#interface gbeth1\r\nZharf1(config-if)#ip nat outside\r\nZharf1(config-if)#no shutdown\r\nZharf1(config-if)#ip address 20.20.20.106\/24\r\nZharf1(config)#ip nat inside source static tcp 10.10.10.1 23 interface gbeth1 23\r\n<\/pre>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a R1<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">R1(config)#interface FastEthernet0\/0\r\nR1(config-if)#ip address 10.10.10.1 255.255.255.0\r\nR1(config-if)#no shutdown\r\nR1(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.106\r\nR1(config)#username test password 0 test\r\nR1(config)#line vty 0 4\r\nR1(config-line)#password test\r\nR1(config-line)#login local\r\n<\/pre>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a R2<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">R2(config)#interface FastEthernet0\/0\r\nR2(config-if)#ip address 20.20.20.1 255.255.255.0\r\nR2(config-if)#no shutdown\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u0633\u0646\u0627\u0631\u06cc\u0648 \u062a\u0633\u062a Dynamic NAT (Inside) &nbsp; 1-1. \u0647\u062f\u0641 \u062f\u0631 \u0627\u06cc\u0646 \u0633\u0646\u0627\u0631\u06cc\u0648 \u0647\u062f\u0641 \u062f\u0633\u062a\u0631\u0633\u06cc \u0634\u0628\u06a9\u0647 \u0631\u0648\u062a\u0631 R1 \u0628\u0647 \u0634\u0628\u06a9\u0647 \u0631\u0648\u062a\u0631 R2 \u0645\u06cc\u0628\u0627\u0634\u062f. \u0628\u0631 \u0631\u0648\u06cc \u0631\u0648\u062a\u0631 Zharf1 \u06cc\u06a9 pool \u062a\u0639\u0631\u06cc\u0641 \u0634\u062f\u0647 \u06a9\u0647 \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc\u06a9\u0647 \u0627\u0632 \u0634\u0628\u06a9\u0647 10.10.10.0\/24 \u0642\u0635\u062f \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 \u0634\u0628\u06a9\u0647 20.20.20.0\/24 \u0648\u062c\u0648\u062f \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f \u060c \u0622\u062f\u0631\u0633 \u0631\u0646\u062c 20.20.20.2-20.20.20.5\u00a0 \u062c\u0647\u062a \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 \u0634\u0628\u06a9\u0647 \u0631\u0648\u062a\u0631 R2 \u0645\u0648\u0631\u062f &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/zharfpouyan.net\/docs\/%d8%b3%d8%b1%d9%88%db%8c%d8%b3-nat\/\"> <span class=\"screen-reader-text\">\u0633\u0631\u0648\u06cc\u0633 NAT<\/span> \u0627\u062f\u0627\u0645\u0647 \u00bb<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-326","post","type-post","status-publish","format-standard","hentry","category-6"],"_links":{"self":[{"href":"https:\/\/zharfpouyan.net\/docs\/wp-json\/wp\/v2\/posts\/326","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zharfpouyan.net\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zharfpouyan.net\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zharfpouyan.net\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zharfpouyan.net\/docs\/wp-json\/wp\/v2\/comments?post=326"}],"version-history":[{"count":5,"href":"https:\/\/zharfpouyan.net\/docs\/wp-json\/wp\/v2\/posts\/326\/revisions"}],"predecessor-version":[{"id":335,"href":"https:\/\/zharfpouyan.net\/docs\/wp-json\/wp\/v2\/posts\/326\/revisions\/335"}],"wp:attachment":[{"href":"https:\/\/zharfpouyan.net\/docs\/wp-json\/wp\/v2\/media?parent=326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zharfpouyan.net\/docs\/wp-json\/wp\/v2\/categories?post=326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zharfpouyan.net\/docs\/wp-json\/wp\/v2\/tags?post=326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}