Displaying Inside and Outside Rule Settings
show ip nat inside rule
show ip nat outside rule
Copyright © 2010, Juniper Networks, Inc.
prefix length—Prefix length associated with the NAT address pool
range—Address ranges used by this NAT address pool
Example 1
host1#show ip nat pool
pool: pool1 netmask: 255.255.255.0
range: 3.3.3.1 to 3.3.3.255
range: 4.4.4.1 to 4.4.4.32
pool: pool2 netmask: 255.255.255.0
range: 1.1.1.1 to 1.1.1.24
range: 2.2.2.1 to 2.2.2.55
Example 2
host1#show ip nat pool pool1
pool: pool1 netmask: 255.255.255.0
range: 3.3.3.1 to 3.3.3.255
range: 4.4.4.1 to 4.4.4.32
See show ip nat pool.
The show ip nat inside rule and show ip nat outside rule commands display access list
and pool usage for all dynamic translation rules configured for the virtual router. If you
do not specify an access list, the output displays address pool associations for each of
the access lists for either inside or outside translation rules in the virtual router. Specifying
an access list filters the output to display only the address pool associated with the
specified list.
Use to display NAT access list and pool usage information for inside source translation
rules.
Field descriptions
access list name—Name of the access list
pool name—Name of the address pool
rule type—Type of rule assigned
Example
host1#show ip nat inside rule
access list name: list1
access list name: list2
access list name: list3 pool name: poolC rule type: inside source overload
See show ip nat inside rule.
prefix length: 24
prefix length: 24
prefix length: 24
pool name: poolA rule type: inside source
pool name: poolB rule type: inside source
Chapter 2: Configuring NAT
89