NAT | Statik - Dyanmic Pool - Dyanmic-PAT (Port Address Translation)
Berikut ini ada 3 type NAT yg dilab-kan, yaitu: Nat statik, NAT-Dynamic-POOL dan NAT-Dynamic-PAT. Berikut konfigurasi IP address dan NATdi masing-masing router.
(1). NAT-STATIK
R-1
hostname R1
int gi0/0
ip add 203.1.1.1 255.255.255.248
no shut
exit
int gi0/1
ip add 192.168.10.254 255.255.255.0
no shut
exit
R-2
--------------------
hostname R2
int gi0/0
ip add 203.1.1.2 255.255.255.248
no shut
exit
int gi0/1
ip add 8.8.8.1 255.255.255.0
no shut
exit
SETING NAT-STATIC
----------------------
ip nat inside source static 192.168.10.1 203.1.1.3
|ip nat inside source static 192.168.10.2 203.1.1.4
ip add 203.1.1.1 255.255.255.248
no shut
exit
int gi0/1
ip add 192.168.10.254 255.255.255.0
no shut
exit
R-2
--------------------
hostname R2
int gi0/0
ip add 203.1.1.2 255.255.255.248
no shut
exit
int gi0/1
ip add 8.8.8.1 255.255.255.0
no shut
exit
SETING NAT-STATIC
----------------------
ip nat inside source static 192.168.10.1 203.1.1.3
|ip nat inside source static 192.168.10.2 203.1.1.4
--
ip route 0.0.0.0 0.0.0.0 203.1.1.2
--
interface Gi0/0
ip nat outside
!
int Gi0/1
ip nat inside
(2). NAT-DYNAMIC-POOL
hostname R_ISP
int gi0/0
ip add 203.1.1.1 255.255.255.248
no shut
exit
int gi0/1
ip add 192.168.10.254 255.255.255.0
no shut
exit
hostname R_1
int gi0/0
ip add 203.1.1.2 255.255.255.248
no shut
exit
int gi0/1
ip add 8.8.8.1 255.255.255.0
no shut
exit
SETING NAT-DYNAMIC-POOL DIROUTER R_1
-----------------------------
ip nat pool NAT-POOL-TRAINING 203.1.1.3 203.1.1.4 netmask 255.255.255.248
ip nat inside source list 1 pool NAT-POOL-TRAINING
access-list 1 permit 192.168.10.0 0.0.0.255
ip route 0.0.0.0 0.0.0.0 203.1.1.2
interface GigabitEthernet0/0
ip nat outside
exit
!
interface GigabitEthernet0/1
ip nat inside
exit
!
access-list 1 permit 192.168.10.0 0.0.0.0
----------OPTIONAL-NAT-NAMING---------
ip access-list STAndard ACL_NAT
permit host 192.168.10.1
permit host 192.168.10.2
permit host 192.168.10.3
ip nat pool NAT-POOL-TRAINING 203.1.1.3 203.1.1.5 netmask 255.255.255.248
ip nat inside source list ACL_NAT pool NAT-POOL-TRAINING
-----------END------------
int gi0/0
ip add 203.1.1.1 255.255.255.248
no shut
exit
int gi0/1
ip add 192.168.10.254 255.255.255.0
no shut
exit
hostname R_1
int gi0/0
ip add 203.1.1.2 255.255.255.248
no shut
exit
int gi0/1
ip add 8.8.8.1 255.255.255.0
no shut
exit
SETING NAT-DYNAMIC-POOL DIROUTER R_1
-----------------------------
ip nat pool NAT-POOL-TRAINING 203.1.1.3 203.1.1.4 netmask 255.255.255.248
ip nat inside source list 1 pool NAT-POOL-TRAINING
access-list 1 permit 192.168.10.0 0.0.0.255
ip route 0.0.0.0 0.0.0.0 203.1.1.2
interface GigabitEthernet0/0
ip nat outside
exit
!
interface GigabitEthernet0/1
ip nat inside
exit
!
access-list 1 permit 192.168.10.0 0.0.0.0
----------OPTIONAL-NAT-NAMING---------
ip access-list STAndard ACL_NAT
permit host 192.168.10.1
permit host 192.168.10.2
permit host 192.168.10.3
ip nat pool NAT-POOL-TRAINING 203.1.1.3 203.1.1.5 netmask 255.255.255.248
ip nat inside source list ACL_NAT pool NAT-POOL-TRAINING
-----------END------------
(3). NAT-DYNAMIC-PAT (port address translation)
R-11
hostname R11
int gi0/0
ip add 203.1.1.1 255.255.255.248
no shut
exit
int gi0/1
ip add 192.168.10.254 255.255.255.0
no shut
exit
R-12
------------
hostname R12
int gi0/0
ip add 203.1.1.2 255.255.255.248
no shut
exit
int gi0/1
ip add 8.8.8.1 255.255.255.0
no shut
exit
SETING NAT-DYNAMIC-PAT
----------------------
ip nat inside source list 10 interface GigabitEthernet0/0 overload
!
access-list 10 permit 192.168.10.0 0.0.0.255
!
ip route 0.0.0.0 0.0.0.0 203.1.1.2
!
interface GigabitEthernet0/0
ip nat outside
exit
!
interface GigabitEthernet0/1
ip nat inside
exit
R-11
hostname R11
int gi0/0
ip add 203.1.1.1 255.255.255.248
no shut
exit
int gi0/1
ip add 192.168.10.254 255.255.255.0
no shut
exit
R-12
------------
hostname R12
int gi0/0
ip add 203.1.1.2 255.255.255.248
no shut
exit
int gi0/1
ip add 8.8.8.1 255.255.255.0
no shut
exit
SETING NAT-DYNAMIC-PAT
----------------------
ip nat inside source list 10 interface GigabitEthernet0/0 overload
!
access-list 10 permit 192.168.10.0 0.0.0.255
!
ip route 0.0.0.0 0.0.0.0 203.1.1.2
!
interface GigabitEthernet0/0
ip nat outside
exit
!
interface GigabitEthernet0/1
ip nat inside
exit
VERIFIKASI:
Posting Komentar untuk "NAT | Statik - Dyanmic Pool - Dyanmic-PAT (Port Address Translation)"