Enterasys Networks XSR CLI Router User Manual


 
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(0255),FastEthernet(12),Loopback(065535),Serial
(card/port/channel#),VPN(0255).
all
Wildcardkeywordtoclearalldynamictranslationentriesonan interface.
global-ip
Whenusedwithoutargumentsprotocol,globalport,andlocalport,itclearsa
simpletranslationthatalsocontainsthespecifiedlocalipaddress.Whenused
withthethoseargumentsitclearsanextendedtranslation.
local-ip
ClearsanentrythatcontainsthislocalIPaddressandthespecifiedglobalip
address
protocol
Clearsanentrycontainingthisprotocolandthespecifiedglobalipaddress,
localipaddress,globalportandlocalport.
global-port
Clearsanentrycontainingthisglobalportandthespecifiedprotocol,globalip
address,localipaddress,andlocalport.
local-port
Clearsanentrythatcontainsthislocalportandthespecifiedprotocol,globalip
address,localipaddress,andglobalport.