실습에 사용되는 프로그램은 Packet tracer입니다. 또한 구성도의 기본 설정들은 생략합니다.

구성도

nat4-1-

인터페이스에 inside/outside

NAT_Router(config)#int f0/0
NAT_Router(config-if)#ip nat inside
NAT_Router(config-if)#int f1/0
NAT_Router(config-if)#ip nat outside

inside 범위 설정

NAT_Router(config)#access-list 1 permit 192.168.1.0 0.0.0.255

ACL(inside) -> interface 의 주소 (outside) 로 변환

NAT_Router(config)#ip nat inside source list 1 ?
interface Specify interface for global address
pool Name pool of global addresses

NAT_Router(config)#ip nat inside source list 1 int f1/0 ?
overload Overload an address translation

NAT_Router(config)#ip nat inside source list 1 int f1/0 overload

확인

192.168.1.100,150.200
ping 1.1.1.2

주소변환정보확인

NAT_Router#sh ip nat translations
Pro Inside global Inside local Outside local Outside global
icmp 1.1.1.1:17 192.168.1.200:17 1.1.1.2:17 1.1.1.2:17
icmp 1.1.1.1:18 192.168.1.200:18 1.1.1.2:18 1.1.1.2:18
icmp 1.1.1.1:19 192.168.1.200:19 1.1.1.2:19 1.1.1.2:19
icmp 1.1.1.1:20 192.168.1.200:20 1.1.1.2:20 1.1.1.2:20
icmp 1.1.1.1:38 192.168.1.100:38 1.1.1.2:38 1.1.1.2:38
icmp 1.1.1.1:39 192.168.1.100:39 1.1.1.2:39 1.1.1.2:39
icmp 1.1.1.1:40 192.168.1.100:40 1.1.1.2:40 1.1.1.2:40
icmp 1.1.1.1:5 192.168.1.150:5 1.1.1.2:5 1.1.1.2:5
icmp 1.1.1.1:6 192.168.1.150:6 1.1.1.2:6 1.1.1.2:6
icmp 1.1.1.1:7 192.168.1.150:7 1.1.1.2:7 1.1.1.2:7
icmp 1.1.1.1:8 192.168.1.150:8 1.1.1.2:8 1.1.1.2:8