NAT Iyo PAT

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 9

NAT

Router>en

Router#conf t

Router(config)#int f0/0

Router(config-if)#ip ad

Router(config-if)#ip address 192.168.0.1 255.255.255.0

Router(config-if)#no sh

Router(config-if)#no shutdown

Router(config-if)#int s2/0

Router(config-if)#ip ad

Router(config-if)#ip address 203.190.10.1 255.255.255.0


Router(config-if)#cl

Router(config-if)#clock r

Router(config-if)#clock rate 64000

Router(config-if)#no sh

Router(config-if)#no shutdown

Router(config-if)#no shutdown

Router(config-if)#exit

Router#rou

Router#conf t

Router(config)#ro

Router(config)#router ei

Router(config)#router eigrp 100

Router(config-router)#net

Router(config-router)#network 192.168.0.0

Router(config-router)#network 203.190.10.0

Router(config-router)#no a

Router(config-router)#no auto-summary

Router(config-router)#exit

Router>en

Router#conf t

Router(config)#ip nat po

Router(config)#ip nat pool iiuc 203.190.10.10 203.190.10.20 net

Router(config)#ip nat pool iiuc 203.190.10.10 203.190.10.20 netmask 255.255.255.0

Router(config)#rou

Router(config)#ac
Router(config)#access-list 1 per

Router(config)#access-list 1 permit 192.168.0.0 0.0.0.255

Router(config)#ip nat in

Router(config)#ip nat inside so

Router(config)#ip nat inside source li

Router(config)#ip nat inside source list 1 po

Router(config)#ip nat inside source list 1 pool iiuc

Router(config)#int fa0/0

Router(config-if)#ip nat in

Router(config-if)#ip nat inside

Router(config-if)#int s2/0

Router(config-if)#ip nat ou

Router(config-if)#ip nat outside

Router(config-if)#exit

Router(config)#exit

Router#show ip nat tra

Router#show ip nat translations

Pro Inside global Inside local Outside local Outside global

--- 203.190.10.10 192.168.0.2 --- ---

--- 203.190.10.11 192.168.0.3 --- ---

Router#

Router_2
Router>en
Router#conf t

Router(config)#int f0/0

Router(config-if)#ip ad

Router(config-if)#ip address 192.168.1.0 255.255.255.0

Bad mask /24 for address 192.168.1.0

Router(config-if)#ip address 192.168.1.1 255.255.255.0

Router(config-if)#no sh

Router(config-if)#no shutdown

Router(config-if)#int s2/0

Router(config-if)#ip ad

Router(config-if)#ip address 203.190.10.2 255.255.255.0

Router(config-if)#no sh

Router(config-if)#no shutdown

Router(config-if)#exit

Router(config)#ro

Router(config)#router e

Router(config)#router eigrp 100

Router(config-router)#ne

Router(config-router)#network 192.168.1.0

Router(config-router)#network 203.190.10.0

Router(config-router)#no a

Router(config-router)#no auto-summary

Router(config-router)#

Router(config)#exit

Router#
PAT

Router>en

Router#conf t

Router(config-if)#ip ad

Router(config-if)#ip address 192.168.20.1 255.255.255.0

Router(config-if)#no sh

Router(config-if)#no shutdown

Router(config-if)#ip ad

Router(config-if)#ip address 203.190.10.1 255.255.255.0

Router(config-if)#cl
Router(config-if)#clock r

Router(config-if)#clock rate 64000

Router(config-if)#no sh

Router(config-if)#no shutdown

Router(config-if)#exit

Router(config)#ro

Router(config)#router rip

Router(config-router)#ne

Router(config-router)#network 192.168.20.0

Router(config-router)#network 203.190.10.0

Router(config-router)#no a

Router(config-router)#no auto-summary

Router(config-router)#exit

Router>en

Router#conf t

Router(config)#ip nat po

Router(config)#ip nat pool iiuc 203.190.10.10 203.190.10.20net

Router(config)#ip nat pool iiuc 203.190.10.10 203.190.10.20 net

Router(config)#ip nat pool iiuc 203.190.10.10 203.190.10.20 netmask 255.255.255.0

Router(config)#ac

Router(config)#access-list 1 per

Router(config)#access-list 1 permit 192.168.20.0 0.0.0.255

Router(config)#ip nat in

Router(config)#ip nat inside so

Router(config)#ip nat inside source li


Router(config)#ip nat inside source list 1 po

Router(config)#ip nat inside source list 1 pool iiuc ov

Router(config)#ip nat inside source list 1 pool iiuc overload

Router(config)#int fa0/0

Router(config-if)#ip nat in

Router(config-if)#ip nat inside

Router(config-if)#int s2/0

Router(config-if)#ip nat o

Router(config-if)#ip nat outside

Router(config-if)#exit

Router(config)#exit

Router#sh ip nat tr

Router#sh ip nat translations

Pro Inside global Inside local Outside local Outside global

icmp 203.190.10.10:1 192.168.20.2:1 192.168.10.2:1 192.168.10.2:1

icmp 203.190.10.10:1024192.168.20.3:1 192.168.10.2:1 192.168.10.2:1024

Router#

Router_2
Router>en

Router#conf t

Router(config)#int f0/0

Router(config-if)#ip ad

Router(config-if)#ip address 192.168.10.1 255.255.255.0

Router(config-if)#no sh

Router(config-if)#no shutdown

Router(config-if)#int s2/0

Router(config-if)#ip ad

Router(config-if)#ip address 203.190.10.2 255.255.255.0

Router(config-if)#no sh

Router(config-if)#no shutdown

Router(config-if)#exit

Router(config)#ro

Router(config)#router rip

Router(config-router)#net

Router(config-router)#network 192.168.10.0

Router(config-router)#network 203.190.10.0

Router(config-router)#no a

Router(config-router)#no auto-summary

Router(config-router)#exit

Router(config)#
FG:
1)markaad rabtid inaad sameesid coding ka NAT ama
PAT waa isku mid farqiga bas baa wuxuu yahay inaad
PAT kudartid(overload) hadaas firisay PAT ayay
raacsiisantahay inta kalana waa iska ga mid
2) mida xiga markaat rabtid labadaan inaad
sameesid waa inaa marka hore soo configareesaa
routerka adigoo isticmaalaayo (router rip,ospf,eigrp)
any protocal kadibna markaat intaad sameesid ayaa
halkamid ah router ada waxaad u is ticmaaleesa NAT
ka ama PAT ka coding kiisa routerka kalane
matabaneesid waa inay wada xiriiraaan dhamaan pc
yada haduu ilahay idmo .
Mahadsaniid dhamaan odayaasha,cuqaasha,iyo……..
Please pray for me
Asalaamucalaykum waraxmatulaahi wabarakaatu

You might also like