
Network Address Translation
Figure 23 provides an example of static port mapping. TCP port 81 of the web server at private address 192.168.1.6 is mapped to the same TCP port of the public address.
Figure 23 Mapping Ports
Internet
100.1.1.1/29
192.168.1.254/24
10/100 BaseT Ethernet
wwwserver is running on TCP port 81
FTP, SMTP, HTTP Server 192.168.1.6/24
Workstation Workstation Workstation Workstation
192.168.1.1/24 192.168.1.2/24 192.168.1.3/24 192.168.1.5/24
12.1.4Configuration for Figure 2
Blackbox> configure terminal
Blackbox/configure> interface bundle Trenton
Blackbox/configure/interface/bundle Trenton> nat Blackbox/configure/interface/bundle Trenton/nat> enable dynamic Blackbox/configure/interface/bundle Trenton/nat> enable static Blackbox/configure/interface/bundle Trenton/nat> address 192.168.1.6 81 100.1.1.6 81
12.1.5 Reverse NAT
Reverse NAT could be used in a situation where one LAN is using private RFC 1918 IP addresses and a second LAN is using “real” Internet routable IP addresses. Figure 24 illustrates how reverse NAT would be applied.
83