Configuring the Policy Functions for the Carrier Grade NAT
SUMMARY STEPS
1. configure
2. service cgn instance-name
3. service-type nat44 nat1
4. protocol tcp
5. session {active | initial} timeout seconds
6. end or commit
DETAILED STEPS
Command or Action
Step 1
configure
Example:
RP/0/RP0/CPU0:router# configure
Step 2
service cgn instance-name
Example:
RP/0/RP0/CPU0:router(config)# service cgn
cgn1
RP/0/RP0/CPU0:router(config-cgn)#
Step 3
service-type nat44 nat1
Example:
RP/0/RP0/CPU0:router(config-cgn)#
service-type nat44 nat1
Step 4
protocol tcp
Example:
RP/0/RP0/CPU0:router(config-cgn-nat44)#
protocol tcp
RP/0/RP0/CPU0:router(config-cgn-proto)#
Step 5
session {active | initial} timeout seconds
Example:
RP/0/RP0/CPU0:router(config-cgn-proto)#
session initial timeout 90
Step 6
end or commit
Example:
RP/0/RP0/CPU0:router(config-cgn-proto)#
end
or
RP/0/RP0/CPU0:router(config-cgn-proto)#
commit
Cisco IOS XR Carrier Grade NAT Configuration Guide for the Cisco CRS Router, Release 5.2.x
34
Implementing Carrier Grade NAT on Cisco IOS XR Software
Purpose
Enters global configuration mode.
Configures the instance named cgn1 for the CGN application and enters
CGN configuration mode.
Configures the service type keyword definition for CGN NAT44
application.
Configures the TCP protocol session. The example shows how to
configure the TCP protocol for the CGN instance named cgn1.
Configures the timeout value as 90 for the TCP session. The example
shows how to configure the initial session timeout.
Saves configuration changes.
• When you issue the end command, the system prompts you to
commit changes:
Uncommitted changes found, commit them before exiting
(yes/no/cancel)?
[cancel]:
OL-32659-01
Need help?
Do you have a question about the GRS and is the answer not in the manual?