Enterasys Networks XSR CLI Router User Manual


 
Network Address Translation Commands
XSR CLI Reference Guide 5-187
ip nat source intf-static (interface mode)
ThiscommandconfiguresasinglestatictranslationentryintheNetworkAddressTranslation
(NAT)table.InterfacestaticNATissimilartoglobalNAT;ittakesprecedenceoverglobalstatic
NATwiththeimplicationthatifanoutgoing/incomingpacketmatchestheinterfacestaticNATno
otherformofNATwillbeperformed.
Syntax
ip nat source [list ACL_number] intf-static {local-ip global-ip |{tcp | udp}
local-ip local-port global-ip global-port}
Syntax of the “no” Form
Thenoformofthecommandremovesasinglestatictranslationentry:
no ip nat intf-source static local-ip global-ip
Mode
Interfaceconfiguration:XSR(config-if-<S1>)#
Example
ThefollowingexampleconfiguresastaticNATsystem:
XSR(config-if<S1>)#ip nat source intf-static 192.178.15.97 10.10.10.5
ip nat source static (global mode)
ThiscommandconfiguresasinglestatictranslationentryintheNetworkAddressTranslation
(NAT)table.InterfacestaticNATissimilartoglobalNAT;ittakesprecedenceoverglobalstatic
NATwiththeimplicationthatifanoutgoing/incomingpacketmatchestheinterfacestaticNATno
otherformofNATwillbeperformed.
Syntax
ip nat source static {local-ip global-ip |{tcp | udp} local-ip local-port global-
ip global-port}
list ACL_number
StandardIPACLnumber.Packetswithsourceaddressesthatpassthe
ACL(permittedbythelist)aredynamicallytranslatedusingthelocal
globaladdress.IftheACLisnotspecified,thewildcardisassumed.
static
AglobalstaticNATtableentryisadded.
local-ip
AlocalIPaddressassignedtoahostontheinsidenetwork.
global-ip
TranslatedIPaddress.
tcp | udp
ThisvalueimpliesthathisisaportspecificstaticNAT.
local-port
Sourceportofoutgoingpacketsanddestinationportofincomingpackets.
global-port
Destinationportofoutgoing packetsandsourceportofincomingpackets.
static
AglobalstaticNATtableentryisadded.
local-ip
AlocalIPaddressassignedtoahostontheinsidenetwork.