R2511-HP MSR Router Series Layer 3 - IP Services Command Reference(V5)
154
display nat session
Use display nat session to display dynamic NAT entries.
Syntax
display nat session [ vpn-instance vpn-instance-name ] [ source { global global-address | inside
inside-address } ] [ destination dst-address ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
vpn-instance vpn-instance-name: Displays NAT entries for the specified MPLS L3VPN. The
vpn-instance-name argument is a case-sensitive string of 1 to 31 characters. Without this option, this
command displays NAT entries of the public network.
source global global-address: Displays NAT entries for the specified external source IP address.
source inside inside-address: Displays NAT entries for the specified internal source IP address.
destination dst-address: Displays NAT entries for the specified destination IP address.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display dynamic NAT entries.
<Sysname> display nat session
There are currently 1 NAT session:
Pro GlobalAddr:Port LocalAddr:Port DestAddr:Port
TCP 8.8.8.101 3.3.3.101 ---
GlobalVPN: vpn3 LocalVPN: vpn1
status: 800 TTL: 00:05:00 Left: 00:04:26
Table 37 Command output
Field Descri
p
tion
Pro Protocol type.
GlobalAddr:Port External IP address and port number after translation.
LocalAddr:Port Internal IP address and port number before translation.
DestAddr:Port Destination IP address and port number.
GlobalVPN MPLS L3VPN to which the external source IP address belongs.










