실습에 사용되는 프로그램은 Packet tracer입니다. 또한 구성도의 기본 설정들은 생략합니다.
구성도
인터페이스에 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
outside 범위 설정
NAT_Router(config)#ip nat pool dynat 1.1.1.100 1.1.1.101 netmask 255.0.0.0
acl(inside) -> pool(outside) 로 변환
NAT_Router(config)#ip nat inside source ?
list Specify access list describing local addresses
static Specify static local->global mapping
NAT_Router(config)#ip nat inside source list ?
<1-199> Access list number for local addresses
WORD Access list name for local addresses
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 po
NAT_Router(config)#ip nat inside source list 1 pool dynat
결과
192.168.1.100,150,200]
ping 1.1.1.2