Nat_2220> sh nat map
[ NAT Map Database ]
Total Number of Entries in NAT Map Database: 2
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
Internal External
LineNo. <IPaddress[/Mask or :Port]> −> <IPaddress[/Mask or :Port]>
1 −>
2 −>
Important points about the one−to−one translation pairs in the NAT Map Database:
The Internal IP Address must be entered first, followed by "
−>
" or " = ", followed by
the External IP Address.
1.
The Internal IP Address must be within the range of IP addresses defined by the
[NAT Global] keyword InternalRange, and the External IP Address must be within
the range of IP addresses defined by the [NAT Global] keyword ExternalRange.
2.
The one−to−one pairs must either be both IP address:port combinations, or IP address
ranges. An IP address:port combination cannot be paired with an IP address range
(even if that range is a single IP address).
3.
IF ONLY A SINGLE EXTERNAL IP ADDRESS IS AVALIABLE FOR THE NAT
ROUTER, DO NOT MAP THAT IP ADDRESS TO AN INTERNAL IP ADDRESS!
YOU WILL NOT BE ABLE TO CONTACT THE ROUTER THROUGH THE
EXTERNAL NAT PORT TO COMMUNICATE WITH IT! Mapping single ports of
the single external IP address to internal IP address:port combinations is acceptable,
such as creating access to a Web server in the NAT Network (see Example One).
Mapping the entire single external IP address (the router's IP Address) to an internal
NAT address will prevent you from communicating with the router when NAT
functionality is enabled.
4.
Note: The [NAT Global] variable RouterAddr must also be set to On (the current default
value) to allow the user to communicate with the NAT Router via IP over any of its IP ports.
[ IP < Section ID > ] PORT CONFIGURATION FOR NAT FOR EXAMPLE ONE
The IP ports on a Compatible Systems router performing Network Address Translation must
be configured to be "in agreement" with the configuration of the [NAT Global] keywords or
the router will not do Network Address Translation between the NAT Network and the
External Network/Internet.
The configuration of the Example One Compatible Systems MicroRouter 2220R Router is
shown below. The slightly more complex configuration of the NAT Router in Example
Three is shown at the end of this section.
Nat_2220> show ip config
Addresses
Port IP Addr Subnet Broadcast Flags
Ethernet 0 198.41.9.195 255.255.255.224 198.41.9.223 <OSPF:off><RIP:out, in, V2>
<NAT>
Ethernet 1 10.5.3.1 255.255.255.224 10.5.3.31 <OSPF:off><RIP:out, in, V2>
Bridge ** Disabled **
Wan 0 ** Disabled **
Wan 1 ** Disabled **