Network Address Translation Commands
5-182 Configuring the Internet Protocol
Default
StandardTelnetport23.Iftheportisnotprovided,theclientwilltrytoconnecttoport23onthe
remoteserver.
Example
ThefollowingexampleconnectsyoutotheXSRat192.57.189.4viaTelnet:
XSR#telnet 192.57.189.4 23
Network Address Translation Commands
TheXSRcommandsbelowconfigureNetworkAddressTranslation (NAT).
clear ip nat translation
ThiscommandclearsdynamicNATtranslationsfromthetablebeforetheytimeout.Althoughthe
XSRtimesoutNATtranslationsbydefault,itisusefultocleartranslationsbeforethetimeout.
Syntax
clear ip nat translation interface {[all | global-ip local-ip] | [protocol global-
ip global-port local-ip local-port]}
Mode
PrivilegedEXEC:XSR#
Examples
ThefollowingexampleclearsareNATtranslationsonGigabitEthernetinterface2:
XSR#clearipnattranslationsg2*
2NAPTentriesorNATmappingremoved
interface
Portnumber:Dialer(0‐255),FastEthernet(1‐2),Loopback(0‐65535),Serial
(card/port/channel#),VPN(0‐255).
all
Wildcardkeywordtoclearalldynamictranslationentriesonan interface.
global-ip
Whenusedwithoutargumentsprotocol,global‐port,andlocal‐port,itclearsa
simpletranslationthatalsocontainsthespecifiedlocal‐ipaddress.Whenused
withthethoseargumentsitclearsanextendedtranslation.
local-ip
ClearsanentrythatcontainsthislocalIPaddressandthespecifiedglobal‐ip
address
protocol
Clearsanentrycontainingthisprotocolandthespecifiedglobal‐ipaddress,
local‐ipaddress,global‐portandlocal‐port.
global-port
Clearsanentrycontainingthisglobal‐portandthespecifiedprotocol,global‐ip
address,local‐ipaddress,andlocal‐port.
local-port
Clearsanentrythatcontainsthislocal‐portandthespecifiedprotocol,global‐ip
address,local‐ipaddress,andglobal‐port.