19.07.2013 Views

CCNA Complete Guide 2nd Edition.pdf - Cisco Learning Home

CCNA Complete Guide 2nd Edition.pdf - Cisco Learning Home

CCNA Complete Guide 2nd Edition.pdf - Cisco Learning Home

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 18<br />

Network Address Translation Lab<br />

Static NAT Configuration<br />

Figure 18-1: Network Setup for NAT<br />

- Static NAT requires the fewest configuration steps as compared to other NAT implementations.<br />

Each interface needs to be identified as either an inside or outside interface with the ip nat<br />

{inside | outside} interface subcommand, as well as the configuration for static mapping<br />

between each pair of inside local and inside global addresses. Only packets arriving on an inside<br />

or outside NAT interface are subject for translation.<br />

- Static NAT configuration on NAT:<br />

PC1<br />

172.16.1.2<br />

E0/0 E0/1<br />

172.16.1.1 200.1.1.254<br />

NAT<br />

PC2<br />

172.16.1.3<br />

NAT#conf t<br />

Enter configuration commands, one per line. End with CNTL/Z.<br />

NAT(config)#int e0/0<br />

NAT(config-if)#ip nat inside<br />

NAT(config-if)#int e0/1<br />

NAT(config-if)#ip nat outside<br />

NAT(config-if)#exit<br />

NAT(config)#ip nat inside source static 172.16.1.2 200.1.1.2<br />

NAT(config)#ip nat inside source static 172.16.1.3 200.1.1.3<br />

NAT(config)#^Z<br />

NAT#<br />

NAT#sh ip nat translations<br />

Pro Inside global Inside local Outside local Outside global<br />

--- 200.1.1.2 172.16.1.2 --- ---<br />

--- 200.1.1.3 172.16.1.3 --- ---<br />

NAT#<br />

NAT#sh ip nat statistics<br />

Total active translations: 2 (2 static, 0 dynamic; 0 extended)<br />

Outside interfaces:<br />

Ethernet0/1<br />

Inside interfaces:<br />

Ethernet0/0<br />

Hits: 0 Misses: 0<br />

Expired translations: 0<br />

Dynamic mappings:<br />

NAT#<br />

131<br />

ServerA<br />

200.1.1.200<br />

Inside Outside<br />

Copyright © 2008 Yap Chin Hoong<br />

yapchinhoong@hotmail.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!