NAT CONFIGURATION PADA CISCO ROUTER
Halo kawan-kawan....ketemu lagi dah.... Postingan kali ini penulis akan menjelaskan mengenai konfigurasi NAT (Network Addres Translation) pada konfigurasi router.
Oke langsung aja kita configure router gateway nya....
Pertama Router ISP memiliki IP pada port serial0/0 172.16.0.1/30 pada port Fast Ethernet 0/0 172.17.0.1 dengan IP Server beserta DNS Servernya adalah 172.17.0.2 dengan Gateway 172.17.0.1
Oke sekarang konfigurasi router Gatewaynya :
Gateway>en
Gateway#conf t
Gateway(config)#ip dhcp pool staff
Gateway(DHCP-config)#def 192.168.0.1
Gateway(DHCP-config)#net 192.168.0.0 255.255.255.0
Gateway(DHCP-config)#dns 172.17.0.2
Gateway(config)#ip dhcp pool student
Gateway(DHCP-config)#def 192.168.1.1
Gateway(DHCP-config)#net 192.168.1.0 255.255.255.0
Gateway(DHCP-config)#dns 172.17.0.2
Gateway(DHCP-config)#int fa0/0
Gateway(config-if)#ip add 192.168.0.1 255.255.255.0
Gateway(config-if)#ip nat inside
Gateway(config-if)#int fa0/1
Gateway(config-if)#ip add 192.168.1.1 255.255.255.0
Gateway(config-if)#ip nat inside
Gateway(config-if)#int sa0/0
Gateway(config-if)#ip add 172.16.0.2 255.255.255.252
Gateway(config-if)#ip nat outside
Gateway(config-if)#exit
Gateway(config)#ip nat inside source list 1 interface Serial0/0 overload
Gateway(config)#access-list 1 permit 192.168.0.0 0.0.0.255
Gateway(config)#access-list 1 permit 192.168.1.0 0.0.0.255
Gateway(config)#router eigrp 51
Gateway(config-router)#network 172.16.0.0
Gateway(config-router)#auto-summary
Gateway(config-router)#end
Gateway#write
Gateway#cop run sta
Bila anda lihat dengan mengetik perintah "Show run" maka akan terlihat seperti dibawah ini :
Current configuration : 1245 bytesOke langsung aja kita configure router gateway nya....
Pertama Router ISP memiliki IP pada port serial0/0 172.16.0.1/30 pada port Fast Ethernet 0/0 172.17.0.1 dengan IP Server beserta DNS Servernya adalah 172.17.0.2 dengan Gateway 172.17.0.1
Oke sekarang konfigurasi router Gatewaynya :
Gateway>en
Gateway#conf t
Gateway(config)#ip dhcp pool staff
Gateway(DHCP-config)#def 192.168.0.1
Gateway(DHCP-config)#net 192.168.0.0 255.255.255.0
Gateway(DHCP-config)#dns 172.17.0.2
Gateway(config)#ip dhcp pool student
Gateway(DHCP-config)#def 192.168.1.1
Gateway(DHCP-config)#net 192.168.1.0 255.255.255.0
Gateway(DHCP-config)#dns 172.17.0.2
Gateway(DHCP-config)#int fa0/0
Gateway(config-if)#ip add 192.168.0.1 255.255.255.0
Gateway(config-if)#ip nat inside
Gateway(config-if)#int fa0/1
Gateway(config-if)#ip add 192.168.1.1 255.255.255.0
Gateway(config-if)#ip nat inside
Gateway(config-if)#int sa0/0
Gateway(config-if)#ip add 172.16.0.2 255.255.255.252
Gateway(config-if)#ip nat outside
Gateway(config-if)#exit
Gateway(config)#ip nat inside source list 1 interface Serial0/0 overload
Gateway(config)#access-list 1 permit 192.168.0.0 0.0.0.255
Gateway(config)#access-list 1 permit 192.168.1.0 0.0.0.255
Gateway(config)#router eigrp 51
Gateway(config-router)#network 172.16.0.0
Gateway(config-router)#auto-summary
Gateway(config-router)#end
Gateway#write
Gateway#cop run sta
Bila anda lihat dengan mengetik perintah "Show run" maka akan terlihat seperti dibawah ini :
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Gateway
!
!
!
!
!
ip dhcp pool staff
network 192.168.0.0 255.255.255.0
default-router 192.168.0.1
dns-server 172.17.0.2
ip dhcp pool student
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 172.17.0.2
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 192.168.0.1 255.255.255.0
ip nat inside
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.1.1 255.255.255.0
ip nat inside
duplex auto
speed auto
!
interface Serial0/0
ip address 172.16.0.2 255.255.255.252
ip nat outside
!
interface Serial0/1
no ip address
shutdown
!
interface Serial0/2
no ip address
shutdown
!
interface Serial0/3
no ip address
shutdown
!
interface FastEthernet1/0
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet1/1
no ip address
duplex auto
speed auto
shutdown
!
router eigrp 51
network 172.16.0.0
auto-summary
!
ip nat inside source list 1 interface Serial0/0 overload
ip classless
!
!
access-list 1 permit 192.168.0.0 0.0.0.255
access-list 1 permit 192.168.1.0 0.0.0.255
!
!
!
!
!
line con 0
line vty 0 4
login
!
!
!
end
oke sekian dulu mengenai konfigurasi NAT bila teman-teman kebingungan silahkan saja comment aja.....^^
Wassalam.....