Ccna Ch10
Ccna Ch10
uReaf wmfw?Ydk oifwwYkd awG½H;k wGi;f ?tdrw f iG ;f uNetwork (Internal Network) eJInternet
Y
wenf;(External Network) eJcsY w d qf ufwt hJ cgrmS 'DNAT ukdoHk;MurSInternet Connection &rSm
jzpfygw,f/oifaocsmpOf;pm;Munhyf g/uReaf wmfwaYdk wG&UJ Network xJrSmay;xm;wJhIP Address
Range awGeInternet
YJ ay:rSmoHk;aewJIP h Address Range awGeJYwlMu&JUvm;/
uRefawmfwdkYoHk;aewJIP h awGuPrivate Address Range awGxu J ,lo;kH aewmjzpfjy;D
Internet ay:rSmawmhPublic Address Range awGudkoHk;wJhtwGuf'DvkdrwlnDwJhNetwork ESpc fk
udkb,fvkdConnection &atmifcsw d q f ufMurvJ/twGi;f ydik ;f Network uaexGufvmwJhAd-
dress ukdtjyifbufExternal &JUPublic Network Address tjzpfjyefajymif;ay;zdvd Yk vk mwmayg/h
r[kwfbl;vm;/'DvAddress
dk ajymif;ay;zkdYtwGufNAT ukdoHk;MuwmygyJ/
'gaMumifv h nf;oluY Network
kd Address Translation vdkYemrnfay;Muwmaygh/wpf
enf;tm;jzifajh ym&&ifNAT qdw k mPrivate Network to Public Network ?Public Network to
Private Network tjzpfajymif;ay;Edi kw f thJ &mvdajYk ymvd&Yk ygw,f/
(1) oift
h aeeJInternet
Y udv
k nf;csw
d cf siwf ,f/'gayr,foif h Network &JUhost wpfcck si;f pD
twGufvnf;Public IP wpfcck si;f pDcsray;Edik b
f ;l qd&k ifNAT udkoHk;wmtaumif;qHk;ygyJ/
NAT udkConfigure
oGm;cs&rnfRouter
h
Product of YOUTH
- 225 -
10.4 NAT \ toH;k tEIe;f rsm;
yHk 10.3
olu
Y t
kd vG,rf w
S rf ,fq&kd ifOne-to-One Mapping vdrYk w S v
f &yg
Ykd w,f/'Daumifuh oH
kd ;k csi&f if
awmhoifh&JUNetwork xJrSm½SdwHost Jh wpfcck si;f pDrmS wu,fInternet
h IP Address wpfcp kD
½Szd v
Ykd ykd gw,f/ajym&&ifHost wpfcck si;f pDtwGuPublic
f IP wpfcpk ½SD x
d m;&r,fo
h abmyg/
yHk 10.4
Static NAT
Router(config)#interface e0
Router(config)#ip address 192.168.10.1 255.255.255.0
Router(config)#ip nat inside
[mtwGif;bufuInterface jzpfwJhtwGu"f ip
E0 nat inside " qdkNyD;Inside
Interface tjzpfaMujimvdu
k w
f myg/
Router(config)#interface s0
Router(config)#ip address 172.46.2.1 255.255.255.0
Router(config)#ip nat outside
Product of YOUTH
- 229 -
(2) Dynamic NAT
yHk 10.6
Dynamic NAT
yHk 10.7
Router(config)#int e0
Router(config)#ip address 192.168.10.1 255.255.255.0
Router(config)#ip nat inside
Router(config)# int s0
Router(config)#ip address 172.46.2.1 255.255.255.0
Router(config)#ip nat outside
yHk 10.8
yHk 10.9
Product of YOUTH
- 233 -
yHk 10.10
ydwfcsifwmuNetwork wpfcv
k ;kH jzpfwt
hJ wGufNetwork Address udxnf
k ah y;ygw,f/
Router(config)#int s0
Router(config-if)#ip address 172.46.2.1 255.255.255.0
Router(config-if)#ip nat outside
Product of YOUTH
- 235 -
(3) Router#sh ip nat statistics
NAT eJYywfoufvError
dkY wpfcck ak y:wt
hJ cgus&ifTroubleshoot jyefvyk zf t
Ykd wGu'Df Comm
-and utoH;k 0ifygw,f/oifCreate vkycf w
hJ hJNAT taMumif;udktao;pdwfjyefawGU&rSmyg/
(2) oifaqmufxm;wJDynamic
h Pool awGxyfrsm;xyfaeovm;MunfMh unfyh g/
(5) ygoifhygxkdufwAddress
Jh awGxnfhxm;NyD;?rygoifhrygxdkufwAddress
Jh awGrxnfrY ad tmif
*½kpu
kd af y;yg/
yHk 10.11
Router>enable
Router#configure terminal
Router(config)#hostname RouterA
RouterA(config)#enable secret cisco
Product of YOUTH
- 239 -
Case Study 1 ( Static Route and Dynamic Route rsm;yg0ifonf/)
Router>enable
Router#configure terminal
Router(config)#hostname SRouterA
SRouterA(config)#enable secret cisco
RouterB udConfigure
k vkyyf kH
Router>enable
Router#configure terminal
Router(config)#hostname SRouterB
SRouterB(config)#enable secret cisco
Router>enable
Router#configure terminal
Router(config)#hostname RIPRouterC
Product of YOUTH
- 243 -
RIPRouterC(config)#enable secret cisco
RIPRouterC(config)#router rip
RIPRouterC(config-router)#network 100.0.0.0
RIPRouterC(config-router)#network 192.100.100.0
RIPRouterC(config-router)#network 200.0.0.0
RIPRouterC(config-router)#redistributed static
RIPRouterC(config-router)#exit
Router>enable
Router#configure terminal
Router(config)#hostname RIPRouterD
RIPRouterD(config)#enable secret cisco
RIPRouterD(config)#router rip
RIPRouterD(config-router)#network 200.0.0.0
RIPRouterD(config-router)#network 172.100.0.0
RIPRouterD(config-router)#network 192.200.200.0
RIPRouterD(config-router)#redistributed static
RIPRouterD(config-router)#exit
RIPRouterD(config)#exit
Product of YOUTH
- 245 -
RIPRouterD#copy running-config startup-config
Router>enable
Router#configure terminal
Router(config)#hostname RIPRouterE
RIPRouterE(config)#enable secret cisco
RIPRouterE(config)#router rip
RIPRouterE(config-router)#network 172.100.0.0
RIPRouterE(config-router)#network 200.200.0.0
RIPRouterE(config-router)#network 192.198.100.0
RIPRouterE(config-router)#redistributed static
RIPRouterE(config-router)#exit
Road to CCNA (Exam 640-802)
- 246 -
RIPRouterE(config)#ip route 1.0.0.0 255.0.0.0 200.200.0.1
RIPRouterE(config)#exit
Product of YOUTH
- 247 -
Case Study 2 ( NAT and Access List rsm;yg0ifonf/)
RouterA udConfigure
k vkyyf kH
Router>enable
Router#configure terminal
Router(config)#hostname RouterA
RouterA(config)#enable secret cisco
Product of YOUTH
- 249 -
RouterA(config-router)#exit
RouterB udConfigure
k vkyyf kH
Router>enable
Router#configure terminal
Router(config)#hostname RouterB
RouterB(config)#enable secret cisco
Product of YOUTH
- 251 -
RouterC udConfigure
k vkyyf kH
Router>enable
Router#configure terminal
Router(config)#hostname RouterC
RouterC(config)#enable secret cisco
RouterC(config)#interface fastethernet 0/0
RouterC(config-if)#ip address 100.0.0.2 255.0.0.0
RouterC(config-if)#no shutdown
1/ Ny;D oGm;jyefygNy/D
5/ uReaf wmf\
h cspZf eD;av; tdtNd zKd ;tm;vnf; aus;Zl;wifygw,f/
pma&;ol
aZmfvif;
30 Mo*kwf 2009
Road to CCNA (Exam 640-802)