1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
|
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Content</title>
<base target="_self">
</head>
<body background="../../images/bg.gif" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" onLoad="window.focus();" link="#808080" vlink="#808080" alink="#808080">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td bgcolor="#336666" width="18" valign="top">
<img border="0" src="../../images/content_lines.gif" width="16" height="25">
<img border="0" src="../../images/transdot.gif" width="2" height="1"></td>
<td bgcolor="#336666"><font face="Arial" size="2" color="#FFFFFF"><b>1.1</b></font></td>
<td bgcolor="#336666"><img border="0" src="../../images/transdot.gif" width="10" height="1"></td>
<td bgcolor="#336666" width="100%"><b>
<font face="Arial" size="2" color="#FFFFFF">Scaling Networks with NAT and
PAT</font></b></td>
<td width="9" bgcolor="#336666"> </td>
</tr>
<tr>
<td bgcolor="#669999" height="25" width="18"> </td>
<td bgcolor="#669999" height="25"><b><font face="Arial" size="2" color="#FFFFFF">
1.1.4</font></b></td>
<td bgcolor="#669999"><img border="0" src="../../images/transdot.gif" width="10" height="1"></td>
<td bgcolor="#669999" height="25" width="100%"><b>
<font face="Arial" size="2" color="#FFFFFF">Configuring NAT and PAT</font></b></td>
<td bgcolor="#669999" height="25" width="9"> </td>
</tr></table>
<table border="0" cellpadding="0" cellspacing="0" width="95%" bordercolor="#111111">
<tr>
<td width="15"></td>
<td>
<font FACE="Arial" SIZE="2" COLOR="#000000"><b>Static Translation</b><br>
To configure static inside source address translation, perform the
tasks in Figures
<img border="0" src="../../images/1.gif" align="absmiddle" width="12" height="12"> and
<img border="0" src="../../images/2.gif" align="absmiddle" width="12" height="12">.</font><p>
<font FACE="Arial" SIZE="2" COLOR="#000000">Figure
<img border="0" src="../../images/3.gif" align="absmiddle" width="12" height="12"> shows the
use of static NAT translation. The router will translate packets from
host 10.1.1.2 to a source address of 192.168.1.2.</font></p>
<p>
<font FACE="Arial" SIZE="2" COLOR="#000000"><b>Dynamic Translation</b><br>
To configure dynamic inside source address translation, perform the
tasks in Figure
<img border="0" src="../../images/4.gif" align="absmiddle" width="12" height="12">.</font></p>
<p>
<font FACE="Arial" SIZE="2" COLOR="#000000">The access list must
permit only those addresses that are to be translated. Remember that
there is an implicit �deny all� at the end of each access list. An
access list that is too permissive can lead to unpredictable results.
Cisco advises against configuring access lists referenced by NAT
commands with the </font>
<font FACE="Courier New" SIZE="2" COLOR="#000000"><b>permit any</b></font><font FACE="Arial" SIZE="2" COLOR="#000000">
command. Using </font><b>
<font FACE="Courier New" SIZE="2" COLOR="#000000">permit any</font></b><font FACE="Arial" SIZE="2" COLOR="#000000">
can result in NAT consuming too many router resources, which can cause
network problems.</font></p>
<p>
<font FACE="Arial" SIZE="2" COLOR="#000000">Figure
<img border="0" src="../../images/5.gif" align="absmiddle" width="12" height="12"> translates
all source addresses passing access list 1, which have source address
from 10.1.0.0/24, to an address from the pool named nat-pool1. The
pool contains addresses from 179.9.8.80/24 to 179.9.8.95/24.
</font>
</p>
<blockquote>
<p>
<font FACE="Arial" SIZE="2" COLOR="#000000"><b>Note:</b> NAT will not
translate the host 10.1.1.2, as it is not permitted for translation
by the access list.</font></p>
</blockquote>
<p>
<font FACE="Arial" SIZE="2" COLOR="#000000"><b>Overloading</b><br>
Overloading is configured in two ways depending on how public IP
addresses have been allocated. An ISP can allocate a network only one
public IP address, and this is typically assigned to the outside
interface which connects to the ISP. Figure
<img border="0" src="../../images/6.gif" align="absmiddle" width="12" height="12"> shows how
to configure overloading in this situation.</font></p>
<p>
<font face="Arial" size="2">Another way of configuring overload is if
the ISP has given one or more public IP addresses for use as a NAT
pool. This pool can be overloaded as shown in the configuration in
Figure </font>
<font FACE="Arial" SIZE="2" COLOR="#000000">
<img border="0" src="../../images/7.gif" align="absmiddle" width="12" height="12"></font><font face="Arial" size="2">.</font></p>
<p>
<font face="Arial" size="2">Figure </font>
<font FACE="Arial" SIZE="2" COLOR="#000000">
<img border="0" src="../../images/8.gif" align="absmiddle" width="12" height="12"></font><font face="Arial" size="2">
shows an example configuration of PAT.</font></p>
<p>
<TABLE bgcolor="#B0AFAF" width="95%" border="0" cellspacing="0" cellpadding="0">
<TR>
<TD valign="top">
<TABLE bgcolor="#669999" width="100%" cellspacing="0" cellpadding="0" border="0">
<TR>
<TD width="5">
<img border="0" src="../../images/lab_toplft.gif" width="116" height="23"></TD>
<TD>
<IMG alt="" height="1" width="3" src="../../images/s.gif"></TD><TD align="right" valign="top">
<IMG alt="" src="../../images/corner_ur_7.gif" width="7" height="7"></TD>
</TR>
</TABLE>
<TABLE bgcolor="#B0AFAF" width="100%" cellspacing="0" cellpadding="0" border="0">
<TR>
<TD>
<TABLE width="100%" cellpadding="2" cellspacing="0" border="0" bordercolor="#111111">
<TR>
<TD bgcolor="#ffffff" width="15"> </TD>
<TD bgcolor="#ffffff"><font FACE="Arial" SIZE="2" COLOR="#000000">
<p><font color="#808080">
<a target="main" href="../lab1_1_4a/index.html">
<img border="0" src="../../images/lab_icon.gif" width="25" height="25"> <b>
Lab Activity</b></a></font></p>
</font><font FACE="Arial" SIZE="2" COLOR="#808080">
<p>Lab Exercise: Configuring NAT</p>
</font><font FACE="Arial" SIZE="2" COLOR="#000000">
<p><font color="#808080">In this lab, a router will be
configured to use network address translation (NAT). </font></p>
<p></TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
<TABLE bgcolor="#B0AFAF" width="95%" border="0" cellspacing="0" cellpadding="0">
<TR>
<TD valign="top">
<TABLE bgcolor="#669999" width="100%" cellspacing="0" cellpadding="0" border="0">
<TR>
<TD width="5">
<img border="0" src="../../images/lab_toplft.gif" width="116" height="23"></TD>
<TD>
<IMG alt="" height="1" width="3" src="../../images/s.gif"></TD><TD align="right" valign="top">
<IMG alt="" src="../../images/corner_ur_7.gif" width="7" height="7"></TD>
</TR>
</TABLE>
<TABLE bgcolor="#B0AFAF" width="100%" cellspacing="0" cellpadding="0" border="0">
<TR>
<TD>
<TABLE width="100%" cellpadding="2" cellspacing="0" border="0" bordercolor="#111111">
<TR>
<TD bgcolor="#ffffff" width="15"> </TD>
<TD bgcolor="#ffffff"><font FACE="Arial" SIZE="2" COLOR="#808080">
<a target="main" href="../lab1_1_4b/index.html">
<img border="0" src="../../images/lab_icon.gif" width="25" height="25"> <b>
Lab Activity</b></a><p>Lab Exercise: Configuring PAT</p>
<p>In this lab, a router will be configured to use Port Address
Translation (PAT). </p>
</font><font FACE="Arial" SIZE="2" COLOR="#000000">
<p></TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
<TABLE bgcolor="#B0AFAF" width="95%" border="0" cellspacing="0" cellpadding="0">
<TR>
<TD valign="top">
<TABLE bgcolor="#669999" width="100%" cellspacing="0" cellpadding="0" border="0">
<TR>
<TD width="5">
<img border="0" src="../../images/lab_toplft.gif" width="116" height="23"></TD>
<TD>
<IMG alt="" height="1" width="3" src="../../images/s.gif"></TD><TD align="right" valign="top">
<IMG alt="" src="../../images/corner_ur_7.gif" width="7" height="7"></TD>
</TR>
</TABLE>
<TABLE bgcolor="#B0AFAF" width="100%" cellspacing="0" cellpadding="0" border="0">
<TR>
<TD>
<TABLE width="100%" cellpadding="2" cellspacing="0" border="0" bordercolor="#111111">
<TR>
<TD bgcolor="#ffffff" width="15"> </TD>
<TD bgcolor="#ffffff"><font FACE="Arial" SIZE="2" COLOR="#808080">
<a target="main" href="../lab1_1_4c/index.html">
<img border="0" src="../../images/lab_icon.gif" width="25" height="25"> <b>
Lab Activity</b></a><p>Lab Exercise: Configuring static NAT Addresses</p>
</font><font FACE="Arial" SIZE="2" COLOR="#000000">
<p><font FACE="Arial" SIZE="2" COLOR="#808080">
In this lab,</font><font color="#808080"> a router will be
configured to use network address translation (NAT) to convert
internal IP addresses, typically private addresses, into outside
public addresses.</font></p>
<p></TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
<TABLE bgcolor="#669999" width="95%" cellspacing="0" cellpadding="0" border="0">
<TR>
<TD width="5">
<img border="0" src="../../images/lab_toplft.gif" width="116" height="23"></TD>
<TD>
<IMG alt="" height="1" width="3" src="../../images/s.gif"></TD><TD align="right" valign="top">
<IMG alt="" src="../../images/corner_ur_7.gif" width="7" height="7"></TD>
</TR>
</TABLE>
<TABLE bgcolor="#B0AFAF" width="95%" cellspacing="0" cellpadding="0" border="0">
<TR>
<TD>
<TABLE width="100%" cellpadding="2" cellspacing="0" border="0" bordercolor="#111111">
<TR>
<TD bgcolor="#ffffff" width="15"> </TD>
<TD bgcolor="#ffffff"><font FACE="Arial" SIZE="2" COLOR="#000000">
<p><font color="#808080">
<a href="javascript:void(0)" onClick="window.open('../../elabs/mod01/elab_1_1_4a/elab1_1_4a.html','Interactivity','width=740,height=390,toolbar=0,resizable=yes,scrollbars=0,screenX=26,screenY=38,left=26,top=38');">
<img border="0" src="../../images/lab_icon.gif" width="25" height="25"><b></a>
<a href="javascript:void(0)" onClick="window.open('../../elabs/mod01/elab_1_1_4a/elab1_1_4a.html','Interactivity','width=740,height=390,toolbar=0,resizable=yes,scrollbars=0,screenX=26,screenY=38,left=26,top=38');">Lab Activity</a></b></font></p>
</font><font FACE="Arial" SIZE="2" COLOR="#808080">
<p>e-Lab Activity: Configuring NAT</p>
</font><font FACE="Arial" SIZE="2" COLOR="#000000">
<p><font color="#808080">In this lab, the student will configure
NAT.</font></p>
<p></TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
<TABLE bgcolor="#669999" width="95%" cellspacing="0" cellpadding="0" border="0">
<TR>
<TD width="5">
<img border="0" src="../../images/lab_toplft.gif" width="116" height="23"></TD>
<TD>
<IMG alt="" height="1" width="3" src="../../images/s.gif"></TD><TD align="right" valign="top">
<IMG alt="" src="../../images/corner_ur_7.gif" width="7" height="7"></TD>
</TR>
</TABLE>
<TABLE bgcolor="#B0AFAF" width="95%" cellspacing="0" cellpadding="0" border="0">
<TR>
<TD>
<TABLE width="100%" cellpadding="2" cellspacing="0" border="0" bordercolor="#111111">
<TR>
<TD bgcolor="#ffffff" width="15"> </TD>
<TD bgcolor="#ffffff"><font FACE="Arial" SIZE="2" COLOR="#000000">
<p><font color="#808080">
<a href="javascript:void(0)" onClick="window.open('../../elabs/mod01/ela_b1_1_4b/elab1_1_4b.html','Interactivity','width=740,height=390,toolbar=0,resizable=yes,scrollbars=0,screenX=26,screenY=38,left=26,top=38');">
<img border="0" src="../../images/lab_icon.gif" width="25" height="25"><b></a>
<a href="javascript:void(0)" onClick="window.open('../../elabs/mod01/elab_1_1_4b/elab1_1_4b.html','Interactivity','width=740,height=390,toolbar=0,resizable=yes,scrollbars=0,screenX=26,screenY=38,left=26,top=38');">Lab Activity</a></b></font></p>
</font><font FACE="Arial" SIZE="2" COLOR="#808080">
<p>e-Lab Activity: Configuring PAT</p>
</font><font FACE="Arial" SIZE="2" COLOR="#000000">
</font><font FACE="Arial" SIZE="2" COLOR="#808080">
<p>In this lab, the students will configure a router to use Port
Address Translation (PAT) to convert internal IP addresses,
typically private addresses, into an outside public address</p>
<font FACE="Arial" SIZE="2" COLOR="#000000">
<p></TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
<TABLE bgcolor="#669999" width="95%" cellspacing="0" cellpadding="0" border="0">
<TR>
<TD width="5">
<img border="0" src="../../images/lab_toplft.gif" width="116" height="23"></TD>
<TD>
<IMG alt="" height="1" width="3" src="../../images/s.gif"></TD><TD align="right" valign="top">
<IMG alt="" src="../../images/corner_ur_7.gif" width="7" height="7"></TD>
</TR>
</TABLE>
<TABLE bgcolor="#B0AFAF" width="95%" cellspacing="0" cellpadding="0" border="0">
<TR>
<TD>
<TABLE width="100%" cellpadding="2" cellspacing="0" border="0" bordercolor="#111111">
<TR>
<TD bgcolor="#ffffff" width="15"> </TD>
<TD bgcolor="#ffffff"><font FACE="Arial" SIZE="2" COLOR="#000000">
<p><font color="#808080">
<a href="javascript:void(0)" onClick="window.open('../../elabs/mod01/elab_1_1_4c/elab1_1_4c.html','Interactivity','width=740,height=390,toolbar=0,resizable=yes,scrollbars=0,screenX=26,screenY=38,left=26,top=38');">
<img border="0" src="../../images/lab_icon.gif" width="25" height="25"><b></a>
<a href="javascript:void(0)" onClick="window.open('../../elabs/mod01/elab_1_1_4c/elab1_1_4c.html','Interactivity','width=740,height=390,toolbar=0,resizable=yes,scrollbars=0,screenX=26,screenY=38,left=26,top=38');">Lab Activity</a></b></font></p>
</font><font FACE="Arial" SIZE="2" COLOR="#808080">
<p>e-Lab Activity: Configuring Static NAT Addresses</p>
<p>In this lab, the student will configure</font><font FACE="Arial" SIZE="2" COLOR="#000000"><font color="#808080">
a router to use network address translation (NAT) to convert
internal IP addresses, typically private addresses, into outside
public addresses.</font></p>
<p></TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
<TABLE bgcolor="#B0AFAF" width="95%" border="0" cellspacing="0" cellpadding="0">
<TR>
<TD valign="top">
<TABLE bgcolor="#669999" width="100%" cellspacing="0" cellpadding="0" border="0">
<TR>
<TD width="5">
<img border="0" src="../../images/lab_toplft.gif" width="116" height="23"></TD>
<TD><IMG alt="" height="1" width="3" src="../../images/s.gif"></TD><TD align="right" valign="top">
<IMG alt="" src="../../images/corner_ur_7.gif" width="7" height="7"></TD>
</TR>
</TABLE>
<TABLE bgcolor="#B0AFAF" width="100%" cellspacing="0" cellpadding="0" border="0">
<TR>
<TD>
<TABLE width="100%" cellpadding="2" cellspacing="0" border="0" bordercolor="#111111">
<TR>
<TD bgcolor="#ffffff" width="15"> </TD>
<TD bgcolor="#ffffff"><font FACE="Arial" SIZE="2" COLOR="#000000">
<p><font color="#808080">
<img border="0" src="../../images/links_icon.gif" width="25" height="25">
<b>Web Links</b></font></p>
</font><font FACE="Arial" SIZE="2" COLOR="#808080">
<p>Configuring Network Address Translation: Getting Started<p>
<a target="_blank" href="http://www.cisco.com/en/US/tech/tk648/tk361/technologies_tech_note09186a0080094e77.shtml">
http://www.cisco.com/en/US/tech/tk648/ tk361/technologies_tech_ note09186a0080094e77.shtml</a></font></p>
<p>
<IMG alt="" height="2" width="1" src="../../images/s.gif"></p>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE><p>
</td>
</tr>
</table>
</body>
</html>
|