¡¡
¥×¥é¥¤¥Ù¡¼¥È¥¢¥É¥ì¥¹¤«¤é¥°¥í¡¼¥Ð¥ë¥¢¥É¥ì¥¹¤ËÊÑ´¹¤¹¤ë¤È¤¤Ë»ÈÍѤ¹¤ëÀßÄê¡£IP¥¢¥É¥ì¥¹¤¬°ìÂаì¤ÇÊÑ´¹¤µ¤ì¤ë¡£ÊýË¡¤È¤·¤Æ¤Ï¡¢»°¼ïÎढ¤ë¡£
¡¥¹¥¿¥Æ¥£¥Ã¥¯NATÊÑ´¹
¥½¡¼¥¹¥¢¥É¥ì¥¹192.168.1.101 ¤ò 172.16.10.101¤ËÊÑ´¹¤·¤ÆÁ÷½Ð¤¹¤ë¾ì¹ç
R1(config)#ip nat inside source static 192.168.1.101 172.16.10.101
R1(config)#int fa0
R1(config-if)#ip nat inside
R1(config-if)#int s0
R1(config-if)#ip nat outside
R1(config)#end
¢¥Í¥Ã¥È¥ï¡¼¥¯Éôʬ¤Î¤ß¤ÎNATÊѹ¹
R1(config)#ip nat inside source static network 192.168.1.0 172.16.10.0 255.255.255.0
R1(config)#int fa0
R1(config-if)#ip nat inside
R1(config-if)#int s0
R1(config-if)#ip nat outside
R1(config-if)#end
£¥×¡¼¥ë¥¢¥É¥ì¥¹¤ò»ÈÍѤ·¤¿NATÊÑ´¹
R1(config)#ip nat pool test_pool 172.16.10.1 172.16.10.20 prefix-length 24
R1(config)#ip nat inside source list 2 pool test_pool
R1(config)#int fa0
R1(config-if)#ip nat inside
R1(config-if)#int s0
R1(config-if)#ip nat outside
R1(config-if)#exit
R1(config)#access-list 2 permit 192.168.1.0 0.0.0.255
R1(config)#end
¢¡ÊÑ´¹¥Æ¡¼¥Ö¥ë¤ÎÆâÍÆ¤ò½Ð¤¹
R1#show ip nat translations
Pro Inside global Inside local Outside local Outside global
--- 172.16.10.1 192.168.1.101 --- ---
--- 172.16.10.2 192.168.1.1 --- ---
R1#
¢¡¤â¤Ã¤È¾Ü¤·¤¤¾ðÊó¤ò½Ð¤¹
R1#show ip nat translations verbose
Pro Inside global Inside local Outside local Outside global
--- 172.16.10.1 192.168.1.101 --- ---
create 00:16:42, use 00:03:21, left 23:56:38, Map-Id(In): 1,
flags:
none, use_count: 0
--- 172.16.10.2 192.168.1.1 --- ---
create 00:10:21, use 00:01:04, left 23:58:55, Map-Id(In): 1,
flags:
none, use_count: 0
R1#show ip nat statistics
Total active translations: 2 (0 static, 2 dynamic; 0 extended)
Outside interfaces:
Serial0
Inside interfaces:
FastEthernet0
Hits: 166 Misses: 8
Expired translations: 4
Dynamic mappings:
-- Inside Source
[Id: 1] access-list 2 pool test_pool refcount 2
pool test_pool: netmask 255.255.255.0
start 172.16.10.1 end 172.16.10.20
type generic, total addresses 20, allocated 2 (10%), misses 0
R1#
R1#
* ÅöÊý¤Ø¤ÎTB¤Î°ìÍ÷¤Î¥ê¥ó¥¯¤Ï¥ê¥À¥¤¥ì¥¯¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£SEOÌÜŪ¤Î¤ß¤ÎTB¤Ï¤¢¤Þ¤ê°ÕÌ£¤ò¤Ê¤µ¤Ê¤¤¤È»×¤¤¤Þ¤¹¤Î¤Ç¤´±óθ¤¯¤À¤µ¤¤¡£