Network address translation commands, Network address translation commands -182, Clear ip nat translation – Enterasys Networks X-Pedition XSR CLI User Manual

Page 258

Advertising
background image

Network Address Translation Commands

5-182 Configuring the Internet Protocol

Default

Standard Telnet port 23. If the port is not provided, the client will try to connect to port 23 on the 
remote server.

Example

The following example connects you to the XSR at 192.57.189.4 via Telnet:

XSR#telnet 192.57.189.4 23

Network Address Translation Commands

The XSR commands below configure Network Address Translation (NAT).

clear ip nat translation

This command clears dynamic NAT translations from the table before they time out. Although the 
XSR times out NAT translations by default, it is useful to clear translations before the timeout.

Syntax

clear ip nat translation interface {[all | global-ip local-ip] | [protocol global-
ip global-port local-ip local-port
]}

Mode

Privileged EXEC: 

XSR#

Examples

The following example clears are NAT translations on GigabitEthernet interface 2:

XSR#clear ip nat translations g 2 * 

2 NAPT entries or NAT mapping removed

interface

Port number: Dialer (0‐255), FastEthernet (1‐2), Loopback (0‐65535), Serial 
(card/port/channel #), VPN (0‐255).

all

Wildcard keyword to clear all dynamic translation entries on an interface.

global-ip

When used without arguments protocolglobal‐port, and local‐port, it clears a 
simple translation that also contains the specified local‐ip address. When used 
with the those arguments it clears an extended translation.

local-ip

Clears an entry that contains this local IP address and the specified global‐ip 
address

protocol

Clears an entry containing this protocol and the specified global‐ip address, 
local‐ip address, global‐port and local‐port.

global-port

Clears an entry containing this global‐port and the specified protocol, global‐ip 
address, local‐ip address, and local‐port.

local-port

Clears an entry that contains this local‐port and the specified protocolglobal‐ip 
address, local‐ip address, and global‐port.

Advertising