Vous êtes sur la page 1sur 4

Dynamic NAT:On NAT router 1. Int s 0/0 2. Ip address 192.1.12.1 255.255.255.0 3. No sh 4.

Int f 1/0
5.

Ip address 10.0.0.1 255.0.0.0

6. No sh Now configure PC(In the above diagram u have to configure Router LAN as u cant use PC in GNS. LAN router will act as PC. )

1. Int f 0/0 2. Ip address 10.0.0.2 255.255.255.0 3. No sh Point a default route towards NAT router from host router(only required on GNS) 1. Ip route 0.0.0.0 0.0.0.0 10.0.0.2 Now configure ISP router 1. Int s 0/0 2. Ip address 192.1.12.2 255.255.255.0 3. No sh On NAT router 1. Int f 1/0 2. Ip nat inside 3. Int s 0/0 4. Ip nat outside Make NAT POOL on NAT router. Go to global config. 1. Ip nat pool (pool name) 197.1.1.1 197.1.1.30 netmask 255.255.255.0

2. Access-list 1 permit 10.0.0.0 0.255.255.255


3.

Ip nat inside source list 1 pool (name of pool) Now point a default router towords ISP

1. Ip route 0.0.0.0 0.0.0.0 192.1.12.2 Now move to ISP router and point a static route towords NAT pool. 1. Ip route 197.1.1.0 255.255.255.0 192.1.12.1

STATIC NAT:- The only additional command for this is:


1. Ip nat inside source static 10.0.0.10

197.1.1.20

Dynamic PAT: In PAT u have to write overload at the end of this command. Ip Nat pool (pool name) 197.1.1.1 197.1.1.1 netmask 255.255.255.0

Ip Nat inside source list 1 pool (pool name) overload STATIC PAT:- The additional command for static PAT is as follows:
1.

Ip Nat inside source static tcp(protocol) 10.0.0.10 80(source port) 192.1.1.25 80(destination port)

Vous aimerez peut-être aussi