cisco asr 9000 series aggregation services router cgv6 … › c › en › us › td › docs ›...

354
Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x First Published: 2015-01-15 Last Modified: 2015-09-08 Americas Headquarters Cisco Systems, Inc. 170 West Tasman Drive San Jose, CA 95134-1706 USA http://www.cisco.com Tel: 408 526-4000 800 553-NETS (6387) Fax: 408 527-0883

Upload: others

Post on 04-Jul-2020

15 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Cisco ASR 9000 Series Aggregation Services Router CGv6 ConfigurationGuide, Release 5.3.xFirst Published: 2015-01-15

Last Modified: 2015-09-08

Americas HeadquartersCisco Systems, Inc.170 West Tasman DriveSan Jose, CA 95134-1706USAhttp://www.cisco.comTel: 408 526-4000

800 553-NETS (6387)Fax: 408 527-0883

Page 2: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

THE SPECIFICATIONS AND INFORMATION REGARDING THE PRODUCTS IN THIS MANUAL ARE SUBJECT TO CHANGE WITHOUT NOTICE. ALL STATEMENTS,INFORMATION, AND RECOMMENDATIONS IN THIS MANUAL ARE BELIEVED TO BE ACCURATE BUT ARE PRESENTED WITHOUT WARRANTY OF ANY KIND,EXPRESS OR IMPLIED. USERS MUST TAKE FULL RESPONSIBILITY FOR THEIR APPLICATION OF ANY PRODUCTS.

THE SOFTWARE LICENSE AND LIMITED WARRANTY FOR THE ACCOMPANYING PRODUCT ARE SET FORTH IN THE INFORMATION PACKET THAT SHIPPED WITHTHE PRODUCT AND ARE INCORPORATED HEREIN BY THIS REFERENCE. IF YOU ARE UNABLE TO LOCATE THE SOFTWARE LICENSE OR LIMITED WARRANTY,CONTACT YOUR CISCO REPRESENTATIVE FOR A COPY.

The Cisco implementation of TCP header compression is an adaptation of a program developed by the University of California, Berkeley (UCB) as part of UCB's public domain version ofthe UNIX operating system. All rights reserved. Copyright © 1981, Regents of the University of California.

NOTWITHSTANDING ANY OTHERWARRANTY HEREIN, ALL DOCUMENT FILES AND SOFTWARE OF THESE SUPPLIERS ARE PROVIDED “AS IS" WITH ALL FAULTS.CISCO AND THE ABOVE-NAMED SUPPLIERS DISCLAIM ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, THOSE OFMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OR ARISING FROM A COURSE OF DEALING, USAGE, OR TRADE PRACTICE.

IN NO EVENT SHALL CISCO OR ITS SUPPLIERS BE LIABLE FOR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, OR INCIDENTAL DAMAGES, INCLUDING, WITHOUTLIMITATION, LOST PROFITS OR LOSS OR DAMAGE TO DATA ARISING OUT OF THE USE OR INABILITY TO USE THIS MANUAL, EVEN IF CISCO OR ITS SUPPLIERSHAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, networktopology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentionaland coincidental.

Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.comgo trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and anyother company. (1721R)

© 2015 Cisco Systems, Inc. All rights reserved.

Page 3: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

C O N T E N T S

Preface xiiiP R E F A C E

Changes to This Document xiii

Obtaining Documentation and Submitting a Service Request xiii

New and Changed Carrier Grade NAT Feature 1C H A P T E R 1

New and Changed Carrier Grade IPv6 Features 1

Introduction 3C H A P T E R 2

CGv6 Overview and Benefits 4

CGv6 Overview 4

Benefits of CGv6 4

IPv4 Address Shortage 5

Prerequisites for Implementing the CGv6 5

Implementation of NAT 5

Implementing NAT with ICMP 5

ICMP Query Session Timeout 5

Implementing NAT with TCP 6

Address and Port Mapping Behavior 6

Internally Initiated Connections 6

Externally Initiated Connections 6

Double NAT 444 6

Address Family Translation 7

Jumbo Frame Support 7

Carrier Grade IPv6 over Integrated Services Module (ISM) 9C H A P T E R 3

Cisco Integrated Service Module 9

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.xiii

Page 4: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Solution Components 9

Support for Multiple ISM Line Cards 10

CGN as Default Application on ISM 11

Configuring CGN as Default Application on ISM 11

Implementing NAT 44 over ISM 11

Implementing NAT 64 over ISM 14

CGv6 Applications 19

Network Address Translation (NAT44) 19

Network Address and Port Mapping 19

Translation Filtering 20

Dual Stack Lite 20

Scalability and Performance of DS Lite 21

Stateful NAT64 21

Prefix Format 21

Stateful IPv4-to-IPv6 Packet Flow 22

Stateful IPv6-initiated packet flow: 22

IP Packet Filtering 23

Mapping of Address and Port-Translation Mode 23

IPv6 Rapid Deployment 23

6RD Definitions 24

Mapping of Address and Port-Encapsulation Mode 24

Policy Functions 25

Application Level Gateway 25

FTP-ALG 25

RTSP-ALG 25

PPTP-ALG 25

TCP Maximum Segment Size Adjustment 26

Static Port Forwarding 26

High Availability 26

External Logging 28

Netflow v9 Support 28

Syslog Support 28

Bulk Port Allocation 28

Destination-Based Logging 28

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.xiv

Contents

Page 5: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Configuring CGv6 on Cisco IOS XR Software 29

Installing Carrier Grade IPv6 on ISM 29

FPGA UPGRADE 29

Accessing CPU consoles on ISM Card 30

Installing CGv6 Application on ISM Running for Cisco IOS XR Software Release 4.2.0 31

Installing CGv6 Application on ISM for Cisco IOS XR Software Release 4.2.1 and later 32

Configuring the Service Role for the Carrier Grade IPv6 34

Configuring the Service Instance and Location for the Carrier Grade NAT 35

Configuring the Infrastructure Service Virtual Interface for the Carrier Grade IPv6 36

Configuring Different CGv6 Applications on ISM 37

Configuring NAT44 on ISM 37

Configuring DS-Lite 66

Configuring Stateful NAT64 on ISM 95

Configuring MAP-E 97

Configuring the Application Service Virtual Interface 98

Configuring a MAP-E Instance 99

Configuring the Policy Functions 100

Configuring Address Family 100

Configuring IPv4 Address Family 100

Configuring IPv6 Address Family 103

Configuring AFTR Endpoint Address 106

Configuring Contiguous Ports 107

Configuring CPE Domain Parameters 108

Configuring Path MTU of the Tunnel 109

Configuring Port Sharing Ratio 111

Configuring MAP-T 112

Configuring the Application Service Virtual Interface 112

Configuring a MAP-T Instance 114

Configuring the Policy Functions 115

Configuring Address Family 115

Configuring IPv4 Address Family 115

Configuring IPv6 Address Family 119

Configuring 6RD on ISM 129

Configuring the Application Service Virtual Interface 129

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.xv

Contents

Page 6: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Configuring a 6RD Instance 130

Configuring the Policy Functions 131

Configuring High Availability 145

Configuring Active or Standby Module 145

Enabling Failure Detection 146

Configuration Examples for Implementing the Carrier Grade NAT 147

Configuring a Different Inside VRF Map to a Different Outside VRF: Example 148

Configuring Different Inside VRF Maps to Identical Outside VRF maps for NAT44: Example 149

NAT44 Configuration: Example 149

NAT64 Stateless Configuration: Example 151

DS Lite Configuration: Example 153

IPv6 ServiceApp and Static Route Configuration 153

IPv4 ServiceApp and Static Route Configuration 153

DS Lite Configuration 153

Bulk Port Allocation and Syslog Configuration: Example 154

DBL Configuration: Example 154

NAT44 Instance 154

DS-Lite Instance 154

Services Redundancy Configuration (Active/Standby): Example 154

6RD Configuration: Example 155

MAP-E Configuration on ISM: Example 156

MAP-T Configuration on ISM: Example 157

PPTP ALG Configuration: Example 158

NAT44 Instance 158

Carrier Grade IPv6 over Virtualized Services Module (VSM) 159C H A P T E R 4

Virtualized Services Module 160

Installing CGv6 on VSM 161

Prerequisites 161

Installing CGv6 OVA Package 161

Activating CGv6 VM 162

Uninstalling CGv6 on VSM 164

Upgrading CGv6 OVA Package 164

VSM scale numbers 166

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.xvi

Contents

Page 7: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Implementing NAT 64 over VSM 168

NAT44 and NAT 64 over VSM 170

TCP Sequence Check 172

Address and Port-Dependent Filtering 172

NAT0 or NAT Bypass Mode 173

Static Destination Address Translation 173

CGN and BNG Interoperability through NAT44 over VSM 174

Multiple NetFlow and Syslog Servers for CGN Logging 175

Dual Stack Lite 175

Scalability and Performance of DS Lite 176

Implementing NAT44 or NAT64 over VSM 176

Configuring NAT44 over VSM 176

Configuring a NAT44 Instance 176

Configuring the Application Service Virtual Interface (NAT44) 177

Configuring an Inside and Outside Address Pool Map (NAT44) 179

Predefined NAT 180

Considerations and Limitations of Predefined NAT 181

Configuring the Predefined Mode for NAT44 182

Configuring NAT64 over VSM 183

Configuring a NAT64 Instance 183

Configuring the Application Service Virtual Interface (NAT64) 185

Configuring an Inside and Outside Address Pool Map (NAT64) 187

Configuring DS-Lite 189

Configuring the Application Service Virtual Interface 189

Configuring Dual Stack Lite Instance 190

Configuring the Policy Functions 194

Configuring IPv6 Tunnel Endpoint Address 194

Configuring the Port Limit per Subscriber 195

Configuring the Timeout Value for ICMP, TCP and UDP Sessions 196

Configuring the FTP ALG for DS-Lite Instance 198

Configuring the RTSP ALG for DS-Lite Instance 199

TCP Maximum Segment Size Adjustment 200

Configuring an Address Pool Map 200

Configuring the Path Maximum Transmission Unit 201

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.xvii

Contents

Page 8: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Configuring External Logging for DS-Lite Entries 203

Policy Functions 218

Configuring Port Limit per Subscriber 218

Configuring the Timeout Value for ICMP, TCP and UDP Sessions 219

FTP-ALG 220

RTSP-ALG 220

PPTP-ALG 221

TCP Maximum Segment Size Adjustment 221

Static Port Forwarding 221

Configuring Dynamic Port Range 222

(Only NAT44) Configuring One-to-One Mapping 223

(Only NAT44) Configuring TCP Sequence Check 224

(Only NAT44) Enabling Address and Port-Dependent Filtering 226

(Only NAT44) Configuring NAT0 Mode 227

(Only NAT44) Configuring the Static Destination Address Translation 229

(Only NAT44) Configuring Multiple NetFlow Servers 230

(Only NAT64) Configuring External Logging for NetFlow Servers 233

(Only NAT44) Configuring Multiple Syslog Servers 235

(Only NAT44) Configuring External Logging for the NAT Table Entries 237

Configuring the Server Address and Port for Netflow Logging 237

Configuring the Path Maximum Transmission Unit for Netflow Logging 239

Configuring the Refresh Rate for Netflow Logging 241

Configuring the Timeout for Netflow Logging 242

(Only NAT44) Syslog Logging 244

Configuring the Server Address and Port for Syslog Logging 244

Configuring the Host-Name for Syslog Logging 245

Configuring the Path Maximum Transmission Unit for Syslog Logging 247

Traffic Flow Mirroring 249

Limitations and Assumptions 252

Configuring Mirroring Using Destination Address Filter and Collector IP Address 253

ConfiguringMirroring Using Destination Address, Port Number, Protocol Type, Source-Prefix Filters,and Collector IP Address 255

Configuring Mirroring for Dropped Packets Using Collector IP Address 257

High Availability 259

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.xviii

Contents

Page 9: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Configuring High Availability 261

Configuring Active or Standby Module 261

Enabling Failure Detection 262

Services Redundancy Configuration (Active/Standby): Example 263

Mapping of Address and Port-Encapsulation Mode 264

Configuring MAP-E 264

Configuring the Application Service Virtual Interface 264

Configuring a MAP-E Instance 266

Configuring the Policy Functions 267

Configuring Address Family 267

Configuring IPv4 Address Family 267

Configuring IPv6 Address Family 269

Configuring AFTR Endpoint Address 272

Configuring Contiguous Ports 273

Configuring CPE Domain Parameters 274

Configuring Path MTU of the Tunnel 276

Configuring Port Sharing Ratio 277

MAP-E on VSM Configuration: Example 278

Mapping of Address and Port-Translation Mode 279

Configuring MAP-T 279

Configuring the Application Service Virtual Interface 280

Configuring a MAP-T Instance 281

Configuring the Policy Functions 282

Configuring Address Family 282

MAP-T Configuration on VSM: Example 296

Configuration Examples for Implementing the Carrier Grade NAT 297

Configuring a Different Inside VRF Map to a Different Outside VRF: Example 297

Configuring a Different Inside VRF Map to a Same Outside VRF: Example 298

NAT44 Configuration: Example 299

NAT64 Configuration: Example 301

Bulk Port Allocation and Syslog Configuration: Example 302

Predefined NAT Configuration: Example 302

PPTP ALG Configuration: Example 303

NAT44 Instance 303

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.xix

Contents

Page 10: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DBL Configuration: Example 303

NAT44 Instance 303

DS Lite Configuration: Example 303

IPv6 ServiceApp and Static Route Configuration 303

IPv4 ServiceApp and Static Route Configuration 304

DS Lite Configuration 304

DBL Configuration: Example 304

DS-Lite Instance 304

Configuring TCP Sequence-Check: Example 304

Configuring Address and Port-Dependent Filtering: Example 305

NAT0 Mode Configuration: Example 305

Configuration of Multiple NetFlow Servers: Example 305

Configuration of Multiple Syslog Servers: Servers 306

Carrier Grade IPv6 without Service Modules 307C H A P T E R 5

Configuring MAP-E without service modules 307

Configuring MAP-E instances without service modules 307

Configuring cpe domain parameters without service modules 308

Configuring port sharing ratio and contiguous port without service modules 310

Configuring BR Endpoint Address without modules 311

MAP-T without Service Cards 313

Configuring MAP-T without Service Cards 314

External Logging 319C H A P T E R 6

Bulk Port Allocation 319

Restrictions for Bulk Port Allocation 319

Session logging 320

(Only NAT44) Syslog Logging 320

Restrictions for Syslog 320

Syslog Message Format 320

Header 320

Structured Data 321

MSG 321

Netflow v9 Support 324

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.xx

Contents

Page 11: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

NetFlow Record Format 324

Reliable Log Transfer 337

Reliable Log Transfer Configuration: Examples 338

Frequently Asked Questions (FAQs) 339

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.xxi

Contents

Page 12: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.xxii

Contents

Page 13: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Preface

The Preface contains these sections:

• Changes to This Document, on page xiii• Obtaining Documentation and Submitting a Service Request, on page xiii

Changes to This DocumentThis table lists the changes made to this document since it was first printed.

Change SummaryDate

Initial release of this document.January 2015

Republished with documentation updates for CiscoIOS XR Release 5.3.1 features.

May 2015

Republished with documentation updates for CiscoIOS XR Release 5.3.2 features.

September 2015

Republished with documentation updates for CiscoIOS XR Release 5.3.3 features.

January 2016

Obtaining Documentation and Submitting a Service RequestFor information on obtaining documentation, using the Cisco Bug Search Tool (BST), submitting a servicerequest, and gathering additional information, see What's New in Cisco Product Documentation.

To receive new and revised Cisco technical content directly to your desktop, you can subscribe to the What'sNew in Cisco Product Documentation RSS feed. RSS feeds are a free service.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.xxiii

Page 14: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.xxiv

PrefaceObtaining Documentation and Submitting a Service Request

Page 15: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

C H A P T E R 1New and Changed Carrier Grade NAT Feature

This table summarizes the new and changed information for the Cisco ASR 9000 Series Aggregation ServicesRouter CGv6 Configuration Guide, and tells you where the features are documented.

• New and Changed Carrier Grade IPv6 Features, on page 1

New and Changed Carrier Grade IPv6 FeaturesWhere DocumentedIntroduced/Changed in

ReleaseDescriptionFeature

Carrier Grade IPv6 overVirtualized servicesModel(VSM) chapter:

Implementing NAT 64over VSM, on page 168

Release 5.3.0This feature wasintroduced.

NAT64 on VSM

Carrier Grade IPv6 overVirtualized servicesModel(VSM) chapter:

Predefined NAT, on page180

Release 5.3.1This feature wasintroduced.

Predefined NAT

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x1

Page 16: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x2

New and Changed Carrier Grade NAT FeatureNew and Changed Carrier Grade IPv6 Features

Page 17: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

C H A P T E R 2Introduction

This module provides an overview of the Carrier Grade IPv6 (CGv6) on Cisco IOS XR software.

The following table lists changes made to the document.

Table 1: Feature History for Implementing CGv6 on ASR 9000 Router

ModificationRelease

Initial release of this document. CGv6 applications such as CGN or NAT44 are supported.Release4.2.0

These features were introduced:

• DS-Lite.

• Syslog and Bulk Port Allocation for NAT44 and DS-Lite.

Release4.2.1

Support for multiple ISM line cards.Release4.2.3

These features were introduced:

• Stateful NAT64

• Mapping of Address and Port-Translation Mode

• High Availability

• Destination-Based Logging

Release4.3.0

These features were introduced:

• IPv6 Rapid Deployment

• Mapping of Address and Port-Encapsulation Mode

• Point-to-Point Tunneling Protocol-Application Level Gateway on NAT44

• Real-Time Streaming Proocol-Application Level Gateway on Stateful NAT64

Release4.3.1

Support for Virtualized Services Module (VSM) has been introduced in this release.Release5.1.1

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x3

Page 18: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

These features were introduced:

• NAT0 Mode

• Static Destination NAT

• Multiple NetFlow/Syslog Servers

• Additional CGN Counters

Release5.2.0

• CGv6 Overview and Benefits, on page 4• Prerequisites for Implementing the CGv6, on page 5• Implementation of NAT, on page 5• Double NAT 444, on page 6• Address Family Translation, on page 7• Jumbo Frame Support, on page 7

CGv6 Overview and BenefitsTo implement the CGv6, you should understand the following concepts.

CGv6 OverviewInternet Protocol version 4 (IPv4) has reached exhaustion at the international level (IANA). But serviceproviders must maintain and continue to accelerate growth. Billions of new devices such as mobile phones,portable multimedia devices, sensors, and controllers are demanding Internet connectivity at an increasingrate. The Cisco Carrier Grade IPv6 Solution (CGv6) is designed to help address these challenges. With CiscoCGv6, you can:

• Preserve investments in IPv4 infrastructure, assets, and delivery models.

• Prepare for the smooth, incremental transition to IPv6 services that are interoperable with IPv4.

• Prosper through accelerated subscriber, device, and service growth that are enabled by the efficienciesthat IPv6 can deliver.

Cisco CGv6 extends the already wide array of IPv6 platforms, solutions, and services. Cisco CGv6 helps youbuild a bridge to the future of the Internet with IPv6.

Cisco ASR 9000 Series Aggregation Services Router is part of the Cisco CGv6 solution portfolio and thereforedifferent CGv6 solutions or applications are implemented on this platform (specifically on ISM service card).Carrier Grade Network Address Translation (CGN) is a large scale NAT that is capable of providing privateIPv4 to public IPv4 address translation in the order of millions of translations to support a large number ofsubscribers, and at least 10 Gbps full-duplex bandwidth throughput.

Benefits of CGv6CGv6 offers these benefits.

• Enables service providers to execute orderly transitions to IPv6 through mixed IPv4 and IPv6 networks.

• Provides address family translation but not limited to just translation within one address family.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x4

IntroductionCGv6 Overview and Benefits

Page 19: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

• Delivers a comprehensive solution suite for IP address management and IPv6 transition.

IPv4 Address ShortageA fixed-size resource such as the 32-bit public IPv4 address space will run out in a few years. Therefore, theIPv4 address shortage presents a significant and major challenge to all service providers who depend on largeblocks of public or private IPv4 addresses for provisioning and managing their customers.

Service providers cannot easily allocate sufficient public IPv4 address space to support new customers thatneed to access the public IPv4 Internet.

Prerequisites for Implementing the CGv6The following prerequisites are required to implement CGv6.

• You must be running Cisco IOS XR software Release 4.2.0 and above.

• You must have installed the CGv6 service package, asr9k-services-p.pie (to be used with RSP2) orasr9k-services-px.pie (to be used with RSP3).

• You must be in a user group associated with a task group that includes the proper task IDs. The commandreference guides include the task IDs required for each command.

All the error conditions result in a syslog message. On observation of Heartbeat failure messages, contactCisco Technical Support with show tech-support services cgn information.

Note

If you suspect user group assignment is preventing you from using a command, contact your AAA administratorfor assistance.

Note

Implementation of NATThis section explains various implementations of NAT. The implementation of NAT over ISM and VSM areexplained in the following chapters.

Implementing NAT with ICMPThis section explains how the Network Address Translation (NAT) devices work in conjunction with InternetControl Message Protocol (ICMP).

The implementations of NAT varies in terms of how they handle different traffic.

ICMP Query Session TimeoutRFC 5508 provides ICMP Query Session timeouts. A mapping timeout is maintained by NATs for ICMPqueries that traverse them. The ICMP Query Session timeout is the period during which a mapping will stay

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x5

IntroductionIPv4 Address Shortage

Page 20: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

active without packets traversing the NATs. The timeouts can be set as either Maximum Round Trip Time(MaximumRTT) or Maximum Segment Lifetime (MSL). For the purpose of constraining the maximumRTT,the Maximum Segment Lifetime (MSL) is considered a guideline to set packet lifetime.

If the ICMP NAT session timeout is set to a very large duration (240 seconds) it can tie up precious NATresources such as Query mappings and NAT Sessions for the whole duration. Also, if the timeout is set tovery low it can result in premature freeing of NAT resources and applications failing to complete gracefully.The ICMP Query session timeout needs to be a balance between the two extremes. A 60-second timeout is abalance between the two extremes.

Implementing NAT with TCPThis section explains the various NAT behaviors that are applicable to TCP connection initiation. The detailedNAT with TCP functionality is defined in RFC 5382.

Address and Port Mapping BehaviorA NAT translates packets for each TCP connection using the mapping. A mapping is dynamically allocatedfor connections initiated from the internal side, and potentially reused for certain connections later.

Internally Initiated ConnectionsA TCP connection is initiated by internal endpoints through a NAT by sending SYN packet. All the externalIP address and port used for translation for that connection are defined in the mapping.

Generally for the client-server applications where an internal client initiates the connection to an externalserver, to translate the outbound SYN, the resulting inbound SYN-ACK response mapping is used, thesubsequent outbound ACK, and other packets for the connection.

The 3-way handshake corresponds to method of connection initiation.

Externally Initiated ConnectionsFor the first connection that is initiated by an internal endpoint NAT allocates the mapping. For some situations,the NAT policy may allow reusing of this mapping for connection initiated from the external side to theinternal endpoint.

Double NAT 444The Double NAT 444 solution offers the fastest and simplest way to address the IPv4 depletion problemwithout requiring an upgrade to IPv6 anywhere in the network. Service providers can continue offering newIPv4 customers access to the public IPv4 Internet by using private IPv4 address blocks, if the service provideris large enough; However, they need to have an overlapping RFC 1918 address space, which forces the serviceprovider to partition their network management systems and creates complexity with access control lists(ACL).

Double NAT 444 uses the edge NAT and CGN to hold the translation state for each session. For example,both NATs must hold 100 entries in their respective translation tables if all the hosts in the residence of asubscriber have 100 connections to hosts on the Internet). There is no easy way for a private IPv4 host tocommunicate with the CGN to learn its public IP address and port information or to configure a static incomingport forwarding.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x6

IntroductionImplementing NAT with TCP

Page 21: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Address Family TranslationThe IPv6-only to IPv4-only protocol is referred to as address family translation (AFT). The AFT translatesthe IP address from one address family into another address family. For example, IPv6 to IPv4 translation iscalled NAT 64 or IPv4 to IPv6 translation is called NAT 46.

Jumbo Frame SupportJumbo frames are frames that are larger than the standard Ethernet frame size, which is 1518 bytes. Thedefinition of frame size is vendor-dependent, and are not part of the IEEE standard.

The Integrated Services Module (ISM) and Virtualized Services Module (VSM) both support Jumbo Frames.

To enable Jumbo Frame support, configure the Maximum Transmission Unit (MTU) value of both the ingressand egress interfaces. The default MTU value is 1512 bytes and the maximum value is 9216 bytes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x7

IntroductionAddress Family Translation

Page 22: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x8

IntroductionJumbo Frame Support

Page 23: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

C H A P T E R 3Carrier Grade IPv6 over Integrated ServicesModule (ISM)

This module describes how to implement the Carrier Grade IPv6 (CGv6) over Integrated Services Module (ISM).

• Cisco Integrated Service Module, on page 9• Implementing NAT 44 over ISM, on page 11• Implementing NAT 64 over ISM, on page 14• CGv6 Applications, on page 19• Policy Functions, on page 25• External Logging, on page 28• Configuring CGv6 on Cisco IOS XR Software, on page 29• Configuring MAP-E, on page 97• Configuring MAP-T, on page 112• Configuring High Availability, on page 145• Configuration Examples for Implementing the Carrier Grade NAT, on page 147

Cisco Integrated Service ModuleCisco Integrated Service Module (ISM) is a physical line interface module (PLIM) that provides a highlyscalable modular services delivery platform for delivering multiple types of services. ISM is designed todeliver flexible and highly scalable service integration that allows operational efficiency, service flexibility,and faster time to market. The module offers the architectural advantages of integration with the routingsystem.

Solution ComponentsThese are the solution components of the Cisco Integrated Service Module (ISM).

• ASR 9000 with IOS XR

• High-capacity, carrier-class SP platform with Cisco IOS XR Software

• Leverages XR infrastructure to divert packets to ISM

• Uniform, integrated configuration and management

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x9

Page 24: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

• Integrated Service Module

• Flexible Linux-based development & test environment

• Supports required CGv6

• First IPv6 Transition Strategy

• Integrated Service Module

• Hardware

• CGv6 function residing on ISM

• Intel x86 with 12 CPU cores

• Software

• IOS-XR on LC, Linux on Intel CPUs

• Integrated configuration and management through Cisco IOS XR Software

• Service Virtual Interface (SVI)

• Two types of Service Virtual Interfaces are used in ISM

• ServiceInfra SVI

• ServiceApp SVI

There can be only one ServiceInfra SVI per ISM Slot. This is used for the management plane and is requiredto bring up ISM. This is of local significance within the chassis.

Access lists are not supported on service virtual interfaces.Note

ServiceApp SVI is used to forward the data traffic to the Application. Scale of ISM 244 ServiceApp perchassis is validated. These interfaces can be advertised in IGP/EGP.

Support for Multiple ISM Line CardsCisco IOS XR Software Release 4.2.3 and onwards supports a maximum of six ISM line cards in each CiscoASR 9000 Series Aggregation Services Router chassis. For applications such as NAT44 and DS-Lite, theconfiguration can be independently applied to each ISM line card.

For NAT-44, a maximum of ten million sessions are supported by each ISM line card.

For DS-Lite, a maximum of twenty million sessions are supported by each ISM line card.

No additional configuration is required to support multiple ISM line cards.Note

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x10

Carrier Grade IPv6 over Integrated Services Module (ISM)Support for Multiple ISM Line Cards

Page 25: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

CGN as Default Application on ISMISM supports CGN as the default application.

Configuring CGN as Default Application on ISMTo configure CGN as the default application, perform these steps.

SUMMARY STEPS

1. Install CGN services.pie.2. Configure the CGN role using hw-module service cgn location <node_id> command.3. Load the CGN Linux image as the default image instead of CDS-IS.4. Reload ISM.

DETAILED STEPS

Step 1 Install CGN services.pie.Step 2 Configure the CGN role using hw-module service cgn location <node_id> command.Step 3 Load the CGN Linux image as the default image instead of CDS-IS.Step 4 Reload ISM.

Implementing NAT 44 over ISMThese sections provide the information about implementation of NAT.

The following figure illustrates the implementation of NAT 44 over ISM

The components of this illustration are as follows:

• Private IP4 subscribers: It denotes a private network.

• Interface/VLAN: It denotes a designated interface or VLAN which is associated with the VRF.

• Inside VRF: It denotes the VRF that handles packets coming from the subscriber network. It is knownas inside VRF as it forwards packets from the private network.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x11

Carrier Grade IPv6 over Integrated Services Module (ISM)CGN as Default Application on ISM

Page 26: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

• App SVI: It denotes an application interface that forwards the data packet to and from the ISM. The datapacket may be sent from another line card through a backplane. Because the ISM card does not have aphysical interface, the APP SVI acts as a logical entry into it.

The inside VRF is bound to an App SVI. There are 2 App SVIs required; one for the inside VRF and theother one for the outside VRF. Each App SVI pair will be associated with a unique "inside VRF" and aunique public IP address pool. The VRF consists of a static route for forwarding packets to App SVI1.

• Outside VRF: It denotes the VRF that handles packets going out to the public network. It is known asoutside VRF as it forwards packets from the public network.

• Public IPV4: It denotes a public network.

The following figure illustrates the path of the data packet from a private network to a public network in aNAT implementation.

The packet goes through the following steps when it travels from the private network to the public network:

1. In the network shown in this figure, the packet travels from the host A (having the IP address 10.222.5.55)in the private network to host B (having the IP address 5.5.5.2) in the public network. The private addresshas to be mapped to the public address by NAT44 that is implemented in ISM.

2. The packet enters through the ingress port on the Gigabit Ethernet (GigE) interface at Slot 0. While usingNAT44, it is mandatory that the packet enters through VRF.

3. Once the packet reaches the designated interface or VLAN on ASR9K, it is forwarded to the inside VRFeither through static routing or ACL-based forwarding (ABL). After the inside VRF determines that thepacket needs address translation, it is forwarded to the App SVI that is bound to the VRF.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x12

Carrier Grade IPv6 over Integrated Services Module (ISM)Implementing NAT 44 over ISM

Page 27: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

4. The packet is forwarded by AppSVI1 through a default static route (ivrf1). The destination address andthe port get translated because of the CGN configuration applied on ISM.

5. The ISM applies NAT44 to the packet and a translation entry is created. The CGN determines the destinationaddress from the FIB Look Up. It pushes the packet to the egress port.

6. The packet is then forwarded to the egress port on the interface through App SVI2. An inside VRF ismapped to an outside VRF. The outside VRF is associated with this interface. The packet is forwardedby App SVI2 through the default static route (ovrf1). Then the packet is sent to the public network.

7. The packets that do not need the address translation can bypass the App SVI and can be forwarded to thedestination through a different static route and a different egress port.

The following figure illustrates the path of the packet coming from the public network to the private network.

The packet goes through the following steps when it travels from the public network to the private network:

1. In the network shown in this figure, the packet travels from the host A (having the IP address 10.222.5.55)in the public network to host B (having the IP address 5.5.5.2) in the private network. The public addresshas to be mapped to the private address by NAT44 that is implemented in ISM.

2. The packet enters through the ingress port on the Gigabit Ethernet (GigE) interface at Slot 0.

3. Once the packet reaches the designated interface or VLAN on ASR9K, it is forwarded to the outside VRFeither through static routing or ACL-based forwarding (ABL).

4. The packet is forwarded by App SVI2 through a default static route. The destination address and the portare mapped to the translated address.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x13

Carrier Grade IPv6 over Integrated Services Module (ISM)Implementing NAT 44 over ISM

Page 28: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

5. The ISM applies NAT44 to the packet. The CGN determines the destination address from the FIB LookUp. It pushes the packet to the egress port.

6. The packet is then forwarded to the egress port on the interface through App SVI2. Then the packet issent to the private network through the inside VRF.

7. The packets that do not need the address translation can bypass the App SVI and can be forwarded to thedestination through a different static route and a different egress port.

Implementing NAT 64 over ISMThis section explains how NAT64 is implemented over ISM. The figure illustrates the implementation ofNAT64 over ISM.

The components of this implementation are as follows:

• Private IP6 subscribers – It denotes a private network.

• Interface/VLAN- It denotes a designated interface or VLAN which is associated with the VRF.

• Inside VRF – It denotes the VRF that handles packets coming from the subscriber network. It is knownas inside VRF as it forwards packets from the private network.

• App SVI- It denotes an application interface that forwards the data packet to and from the ISM. The datapacket may be sent from another line card through a backplane. Because the ISM card does not have aphysical interface, the APP SVI acts as a logical entry into it.

The inside VRF is bound to an App SVI. There are 2 App SVIs required; one for the inside VRF and theother one for the outside VRF. Each App SVI pair will be associated with a unique "inside VRF" and aunique public IP address pool. The VRF consists of a static route for forwarding packets to App SVI1.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x14

Carrier Grade IPv6 over Integrated Services Module (ISM)Implementing NAT 64 over ISM

Page 29: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

• Outside VRF- It denotes the VRF that handles packets going out to the public network. It is known asoutside VRF as it forwards packets from the public network.

• Public IPV4- It denotes a public network.

The following figure illustrates the path of the data packet from a private network to a public network in aNAT64 implementation.

The packet goes through the following steps when it travels from the private network to the public network:

1. In the network shown in this figure, the packet travels from the host A (having the IP address3001:DB8:E0E:E03::/40) in the private network to host B (having the IP address 11.11.11.2) in the publicnetwork. The private address has to be mapped to the public address by NAT64 that is implemented inISM.

2. The packet enters through the ingress port on the Gigabit Ethernet (GigE) interface at Slot 3.

3. Once the packet reaches the designated interface or VLAN on ASR9K, it is forwarded to the inside VRFeither through static routing or ACL-based forwarding (ABL). Based on this routing decision, the packetthat needs address translation is determined and is forwarded to the App SVI that is bound to the VRF.

4. The packet is forwarded by AppSVI1 through a default static route. The destination address and the portget translated because of the CGN configuration applied on ISM.

5. The ISM applies NAT64 to the packet and a translation entry is created. The CGN determines the destinationaddress from the FIB Look Up. It pushes the packet to the egress port.

6. The packet is then forwarded to the egress port on the interface through App SVI2. The packet is forwardedby App SVI2 through the default static route. Then the packet is sent to the public network.

7. The packets that do not need the address translation can bypass the App SVI and can be forwarded to thedestination through a different static route and a different egress port.

The following figure illustrates the path of the packet coming from the public network to the private network.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x15

Carrier Grade IPv6 over Integrated Services Module (ISM)Implementing NAT 64 over ISM

Page 30: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

The packet goes through the following steps when it travels from the public network to the private network:

1. In the network shown in this figure, the packet travels from the host A (having the IP address 11.11.11.2)in the public network to host B (having the IP address 3001:DB8:E0E:E03::) in the private network. Thepublic address has to be mapped to the private address by NAT64 that is implemented in ISM.

2. The packet enters through the ingress port on the Gigabit Ethernet (GigE) interface at Slot 3.

3. Once the packet reaches the designated interface or VLAN on ASR9K, it is forwarded to the outside VRFeither through static routing or ACL-based forwarding (ABL). Based on this routing decision, the packetis forwarded to the App SVI that is bound to the VRF.

4. The packet is forwarded by App SVI2 through a default static route. The destination address and the portare mapped to the translated address.

5. The ISM applies NAT64 to the packet. The CGN determines the destination address from the FIB LookUp. It pushes the packet to the egress port.

6. The packet is then forwarded to the egress port on the interface through App SVI2. Then the packet issent to the private network through the inside VRF.

7. The packets that do not need the address translation can bypass the App SVI and can be forwarded to thedestination through a different static route and a different egress port.

Table 2: Supported Interfaces and Forwarding Features on CGv6

5.3.x5.2.x5.1.x4.3.x

Egress Interfaces

YesYesYesYesPhysical Interface

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x16

Carrier Grade IPv6 over Integrated Services Module (ISM)Implementing NAT 64 over ISM

Page 31: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

5.3.x5.2.x5.1.x4.3.x

YesYesYesYesVLAN Subinterface

YesYesYesYesBundle Interface

YesYesYesYesBundle Subinterface

NoNoNoNoBVI Interface

YesYesYesNoBNGIP-Subinterface/PPPoE

NoNoNoNoEthernet AttachmentCircuit orPseudowire

NoNoNoNoGRE Tunnel

L3 Unicast Forwarding Features

YesYesYesYesBasic IPv4 IGPForwarding

YesYesYesYesBGP Traffic

YesYesYesYesForwarding in VRF

YesYesYesYesRecursive Routes

NoNoNoNouRPF

NoNoNoNoBGP-PA

MPLS and Fast Reroute (FRR) Support

Note: The ISM card does not generate label for packets. It only processes unlabeled packets.

YesYesYesNoMPLS-TE Paths

YesYesYesYesBasic Labeled Path

YesYesYesNoMPLS-TE Tunnel

NoNoNoNoMPLS-TP Tunnel

YesYesYesNoTE-FRR

NoNoNoNoIP-FRR

NoNoNoNoLDP-FRR orLFA-FRR

Multicast

NoNoNoNoIP Multicast

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x17

Carrier Grade IPv6 over Integrated Services Module (ISM)Implementing NAT 64 over ISM

Page 32: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

5.3.x5.2.x5.1.x4.3.x

NoNoNoNoMVPN

NoNoNoNoLabel SwitchedMulticast

ServiceApp Interfaces

YesYesYesYesABF to ServiceAppInterface

NoNoNoNoABF fromServiceAppInterface

NoNoNoNoACL on ServiceAppInterface

NoNoNoNoQoS on ServiceAppInterface

NoNoNoNoLawful Intercept(LI) on Service AppInterface

NoNoNoNoIPv4 Enable/Disable(Per Interface)

NoNoNoNoMPLSEnable/Disable (PerInterface)

NoNoNoNoMTU Setting (PerInterface)

YesYesPartial

Per-interfaceper-protocolpacket/byte count issupported.

Partial

Per-interfaceper-protocolpacket/byte count issupported.

Statistics onServiceAppInterface

NoNoNoNoPer-Label/TunnelStatistics

• The table refers to packet handling after CGv6 processing (from ingress to egress).• The CGv6 application processes only L3 unicast traffic. Other traffic types such as L2 and L3 multicastare not supported.

• The forwarding features that are supported are only those where traffic is injected from the CGv6application as an IPv4 or IPv6 packet.

Note

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x18

Carrier Grade IPv6 over Integrated Services Module (ISM)Implementing NAT 64 over ISM

Page 33: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

CGv6 ApplicationsThese applications are deployed on the ISM line card.

Network Address Translation (NAT44)Network Address Translation (NAT44) or Carrier Grade Network Address Translation (CGN) is a large scaleNAT that is capable of providing private IPv4 to public IPv4 address translation in the order of millions oftranslations to support a large number of subscribers, and at least 10 Gbps full-duplex bandwidth throughput.

CGN is a workable solution to the IPv4 address completion problem, and offers a way for service providersubscribers and content providers to implement a seamless transition to IPv6. CGN employs network addressand port translation (NAPT) methods to aggregate many private IP addresses into fewer public IPv4 addresses.For example, a single public IPv4 address with a pool of 32 K port numbers supports 320 individual privateIP subscribers assuming each subscriber requires 100 ports. For example, each TCP connection needs oneport number.

A Network Address Translation (NAT) box is positioned between private and public IP networks that areaddressed with non-global private addresses and a public IP addresses respectively. A NAT performs the taskof mapping one or many private (or internal) IP addresses into one public IP address by employing bothnetwork address and port translation (NAPT) techniques. The mappings, otherwise referred to as bindings,are typically created when a private IPv4 host located behind the NAT initiates a connection (for example,TCP SYN) with a public IPv4 host. The NAT intercepts the packet to perform these functions:

• Rewrites the private IP host source address and port values with its own IP source address and port values

• Stores the private-to-public binding information in a table and sends the packet. When the public IP hostreturns a packet, it is addressed to the NAT. The stored binding information is used to replace the IPdestination address and port values with the private IP host address and port values.

Traditionally, NAT boxes are deployed in the residential home gateway (HGW) to translate multiple privateIP addresses. The NAT boxes are configured on multiple devices inside the home to a single public IP address,which are configured and provisioned on the HGW by the service provider. In enterprise scenarios, you canuse the NAT functions combined with the firewall to offer security protection for corporate resources andallow for provider-independent IPv4 addresses. NATs have made it easier for private IP home networks toflourish independently from service provider IP address provisioning. Enterprises can permanently employprivate IP addressing for Intranet connectivity while relying on a few NAT boxes, and public IPv4 addressesfor external public Internet connectivity. NAT boxes in conjunction with classic methods such as ClasslessInter-Domain Routing (CIDR) have slowed public IPv4 address consumption.

Network Address and Port MappingNetwork address and port mapping can be reused to map new sessions to external endpoints after establishinga first mapping between an internal address and port to an external address. These NAT mapping definitionsare defined from RFC 4787:

• Endpoint-independent mapping—Reuses the port mapping for subsequent packets that are sent from thesame internal IP address and port to any external IP address and port.

• Address-dependent mapping—Reuses the port mapping for subsequent packets that are sent from thesame internal IP address and port to the same external IP address, regardless of the external port.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x19

Carrier Grade IPv6 over Integrated Services Module (ISM)CGv6 Applications

Page 34: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

CGN on ISM implements Endpoint-Independent Mapping.Note

Translation FilteringRFC 4787 provides translation filtering behaviors for NATs. These options are used by NAT to filter packetsoriginating from specific external endpoints:

• Endpoint-independent filtering—Filters out only packets that are not destined to the internal addressand port regardless of the external IP address and port source.

• Address-dependent filtering—Filters out packets that are not destined to the internal address. In addition,NAT filters out packets that are destined for the internal endpoint.

• Address and port-dependent filtering—Filters out packets that are not destined to the internal address.In addition, NAT filets out packets that are destined for the internal endpoint if the packets were not sentpreviously.

Dual Stack LiteThe Dual Stack Lite (DS-Lite) feature enables legacy IPv4 hosts and server communication over both IPv4and IPv6 networks. Also, IPv4 hosts may need to access IPv4 internet over an IPv6 access network. The IPv4hosts will have private addresses which need to have network address translation (NAT) completed beforereaching the IPv4 internet. The Dual Stack Lite application has these components:

• Basic Bridging BroadBand Element (B4): This is a Customer Premises Equipment (CPE) router thatis attached to the end hosts. The IPv4 packets entering B4 are encapsulated using a IPv6 tunnel and sentto the Address Family Transition Router (AFTR).

• Address Family Transition Router(AFTR): This is the router that terminates the tunnel from the B4.It decapsulates the tunneled IPv4 packet, translates the network address and routes to the IPv4 network.In the reverse direction, IPv4 packets coming from the internet are reverse network address translatedand the resultant IPv4 packets are sent the B4 using a IPv6 tunnel.

The Dual Stack Lite feature helps in these functions:

1. Tunnelling IPv4 packets from CE devices over IPv6 tunnels to the CGSE blade.

2. Decapsulating the IPv4 packet and sending the decapsulated content to the IPv4 internet after completingnetwork address translation.

3. In the reverse direction completing reverse-network address translation and then tunnelling them overIPv6 tunnels to the CPE device.

IPv6 traffic from the CPE device is natively forwarded.

VSM scale numbers supported in Dual Stack Lite

Dual Stack Lite supports the following VSM scale number:

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x20

Carrier Grade IPv6 over Integrated Services Module (ISM)Translation Filtering

Page 35: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Value per ASR9K Chassis withVSM

Value per VSMParameter Name

80 MillionsDS-Lite Sessions

Scalability and Performance of DS Lite• Supports a total of 60 million translations.

• Number of unique users behind B4 router, basically IPv6 and IPv4 Source tuple, can scale to 1 million.

• There is no real limit to the number of B4 routers and their associated tunnels connecting to the AFTR,except the session limit, which is 20 million B4 routers (assuming each router has only one session). Inreality, a maximum of 1 million B4 routers can connect to an AFTR at any given time.

• The performance of DS-Lite traffic, combined IPv4 and IPv6, is 39 Gbps.

Stateful NAT64The Stateful NAT64 (Network Address Translation 64) feature provides a translationmechanism that translatesIPv6 packets into IPv4 packets and vice versa. NAT64 allows IPv6-only clients to contact IPv4 servers usingunicast UDP, TCP, or ICMP. The public IPv4 address can be shared with several IPv6-only clients. NAT64supports communication between:

• IPv6 Network and Public IPv4 Internet

• Public IPv6 Internet and IPv4 Network

NAT64 is implemented on the Cisco CRS router CGSE platform. CGSE (Carrier Grade Service Engine) hasfour octeons and supports 20 Gbps full duplex traffic. It works on Linux operating system and traffic intoCGSE is forwarded using serviceApp interfaces. SVIs (Service Virtual Interfaces) are configured to enabletraffic to flow in and out of CGSE .

Each NAT64 instance configured is associated with two serviceApps for the following purposes:

• One serviceApp is used to carry traffic from IPv6 side

• Another serviceApp is used to carry traffic from IPv4 side of the NAT64.

NAT64 instance parameters are configured using the CGNCLI. The NAT64 application in the octeons updatesits NAT64 instance and serviceApp databases, which are used to perform the translation between IPv6 andIPv4 and vice versa.

Active CGN instance configuration is replicated in the standby CGN instance through the XR control plane.Translations that are established on the Active CGN instance are exported to the Standby CGN instance asthe failure of the Active CGN affects the service until translations are re-established through normal packetflow. Service interruption is moderate for the given fault detection time and translation learning rate in termsof seconds or tens of seconds for a large translation database.

Prefix FormatA set of bits at the start of an IPv6 address is called the format prefix. Prefix length is a decimal value thatspecifies the number of the left-most contiguous bits of an address.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x21

Carrier Grade IPv6 over Integrated Services Module (ISM)Scalability and Performance of DS Lite

Page 36: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

When packets flow from the IPv6 to the IPv4 direction, the IPv4 host address is derived from the destinationIP address of the IPv6 packet that uses the prefix length.When packets flow from the IPv4 to the IPv6 direction,the IPv6 host address is constructed using the stateful prefix.

According to the IETF address format, a u-bit (bit 70) defined in the IPv6 architecture should be set to zero.The reserved octet, also called u-octet, is reserved for compatibility with the host identifier format defined inthe IPv6 addressing architecture. When constructing an IPv6 packet, the translator has to make sure that theu-bits are not tampered, and are set to the value suggested by RFC 2373. The suffix will be set to all zeros bythe translator. IETF recommends that the 8 bits of the u-octet (bit range 64-71) be set to zero.

Well Known Prefix (WKP)

Well Known Prefix (WKP) 64:FF9B::/96 is supported for Stateful NAT64. During stateful translation, if nostateful prefix is configured (either on the interface or globally), the WKP prefix is used to translate the IPv4host addresses.

Stateful IPv4-to-IPv6 Packet FlowThe packet flow of IPv4-initiated packets for Stateful NAT64:

• The destination address is routed to a NAT Virtual Interface (NVI). A virtual interface is created whenStateful NAT64 is configured. For Stateful NAT64 translation to work, all packets must get routed tothe NVI. When you configure an address pool, a route is automatically added to all IPv4 addresses inthe pool. This route automatically points to the NVI.

• The IPv4-initiated packet hits static or dynamic binding. Dynamic address bindings are created by theStateful NAT64 translator when you configure dynamic Stateful NAT64. A binding is dynamicallycreated between an IPv6 and an IPv4 address pool. Dynamic binding is triggered by the IPv6-to-IPv4traffic and the address is dynamically allocated. Based on your configuration, you can have static ordynamic binding.

• The IPv4-initiated packet is protocol-translated and the destination IP address of the packet is set to IPv6based on static or dynamic binding. The Stateful NAT64 translator translates the source IP address toIPv6 by using the Stateful NAT64 prefix (if a stateful prefix is configured) or the Well Known Prefix(WKP) (if a stateful prefix is not configured).

• A session is created based on the translation information.

All subsequent IPv4-initiated packets are translated based on the previously created session.

Stateful IPv6-initiated packet flow:• The first IPv6 packet is routed to the NAT Virtual Interface (NVI) based on the automatic routing setupthat is configured for the stateful prefix. Stateful NAT64 performs a series of lookups to determinewhether the IPv6 packet matches any of the configured mappings based on an access control list (ACL)lookup. Based on themapping, an IPv4 address (and port) is associated with the IPv6 destination address.The IPv6 packet is translated and the IPv4 packet is formed by using these methods:

• Extracting the destination IPv4 address by stripping the prefix from the IPv6 address. The sourceaddress is replaced by the allocated IPv4 address (and port).

• Translating the rest of the fields from IPv6-to-IPv4 to form a valid IPv4 packet.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x22

Carrier Grade IPv6 over Integrated Services Module (ISM)Stateful IPv4-to-IPv6 Packet Flow

Page 37: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

• Creating a new NAT64 translation in the session database and in the bind database. The pool and portdatabases are updated depending on the configuration. The return traffic and the subsequent traffic ofthe IPv6 packet flow will use this session database entry for translation.

Static port forwarding is not supported over StatefulNAT64 on ISM.Note

IP Packet FilteringStateful NAT64 filters IPv6 and IPv4 packets. All IPv6 packets that are transmitted into the stateful translatorare filtered because statefully translated IPv6 packets consume resources in the translator. These packetsconsume processor resources for packet processing, memory resources (always session memory) for staticconfiguration, IPv4 address resources for dynamic configuration, and IPv4 address and port resources for PortAddress Translation (PAT).

Stateful NAT64 utilizes configured access control lists (ACLs) and prefix lists to filter IPv6-initiated trafficflows that are allowed to create the NAT64 state. Filtering of IPv6 packets is done in the IPv6-to-IPv4 directionbecause dynamic allocation of mapping between an IPv6 host and an IPv4 address can be done only in thisdirection.

Stateful NAT64 supports endpoint-dependent filtering for the IPv4-to-IPv6 packet flowwith PAT configuration.In a Stateful NAT64 PAT configuration, the packet flow originates from the IPv6 realm and creates the stateinformation in NAT64 state tables. Packets from the IPv4 side that do not have a previously created state aredropped. Endpoint-independent filtering is supported with static NAT and non-PAT configurations.

Mapping of Address and Port-Translation ModeMapping of Address and Port-Translation Mode (MAP-T) is a CGN solution that enables IPv4-only clientsto communicate with IPv6-only resources using address and packet translation. MAP-T is also referred to asDual IVI (dIVI) or Stateless NAT46. This enables a service provider to offer IPv4 services to IPv6 enabled(customer) sites to which it provides customer premise equipment (CPE). This approach utilizes stateless IPv4to IPv6 translation (that is NAT64) to transit IPv6-enabled network infrastructure. The provider access networkcan now be on IPv6, while customers use IPv6 and IPv4 services simultaneously. MAP-T keeps the statefulNAT44 on CPE, as usual, to handle IPv4 address exhaustion, in addition to stateless NAT64 on CPE andBorder Router.

MAP-T is attractive to those SPs who have deployed, or are planning to deploy IPv6 end-to-end services, andwant to manage IPv4 address exhaustion with utmost predictability.

MAP-T is a preferred alternate to DS-Lite in a sevice provider network when there is no tunneling needed.

MAP-T is offered in stateless mode only.Note

IPv6 Rapid DeploymentIPv6 Rapid Deployment (6RD) is a mechanism that allows service providers to provide a unicast IPv6 serviceto customers over their IPv4 network.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x23

Carrier Grade IPv6 over Integrated Services Module (ISM)IP Packet Filtering

Page 38: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

6RD Definitions• 6RD CE /RG/CPE: The 6rd "Customer Edge" router that sits between an IPv6-enabled site and anIPv4-enabled SP network. In the context of residential broadband deployment, this is referred to as theResidential Gateway (RG) or Customer Premises Equipment (CPE) or Internet Gateway Device (IGD).This router has a 6rd tunnel interface acting as an endpoint for the IPv6 in IPv4 encapsulation andforwarding, with at least one 6rd CE LAN side interface and 6rd CE WAN side interface, respectively.

• 6RD Border Relay (BR): A 6rd-enabled Border Relay router located at the service provider’s premises.The 6rd BR router has at least one IPv4 interface, a 6rd tunnel interface for multi-point tunneling, andat least one IPv6 interface that is reachable through the IPv6 Internet or IPv6-enabled portion of the SPnetwork. A router running IOS can also be a 6RD BR.

• 6RD Delegated Prefix: The IPv6 prefix determined by the 6rd CE device for use by hosts within thecustomer site.

• 6RD Prefix (SP Prefix) : An IPv6 prefix selected by the service provider for use by a 6rd domain. Thereis exactly one 6rd prefix for a given 6rd domain.

• CE LAN side : The functionality of a 6rd CE that serves the Local Area Network (LAN) orcustomer-facing side of the CE. The CE LAN side interface is fully IPv6 enabled.

• CEWAN side : The functionality of a 6rd CE that serves the Wide Area Network (WAN) or ServiceProvider- facing side of the CE. The CE WAN side is IPv4 only.

• BR IPv4 address : The IPv4 address of the 6rd Border Relay for a given 6rd domain. This IPv4 addressis used by the CE to send packets to a BR in order to reach IPv6 destinations outside of the 6rd domain.

• CE IPv4 address : The IPv4 address given to the CE as part of normal IPv4 Internet access (configuredthrough DHCP, PPP, or otherwise). This address may be global or private within the 6rd domain. Thisaddress is used by a 6rd CE to create the 6rd delegated prefix, as well as to send and receiveIPv4-encapsulated IPv6 packets.

Mapping of Address and Port-Encapsulation ModeMapping of Address and Port-EncapsulationMode (MAP-E) is a CGN solution that allows a service providerto enable IPv4 services at IPv6 (customer) sites to which it provides Customer Premise Equipment (CPE).This approach utilizes stateless IPv4-in-IPv6 encapsulation to transit IPv6-enabled network infrastructure.The encapsulation must be supported by the CPE and MAP-E Gateway/Border Relay, which removes theIPv6 encapsulation from IPv4 packets while forwarding them to the Internet. The provider access networkcan now be on IPv6, while customers see IPv6 and IPv4 service simultaneously.

MAP-E also helps manage IPv4 address exhaustion by keeping the stateful NAT44 on CPE. MAP-E is notsupported on any of the VRF interfaces, that is, either IPv4 or IPv6, whereas Map-T is supported with VRFinterfaces along with an SMU.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x24

Carrier Grade IPv6 over Integrated Services Module (ISM)6RD Definitions

Page 39: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Policy Functions

Application Level GatewayTheApplication Level Gateway (ALG) deals with the applications that are embedded in the IP address payload.Active File Transfer Protocol (FTP), Point-to-Point Tunneling Protocol (PPTP), and Real Time StreamingProtocol (RTSP) are supported.

FTP-ALGCGN supports both passive and active FTP. FTP clients are supported with inside (private) address and serverswith outside (public) addresses. Passive FTP is provided by the basic NAT function. Active FTP is used withthe ALG.

RTSP-ALGCGN supports the Real Time Streaming Protocol (RTSP), an application-level protocol for control over thedelivery of data with real-time properties. RTSP provides an extensible framework to enable controlled,on-demand delivery of real-time data, such as audio and video. Sources of data can include both live datafeeds and stored clips.

PPTP-ALGPPTP is a network protocol that enables secure transfer of data from a remote client to a private enterpriseserver by creating a Virtual Private Network (VPN). It is used to provide IP security at the network layer.PPTP uses a control channel over TCP and a GRE tunnel operating to encapsulate PPP packets.

PPTP-ALG is a CGN solution that allows traffic from all clients through a single PPTP tunnel.

A PPTP tunnel is instantiated on the TCP port. This TCP connection is then used to initiate and manage asecond GRE tunnel to the same peer.

PPTP uses an access controller and network server to establish a connection.

PPTP Access Controller (PAC)

A device attached to one or more PSTN or ISDN lines capable of PPP operation and handling the PPTPprotocol. It terminates the PPTP tunnel and provides VPN connectivity to a remote client.

PPTP Network Server (PNS)

A device which provides the interface between the Point-to-Point Protocol (encapsulated in the PPTP protocol)and a LAN or WAN. The PNS uses the PPTP protocol to support tunneling between a PPTP PAC and thePNS. It requests to establish a VPN connectivity using PPTP tunnel.

Control Connection

A control connection is established between a PAC and a PNS for TCP.

Tunnel

A tunnel carries GRE encapsulated PPP datagrams between a PAC and a PNS

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x25

Carrier Grade IPv6 over Integrated Services Module (ISM)Policy Functions

Page 40: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Active FTP, PPTP ALG, and RTSP ALG are supported on NAT44 applications. Active FTP and RTSP ALGare supported on DS-Lite applications.

Note

TCP Maximum Segment Size AdjustmentWhen a host initiates a TCP session with a server, the host negotiates the IP segment size by using the maximumsegment size (MSS) option. The value of the MSS option is determined by the maximum transmission unit(MTU) that is configured on the host.

Static Port ForwardingStatic port forwarding helps in associating a private IP address and port with a statically allocated public IPand port. After you have configured static port forwarding, this association remains intact and does not getremoved due to timeouts until the CGSE is rebooted. In case of redundant CGSE cards, it remains intact untilboth of the CGSEs are reloaded together or the router is reloaded. There are remote chances that after a reboot,this association might change. This feature helps in cases where server applications running on the privatenetwork needs access from public internet.

NAT64 on VSM does not support static port forwarding.Note

High AvailabilityHigh Availability (HA) or 1:1 redundancy enables network-wide protection by providing fast recovery fromfaults that may occur in any part of the network. With Cisco High Availability on the module, the networkhardware and software work together and enable rapid recovery from disruption, to ensure fault transparencyto users and network applications. It provides continuous access to applications, data, and content anywhere,anytime by addressing potential causes of downtime with functionality, design, and best practices.

HA supports:

• 1:1 active or standby redundancy infrastructure for the services running on the module

• Intra-chassis redundancy

• Cold standby redundancy

• Replication of CGN-related configuration into a standby card

Before upgrading or downgrading the CGv6 OVA package on the Active VSMcard in HA mode, perform a graceful shift of the traffic from Active VSM toStandby VSM. This will ensure that the CGN-related configuration is replicatedinto a standby card. For more information refer Upgrading CGv6 OVA Package,on page 164.

Note

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x26

Carrier Grade IPv6 over Integrated Services Module (ISM)TCP Maximum Segment Size Adjustment

Page 41: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

• Failure detection

• Data path - Channel through which CGV6 application data packets traverse

• CPU health monitoring

• Control path

• Crashed processes

The following commands are supported for failure detection:

• Data PathRP/0/RP0/CPU0:router(config)# service-cgv6-ha location location-name datapath-test

RP/0/RP0/CPU0:router(config)# service-cgv6-ha location location-name datapath-testdisable

By default, failure detection for data path is not triggered unless the abovecommand is configured.

Note

The service-cgv6-ha location location-name datapath-test disable configurationdisables the heartbeat packets (health check packets) flowing in VSM. By default,these packets are flowing. You can disable these packets when required.

Note

• Failure reporting and recovery

• If redundant module is configured, then switch-over the stand by module to active and reload theactive module.

• If redundant module is not configured, then reload the module. This comes up again as an activemodule.

Redundancy Switchover Using CLI

You can trigger the switchover the failover by running the following the commands to an active slot and viceversa. :

Use the following command to switchover the failover to a preferred active slot.RP/0/RP0/CPU0:router(config)# service redundancy failover service-type all preferred-active<preferred-active slot>

Use the following command to revert the failover to a preferred active slot.RP/0/RP0/CPU0:router(config)# service redundancy revert service-type all preferred-active<preferred-active slot>

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x27

Carrier Grade IPv6 over Integrated Services Module (ISM)High Availability

Page 42: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

External LoggingExternal logging configures the export and logging of the NAT table entries, private bindings that are associatedwith a particular global IP port address, and to use Netflow to export the NAT table entries.

Netflow v9 SupportThe NAT44 and DS Lite features support Netflow for logging of the translation records. Logging of thetranslation records can be mandated by for Lawful Intercept. The Netflow uses binary format and hencerequires software to parse and present the translation records.

Syslog SupportThe NAT44, Stateful NAT64, and DS Lite features support Netflow for logging of the translation records.Logging of the translation records can be mandated by for Lawful Intercept. The Netflow uses binary formatand hence requires software to parse and present the translation records.

In Cisco IOS XR Software Release 4.2.1 and later, the DS Lite and NAT44 features support Syslog as analternative to Netflow. Syslog uses ASCII format and hence can be read by users. However, the log datavolume is higher in Syslog than Netflow.

Bulk Port AllocationThe creation and deletion of NAT sessions need to be logged and these create huge amount of data. Theseare stored on Syslog collector which is supported over UDP. In order to reduce the volume of data generatedby the NAT device, bulk port allocation can be enabled. When bulk port allocation is enabled and when asubscriber creates the first session, a number of contiguous outside ports are pre-allocated. A bulk allocationmessage is logged indicating this allocation. Subsequent session creations will use one of the pre-allocatedport and hence does not require logging.

Session-logging and bulk port allocation are mutually exclusive.Note

Destination-Based LoggingDestination-Based Logging (DBL) includes destination IPv4 address and port number in the Netflow createand delete records used by NAT44, Stateful NAT64, and DS-Lite applications. It is also known asSession-Logging.

Session-Logging and Bulk Port Allocation are mutually exclusive.Note

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x28

Carrier Grade IPv6 over Integrated Services Module (ISM)External Logging

Page 43: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Configuring CGv6 on Cisco IOS XR SoftwareThese configuration tasks are required to implement CGv6 on Cisco IOS XR software.

Installing Carrier Grade IPv6 on ISMThis section provides instructions on installing CGv6 on the ISM line card, removing CGv6 on the ISM linecard, and reinstalling the CDS TV application support.

Hardware

ISM hardware in chassis

Software

• asr9k-mini-p.vm or asr9k-mini-px.vm

• asr9k-services-p.pie or asr9k-services-px.pie

• asr9k-fpd-p.pie or asr9k-fpd-px.pie

FPGA UPGRADEThe installation is similar to an FPGA upgrade on any other ASR 9000 cards.

SUMMARY STEPS

1. Load the fpd pie.2. Run the show hw-module fpd location <> command in admin mode.3. Upgrade the identified FPGAs using the relevant commands:4. If one or more FPGAs were upgraded, reload the ISM card after all the upgrade operation completes

successfully.5. After the ISM card comes up, check for the FPGA version. This can be done using the following command

from the admin mode.

DETAILED STEPS

Step 1 Load the fpd pie.Step 2 Run the show hw-module fpd location <> command in admin mode.

Example:RP/0/RP0/CPU0:#adminRP/0/RSP1/CPU0:LHOTSE#show hw-module fpd location 0/1/CPU0===================================== ================================================

Existing Field Programmable Devices================================================HW Current SW Upg/

Location Card Type Version Type Subtype Inst Version Dng?============ ======================== ======= ==== ======= ==== =========== ==== =====--------------------------------------------------------------------------------------

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x29

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring CGv6 on Cisco IOS XR Software

Page 44: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

0/1/CPU0 A9K-ISM-100 1.0 lc fpga1 0 0.29 No1.0 lc cbc 0 18.04 Yes

1.0 lc cpld1 0 0.01 No1.0 lc fpga7 0 0.17 No1.0 lc cpld3 0 0.16 No1.0 lc fpga2 0 0.01 Yes

--------------------------------------------------------------------------------------

If one or more FPD needs an upgrade (can be identified from the Upg/Dng column in the output) then this can beaccomplished using the following steps.

Step 3 Upgrade the identified FPGAs using the relevant commands:upgrade hw-module fpd fpga1 location <>upgrade hw-module fpd cbc location <>upgrade hw-module fpd cpld1 location <>upgrade hw-module fpd fpga7 location <>upgrade hw-module fpd cpld3 location <>upgrade hw-module fpd fpga2 location <>

To upgrade all FPGA using a single command, type:upgrade hw-module fpd all location <>

Step 4 If one or more FPGAs were upgraded, reload the ISM card after all the upgrade operation completes successfully.hw-module location <> reload

Step 5 After the ISM card comes up, check for the FPGA version. This can be done using the following command from theadmin mode.show hw-module fpd location <>

Accessing CPU consoles on ISM CardThis output shows ISM card in slot1:RP/0/RSP0/CPU0 #show platform0/RSP0/CPU0 A9K-RSP-4G(Active) IOS XR RUN PWR,NSHUT,MON0/1/CPU0 A9K-ISM-100(LCP) IOS XR RUN PWR,NSHUT,MON0/1/CPU1 A9K-ISM-100(SE) SEOS-READY

To access LC CPU console:RP/0/RSP0/CPU0#run attach 0/1/CPU0#

To return to RSP console:#exit

To access X86 CPU console:RP/0/RSP0/CPU0:CRANE#run attachCon 0/0/cpu1 115200attachCon: Starting console session to node 0/0/cpu1attachCon: To quit console session type 'detach'Current Baud 115200Setting Baud to 115200

localhost.localdomain login: rootPassword: rootroot[root@localhost ~]#

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x30

Carrier Grade IPv6 over Integrated Services Module (ISM)Accessing CPU consoles on ISM Card

Page 45: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

To return to RSP console:[root@localhost]# detach

Installing CGv6 Application on ISM Running for Cisco IOS XR Software Release 4.2.0If the card is in CDS-IS mode, then it must be converted to CDS-TV before installing CGv6. For installationinstructions, see the Cisco ASR 9000 Series Aggregation Services Router ISM Line Card Installation Guide.

With kernel.rpm, the "kernel.rpm" or "kernel-4.2.0.rpm" file is referred and with "ism_infra.tgz", the"ism_infra.tgz" or "ism_infra-4.2.0.tgz" file is referred.

Note

SUMMARY STEPS

1. Manually remove the non-CGv6 (CDS TV) configuration.2. Install the Cisco IOS XR Software Release 4.2.0 image on the ASR 9000 router.3. To handle version incompatibility between APIs of Cisco IOS XR and Linux software, run these

commands as soon as the ISM LCP is in IOS XR RUN state.4. Extract the ism_infra.tgz and kernel.rpm image from the tar file (available in the Download Software

page in Cisco.com) and copy the content to the disk on the RSP console.5. Copy kernel.rpm and ism_infra.tgz to X86 location.6. Install the images on X86:7. Run the following Cisco IOS XR Software Release 4.2.0 commands in admin mode, on RSP to install

the Services PIE:8. Run the following Cisco IOS XR Software Release 4.2.0 commands on the RSP to set the service role

as cgn.9. Revert the changes made in Step 310. Reload the ISM line card.11. Wait for the card to return to SEOS-READY and proceed with ServiceInfra interface configuration.

DETAILED STEPS

Step 1 Manually remove the non-CGv6 (CDS TV) configuration.Step 2 Install the Cisco IOS XR Software Release 4.2.0 image on the ASR 9000 router.Step 3 To handle version incompatibility between APIs of Cisco IOS XR and Linux software, run these commands as soon

as the ISM LCP is in IOS XR RUN state.RP/0/RSP0/CPU0#proc mandatory OFF fib_mgr location <ism_node_location>RP/0/RSP0/CPU0#proc SHUTDOWN fib_mgr location <ism_node_location>RP/0/RP0/CPU0:#adminRP/0/RSP0/CPU0(admin)#debug sim reload-disable location<ism_node_location>

Any delay may result in card reload due to API mismatch.Caution

Step 4 Extract the ism_infra.tgz and kernel.rpm image from the tar file (available in the Download Software page in Cisco.com)and copy the content to the disk on the RSP console.RP/0/RSP0/CPU0#copy tftp://<tftp_addr><image_location>/ism_infra.tgz disk0:/RP/0/RSP0/CPU0#copy tftp://<tftp_addr><image_location>/kernel.rpm disk0:/

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x31

Carrier Grade IPv6 over Integrated Services Module (ISM)Installing CGv6 Application on ISM Running for Cisco IOS XR Software Release 4.2.0

Page 46: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Step 5 Copy kernel.rpm and ism_infra.tgz to X86 location.

1. Log into X86 CPU console and start the se_mbox_server process:[root@localhost]# se_mbox_server -d

2. Log into ISM LC CPU and upload the images to X86:#avsm_se_upload /disk0:/kernel.rpm#avsm_se_upload /disk0:/ism_infra.tgz

3. After successful upload, the images should be available under /tmp directory in the X86 CPU.

Step 6 Install the images on X86:[root@localhost /] cd /tmp[root@localhost tmp]# rpm -i --force kernel.rpm[root@localhost tmp]# avsm_install ism_infra.tgz

Step 7 Run the following Cisco IOS XR Software Release 4.2.0 commands in admin mode, on RSP to install the ServicesPIE:RP/0/RSP0/CPU0#admin(admin)#install add tftp://<tftp_addr>/<image_location>/asr9k-services-p.pie synchronous activate. . . . . . . . . . .(admin)#exit

Step 8 Run the following Cisco IOS XR Software Release 4.2.0 commands on the RSP to set the service role as cgn.RP/0/RSP0/CPU0#config(config)#hw-module service cgn location <ism_node_location>(config)#commit(config)#exit

Step 9 Revert the changes made in Step 3RP/0/RSP0/CPU0#proc mandatory ON fib_mgr location <ism_node_location>RP/0/RSP0/CPU0#proc START fib_mgr location <ism_node_location>RP/0/RP0/CPU0:#adminRP/0/RSP0/CPU0:(admin)#no debug sim reload-disable location <ism_node_location>

Step 10 Reload the ISM line card.RP/0/RSP0/CPU0#hw-module location <ism_node_location> reload

Step 11 Wait for the card to return to SEOS-READY and proceed with ServiceInfra interface configuration.

Installing CGv6 Application on ISM for Cisco IOS XR Software Release 4.2.1 and laterThe CGv6 application can be installed on an ISM line card directly without changing fromCDS-IS to CDS-TVand then CGv6.

SUMMARY STEPS

1. Manually remove the non-CGv6 configuration, if any.2. Install the Cisco IOS XR Software image (asr9k-mini-p/px.vm/pie) for the specific release on the router.3. To handle version incompatibility between APIs of Cisco IOS XR and Linux software, run the following

commands in admin mode. Enter into maintenance mode by using the following command.4. To install the Services PIE on RSP, run the commands in admin mode:

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x32

Carrier Grade IPv6 over Integrated Services Module (ISM)Installing CGv6 Application on ISM for Cisco IOS XR Software Release 4.2.1 and later

Page 47: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

5. To set the service role as cgn on RSP, run the following commands.6. To install Linux Install-Kit from RSP, run the commands in admin mode.7. Wait for around 12-14minutes for the card to come at SEOS-READY. Proceed with ServiceInfra interface

configuration.

DETAILED STEPS

Step 1 Manually remove the non-CGv6 configuration, if any.Step 2 Install the Cisco IOS XR Software image (asr9k-mini-p/px.vm/pie) for the specific release on the router.Step 3 To handle version incompatibility between APIs of Cisco IOS XR and Linux software, run the following commands in

admin mode. Enter into maintenance mode by using the following command.RP/0/RP0/CPU0:# adminRP/0/RSP0/CPU0(admin)# debug sim reload-disable location<ism_node_location>

The card must be in the following state:RP/0/RSP0/CPU0# show platform

Node Type State Config State___________________________________________________________________________0/5/CPU0 A9K-ISM-100(LCP) IOS XR RUN PWR,NSHUT,MON0/5/CPU1 A9K-ISM-100(SE) RECOVERY MODE

Sometimes, the card goes into IN-RESET state due to multiple resets or if you miss to execute the step for a long time.

Reload the card using the following command to get out of the state:RP/0/RSP0/CPU0(admin)# hw-module location <ism_node_location> reload

The command must be executed in admin mode.Note

Step 4 To install the Services PIE on RSP, run the commands in admin mode:RP/0/RSP0/CPU0#admin(admin)#install add tftp://<tftp_addr>/<image_location>/asr9k-services-p.pie synchronous activate. . . . . . . . . . .(admin)#exit

Step 5 To set the service role as cgn on RSP, run the following commands.RP/0/RSP0/CPU0#config(config)#hw-module service cgn location <ism_node_location>(config)#commit(config)#exit

Step 6 To install Linux Install-Kit from RSP, run the commands in admin mode.RP/0/RSP0/CPU0#adminRP/0/RSP0/CPU0(admin)# download install-image <install_kit_name_and_location> from<rsp_where_kit_present> to <ism_node_location>

You can download the Install-Kit from the File Exchage Serverhttps://upload.cisco.com/cgi-bin/swc/fileexg/main.cgi?CONTYPES=IOS-XR

Note

Step 7 Wait for around 12-14 minutes for the card to come at SEOS-READY. Proceed with ServiceInfra interface configuration.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x33

Carrier Grade IPv6 over Integrated Services Module (ISM)Installing CGv6 Application on ISM for Cisco IOS XR Software Release 4.2.1 and later

Page 48: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Configuring the Service Role for the Carrier Grade IPv6Perform this task to configure the service role on the specified location to start the CGv6 service.

Removal of service role is strictly not recommended while the card is active. This puts the card into FAILEDstate, which is service impacting.

Note

SUMMARY STEPS

1. configure2. hw-module service cgn location node-id3. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures a CGv6 service role (cgn) on location 0/1/CPU0.hw-module service cgn location node-id

Example:

Step 2

RP/0/RP0/CPU0:router(config)# hw-module servicecgn location 0/1/CPU0

Saves configuration changes.endor commitStep 3

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config)# end

orRP/0/RP0/CPU0:router(config)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x34

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Service Role for the Carrier Grade IPv6

Page 49: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Configuring the Service Instance and Location for the Carrier Grade NATPerform this task to configure the service instance and location for the CGN application.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-location preferred-active node-id [preferred-standby node-id]4. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the active and standby locations for the CGNapplication.

service-location preferred-active node-id[preferred-standby node-id]

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-locationpreferred-active 0/1/CPU0 preferred-standby0/4/CPU0

Saves configuration changes.end or commit

Example:

Step 4

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn)# end

orRP/0/RP0/CPU0:router(config-cgn)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x35

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Service Instance and Location for the Carrier Grade NAT

Page 50: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Infrastructure Service Virtual Interface for the Carrier GradeIPv6

Perform this task to configure the infrastructure service virtual interface (SVI) to forward the control traffic.

Access lists are not supported on service virtual interfaces.Note

The subnet mask length must be at least 30 (denoted as /30).

Do not remove or modify service infra interface configurationwhen the card is in Active state. The configurationis service affecting and the line card must be reloaded for the changes to take effect.

Note

SUMMARY STEPS

1. configure2. interface ServiceInfra value3. service-location node-id4. ipv4 address address/mask5. endor commit6. reload

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the infrastructure service virtual interface (SVI)as 1 and enters CGv6 configuration mode.

interface ServiceInfra value

Example:

Step 2

Only one service infrastructure SVI can beconfigured for a CGv6 instance.

NoteRP/0/RP0/CPU0:router(config)# interfaceServiceInfra 1RP/0/RP0/CPU0:router(config-if)#

Configures the location of the CGv6 service for theinfrastructure SVI.

service-location node-id

Example:

Step 3

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x36

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Infrastructure Service Virtual Interface for the Carrier Grade IPv6

Page 51: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router(config-if)# service-location0/1/CPU0

Sets the primary IPv4 address for an interface.ipv4 address address/mask

Example:

Step 4

RP/0/RP0/CPU0:router(config-if)# ipv4 address1.1.1.1/30

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-if)# end

orRP/0/RP0/CPU0:router(config-if)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Once the configuration is complete, the card must bereloaded for changes to take effect.

reload

Example:

Step 6

WARNING: This will take the requested node out ofservice.Do you wish to continue?[confirm(y/n)] y

RP/0/RP0/CPU0:Router#hw-mod location 0/3/cpu0reload

Configuring Different CGv6 Applications on ISMThese CGv6 applications are configured on ISM.

Configuring NAT44 on ISMPerform these tasks to configure NAT44 on ISM.

Configuring the Application Service Virtual Interface (NAT44)

Perform this task to configure the application service virtual interface (SVI) to forward data traffic.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x37

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring Different CGv6 Applications on ISM

Page 52: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

SUMMARY STEPS

1. configure2. interface ServiceApp value3. service cgn instance-name service-type nat444. vrf vrf-name5. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the application SVI as 1 and enters interfaceconfiguration mode.

interface ServiceApp value

Example:

Step 2

RP/0/RP0/CPU0:router(config)# interface ServiceApp1RP/0/RP0/CPU0:router(config-if)#

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name service-type nat44

Example:

Step 3

RP/0/RP0/CPU0:router(config-if)# service cgn cgn1

Configures the VPN routing and forwarding (VRF) for theService Application interface

vrf vrf-name

Example:

Step 4

RP/0/RP0/CPU0:router(config-if)# vrf insidevrf1

Saves configuration changes.end or commit

Example:

Step 5

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-if)# end

orRP/0/RP0/CPU0:router(config-if)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x38

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Application Service Virtual Interface (NAT44)

Page 53: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring a NAT44 Instance

Perform this task to configure a NAT44 instance.

The system does not support deleting VRF on live traffic in the following scenarios:

• If you are in the global configuration mode.

• If you are within the CGN instance.

• If you are in the static route table.

Note

SUMMARY STEPS

1. configure2. service cgn nat44instance-name3. service-location preferred-active VSM location4. service-type nat44 nat15. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6 NAT44application and enters CGv6 configuration mode.

service cgn nat44instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the NAT preferred active VSM location.service-location preferred-active VSM location

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-locationpreferred-active 0/3/CPU0

Configures the service type keyword definition for CGv6NAT44 application.

service-type nat44 nat1

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x39

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring a NAT44 Instance

Page 54: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Saves configuration changes.end or commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn)# end

orRP/0/RP0/CPU0:router(config-cgn)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring an Inside and Outside Address Pool Map (NAT44)

Perform this task to configure an inside and outside address pool map with the following scenarios:

• The designated address pool is used for CNAT.

• One inside VRF is mapped to only one outside VRF.

• Multiple non-overlapping address pools can be used in a specified outside VRF mapped to differentinside VRF.

• Max Outside public pool per CGSE/CGN instance is 64 K or 65536 addresses. That is, if a /16 addresspool is mapped, then we cannot map any other pool to that particular CGSE.

• Multiple inside vrf cannot be mapped to same outside address pool.

• While Mapping Outside Pool Minimum value for prefix is 16 and maximum value is 26.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat44 nat14. inside-vrf vrf-name5. map [outside-vrf outside-vrf-name] address-pool address/prefix6. end or commit

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x40

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring an Inside and Outside Address Pool Map (NAT44)

Page 55: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGNNAT44 application.

service-type nat44 nat1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Configures an inside VRF named insidevrf1 and entersCGN inside VRF configuration mode.

inside-vrf vrf-name

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-nat44)# inside-vrfinsidevrf1RP/0/RP0/CPU0:router(config-cgn-invrf)#

Configures an inside VRF to an outside VRF and addresspool mapping.

map [outside-vrf outside-vrf-name] address-pooladdress/prefix

Example:

Step 5

RP/0/RP0/CPU0:router(config-cgn-invrf)# mapoutside-vrf outside vrf1 address-pool 10.10.0.0/16orRP/0/RP0/CPU0:router(config-cgn-invrf)# mapaddress-pool 100.1.0.0/16

Saves configuration changes.end or commit

Example:

Step 6

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-invrf-afi)# end

orRP/0/RP0/CPU0:router(config-cgn-invrf-afi)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x41

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring an Inside and Outside Address Pool Map (NAT44)

Page 56: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Policy Functions

Configuring Port Limit per Subscriber

Perform this task to restrict the number of ports used by an IPv6 address.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat64 stateful instance-name4. portlimit value5. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6Stateful NAT64 application.

service-type nat64 stateful instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat64 stateful nat64-instRP/0/RP0/CPU0:router(config-cgn-nat64-stateful)#

Configures a value to restrict the number of ports used byan IPv6 address.

portlimit value

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-nat64-stateful)#portlimit66RP/0/RP0/CPU0:router(config-cgn-nat64-stateful)

Saves configuration changes.end or commit

Example:

Step 5

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-nat64-stateful)#

end

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x42

Carrier Grade IPv6 over Integrated Services Module (ISM)Policy Functions

Page 57: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-nat64-stateful)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Timeout Value for ICMP, TCP and UDP Sessions

Perform this task to configure the timeout value for ICMP, TCP or UDP sessions for a Dual Stack Lite (DSLite) instance:

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite instance-name4. protocol tcp session {active | initial} timeout value or protocol {icmp | udp} timeout value5. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6DS-Lite application.

service-type ds-lite instance-name

Example:

Step 3

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x43

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Timeout Value for ICMP, TCP and UDP Sessions

Page 58: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite-instRP/0/RP0/CPU0:router(config-cgn-ds-lite)#

Configures the initial and active session timeout values forTCP.

protocol tcp session {active | initial} timeout value orprotocol {icmp | udp} timeout value

Step 4

Example: Configures the timeout value in seconds for ICMP andUDP.RP/0/RP0/CPU0:router(config-cgn-ds-lite)#protocoltcp session active timeout 90orprotocol icmp timeout 90RP/0/RP0/CPU0:router(config-cgn-ds-lite)

Saves configuration changes.end or commit

Example:

Step 5

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-ds-lite)# end

orRP/0/RP0/CPU0:router(config-cgn-ds-lite)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the FTP ALG for NAT44 Instance

Perform this task to configure the FTP ALG for the specified NAT44 instance.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat44 nat14. alg activeFTP5. end or commit

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x44

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the FTP ALG for NAT44 Instance

Page 59: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for NAT44application.

service-type nat44 nat1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Configures the FTP ALG on the NAT44 instance.alg activeFTP

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-nat44)# algactiveFTP

Saves configuration changes.end or commit

Example:

Step 5

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn)# end

orRP/0/RP0/CPU0:router(config-cgn)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the RTSP ALG for NAT44 Instance

Perform this task to configure the ALG for the rtsp for the specified NAT44 instance. RTSP packets areusually destined to port 554. But this is not always true because RTSP port value is configurable.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x45

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the RTSP ALG for NAT44 Instance

Page 60: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat44 nat14. alg rtsp [server-port] value5. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition forNAT44application.

service-type nat44 nat1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Configures the rtsp ALG on the NAT44 instance for serverport 5000. The range is from 1 to 65535. The default portis 554.

alg rtsp [server-port] value

Example:RP/0/RP0/CPU0:router(config-cgn-nat44)# alg rtspserver-port 5000

Step 4

The option of specifying a server port) iscurrently not supported. Even if you configuresome port, RTSP works only on the default port(554).

Caution

Saves configuration changes.end or commit

Example:

Step 5

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn)# end

orRP/0/RP0/CPU0:router(config-cgn)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x46

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the RTSP ALG for NAT44 Instance

Page 61: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the PPTP ALG for a NAT44 Instance

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat44 nat14. alg pptpAlg5. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for NAT44or DS-Lite application.

service-type nat44 nat1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Configures the pptp ALG on the CGN instance.alg pptpAlg

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-nat44)# alg pptpAlg

Saves configuration changes.end or commit

Example:

Step 5

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn)# end

orRP/0/RP0/CPU0:router(config-cgn)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x47

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the PPTP ALG for a NAT44 Instance

Page 62: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

TCP Maximum Segment Size Adjustment

When a host initiates a TCP session with a server, the host negotiates the IP segment size by using the maximumsegment size (MSS) option. The value of the MSS option is determined by the maximum transmission unit(MTU) that is configured on the host.

Static Port Forwarding

Static port forwarding helps in associating a private IP address and port with a statically allocated public IPand port. After you have configured static port forwarding, this association remains intact and does not getremoved due to timeouts until the CGSE is rebooted. In case of redundant CGSE cards, it remains intact untilboth of the CGSEs are reloaded together or the router is reloaded. There are remote chances that after a reboot,this association might change. This feature helps in cases where server applications running on the privatenetwork needs access from public internet.

NAT64 on VSM does not support static port forwarding.Note

Configuring Dynamic Port Range

Perform this task to configure a dynamic port range.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat64 stateful instance-name4. dynamic-port-range start port-number5. endor commit

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x48

Carrier Grade IPv6 over Integrated Services Module (ISM)TCP Maximum Segment Size Adjustment

Page 63: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6Stateful NAT64 application.

service-type nat64 stateful instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat64 stateful nat64-instRP/0/RP0/CPU0:router(config-cgn-nat64-stateful)

Configures the port range from 1 to 65535.dynamic-port-range start port-number

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-nat64-stateful)#dynamic-port-rangestart 66RP/0/RP0/CPU0:router(config-cgn-nat64-stateful)

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-nat64-stateful)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

orRP/0/RP0/CPU0:router(config-cgn-nat64-stateful)#commit

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

(Only NAT44) Configuring External Logging for the NAT Table Entries

Perform the following to configure external logging for NAT table entries.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x49

Carrier Grade IPv6 over Integrated Services Module (ISM)(Only NAT44) Configuring External Logging for the NAT Table Entries

Page 64: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Netflow Logging

Perform the following tasks to configure Netflow Logging for NAT table entries.

Configuring the Server Address and Port for Netflow Logging

Perform this task to configure the server address and port to log network address translation (NAT) tableentries for Netflow logging.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat44 nat14. inside-vrf vrf-name5. external-logging netflowv96. server7. address address port number8. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for NAT44application.

service-type nat44 nat1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Configures the inside VRF for the CGN instance namedcgn1 and enters CGN inside VRF configuration mode.

inside-vrf vrf-name

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn)# inside-vrfinsidevrf1RP/0/RP0/CPU0:router(config-cgn-invrf)#

Configures the external-logging facility for the CGNinstance named cgn1 and enters CGN inside VRF addressfamily external logging configuration mode.

external-logging netflowv9

Example:RP/0/RP0/CPU0:router(config-cgn-invrf)#external-logging netflowv9RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#

Step 5

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x50

Carrier Grade IPv6 over Integrated Services Module (ISM)Netflow Logging

Page 65: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the logging server information for the IPv4address and port for the server that is used for the

server

Example:

Step 6

netflowv9-based external-logging facility and enters CGNRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#server

inside VRF address family external logging serverconfiguration mode.RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

Configures the IPv4 address and port number 45 to logNetflow entries for the NAT table.

address address port number

Example:

Step 7

RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#address 2.3.4.5 port 45

Saves configuration changes.end or commit

Example:

Step 8

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Path Maximum Transmission Unit for Netflow Logging

Perform this task to configure the path maximum transmission unit (MTU) for the netflowv9-basedexternal-logging facility for the inside VRF.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat44 nat14. inside-vrf vrf-name5. external-logging netflowv96. server

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x51

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Path Maximum Transmission Unit for Netflow Logging

Page 66: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

7. path-mtu value8. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for NAT44application.

service-type nat44 nat1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Configures the inside VRF for the CGN instance namedcgn1 and enters CGN inside VRF configuration mode.

inside-vrf vrf-name

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn)# inside-vrfinsidevrf1RP/0/RP0/CPU0:router(config-cgn-invrf)#

Configures the external-logging facility for the CGNinstance named cgn1 and enters CGN inside VRF addressfamily external logging configuration mode.

external-logging netflowv9

Example:RP/0/RP0/CPU0:router(config-cgn-invrf)#external-logging netflowv9RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#

Step 5

Configures the logging server information for the IPv4address and port for the server that is used for the

server

Example:

Step 6

netflowv9-based external-logging facility and enters CGNRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#server

inside VRF address family external logging serverconfiguration mode.RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

Configures the path MTU with the value of 2900 for thenetflowv9-based external-logging facility.

path-mtu value

Example:

Step 7

RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#path-mtu 2900

Saves configuration changes.end or commit

Example:

Step 8

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

end

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x52

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Path Maximum Transmission Unit for Netflow Logging

Page 67: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Refresh Rate for Netflow Logging

Perform this task to configure the refresh rate at which the Netflow-v9 logging templates are refreshed orresent to the Netflow-v9 logging server.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat44 nat14. inside-vrf vrf-name5. external-logging netflowv96. server7. refresh-rate value8. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x53

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Refresh Rate for Netflow Logging

Page 68: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the service type keyword definition for NAT44application.

service-type nat44 nat1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Configures the inside VRF for the CGN instance namedcgn1 and enters CGN inside VRF configuration mode.

inside-vrf vrf-name

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn)# inside-vrfinsidevrf1RP/0/RP0/CPU0:router(config-cgn-invrf)#

Configures the external-logging facility for the CGNinstance named cgn1 and enters CGN inside VRF addressfamily external logging configuration mode.

external-logging netflowv9

Example:RP/0/RP0/CPU0:router(config-cgn-invrf)#external-logging netflowv9RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#

Step 5

Configures the logging server information for the IPv4address and port for the server that is used for the

server

Example:

Step 6

netflowv9-based external-logging facility and enters CGNRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#server

inside VRF address family external logging serverconfiguration mode.RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

Configures the refresh rate value of 50 to log Netflow-basedexternal logging information for an inside VRF.

refresh-rate value

Example:

Step 7

RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#refresh-rate 50

Saves configuration changes.end or commit

Example:

Step 8

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x54

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Refresh Rate for Netflow Logging

Page 69: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Timeout for Netflow Logging

Perform this task to configure the frequency in minutes at which the Netflow-V9 logging templates are to besent to the Netflow-v9 logging server.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat44 nat14. inside-vrf vrf-name5. external-logging netflowv96. server7. timeoutvalue8. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for NAT44application.

service-type nat44 nat1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Configures the inside VRF for the CGN instance namedcgn1 and enters CGN inside VRF configuration mode.

inside-vrf vrf-name

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn)# inside-vrfinsidevrf1RP/0/RP0/CPU0:router(config-cgn-invrf)#

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x55

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Timeout for Netflow Logging

Page 70: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the external-logging facility for the CGNinstance named cgn1 and enters CGN inside VRF addressfamily external logging configuration mode.

external-logging netflowv9

Example:RP/0/RP0/CPU0:router(config-cgn-invrf)#external-logging netflowv9RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#

Step 5

Configures the logging server information for the IPv4address and port for the server that is used for the

server

Example:

Step 6

netflowv9-based external-logging facility and enters CGNRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#server

inside VRF address family external logging serverconfiguration mode.RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

Configures the timeout value of 50 for Netflow logging ofNAT table entries for an inside VRF.

timeoutvalue

Example:

Step 7

RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#timeout 50

Saves configuration changes.end or commit

Example:

Step 8

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

(Only NAT44) Syslog Logging

Perform the following tasks to configure Syslog Logging for NAT table entries.

Configuring the Server Address and Port for Syslog Logging

Perform this task to configure the server address and port to log DS-Lite entries for Syslog logging.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x56

Carrier Grade IPv6 over Integrated Services Module (ISM)(Only NAT44) Syslog Logging

Page 71: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite instance_name4. external-logging syslog5. server6. addressaddressportnumber7. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for theDS-Lite application.

service-type ds-lite instance_name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1

Configures the external-logging facility for the CGv6instance named cgn1 and enters CGv6 external loggingconfiguration mode.

external-logging syslog

Example:RP/0/RP0/CPU0:router(config-cgn-ds-lite)#external-loggingsyslogRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

Step 4

Configures the logging server information for the IPv4address and port for the server that is used for the

server

Example:

Step 5

syslog-based external-logging facility and enters CGv6external logging server configuration mode.RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

serverRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#

Configures the IPv4 address and port number 45 to logNetflow entries.

addressaddressportnumber

Example:

Step 6

RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#address2.3.4.5 port 45

Saves configuration changes.end or commit

Example:

Step 7

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#end

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x57

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Server Address and Port for Syslog Logging

Page 72: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Host-Name for Syslog Logging

Perform this task to configure the host name to be filled in the Netflow header for the syslog logging.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat44 nat14. inside-vrf vrf-name5. external-logging syslog6. server7. host-namename8. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x58

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Host-Name for Syslog Logging

Page 73: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the service type keyword definition for CGv6NAT44 application.

service-type nat44 nat1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Configures the inside VRF for the CGv6 instance namedcgn1 and enters CGv6 inside VRF configuration mode.

inside-vrf vrf-name

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-nat44)# inside-vrfinsidevrf1RP/0/RP0/CPU0:router(config-cgn-invrf)#

Configures the external-logging facility for the CGv6instance named cgn1 and enters CGv6 inside VRF addressfamily external logging configuration mode.

external-logging syslog

Example:RP/0/RP0/CPU0:router(config-cgn-invrf)#external-logging syslogRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#

Step 5

Configures the logging server information for the IPv4address and port for the server that is used for the

server

Example:

Step 6

syslog-based external-logging facility and enters CGv6RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#server

inside VRF address family external logging serverconfiguration mode.RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

Configures the host name for the syslog-basedexternal-logging facility.

host-namename

Example:

Step 7

RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#host-name host1

Saves configuration changes.end or commit

Example:

Step 8

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x59

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Host-Name for Syslog Logging

Page 74: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Path Maximum Transmission Unit for Syslog Logging

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat44 nat14. inside-vrf vrf-name5. external-logging syslog6. server7. path-mtuvalue8. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6NAT44 application.

service-type nat44 nat1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Configures the inside VRF for the CGv6 instance namedcgn1 and enters CGv6 inside VRF configuration mode.

inside-vrf vrf-name

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-nat44)# inside-vrfinsidevrf1RP/0/RP0/CPU0:router(config-cgn-invrf)#

Configures the external-logging facility for the CGv6instance named cgn1 and enters CGv6 inside VRF addressfamily external logging configuration mode.

external-logging syslog

Example:RP/0/RP0/CPU0:router(config-cgn-invrf)#external-logging syslogRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#

Step 5

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x60

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Path Maximum Transmission Unit for Syslog Logging

Page 75: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the logging server information for the IPv4address and port for the server that is used for the

server

Example:

Step 6

syslog-based external-logging facility and enters CGv6RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#server

inside VRF address family external logging serverconfiguration mode.RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

Configures the path MTU with the value of 200 for thesyslog-based external-logging facility.

path-mtuvalue

Example:

Step 7

RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#path-mtu 200

Saves configuration changes.end or commit

Example:

Step 8

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Bulk Port Allocation

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat44 nat14. inside-vrf vrf-name5. bulk-port-alloc size number of ports6. end or commit

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x61

Carrier Grade IPv6 over Integrated Services Module (ISM)Bulk Port Allocation

Page 76: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6NAT44 application.

service-type nat44 nat1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Configures the inside VRF for the CGv6 instance namedcgn1 and enters CGv6 inside VRF configuration mode.

inside-vrf vrf-name

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-nat44)# inside-vrfinsidevrf1RP/0/RP0/CPU0:router(config-cgn-nat44-invrf)#

Allocate ports in bulk to reduce Netflow/Syslog datavolume.

bulk-port-alloc size number of ports

Example:

Step 5

RP/0/RP0/CPU0:router(config-cgn-nat44-invrf-)#bulk-port-alloc size 64RP/0/RP0/CPU0:router(config-cgn-nat44-invrf)

Saves configuration changes.end or commit

Example:

Step 6

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-nat44-invrf)# end

or Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

RP/0/RP0/CPU0:router(config-cgn-nat44-invrf)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x62

Carrier Grade IPv6 over Integrated Services Module (ISM)Bulk Port Allocation

Page 77: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Destination-Based Logging for NAT44

Perform these tasks to configure destination-based logging for NAT table entries.

Configuring the Session-Logging for Netflow Logging

Perform this task to configure session-logging if destination IP and Port information needs to logged in theNetflow records.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat44 nat14. inside-vrf vrf-name5. external-logging netflow6. server7. session-logging8. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6NAT44 application.

service-type nat44 nat1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Configures the inside VRF for the CGv6 instance namedcgn1 and enters CGv6 inside VRF configuration mode.

inside-vrf vrf-name

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-nat44)# inside-vrfinsidevrf1RP/0/RP0/CPU0:router(config-cgn-nat44-invrf)#

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x63

Carrier Grade IPv6 over Integrated Services Module (ISM)Destination-Based Logging for NAT44

Page 78: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the external-logging facility for the NAT44instance.

external-logging netflow

Example:

Step 5

RP/0/RP0/CPU0:router(config-cgn-invrf)#external-logging netflow version 9RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#

Configures the logging server information for the IPv4address and port for the server that is used for the netflow-v9based external-logging facility.

server

Example:RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#server

Step 6

RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

Configures the session logging for a NAT44 instance.session-logging

Example:

Step 7

RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#session-logging

Saves configuration changes.end or commit

Example:

Step 8

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Session-Logging for Syslog Logging

Perform this task to configure session-logging if destination IP and Port information needs to logged in theNetflow records.

SUMMARY STEPS

1. configure

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x64

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Session-Logging for Syslog Logging

Page 79: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

2. service cgn instance-name3. service-type nat44 nat14. inside-vrf vrf-name5. external-logging syslog6. server7. session-logging8. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6NAT44 application.

service-type nat44 nat1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Configures the inside VRF for the CGv6 instance namedcgn1 and enters CGv6 inside VRF configuration mode.

inside-vrf vrf-name

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-nat44)# inside-vrfinsidevrf1RP/0/RP0/CPU0:router(config-cgn-nat44-invrf)#

Configures the external-logging facility for the NAT44instance.

external-logging syslog

Example:

Step 5

RP/0/RP0/CPU0:router(config-cgn-invrf)#external-logging syslogRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#

Configures the logging server information for the IPv4address and port for the server that is used for the netflow-v9based external-logging facility.

server

Example:RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#server

Step 6

RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

Configures the session logging for a NAT44 instance.session-logging

Example:

Step 7

RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#session-logging

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x65

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Session-Logging for Syslog Logging

Page 80: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Saves configuration changes.end or commit

Example:

Step 8

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Example

Configuring DS-LitePerform these tasks to configure DS-Lite.

Configuring the Application Service Virtual Interface

Perform this task to configure the application service virtual interface (SVI) to forward data traffic.

SUMMARY STEPS

1. configure2. interface ServiceApp value3. service cgn instance-name service-type ds-lite4. vrf vrf-name5. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x66

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring DS-Lite

Page 81: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router# configure

Configures the application SVI as 1 and enters interfaceconfiguration mode.

interface ServiceApp value

Example:

Step 2

RP/0/RP0/CPU0:router(config)# interface ServiceApp1RP/0/RP0/CPU0:router(config-if)#

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name service-type ds-lite

Example:

Step 3

RP/0/RP0/CPU0:router(config-if)# service cgn cgn1service-type ds-lite

Configures the VPN routing and forwarding (VRF) for theService Application interface

vrf vrf-name

Example:

Step 4

RP/0/RP0/CPU0:router(config-if)# vrf insidevrf1

Saves configuration changes.end or commit

Example:

Step 5

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-if)# end

orRP/0/RP0/CPU0:router(config-if)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring Dual Stack Lite Instance

Perform this task to configure dual stack lite application.

SUMMARY STEPS

1. configure2. service cgn instance-name

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x67

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring Dual Stack Lite Instance

Page 82: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

3. service-location preferred-active node-id [preferred-standby node-id]4. service-type ds-lite instance5. portlimit value6. bulk-port-alloc size value7. map address-pool address8. aftr-tunnel-endpoint-address <address>9. address-family ipv410. interface ServiceApp4111. address-family ipv612. interface ServiceApp6113. protocol tcp14. session {initial | active} timeout seconds15. msssize16. external-logging netflow917. server18. address A.B.C.D port port-number19. external-logging syslog20. server21. address A.B.C.D port port-number22. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Specifies the global command applied per cgn instance. Itinitiates the particular instance of the cgn application onthe active and standby locations.

service-location preferred-active node-id[preferred-standby node-id]

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-locationpreferred-active 0/2/CPU0 preferred-standby0/4/CPU0

Configures the service type keyword definition for the DSLITE application.

service-type ds-lite instance

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite dsl1

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x68

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring Dual Stack Lite Instance

Page 83: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the service type keyword definition for the DSLITE application.

portlimit value

Example:

Step 5

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite dsl1

Enables bulk port allocation and sets bulk size that is usedto reduce logging data volume.

bulk-port-alloc size value

Example:

Step 6

RP/0/RP0/CPU0:router(config-cgn-ds-lite)#bulk-port-alloc size 128

Specifies the address pool for the DS LITE instance.map address-pool addressStep 7

Example: 52.52.52.0/24 is the IPv4 public address poolassigned to the DS Lite instance.

Note

RP/0/RP0/CPU0:router(config-cgn-ds-lite)# mapaddress-pool 52.52.52.0/24

Specifies the IPv6 address of the tunnel end point. TheIPv4 elements must address their IPV6 packets to thisaddress.

aftr-tunnel-endpoint-address <address>

Example:RP/0/RP0/CPU0:router(config-cgn-ds-lite)#aftr-tunnel-endpoint address 3001:DB8:EOE:E01::

Step 8

Enters the address family IPv4 configuration mode.address-family ipv4

Example:

Step 9

RP/0/RP0/CPU0:router(config-cgn-ds-lite)#address-family ipv4

Specifies the ServiceApp on which IPv4 traffic enters andleaves.

interface ServiceApp41

Example:

Step 10

RP/0/RP0/CPU0:router(config-cgn-ds-lite-afi)#interface ServiceApp41

Enters the address family IPv6 configuration mode.address-family ipv6

Example:

Step 11

RP/0/RP0/CPU0:router(config-cgn-ds-lite)#address-family ipv6

Specifies the ServiceApp on which IPv6 traffic enters andleaves.

interface ServiceApp61

Example:

Step 12

RP/0/RP0/CPU0:router(config-cgn-ds-lite-afi)#interface ServiceApp61

Configures the TCP protocol session.protocol tcp

Example:

Step 13

RP/0/RP0/CPU0:router(config-cgn-ds-lite-afi)#protocol tcp

This command configures the timeout value in secondsfor ICMP,TCP or UDP sessions for a service instance. For

session {initial | active} timeout seconds

Example:

Step 14

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x69

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring Dual Stack Lite Instance

Page 84: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

TCP and UDP, you can configure the initial and activesession timeout values. For ICMP, there are no such

RP/0/RP0/CPU0:router(config-cgn-proto)# sessioninitial timeout 90

options. This configuration is applicable to all the IPv4addresses that belong to a particular service instance. Thisexample configures the initial session timeout value as 90for the TCP session.

Configures the adjustment MSS value as 1100.msssize

Example:

Step 15

RP/0/RP0/CPU0:router(config-cgn-proto)# mss 1100

Configures the external-logging facility for the DS LITEinstance named dsl1 and enters the external loggingconfiguration mode.

external-logging netflow9

Example:RP/0/RP0/CPU0:router(config-cgn-ds-lite)#external-logging netflowv9

Step 16

Configures the logging server information for the IPv4address and port for the server that is used for the

server

Example:

Step 17

netflow-v9 based external-logging facility and entersexternal logging server configuration mode.RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

server

Configures the netflow server address and port number touse for netflow version 9 based external logging facilityfor DS LITE instance.

address A.B.C.D port port-number

Example:RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog-server)#address 90.1.1.1 port 99

Step 18

Configures the external-logging facility for the DS LITEtranslation entries that can be logged in syslog servers toanalyze and debug the information.

external-logging syslog

Example:RP/0/RP0/CPU0:router(config-cgn-ds-lite)#external-logging syslog

Step 19

Configures the logging server information for the IPv4address and port for the server that is used for the syslogbased external-logging facility.

server

Example:RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#server

Step 20

RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog-server)#

Configures the syslog server address and port number touse for syslog based external logging facility for DS LITEinstance.

address A.B.C.D port port-number

Example:RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog-server)#address 90.1.1.1 port 514

Step 21

Saves configuration changes.end or commit

Example:

Step 22

• When you issue the end command, the systemprompts you to commit changes:RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog-server)#

end

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x70

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring Dual Stack Lite Instance

Page 85: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog-server)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Policy Functions

Perform these tasks to configure the policy functions.

Configuring IPv6 Tunnel Endpoint Address

Perform this task to configure the IPv6 tunnel endpoint address:

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite instance name4. aftr-tunnel-endpoint-address X:X::X IPv6 address5. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x71

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Policy Functions

Page 86: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the service type keyword definition for CGv6DS-Lite application.

service-type ds-lite instance name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1

Configures an IPv6 tunnel endpoint address.aftr-tunnel-endpoint-address X:X::X IPv6 address

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-ds-lite)#aftr-tunnel-endpoint-address 10:2::10RP/0/RP0/CPU0:router(config-cgn-ds-lite)

Saves configuration changes.end or commit

Example:

Step 5

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-ds-lite)# end

orRP/0/RP0/CPU0:router(config-cgn-ds-lite)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Port Limit per Subscriber

Perform this task to configure the port limit per subscriber for the system that includes TCP, UDP, and ICMP.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite ds-lite14. portlimit value5. end or commit

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x72

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Port Limit per Subscriber

Page 87: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6DS-Lite application.

service-type ds-lite ds-lite1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1

Configures the port value that restricts the number oftranslations for the ds-lite instance.

portlimit value

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-ds-lite)# portlimit10

Saves configuration changes.end or commit

Example:

Step 5

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn)# end

orRP/0/RP0/CPU0:router(config-cgn)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Timeout Value for ICMP, TCP and UDP Sessions

Perform this task to configure the timeout value for ICMP, TCP or UDP sessions for a Dual Stack Lite (DSLite) instance:

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x73

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Timeout Value for ICMP, TCP and UDP Sessions

Page 88: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite instance-name4. protocol tcp session {active | initial} timeout value or protocol {icmp | udp} timeout value5. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6DS-Lite application.

service-type ds-lite instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite-instRP/0/RP0/CPU0:router(config-cgn-ds-lite)#

Configures the initial and active session timeout values forTCP.

protocol tcp session {active | initial} timeout value orprotocol {icmp | udp} timeout value

Step 4

Example: Configures the timeout value in seconds for ICMP andUDP.RP/0/RP0/CPU0:router(config-cgn-ds-lite)#protocoltcp session active timeout 90orprotocol icmp timeout 90RP/0/RP0/CPU0:router(config-cgn-ds-lite)

Saves configuration changes.end or commit

Example:

Step 5

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-ds-lite)# end

orRP/0/RP0/CPU0:router(config-cgn-ds-lite)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x74

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Timeout Value for ICMP, TCP and UDP Sessions

Page 89: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the FTP ALG for DS-Lite Instance

Perform this task to configure the FTP ALG for the specified DS-Lite instance.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite ds-lite14. alg ftp5. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for NAT44or DS-Lite application.

service-type ds-lite ds-lite1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1

Configures the FTP ALG on the DS-Lite instance.alg ftp

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-ds-lite)# alg ftp

Saves configuration changes.end or commit

Example:

Step 5

• When you issue the end command, the system promptsyou to commit changes:

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x75

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the FTP ALG for DS-Lite Instance

Page 90: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router(config-cgn)# endorRP/0/RP0/CPU0:router(config-cgn)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the RTSP ALG for DS-Lite Instance

Perform this task to configure the ALG for the rtsp for the specified DS-Lite instance. RTSP packets areusually destined to port 554. But this is not always true because RTSP port value is configurable.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite ds-lite14. alg rtsp [server-port] value5. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for DS-Liteapplication.

service-type ds-lite ds-lite1

Example:

Step 3

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x76

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the RTSP ALG for DS-Lite Instance

Page 91: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1

Configures the rtsp ALG on the DS-Lite instance for serverport 5000. The range is from 1 to 65535. The default portis 554.

alg rtsp [server-port] value

Example:RP/0/RP0/CPU0:router(config-cgn-nat44)# alg rtspserver-port 5000

Step 4

The option of specifying a server port) iscurrently not supported. Even if you configuresome port, RTSP works only on the default port(554).

Caution

Saves configuration changes.end or commit

Example:

Step 5

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn)# end

orRP/0/RP0/CPU0:router(config-cgn)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

TCP Maximum Segment Size Adjustment

When a host initiates a TCP session with a server, the host negotiates the IP segment size by using the maximumsegment size (MSS) option. The value of the MSS option is determined by the maximum transmission unit(MTU) that is configured on the host.

Configuring an Address Pool Map

Perform this task to configure an address pool map.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite instance-name

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x77

Carrier Grade IPv6 over Integrated Services Module (ISM)TCP Maximum Segment Size Adjustment

Page 92: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

4. map address-pool address/prefix5. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6DS-Lite application.

service-type ds-lite instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1

Configures an address pool mapping.map address-pool address/prefix

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-ds-lite)# mapaddress-pool 10.10.0.0/16orRP/0/RP0/CPU0:router(config-cgn-ds-lite)# mapaddress-pool 100.1.0.0/16

Saves configuration changes.end or commit

Example:

Step 5

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x78

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring an Address Pool Map

Page 93: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Configuring the Path Maximum Transmission Unit

Before you begin

DS-Lite

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite ds-lite14. path-mtu value5. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for DS-Liteapplication.

service-type ds-lite ds-lite1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1RP/0/RP0/CPU0:router(config-cgn-ds-lite)#

Configures the path MTU with the value of 2900 for theDS-Lite instance.

path-mtu value

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-ds-lite)# path-mtu2000RP/0/RP0/CPU0:router(config-cgn-ds-lite)

Saves configuration changes.end or commit

Example:

Step 5

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-ds-lite)# end

orRP/0/RP0/CPU0:router(config-cgn-ds-lite)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x79

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Path Maximum Transmission Unit

Page 94: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring External Logging for DS-Lite Entries

Perform the following to configure external logging for DS-Lite entries.

Netflow Logging

Perform the following tasks to configure Netflow Logging for NAT table entries.

Configuring the Server Address and Port for Syslog Logging

Perform this task to configure the server address and port to log DS-Lite entries for Syslog logging.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite instance_name4. external-logging syslog5. server6. addressaddressportnumber7. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for theDS-Lite application.

service-type ds-lite instance_name

Example:

Step 3

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x80

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring External Logging for DS-Lite Entries

Page 95: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1

Configures the external-logging facility for the CGv6instance named cgn1 and enters CGv6 external loggingconfiguration mode.

external-logging syslog

Example:RP/0/RP0/CPU0:router(config-cgn-ds-lite)#external-loggingsyslogRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

Step 4

Configures the logging server information for the IPv4address and port for the server that is used for the

server

Example:

Step 5

syslog-based external-logging facility and enters CGv6external logging server configuration mode.RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

serverRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#

Configures the IPv4 address and port number 45 to logNetflow entries.

addressaddressportnumber

Example:

Step 6

RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#address2.3.4.5 port 45

Saves configuration changes.end or commit

Example:

Step 7

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#end

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Path Maximum Transmission Unit

Before you begin

DS-Lite

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x81

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Path Maximum Transmission Unit

Page 96: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite ds-lite14. path-mtu value5. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for DS-Liteapplication.

service-type ds-lite ds-lite1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1RP/0/RP0/CPU0:router(config-cgn-ds-lite)#

Configures the path MTU with the value of 2900 for theDS-Lite instance.

path-mtu value

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-ds-lite)# path-mtu2000RP/0/RP0/CPU0:router(config-cgn-ds-lite)

Saves configuration changes.end or commit

Example:

Step 5

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-ds-lite)# end

orRP/0/RP0/CPU0:router(config-cgn-ds-lite)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x82

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Path Maximum Transmission Unit

Page 97: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Refresh Rate for Netflow Logging

Perform this task to configure the refresh rate at which the Netflow-v9 logging templates are refreshed orresent to the Netflow-v9 logging server.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite ds-lite14. external-logging netflowv95. server6. refresh-rate value7. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6DS-Lite application..

service-type ds-lite ds-lite1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1RP/0/RP0/CPU0:router(config-cgn-ds-lite)#

Configures the external-logging facility for the CGNinstance named cgn1 and enters CGN external loggingconfiguration mode.

external-logging netflowv9

Example:RP/0/RP0/CPU0:router(config-cgn-ds-lite)#external-logging netflow9

Step 4

RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

Configures the logging server information for the IPv4address and port for the server that is used for the

server

Example:

Step 5

netflow9-based external-logging facility and enters CGv6external logging server configuration mode..

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x83

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Refresh Rate for Netflow Logging

Page 98: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)# serverRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#

Configures the refresh rate value of 200 to logNetflow-based external logging information.

refresh-rate value

Example:

Step 6

RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#refresh-rate 200RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)

Saves configuration changes.end or commit

Example:

Step 7

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Timeout for Netflow Logging

Perform this task to configure the frequency in minutes at which the Netflow-V9 logging templates are to besent to the Netflow-v9 logging server.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite ds-lite14. external-logging netflowv95. server6. timeoutvalue7. end or commit

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x84

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Timeout for Netflow Logging

Page 99: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for DS-Liteapplication.

service-type ds-lite ds-lite1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1

Configures the external-logging facility for the CGv6instance named cgn1 and enters CGv6 external loggingconfiguration mode.

external-logging netflowv9

Example:RP/0/RP0/CPU0:router(config-cgn-ds-lite)#external-logging netflow9

Step 4

RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

Configures the logging server information for the IPv4address and port for the server that is used for the

server

Example:

Step 5

netflow9-based external-logging facility and enters CGv6external logging server configuration mode.RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

serverRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#

Configures the timeout value of 200 for Netflow loggingof the DS-Lite instance.

timeoutvalue

Example:

Step 6

RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#timeout 200RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)

Saves configuration changes.end or commit

Example:

Step 7

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x85

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Timeout for Netflow Logging

Page 100: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

(Only NAT44) Syslog Logging

Perform the following tasks to configure Syslog Logging for NAT table entries.

Configuring the Server Address and Port for Syslog Logging

Perform this task to configure the server address and port to log DS-Lite entries for Syslog logging.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite instance_name4. external-logging syslog5. server6. addressaddressportnumber7. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for theDS-Lite application.

service-type ds-lite instance_name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x86

Carrier Grade IPv6 over Integrated Services Module (ISM)(Only NAT44) Syslog Logging

Page 101: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the external-logging facility for the CGv6instance named cgn1 and enters CGv6 external loggingconfiguration mode.

external-logging syslog

Example:RP/0/RP0/CPU0:router(config-cgn-ds-lite)#external-loggingsyslogRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

Step 4

Configures the logging server information for the IPv4address and port for the server that is used for the

server

Example:

Step 5

syslog-based external-logging facility and enters CGv6external logging server configuration mode.RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

serverRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#

Configures the IPv4 address and port number 45 to logNetflow entries.

addressaddressportnumber

Example:

Step 6

RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#address2.3.4.5 port 45

Saves configuration changes.end or commit

Example:

Step 7

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#end

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Host-Name for Syslog Logging

Perform this task to configure the host name to be filled in the Netflow header for the syslog logging.

SUMMARY STEPS

1. configure2. service cgn instance-name

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x87

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Host-Name for Syslog Logging

Page 102: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

3. service-type ds-lite ds-lite14. external-logging syslog5. server6. host-namename7. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for theDS-Lite application.

service-type ds-lite ds-lite1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1

Configures the external-logging facility for the CGv6instance named cgn1 and enters CGv6 external loggingconfiguration mode.

external-logging syslog

Example:RP/0/RP0/CPU0:router(config-cgn-ds-lite)#external-loggingsyslogRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

Step 4

Configures the logging server information for the IPv4address and port for the server that is used for the

server

Example:

Step 5

syslog-based external-logging facility and enters CGv6external logging server configuration mode.RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

serverRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#

Configures the host name for the syslog-basedexternal-logging facility.

host-namename

Example:

Step 6

RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#host-namehost1

Saves configuration changes.end or commit

Example:

Step 7

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#end

orRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x88

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Host-Name for Syslog Logging

Page 103: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Path Maximum Transmission Unit for Syslog Logging

Perform this task to configure the pathmaximum transmission unit (MTU) for the syslog-based external-loggingfacility.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite instance_name4. external-logging syslog5. server6. path-mtuvalue7. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for theDS-Lite application.

service-type ds-lite instance_name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x89

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Path Maximum Transmission Unit for Syslog Logging

Page 104: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the external-logging facility for the CGv6instance named cgn1 and enters CGv6 external loggingconfiguration mode.

external-logging syslog

Example:RP/0/RP0/CPU0:router(config-cgn-ds-lite)#external-loggingsyslogRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

Step 4

Configures the logging server information for the IPv4address and port for the server that is used for the

server

Example:

Step 5

syslog-based external-logging facility and enters CGv6external logging server configuration mode.RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

serverRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#

Configures the path MTU with the value of 200 for thesyslog-based external-logging facility.

path-mtuvalue

Example:

Step 6

RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#path-mtu200

Saves configuration changes.end or commit

Example:

Step 7

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#end

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Bulk Port Allocation

Perform this task to configure bulk port allocation to reduce Netflow or Syslog data volume.

SUMMARY STEPS

1. configure2. service cgn instance-name

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x90

Carrier Grade IPv6 over Integrated Services Module (ISM)Bulk Port Allocation

Page 105: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

3. service-type ds-lite instance_name4. bulk-port-alloc size number of ports5. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for theDS-Lite application.

service-type ds-lite instance_name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1

Allocate ports in bulk to reduce Netflow/Syslog datavolume.

bulk-port-alloc size number of ports

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-ds-lite)#bulk-port-allocsize 64RP/0/RP0/CPU0:router(config-cgn-ds-lite)

Saves configuration changes.end or commit

Example:

Step 5

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-ds-lite)# end

orRP/0/RP0/CPU0:router(config-cgn-ds-lite)#commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x91

Carrier Grade IPv6 over Integrated Services Module (ISM)Bulk Port Allocation

Page 106: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Destination-Based Logging for DS-Lite

Perform these tasks to configure destination-based logging for DS-Lite entries.

Configuring the Session-Logging for Netflow Logging

Perform this task to configure session-logging if destination IP and Port information needs to logged in theNetflow records.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite instance_name4. external-logging netflow95. server6. session-logging7. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for theDS-Lite application.

service-type ds-lite instance_name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1

Configures the external-logging facility for the DS-Liteinstance.

external-logging netflow9

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn)#external-loggingnetflow9RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

Configures the logging server information for the IPv4address and port for the server that is used for the netflow-v9based external-logging facility.

server

Example:RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#serverRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#

Step 5

Configures the session logging for a DS-Lite instance.session-logging

Example:

Step 6

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x92

Carrier Grade IPv6 over Integrated Services Module (ISM)Destination-Based Logging for DS-Lite

Page 107: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#session-logging

Saves configuration changes.end or commit

Example:

Step 7

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#end

orRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Session-Logging for Syslog Logging

Perform this task to configure session-logging if destination IP and Port information needs to logged in theNetflow records.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite instance_name4. external-logging syslog5. server6. session-logging7. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x93

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Session-Logging for Syslog Logging

Page 108: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for theDS-Lite application.

service-type ds-lite instance_name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1

Configures the external-logging facility for the DS-Liteinstance.

external-logging syslog

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-ds-lite)#external-loggingsyslogRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

Configures the logging server information for the IPv4address and port for the server that is used for the netflow-v9based external-logging facility.

server

Example:RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#serverRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#

Step 5

Configures the session logging for a DS-Lite instance.session-logging

Example:

Step 6

RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#session-logging

Saves configuration changes.end or commit

Example:

Step 7

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#end

orRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x94

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Session-Logging for Syslog Logging

Page 109: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Example

Configuring Stateful NAT64 on ISMPerform these tasks to configure Stateful NAT64 on ISM.

Configuring the Application Service Virtual Interface

This section lists the guidelines for selecting service application interfaces for 6RD

• Pair ServiceApp<n> with ServiceApp<n+1>, where <n> is an odd integer. This is to ensure that theServiceApp pairs works with a maximum throughput. For example, ServiceApp1 with ServiceApp2 orServiceApp3 with ServiceApp4.

• Pair ServiceApp<n> with ServiceApp<n+5> or ServiceApp<n+9>, and so on, where <n> is an oddinteger. For example, ServiceApp1 with ServiceApp6, ServiceApp1 with ServiceApp10, ServiceApp3with ServiceApp8, or ServiceApp3 with ServiceApp12.

• Pair ServiceApp<n>with ServiceApp<n+4>, where <n> is an integer (odd or even integer). For example,ServiceApp1 with ServiceApp5, or ServiceApp2 with ServiceApp6.

Although ServiceApp pairs work, the aggregate throughput for Inside-to-Outside and Outside-to-Inside trafficfor the ServiceApp pair is halved.

Warning

Do not pair ServiceApp<n> with ServiceApp<n+1>, where <n> is an even integer. When used,Outside-to-Inside traffic is dropped because traffic flows in the incorrect dispatcher and core.

Caution

Perform this task to configure the application service virtual interface (SVI) to forward data traffic.

SUMMARY STEPS

1. configure2. interface ServiceApp value3. service cgn instance-name4. service-type nat64 stateful instance-name5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the application SVI to 1, and enters interfaceconfiguration mode.

interface ServiceApp value

Example:

Step 2

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x95

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring Stateful NAT64 on ISM

Page 110: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router(config)# interface ServiceApp1RP/0/RP0/CPU0:router(config-if)#

Configures the instance named cgn1 for the CGv6application, and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-if)# service cgn cgn1

Configures the service-type as stateful NAT64.service-type nat64 stateful instance-name

Example:

Step 4

RP/0/RP0/CPU0:router(config-if)# service cgn cgn1service-type nat64 stateful nat1

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-if)# end

orRP/0/RP0/CPU0:router(config-cgn-if)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring a Stateful NAT64 Instance

Perform this task to configure a stateful NAT64 instance.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat64 stateful instance-name4. endor commit

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x96

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring a Stateful NAT64 Instance

Page 111: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6Stateful NAT64 application.

service-type nat64 stateful instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat64 stateful nat64-instRP/0/RP0/CPU0:router(config-cgn-nat64-stateful)

Saves configuration changes.endor commitStep 4

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-nat64-stateful)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

orRP/0/RP0/CPU0:router(config-cgn-nat64-stateful)#commit

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Policy Functions

Perform these tasks to configure the policy functions.

Configuring MAP-EPerform these tasks to configure MAP-E.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x97

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Policy Functions

Page 112: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Configuring the Application Service Virtual InterfaceThis section lists the guidelines for selecting service application interfaces for MAP-E.

• Pair ServiceApp<n> with ServiceApp<n+1>, where <n> is an odd integer. This is to ensure that theServiceApp pairs works with a maximum throughput. For example, ServiceApp1 with ServiceApp2 orServiceApp3 with ServiceApp4.

• Pair ServiceApp<n> with ServiceApp<n+5> or ServiceApp<n+9>, and so on, where <n> is an oddinteger. For example, ServiceApp1 with ServiceApp6, ServiceApp1 with ServiceApp10, ServiceApp3with ServiceApp8, or ServiceApp3 with ServiceApp12.

• Pair ServiceApp<n>with ServiceApp<n+4>, where <n> is an integer (odd or even integer). For example,ServiceApp1 with ServiceApp5, or ServiceApp2 with ServiceApp6.

Although ServiceApp pairs work, the aggregate throughput for Inside-to-Outside and Outside-to-Inside trafficfor the ServiceApp pair is halved.

Warning

Do not pair ServiceApp<n> with ServiceApp<n+1>, where <n> is an even integer. When used,Outside-to-Inside traffic is dropped because traffic flows in the incorrect dispatcher and core.

Caution

Perform this task to configure the application service virtual interface (SVI) to forward data traffic.

SUMMARY STEPS

1. configure2. interface ServiceApp value3. service cgn instance -name service-type map-e4. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the application SVI to 1, and enters interfaceconfiguration mode.

interface ServiceApp value

Example:

Step 2

RP/0/RP0/CPU0:router(config)# interface ServiceApp1

ipv4 address 40.40.40.1 255.255.255.0service cgn cgn1 service-type map-e!

RP/0/RP0/CPU0:router(config)# interface ServiceApp2ipv6 address 1001::101/32

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x98

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Application Service Virtual Interface

Page 113: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Actionservice cgn cgn1 service-type map-e!

Configures the application SVI to 1, and enters interfaceconfiguration mode.

service cgn instance -name service-type map-e

Example:

Step 3

RP/0/RP0/CPU0:router(config-if)# service cgn cgn1service-type map-e map1

Saves configuration changes.endor commitStep 4

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-map_e)# end

orRP/0/RP0/CPU0:router(config-cgn-map_e)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring a MAP-E InstancePerform this task to configure a MAP-E instance.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-e instance-name4. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x99

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring a MAP-E Instance

Page 114: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6MAP-E application.

service-type map-e instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-e m1RP/0/RP0/CPU0:router(config-cgn-map_e)#

Saves configuration changes.endor commitStep 4

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-map_e)# end

orRP/0/RP0/CPU0:router(config-cgn-map_e)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Policy FunctionsPerform these tasks to configure the policy functions.

Configuring Address FamilyPerform these tasks to configure address family.

Configuring IPv4 Address FamilyPerform these tasks configure IPv4 address family for a MAP-E instance.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x100

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Policy Functions

Page 115: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Configuring IPv4 Interface

Perform this task to configure an IPv4 interface for a MAP-E instance.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-e instance-name4. address-family ipv4 interface ServiceApp number5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application, and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config-if)# service cgn cgn1

Defines the service type keyword definition for the CGv6MAP-E application.

service-type map-e instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-e m1RP/0/RP0/CPU0:router(config-cgn-map_e)

Configures the IPv4 interface to divert IPv4 map-e traffic.address-family ipv4 interface ServiceApp number

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-map_e)#address-family ipv4 interface serviceApp 66RP/0/RP0/CPU0:router(config-cgn-map_e-afi)#

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-map_e-afi)# end

orRP/0/RP0/CPU0:router(config-cgn-map_e-afi)#commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x101

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring IPv4 Interface

Page 116: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring TCP Maximum Segment Size

Perform this task to configure the Maximum Segment Size (MSS) for TCP.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-e instance-name4. address-family ipv4 tcp mss value5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Defines the service type keyword definition for the CGv6MAP-E application.

service-type map-e instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-e m1RP/0/RP0/CPU0:router(config-cgn-map_e)#

Configures the MSS to be used, in bytes. The range is from28 to 1500.

address-family ipv4 tcp mss value

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-map_e)#address-family ipv4 tcp mss 300RP/0/RP0/CPU0:router(config-cgn-map_e-afi)#

Saves configuration changes.endor commitStep 5

Example:

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x102

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring TCP Maximum Segment Size

Page 117: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router(config-cgn-map_e-afi)# endorRP/0/RP0/CPU0:router(config-cgn-map_e-afi)# commit

• When you issue the end command, the system promptsyou to commit changes:Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring IPv6 Address FamilyPerform these tasks configure an IPv6 address family.

Configuring IPv6 Interface

Perform this task to configure an IPv6 interface.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-e instance-name4. address-family ipv6 interface ServiceApp number5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x103

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring IPv6 Address Family

Page 118: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Defines the service type keyword definition for the CGv6MAP-E application.

service-type map-e instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-e m1RP/0/RP0/CPU0:router(config-cgn-map_e)#

Configures the IPv6 interface to divert IPv6 map-e traffic.address-family ipv6 interface ServiceApp number

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-map_e)#address-family ipv6 interface serviceApp 66RP/0/RP0/CPU0:router(config-cgn-map_e-afi)#

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-map_e-afi)# end

orRP/0/RP0/CPU0:router(config-cgn-map_e-afi)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring TCP Maximum Segment Size

Perform this task to configure the Maximum Segment Size (MSS) to be used for TCP.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-e instance-name4. address-family ipv6 tcp mss number5. endor commit

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x104

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring TCP Maximum Segment Size

Page 119: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Defines the service type keyword definition for the CGv6MAP-E application.

service-type map-e instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-e m1RP/0/RP0/CPU0:router(config-cgn-map_e)#

Configures the MSS to be used, in bytes. The range is from28 to 1500.

address-family ipv6 tcp mss number

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-map_e)#address-family ipv6 tcp mss 300RP/0/RP0/CPU0:router(config-cgn-map_e-afi)#

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-map_e-afi)# end

orRP/0/RP0/CPU0:router(config-cgn-map_e-afi)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x105

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring TCP Maximum Segment Size

Page 120: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Configuring AFTR Endpoint AddressPerform this task to configure the Address Family Transition Router (AFTR) endpoint address.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-e instance-name4. aftr-endpoint-address IPv6 address5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Defines the service type keyword definition for the CGv6MAP-E application.

service-type map-e instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-e m1RP/0/RP0/CPU0:router(config-cgn-map_e)#

Configures the AFTR endpoint address.aftr-endpoint-address IPv6 address

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-map_e)# aftr-endpoint-address 2001:db8::32RP/0/RP0/CPU0:router(config-cgn-map_e)#

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-map_e)# end

orRP/0/RP0/CPU0:router(config-cgn-map_e)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x106

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring AFTR Endpoint Address

Page 121: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring Contiguous PortsPerform this task to configure the number of contiguous ports for a MAP-E instance

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-e instance-name4. contiguous-ports number5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Defines the service type keyword definition for the CGv6MAP-E application.

service-type map-e instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-e m1RP/0/RP0/CPU0:router(config-cgn-map_e)#

Configures the number of contiguous ports. The range isfrom 1 to 65536.

contiguous-ports number

Example:

Step 4

The value is expressed in powers of 2.Note

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x107

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring Contiguous Ports

Page 122: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router(config-cgn-map_e)#contiguous-ports 16RP/0/RP0/CPU0:router(config-cgn-map_e)#

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-map_e)# end

orRP/0/RP0/CPU0:router(config-cgn-map_e)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring CPE Domain ParametersPerform this task to configure Customer Premise Equipment (CPE) domain parameters.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-e instance-name4. cpe-domain ipv4 prefix ipv4 address/prefix or cpe-domain ipv6 prefix ipv6 address/prefix5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x108

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring CPE Domain Parameters

Page 123: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Defines the service type keyword definition for the CGv6MAP-E application.

service-type map-e instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-e m1RP/0/RP0/CPU0:router(config-cgn-map_e)#

Configures the IPv4 or IPv6 prefixes of the CPE domain.cpe-domain ipv4 prefix ipv4 address/prefix orcpe-domain ipv6 prefix ipv6 address/prefix

Step 4

Example:RP/0/RP0/CPU0:router(config-cgn-map_e)# cpe-domainipv4 prefix 10.2.2.24/2RP/0/RP0/CPU0:router(config-cgn-map_e)#orRP/0/RP0/CPU0:router(config-cgn-map_e)# cpe-domainipv6 prefix 2001:da8:a464::/48RP/0/RP0/CPU0:router(config-cgn-map_e)#

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-map_e)# end

orRP/0/RP0/CPU0:router(config-cgn-map_e)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring Path MTU of the TunnelPerform this task to configure the path Maximum Transmission Unit (MTU) of the tunnel.

SUMMARY STEPS

1. configure

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x109

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring Path MTU of the Tunnel

Page 124: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

2. service cgn instance-name3. service-type map-e instance-name4. path-mtu value5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Defines the service type keyword definition for the CGv6MAP-E application.

service-type map-e instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-e m1RP/0/RP0/CPU0:router(config-cgn-map_e)#

Configures the path MTU of the tunnel. The range is from1280 to 9216.

path-mtu value

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-map_e)# path-mtu1300RP/0/RP0/CPU0:router(config-cgn-map_e)#

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-map_e)# end

orRP/0/RP0/CPU0:router(config-cgn-map_e)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x110

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring Path MTU of the Tunnel

Page 125: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring Port Sharing RatioPerform this task to configure the sharing ratio of the port.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-e instance-name4. sharing-ratio number5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Defines the service type keyword definition for the CGv6MAP-E application.

service-type map-e instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-e m1RP/0/RP0/CPU0:router(config-cgn-map_e)#

Configures the port sharing ratio. The range is from 1 to32768.

sharing-ratio number

Example:

Step 4

The value is expressed in powers of 2.NoteRP/0/RP0/CPU0:router(config-cgn-map_e)#sharing-ratio 64RP/0/RP0/CPU0:router(config-cgn-map_e)#

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-map_e)# end

orRP/0/RP0/CPU0:router(config-cgn-map_e)# commit

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x111

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring Port Sharing Ratio

Page 126: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionUncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring MAP-TPerform these tasks to configure MAP-T.

MAP-T is supported only on Cisco ASR 9000 Series 400G and 200G Modular Line Cards and Cisco ASR9000 Series 4-Port and 8-Port 100 Gigabit Ethernet Line Cards.

Note

Configuring the Application Service Virtual InterfaceThis section lists the guidelines for selecting service application interfaces for MAP-T.

• Pair ServiceApp<n> with ServiceApp<n+1>, where <n> is an odd integer. This is to ensure that theServiceApp pairs works with a maximum throughput. For example, ServiceApp1 with ServiceApp2 orServiceApp3 with ServiceApp4.

• Pair ServiceApp<n> with ServiceApp<n+5> or ServiceApp<n+9>, and so on, where <n> is an oddinteger. For example, ServiceApp1 with ServiceApp6, ServiceApp1 with ServiceApp10, ServiceApp3with ServiceApp8, or ServiceApp3 with ServiceApp12.

• Pair ServiceApp<n>with ServiceApp<n+4>, where <n> is an integer (odd or even integer). For example,ServiceApp1 with ServiceApp5, or ServiceApp2 with ServiceApp6.

Although ServiceApp pairs work, the aggregate throughput for Inside-to-Outside and Outside-to-Inside trafficfor the ServiceApp pair is halved.

Warning

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x112

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring MAP-T

Page 127: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Do not pair ServiceApp<n> with ServiceApp<n+1>, where <n> is an even integer. When used,Outside-to-Inside traffic is dropped because traffic flows in the incorrect dispatcher and core.

Caution

Perform this task to configure the application service virtual interface (SVI) to forward data traffic.

SUMMARY STEPS

1. configure2. interface ServiceApp value3. service cgn instance-name service-type map-t4. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the application SVI to 1, and enters interfaceconfiguration mode.

interface ServiceApp value

Example:

Step 2

RP/0/RP0/CPU0:router(config)# interface ServiceApp1RP/0/RP0/CPU0:router(config-if)#

Configures the application SVI to 1, and enters interfaceconfiguration mode.

service cgn instance-name service-type map-t

Example:

Step 3

RP/0/RP0/CPU0:router(config-if)# service cgn cgn1service-type map-t map1

Saves configuration changes.endor commitStep 4

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-if)# end

orRP/0/RP0/CPU0:router(config-if)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x113

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Application Service Virtual Interface

Page 128: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring a MAP-T InstancePerform this task to configure a MAP-T instance.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-t instance-name4. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6MAP-T application

service-type map-t instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-t map-t-instRP/0/RP0/CPU0:router(config-cgn-mapt)#

Saves configuration changes.end or commit

Example:

Step 4

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-mapt)# end

orRP/0/RP0/CPU0:router(config-cgn-mapt)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x114

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring a MAP-T Instance

Page 129: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Policy FunctionsPerform these tasks to configure the policy functions.

Configuring Address FamilyPerform these tasks to configure address family.

Configuring IPv4 Address FamilyPerform these tasks configure IPv4 address family for a MAP-T instance.

Configuring an IPv4 Interface

Perform this task to configure an IPv4 interface for a MAP-T instance.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-t instance-name4. address-family ipv4 interface ServiceApp number5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x115

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Policy Functions

Page 130: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6MAP-T application.

service-type map-t instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-t map-t-instRP/0/RP0/CPU0:router(config-cgn-mapt)#

Configures the IPv4 interface to divert IPv4MAP-T traffic.address-family ipv4 interface ServiceApp number

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-mapt)#address-familyipv4 interface serviceApp 66RP/0/RP0/CPU0:router(config-cgn-mapt-afi)

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-mapt-afi)# end

orRP/0/RP0/CPU0:router(config-cgn-mapt-afi)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring IPv4 TCP Maximum Segment Size (MSS)

Perform this task to configure the MSS for TCP in bytes.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-t instance-name4. address-family ipv4 tcp mss value5. endor commit

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x116

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring IPv4 TCP Maximum Segment Size (MSS)

Page 131: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6MAP-T application.

service-type map-t instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-t map-t-instRP/0/RP0/CPU0:router(config-cgn-mapt)#

Configures the MSS for TCP in bytes.address-family ipv4 tcp mss value

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-mapt)#address-familyipv4 tcp mss 66RP/0/RP0/CPU0:router(config-cgn-mapt-afi)

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-mapt-afi)# end

orRP/0/RP0/CPU0:router(config-cgn-mapt-afi)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x117

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring IPv4 TCP Maximum Segment Size (MSS)

Page 132: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Configuring IPv4 Type of Service (ToS)

Perform this task to configure the configured ToS value to be used when translating a packet from IPv6 toIPv4.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-t instance-name4. address-family ipv4 tos value5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6MAP-T application.

service-type map-t instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-t map-t-instRP/0/RP0/CPU0:router(config-cgn-mapt)#

Configures the TOS value.address-family ipv4 tos value

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-mapt)#address-familyipv4 tos 66RP/0/RP0/CPU0:router(config-cgn-mapt-afi)

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-mapt-afi)# end

orRP/0/RP0/CPU0:router(config-cgn-mapt-afi)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x118

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring IPv4 Type of Service (ToS)

Page 133: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring IPv6 Address FamilyPerform these tasks configure an IPv6 address family.

Configuring IPv6 Do not Fragment (DF) Override

Perform this task to enable DF override configuration.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-t instance-name4. address-family ipv6 df-override5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6MAP-T application.

service-type map-t instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-t map-t-instRP/0/RP0/CPU0:router(config-cgn-mapt)

Configures the DF-Override.address-family ipv6 df-override

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-mapt)#address-familyipv6 df-overrideRP/0/RP0/CPU0:router(config-cgn-mapt-afi)

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x119

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring IPv6 Address Family

Page 134: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-mapt-afi)# end

orRP/0/RP0/CPU0:router(config-cgn-mapt-afi)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring an IPv6 Interface

Perform this task to configure an IPv6 interface for a stateful NAT64 instance.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat64 stateful instance-name4. address-family ipv6 interface ServiceApp number5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x120

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring an IPv6 Interface

Page 135: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the service type keyword definition for CGv6Stateful NAT64 application.

service-type nat64 stateful instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat64 stateful nat64-instRP/0/RP0/CPU0:router(config-cgn-nat64-stateful)

Configures the IPv6 interface to divert IPv6 nat64 traffic.address-family ipv6 interface ServiceApp number

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-nat64-stateful)#address-familyipv4 interface ServiceApp 66RP/0/RP0/CPU0:router(config-cgn-nat64-stful-afi)

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-nat64-stful-afi)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

orRP/0/RP0/CPU0:router(config-cgn-nat64-stful-afi)#commit

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring IPv6 TCP Maximum Segment Size (MSS)

Perform this task to configure the MSS for TCP in bytes.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-t instance-name4. address-family ipv6 tcp mss value5. endor commit

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x121

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring IPv6 TCP Maximum Segment Size (MSS)

Page 136: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6MAP-T application.

service-type map-t instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-t map-t-instRP/0/RP0/CPU0:router(config-cgn-mapt)

Configures the MSS for TCP in bytes.address-family ipv6 tcp mss value

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-mapt)#address-familyipv6 tcp mss 66RP/0/RP0/CPU0:router(config-cgn-mapt-afi)

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-mapt-afi)# end

orRP/0/RP0/CPU0:router(config-cgn-mapt-afi)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring IPv6 Traffic-Class

Perform this task to configure a traffic-class.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x122

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring IPv6 Traffic-Class

Page 137: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat64 stateful instance-name4. address-family ipv6 traffic-class value5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6Stateful NAT64 application.

service-type nat64 stateful instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat64 stateful nat64-instRP/0/RP0/CPU0:router(config-cgn-nat64-stateful)

Configures the traffic class to be set.address-family ipv6 traffic-class value

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-nat64-stateful)#address-familyipv6 traffic-class 66RP/0/RP0/CPU0:router(config-cgn-nat64-stful-afi)

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-nat64-stful-afi)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

orRP/0/RP0/CPU0:router(config-cgn-nat64-stful-afi)#commit

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x123

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring IPv6 Traffic-Class

Page 138: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring Contiguous Ports

Perform this task to configure contiguous ports.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-t instance-name4. contiguous-ports number5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6MAP-T application.

service-type map-t instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-t map-t-instRP/0/RP0/CPU0:router(config-cgn-mapt)

Configures the number of ports and the value is expressedin powers of 2. The range is from 1 to 65536.

contiguous-ports number

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-mapt)#contiguous-ports14RP/0/RP0/CPU0:router(config-cgn-mapt)

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-mapt)# end

orRP/0/RP0/CPU0:router(config-cgn-mapt)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x124

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring Contiguous Ports

Page 139: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring Customer Premise Equipment Domain Parameters

Perform this task to configure Customer Premise Equipment (CPE) domain parameters.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-t instance-name4. cpe-domain ipv4 prefix ipv4 address/prefix or cpe-domain ipv6 prefix ipv6 address/prefix5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6MAP-T application.

service-type map-t instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-t map-t-instRP/0/RP0/CPU0:router(config-cgn-mapt)

Configures the cpe domain parameters.cpe-domain ipv4 prefix ipv4 address/prefix orcpe-domain ipv6 prefix ipv6 address/prefix

Step 4

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x125

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring Customer Premise Equipment Domain Parameters

Page 140: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Example:RP/0/RP0/CPU0:router(config-cgn-mapt)#acpe-domainipv4 prefix 10.2.2.24/2RP/0/RP0/CPU0:router(config-cgn-mapt)orRP/0/RP0/CPU0:router(config-cgn-mapt)#acpe-domainipv6 prefix 10:2::2/24RP/0/RP0/CPU0:router(config-cgn-mapt)

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-mapt)# end

orRP/0/RP0/CPU0:router(config-cgn-mapt)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring External Domain Parameters

Perform this task to configure external domain parameters.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-t instance-name4. external-domain ipv6 prefix ipv6 address/prefix5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x126

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring External Domain Parameters

Page 141: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6MAP-T application.

service-type map-t instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-t map-t-instRP/0/RP0/CPU0:router(config-cgn-mapt)

Configures the external domain parameters.external-domain ipv6 prefix ipv6 address/prefix

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-mapt)#external-domainipv6 prefix 10:2::2/24RP/0/RP0/CPU0:router(config-cgn-mapt)

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-mapt)# end

orRP/0/RP0/CPU0:router(config-cgn-mapt)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring Port Sharing Ratio

Perform this task to configure port sharing ratio.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-t instance-name

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x127

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring Port Sharing Ratio

Page 142: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

4. sharing-ratio number5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6MAP-T application.

service-type map-t instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-t map-t-instRP/0/RP0/CPU0:router(config-cgn-mapt)

Configures the port sharing ratio and the value is expressedin powers of 2. The range is from 1 to 32768.

sharing-ratio number

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-mapt)#sharing-ratio14RP/0/RP0/CPU0:router(config-cgn-mapt)

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-mapt)# end

orRP/0/RP0/CPU0:router(config-cgn-mapt)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x128

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring Port Sharing Ratio

Page 143: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Configuring 6RD on ISMPerform these tasks to configure 6RD on ISM.

Configuring the Application Service Virtual InterfaceThis section lists the guidelines for selecting service application interfaces for 6RD

• Pair ServiceApp<n> with ServiceApp<n+1>, where <n> is an odd integer. This is to ensure that theServiceApp pairs works with a maximum throughput. For example, ServiceApp1 with ServiceApp2 orServiceApp3 with ServiceApp4.

• Pair ServiceApp<n> with ServiceApp<n+5> or ServiceApp<n+9>, and so on, where <n> is an oddinteger. For example, ServiceApp1 with ServiceApp6, ServiceApp1 with ServiceApp10, ServiceApp3with ServiceApp8, or ServiceApp3 with ServiceApp12.

• Pair ServiceApp<n>with ServiceApp<n+4>, where <n> is an integer (odd or even integer). For example,ServiceApp1 with ServiceApp5, or ServiceApp2 with ServiceApp6.

Although ServiceApp pairs work, the aggregate throughput for Inside-to-Outside and Outside-to-Inside trafficfor the ServiceApp pair is halved.

Warning

Do not pair ServiceApp<n> with ServiceApp<n+1>, where <n> is an even integer. When used,Outside-to-Inside traffic is dropped because traffic flows in the incorrect dispatcher and core.

Caution

Perform this task to configure the application service virtual interface (SVI) to forward data traffic.

SUMMARY STEPS

1. configure2. interface ServiceApp value3. service cgn instance-name4. service-type tunnel v6rd instance-name5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the application SVI to 1, and enters interfaceconfiguration mode.

interface ServiceApp value

Example:

Step 2

RP/0/RP0/CPU0:router(config)# interface ServiceApp1RP/0/RP0/CPU0:router(config-if)#

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x129

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring 6RD on ISM

Page 144: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the instance named cgn1 for the CGv6application, and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-if)# service cgn cgn1

Configures the service-type as tunnel v6rd, and the instancename as 6rd1.

service-type tunnel v6rd instance-name

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn)# service-typetunnel v6rd 6rd1RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-tunnel-v6rd)# end

or Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

RP/0/RP0/CPU0:router(config-cgn-tunnel-v6rd)#commit

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring a 6RD Instance

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type tunnel v6rd instance-name4. endor commit

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x130

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring a 6RD Instance

Page 145: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application, and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config-if)# service cgn cgn1

Configures the service-type as tunnel v6rd, and the instancename as 6rd1.

service-type tunnel v6rd instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typetunnel v6rd 6rd1RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)

Saves configuration changes.endor commitStep 4

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-tunnel-v6rd)# end

or Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

RP/0/RP0/CPU0:router(config-cgn-tunnel-v6rd)#commit

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Policy FunctionsPerform these tasks to configure the policy functions.

Configuring Address Family

Perform these tasks to configure address family for a 6RD instance.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x131

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring the Policy Functions

Page 146: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Configuring IPv4 Address Family

Perform this task to configure IPv4 address family for a 6RD instance.

Configuring IPv4 Interface

Perform this task to configure an IPv4 interface for a 6RD instance.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type tunnel v6rd instance-name4. address-family ipv4 interface ServiceApp number5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application, and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config-if)# service cgn cgn1

Defines the service type keyword definition for CGv6 6RDapplication.

service-type tunnel v6rd instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typetunnel v6rd 6rd1RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)

Configures the IPv4 interface to divert IPv4 6RD traffic.The range is from 1 to 2000.

address-family ipv4 interface ServiceApp number

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)#address-family ipv4 interface serviceApp 66RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)#

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)# end

orRP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x132

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring IPv4 Address Family

Page 147: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring IPv6 Address Family

Perform this task to configure an IPv6 address family for a 6RD instance.

Configuring IPv6 Interface

Perform this task to configure an IPv6 interface for a 6RD instance.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type tunnel v6rd instance-name4. address-family ipv6 interface ServiceApp number5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application, and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config-if)# service cgn cgn1

Defines the service type keyword definition for CGv6 6RDapplication.

service-type tunnel v6rd instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typetunnel v6rd 6rd1RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)

Configures the IPv6 interface to divert IPv4 6RD traffic.The range is from 1 to 2000.

address-family ipv6 interface ServiceApp number

Example:

Step 4

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x133

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring IPv6 Address Family

Page 148: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)#address-family ipv6 interface serviceApp 66RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)#

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)# end

orRP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring Border Relay

Perform these tasks to configure a border relay router for a 6RD instance.

Configuring IPv4 Interface

Perform this task to configure an IPv4 interface for a border relay router.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type tunnel v6rd instance-name4. br ipv4 prefix | suffix length value5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x134

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring Border Relay

Page 149: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the instance named cgn1 for the CGv6application, and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config-if)# service cgn cgn1

Defines the service type keyword definition for CGv6 6RDapplication.

service-type tunnel v6rd instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typetunnel v6rd 6rd1RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)

Configures the IPv4 interface for a border relay router. TheIPv4 prefix or suffix length is used to derive delegated IPv6prefix.

br ipv4 prefix | suffix length value

Example:RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)# bripv4 prefix length 20RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)#

Step 4

The prefix or suffix value range is from 0 to 31.

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)# end

orRP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring IPv6 Prefix

Perform this task to configure IPv6 address and prefix for a border relay router.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type tunnel v6rd instance-name

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x135

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring IPv6 Prefix

Page 150: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

4. br ipv6 prefixaddress5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application, and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config-if)# service cgn cgn1

Defines the service type keyword definition for CGv6 6RDapplication.

service-type tunnel v6rd instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typetunnel v6rd 6rd1RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)

Configures the IPv6 address and prefix for a border relayrouter.

br ipv6 prefixaddress

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)# bripv6-prefix 2001:db8::/32RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)#

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)# end

orRP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x136

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring IPv6 Prefix

Page 151: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Configuring Source Address

Perform this task to configure IPv4 source address for a tunnel.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type tunnel v6rd instance-name4. br source-addressaddress5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application, and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config-if)# service cgn cgn1

Defines the service type keyword definition for CGv6 6RDapplication.

service-type tunnel v6rd instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typetunnel v6rd 6rd1RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)

Configures the IPv4 source address for a tunnel.br source-addressaddress

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)# brsource-address 22.23.24.26RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)#

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)# end

orRP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x137

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring Source Address

Page 152: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring Unicast Address

Perform this task to configure IPv6 unicast address.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type tunnel v6rd instance-name4. br unicast addressaddress5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application, and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config-if)# service cgn cgn1

Defines the service type keyword definition for CGv6 6RDapplication.

service-type tunnel v6rd instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typetunnel v6rd 6rd1RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)

Configures the IPv6 address that is unicast from the IPv6network.

br unicast addressaddress

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)# brunicast address 3001:db8:1617:181a::1RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)#

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x138

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring Unicast Address

Page 153: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)# endorRP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring Maximum Transmission Unit

Perform this task to configure the Maximum Transmission Unit (MTU) of the tunnel for a 6RD instance.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type tunnel v6rd instance-name4. path-mtu value5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application, and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config-if)# service cgn cgn1

Defines the service type keyword definition for CGv6 6RDapplication.

service-type tunnel v6rd instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typetunnel v6rd 6rd1RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x139

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring Maximum Transmission Unit

Page 154: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the path mtu of the tunnel. The range is from1280 to 9216.

path-mtu value

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)#path-mtu 1282RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)#

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)# end

orRP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring Reassembly-Enable

Perform this task to assemble the fragmented packets for a 6RD instance.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type tunnel v6rd instance-name4. reassembly-enable5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x140

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring Reassembly-Enable

Page 155: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the instance named cgn1 for the CGv6application, and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config-if)# service cgn cgn1

Defines the service type keyword definition for CGv6 6RDapplication.

service-type tunnel v6rd instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typetunnel v6rd 6rd1RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)

Assembles the fragmented packets after forwarding iscomplete.

reassembly-enable

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)#reassembly-enableRP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)#

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)# end

orRP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring Reset-df-bit

Perform this task to reset the df bit and enable the anycast feature for a 6RD instance.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type tunnel v6rd instance-name

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x141

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring Reset-df-bit

Page 156: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

4. reset-df-bit5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application, and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config-if)# service cgn cgn1

Defines the service type keyword definition for CGv6 6RDapplication.

service-type tunnel v6rd instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typetunnel v6rd 6rd1RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)

Resets the df bit and enables the anycast feature.reset-df-bit

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)#reset-df-bitRP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)#

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)# end

orRP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x142

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring Reset-df-bit

Page 157: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Configuring Type of Service

Perform this task to configure the Type of Service (ToS) to be used for the IPv4 tunnel for a 6RD instance.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type tunnel v6rd instance-name4. tos value5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application, and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config-if)# service cgn cgn1

Defines the service type keyword definition for CGv6 6RDapplication.

service-type tunnel v6rd instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typetunnel v6rd 6rd1RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)

Configures the type of service to be used for the IPv4 tunnel.The range is from 0 to 255.

tos value

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)# tos66RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)#

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)# end

orRP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x143

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring Type of Service

Page 158: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring Time to Live

Perform this task to configure Time to Live (TTL) value to be used for the IPv4 tunnel for a 6RD instance.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type tunnel v6rd instance-name4. ttlvalue5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application, and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config-if)# service cgn cgn1

Defines the service type keyword definition for CGv6 6RDapplication.

service-type tunnel v6rd instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typetunnel v6rd 6rd1RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)

Configures the time-to-live value, in seconds, to be usedfor the IPv4 tunnel. The range is from 1 to 255.

ttlvalue

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)# ttl220RP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x144

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring Time to Live

Page 159: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)# endorRP/0/RP0/CPU0:router(config-cgn-tunnel-6rd)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring High AvailabilityISM and VSM supports high availability or 1:1 redundancy on different CGv6 applications.

Perform these tasks to configure HA.

Configuring Active or Standby ModulePerform this task to configure active or standby module.

SUMMARY STEPS

1. configure2. service cgn <instance name>3. service-location preferred-active node-id[preferred-standby node-id]4. end or commit5. reload

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the infrastructure service virtual interface (SVI)for both the module locations.

service cgn <instance name>

Example:

Step 2

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x145

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring High Availability

Page 160: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router(config)# service cgn cgn1

Configures the preferred active and preferred standby nodes.service-location preferred-activenode-id[preferred-standby node-id]

Step 3

Example:RP/0/RP0/CPU0:router(config-if)# service-locationpreferred-active 0/1/CPU0 preferred-standby0/4/CPU0

Saves configuration changes.end or commitStep 4

Example: • When you issue the end command, the system promptsyou to commit changes:

RP/0/RP0/CPU0:router(config-if)# end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

orRP/0/RP0/CPU0:router(config-if)# commit

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Once the configuration is complete, reload both the cardsfor changes to take effect and wait till in ‘APP READY’state.

reload

Example:RP/0/RP0/CPU0:router#hw-mod location 0/1/CPU0reload

Step 5

Enabling Failure DetectionPerform this task to enable failure detection.

SUMMARY STEPS

1. configure2. service-cgv6-ha location node-iddatapath-test3. end or commit

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x146

Carrier Grade IPv6 over Integrated Services Module (ISM)Enabling Failure Detection

Page 161: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures role as CGv6 and failure detection for datapathtests.

service-cgv6-ha location node-iddatapath-test

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service-cgv6-halocation 0/1/CPU0 datapath-test

Saves configuration changes.end or commitStep 3

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-if)# end

orRP/0/RP0/CPU0:router(config-if)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

By default, failure detection for data path is nottriggered unless the above commands areconfigured.

Note

To disable failure detection, use the no form of thecommand: no service-cgv6-ha locationnode-iddatapath-test

Configuration Examples for Implementing the Carrier GradeNAT

This section provides the following configuration examples for CGN:

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x147

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuration Examples for Implementing the Carrier Grade NAT

Page 162: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Configuring a Different Inside VRF Map to a Different Outside VRF: ExampleThis example shows how to configure a different inside VRF map to a different outside VRF and differentoutside address pools:service cgn cgn1inside-vrf insidevrf1map outside-vrf outsidevrf1 address-pool 100.1.1.0/24!!inside-vrf insidevrf2map outside-vrf outsidevrf2 address-pool 100.1.2.0/24!service-location preferred-active 0/2/cpu0 preferred-standby 0/3/cpu0!interface ServiceApp 1vrf insidevrf1ipv4 address 210.1.1.1 255.255.255.0service cgn cgn1!router staticvrf insidevrf10.0.0.0/0 serviceapp 1!!interface ServiceApp 2vrf insidevrf2ipv4 address 211.1.1.1 255.255.255.0service cgn cgn1service-type nat44 nat1!router staticvrf insidevrf20.0.0.0/0 serviceapp 2!!interface ServiceApp 3vrf outsidevrf1ipv4 address 1.1.1.1 255.255.255.0service cgn cgn1service-type nat44 nat1!router staticvrf outsidevrf1100.1.1.0/24 serviceapp 3!!interface ServiceApp 4vrf outsidevrf2ipv4 address 2.2.2.1 255.255.255.0service cgn cgn1service-type nat44 nat1!router staticvrf outsidevrf2100.1.2.0/24 serviceapp 4!

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x148

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring a Different Inside VRF Map to a Different Outside VRF: Example

Page 163: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

ConfiguringDifferent InsideVRFMapstoIdenticalOutsideVRFmapsforNAT44:Example

This example shows how to configure different inside VRF maps to identical outside VRF maps:

Configure outsideServiceApp in the CGN configuration for the following ServiceApp pair:

• Two different inside vrf

• Two identical outside vrf

Note

service cgn cgn-service-kykwifiservice-location preferred-active 0/0/CPU0service-type nat44 kykwifi-nat44portlimit 512alg ActiveFTPalg rtspalg pptpAlginside-vrf INTERNET_PRIVATE_CGNATmap outside-vrf INTERNET outsideServiceApp ServiceApp2 address-pool 81.213.32.0/22external-logging syslogserveraddress 10.106.61.20 port 514!!inside-vrf INTERNET_PRIVATE_CGNAT2map outside-vrf INTERNET outsideServiceApp ServiceApp4 address-pool 81.213.36.0/22external-logging syslogserveraddress 10.106.61.20 port 514!

NAT44 Configuration: ExampleThis example shows a NAT44 sample configuration:IPv4: 40.22.22.22/16!interface Loopback40description IPv4 Host for NAT44ipv4 address 40.22.22.22 255.255.0.0!interface Loopback41description IPv4 Host for NAT44ipv4 address 41.22.22.22 255.255.0.0!interface GigabitEthernet0/3/0/0.1description Connected to P2_CRS-8 GE 0/6/5/0.1ipv4 address 10.222.5.22 255.255.255.0encapsulation dot1q 1!router staticaddress-family ipv4 unicast180.1.0.0/16 10.222.5.2181.1.0.0/16 10.222.5.2

!!

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x149

Carrier Grade IPv6 over Integrated Services Module (ISM)Configuring Different Inside VRF Maps to Identical Outside VRF maps for NAT44: Example

Page 164: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Hardware Configuration for CSGE:!vrf InsideCustomer1address-family ipv4 unicast!!vrf OutsideCustomer1address-family ipv4 unicast!!hw-module service cgn location 0/3/CPU0!service-plim-ha location 0/3/CPU0 datapath-testservice-plim-ha location 0/3/CPU0 core-to-core-testservice-plim-ha location 0/3/CPU0 pci-testservice-plim-ha location 0/3/CPU0 coredump-extraction!!interface GigabitEthernet0/6/5/0.1vrf InsideCustomer1ipv4 address 10.222.5.2 255.255.255.0encapsulation dot1q 1!interface GigabitEthernet0/6/5/1.1vrf OutsideCustomer1ipv4 address 10.12.13.2 255.255.255.0encapsulation dot1q 1!interface ServiceApp1vrf InsideCustomer1ipv4 address 1.1.1.1 255.255.255.252service cgn cgn1 service-type nat44!interface ServiceApp2vrf OutsideCustomer1ipv4 address 2.1.1.1 255.255.255.252service cgn cgn1 service-type nat44!interface ServiceInfra1ipv4 address 75.75.75.75 255.255.255.0service-location 0/3/CPU0!!router static!vrf InsideCustomer1address-family ipv4 unicast0.0.0.0/0 ServiceApp140.22.0.0/16 10.222.5.2241.22.0.0/16 10.222.5.22181.1.0.0/16 vrf OutsideCustomer1 GigabitEthernet0/6/5/1.1 10.12.13.1!!vrf OutsideCustomer1address-family ipv4 unicast40.22.0.0/16 vrf InsideCustomer1 GigabitEthernet0/6/5/0.1 10.222.5.2241.22.0.0/16 vrf InsideCustomer1 GigabitEthernet0/6/5/0.1 10.222.5.22100.0.0.0/24 ServiceApp2180.1.0.0/16 10.12.13.1181.1.0.0/16 10.12.13.1!!!CGSE Configuration:

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x150

Carrier Grade IPv6 over Integrated Services Module (ISM)NAT44 Configuration: Example

Page 165: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

service cgn cgn1service-location preferred-active 0/3/CPU0service-type nat44 nat44portlimit 200alg ActiveFTPinside-vrf InsideCustomer1map outside-vrf OutsideCustomer1 address-pool 100.0.0.0/24protocol tcpstatic-forward insideaddress 41.22.22.22 port 80!!protocol icmpstatic-forward insideaddress 41.22.22.22 port 80!!external-logging netflow version 9serveraddress 172.29.52.68 port 2055refresh-rate 600timeout 100 !

!!!!IPv4: 180.1.1.1/16!interface Loopback180description IPv4 Host for NAT44ipv4 address 180.1.1.1 255.255.0.0!interface Loopback181description IPv4 Host for NAT44ipv4 address 181.1.1.1 255.255.0.0!interface GigabitEthernet0/6/5/1.1ipv4 address 10.12.13.1 255.255.255.0encapsulation dot1q 1!router staticaddress-family ipv4 unicast40.22.0.0/16 10.12.13.241.22.0.0/16 10.12.13.2100.0.0.0/24 10.12.13.2 !

!

NAT64 Stateless Configuration: ExampleThis example shows a NAT64 Stateless sample configuration.IPv6 Configuration:interface Loopback210description IPv6 Host for NAT64 XLATipv6 address 2001:db8:1c0:2:2100::/64ipv6 enable!interface GigabitEthernet0/3/0/0.20description Connected to P2_CRS-8 GE 0/6/5/0.20ipv6 address 2010::22/64ipv6 enabledot1q vlan 20!

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x151

Carrier Grade IPv6 over Integrated Services Module (ISM)NAT64 Stateless Configuration: Example

Page 166: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

router static!address-family ipv6 unicast2001:db8:100::/40 2010::2

!!CGSE Hardware Configuration:hw-module service cgn location 0/3/CPU0!service-plim-ha location 0/3/CPU0 datapath-testservice-plim-ha location 0/3/CPU0 core-to-core-testservice-plim-ha location 0/3/CPU0 pci-testservice-plim-ha location 0/3/CPU0 coredump-extraction!interface GigabitEthernet0/6/5/0.20description Connected to PE22_C12406 GE 0/3/0/0.20ipv6 address 2010::2/64ipv6 enabledot1q vlan 20!interface GigabitEthernet0/6/5/1.20description Connected to P1_CRS-8 GE 0/6/5/1.20ipv4 address 10.97.97.2 255.255.255.0dot1q vlan 20!interface ServiceApp4ipv4 address 7.1.1.1 255.255.255.252service cgn cgn1 service-type nat64 stateless!interface ServiceApp6ipv6 address 2011::1/64service cgn cgn1 service-type nat64 stateless!interface ServiceInfra1ipv4 address 75.75.75.75 255.255.255.0service-location 0/3/CPU0!router staticaddress-family ipv4 unicast192.0.2.0/24 ServiceApp4198.51.100.0/24 10.97.97.1!address-family ipv6 unicast2001:db8:100::/40 ServiceApp62001:db8:1c0:2::/64 2010::22

!!CGSE Configuration:service cgn cgn1service-location preferred-active 0/3/CPU0!service-type nat64 stateless xlatipv6-prefix 2001:db8:100::/40address-family ipv4tos 64interface ServiceApp4tcp mss 1200!address-family ipv6interface ServiceApp6traffic-class 32tcp mss 1200df-override!

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x152

Carrier Grade IPv6 over Integrated Services Module (ISM)NAT64 Stateless Configuration: Example

Page 167: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

traceroute translationaddress-pool 202.1.1.0/24algorithm Hash

!!IPv4 Hardware Configuration:interface Loopback251description IPv4 Host for NAT64 XLATipv4 address 198.51.100.2 255.255.255.0!interface GigabitEthernet0/6/5/1.20description Connected to P2_CRS-8 GE 0/6/5/1.20ipv4 address 10.97.97.1 255.255.255.0dot1q vlan 20!router staticaddress-family ipv4 unicast192.0.2.0/24 10.97.97.2 !

!

DS Lite Configuration: Example

IPv6 ServiceApp and Static Route Configurationconfint serviceApp61

service cgn cgn1 service-type ds-liteipv6 address 2001:202::/32commit

exit

router staticaddress-family ipv6 unicast3001:db8:e0e:e01::/128 ServiceApp61 2001:202::2commitexit

end

IPv4 ServiceApp and Static Route Configurationconfint serviceApp41

service cgn cgn1 service-type ds-liteipv4 add 41.41.41.1/24commit

exit

router staticaddress-family ipv4 unicast52.52.52.0/24 ServiceApp41 41.1.1.2commitexit

end

DS Lite Configurationservice cgn cgn1service-location preferred-active 0/2/CPU0 preferred-standby 0/4/CPU0service-type ds-lite dsl1portlimit 200bulk-port-alloc size 128

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x153

Carrier Grade IPv6 over Integrated Services Module (ISM)DS Lite Configuration: Example

Page 168: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

map address-pool 52.52.52.0/24aftr-tunnel-endpoint-address 3001:DB8:E0E:E01::address-family ipv4interface ServiceApp41

address-family ipv6interface ServiceApp61

protocol tcpsession init timeout 300session active timeout 400mss 1200

external-logging netflow9serveraddress 90.1.1.1 port 99

external-logging syslogserveraddress 90.1.1.1 port 514

Bulk Port Allocation and Syslog Configuration: Exampleservice cgn cgn2service-type nat44 natAinside-vrf broadbandmap address-pool 100.1.2.0/24external-logging syslogserveraddress 20.1.1.2 port 514!!bulk-port-alloc size 64!!

DBL Configuration: Example

NAT44 Instanceservice cgn cgn1service-type nat44 nat1inside-vrf ivrfexternal-logging netflow version 9serveraddress x.x.x.x port xsession-logging

DS-Lite Instanceservice cgn cgn1service-type ds-lite ds-lite1external-logging netflow9server session-logging

Services Redundancy Configuration (Active/Standby): ExampleActive Configurationconf tinterface ServiceInfra 1service-location 0/1/CPU0

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x154

Carrier Grade IPv6 over Integrated Services Module (ISM)Bulk Port Allocation and Syslog Configuration: Example

Page 169: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

ipv4 address 50.1.1.1/24exit

hw-module service cgn location 0/1/CPU0commitexit

Stand By Configurationconf tinterface ServiceInfra 2service-location 0/2/CPU0ipv4 address 100.1.1.1/24exit

hw-module service cgn location 0/2/CPU0commitexitconf tservice cgn cgn1service-location preferred-active 0/1/CPU0 preferred-standby 0/2/CPU0commitexit

6RD Configuration: ExampleThis example shows a sample 6RD configuration:vrf ivrf!hw-module service cgn location 0/0/CPU0hw-module service cgn location 0/2/CPU0interface ServiceApp41vrf ivrfipv4 address 5.5.5.1 255.255.0.0service cgn cgn1 service-type tunnel v6rd!interface ServiceApp42ipv4 address 6.6.6.1 255.255.255.0service cgn cgn1 service-type tunnel v6rd!interface ServiceApp61ipv6 address 2001:db8:1617:1819::2/64service cgn cgn1 service-type tunnel v6rd!interface ServiceApp62ipv6 address 3001:db8:1617:181a::2/64service cgn cgn1 service-type tunnel v6rd!interface ServiceInfra1ipv4 address 1.1.1.1 255.255.255.0service-location 0/0/CPU0!interface ServiceInfra2ipv4 address 2.2.2.2 255.255.255.0service-location 0/2/CPU0!router staticaddress-family ipv4 unicast8.37.0.0/16 8.36.0.18.42.25.0/24 8.36.5.210.1.2.0/24 GigabitEthernet0/3/0/210.64.83.49/32 8.36.0.1

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x155

Carrier Grade IPv6 over Integrated Services Module (ISM)6RD Configuration: Example

Page 170: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

22.23.24.26/32 6.6.6.2102.2.0.0/16 ServiceApp3192.168.3.0/24 GigabitEthernet0/3/0/3192.168.3.0/24 GigabitEthernet0/3/0/4202.153.144.0/24 8.36.0.1!address-family ipv6 unicast2001:db8::/32 ServiceApp612001:db8:1617:1819::/64 Null02001:db8:1617:1819::/128 ServiceApp612001:db8:1617:1819::1/128 ServiceApp613001:db8::/32 ServiceApp623001:db8:1617:181a::/64 Null03001:db8:1617:181a::/64 ServiceApp623001:db8:1617:181a::1/128 ServiceApp62!vrf ivrfaddress-family ipv4 unicast0.0.0.0/0 5.6.5.222.23.24.25/32 5.5.5.2192.168.3.5/32 10.1.2.3!!!service cgn cgn1service-location preferred-active 0/2/CPU0 preferred-standby 0/0/CPU0service-type tunnel v6rd 6rd1ttl 255path-mtu 1480bripv6-prefix 2001:db8::/32source-address 22.23.24.25unicast address 2001:db8:1617:1819::1!address-family ipv4interface ServiceApp41!address-family ipv6interface ServiceApp61!!service-type tunnel v6rd 6rd2bripv6-prefix 3001:db8::/32source-address 22.23.24.26unicast address 3001:db8:1617:181a::1!address-family ipv4interface ServiceApp42!address-family ipv6interface ServiceApp62!!!

MAP-E Configuration on ISM: ExampleThis example shows a sample MAP-E configuration on ISM:hw-module service cgn location 0/0/CPU0interface ServiceApp1ipv4 address 30.30.30.1 255.255.255.0

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x156

Carrier Grade IPv6 over Integrated Services Module (ISM)MAP-E Configuration on ISM: Example

Page 171: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

service cgn cgn1 service-type map-e m1!interface ServiceApp2ipv4 address 19.1.1.1 255.255.255.252ipv6 address 2001:101::/32service cgn cgn1 service-type map-e m1!interface ServiceInfra1ipv4 address 200.1.1.1 255.255.255.0service-location 0/0/CPU0!router staticaddress-family ipv4 unicast202.38.102.0/24 ServiceApp1 30.30.30.2!address-family ipv6 unicast2001:da8:a464:ffff::/64 ServiceApp2 2001:101::2!service cgn cgn1service-location preferred-active 0/0/CPU0service-type map-e m1cpe-domain ipv6 prefix 2001:da8:a464::/48cpe-domain ipv4 prefix 202.38.102.0/24aftr-endpoint-address 2001:da8:a464:ffff::/128sharing-ratio 16contiguous-ports 32path-mtu 1300

address-family ipv4interface ServiceApp1tcp mss 235

!address-family ipv6interface ServiceApp2tcp mss 1154!!

MAP-T Configuration on ISM: Examplehw-module service cgn location 0/0/CPU0interface ServiceApp4ipv4 address 30.30.30.1 255.255.255.0service cgn test service-type map-t!interface ServiceApp6ipv4 address 19.1.1.1 255.255.255.252ipv6 address 2001:101::/32service cgn test service-type map-t!interface ServiceInfra1ipv4 address 200.1.1.1 255.255.255.0service-location 0/0/CPU0!router staticaddress-family ipv4 unicast202.38.102.0/24 ServiceApp4 30.30.30.2!address-family ipv6 unicast2001:da8:a464:ffff::/64 ServiceApp6 2001:101::2

!service cgn test

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x157

Carrier Grade IPv6 over Integrated Services Module (ISM)MAP-T Configuration on ISM: Example

Page 172: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

service-location preferred-active 0/0/CPU0service-type map-t xlat1cpe-domain ipv6 prefix 2001:da8:a464::/48cpe-domain ipv4 prefix 202.38.102.0/24external-domain ipv6 prefix 2001:da8:a464:ffff::/64sharing-ratio 64contiguous-ports 128

address-family ipv4interface ServiceApp4

tcp mss 235tos 100!

address-family ipv6interface ServiceApp6tcp mss 1154traffic-class 100df-override;!!

PPTP ALG Configuration: Example

NAT44 Instanceservice cgn cgn1service-location preferred-active 0/1/CPU0service-type nat44 inst1alg pptpAlg

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x158

Carrier Grade IPv6 over Integrated Services Module (ISM)PPTP ALG Configuration: Example

Page 173: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

C H A P T E R 4Carrier Grade IPv6 over Virtualized ServicesModule (VSM)

This module describes how to implement the Carrier Grade IPv6 (CGv6) over Virtualized Services Module( VSM).

• Virtualized Services Module, on page 160• Installing CGv6 on VSM , on page 161• Uninstalling CGv6 on VSM, on page 164• Upgrading CGv6 OVA Package, on page 164• VSM scale numbers, on page 166• Implementing NAT 64 over VSM, on page 168• NAT44 and NAT 64 over VSM, on page 170• Implementing NAT44 or NAT64 over VSM, on page 176• Traffic Flow Mirroring, on page 249• High Availability, on page 259• Services Redundancy Configuration (Active/Standby): Example, on page 263• Mapping of Address and Port-Encapsulation Mode, on page 264• Configuring MAP-E, on page 264• MAP-E on VSM Configuration: Example, on page 278• Mapping of Address and Port-Translation Mode, on page 279• Configuring MAP-T, on page 279• MAP-T Configuration on VSM: Example, on page 296• Configuration Examples for Implementing the Carrier Grade NAT, on page 297• DS Lite Configuration: Example, on page 303• DBL Configuration: Example, on page 304• Configuring TCP Sequence-Check: Example, on page 304• Configuring Address and Port-Dependent Filtering: Example, on page 305• NAT0 Mode Configuration: Example, on page 305• Configuration of Multiple NetFlow Servers: Example, on page 305• Configuration of Multiple Syslog Servers: Servers, on page 306

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x159

Page 174: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Virtualized Services ModuleVirtualized Services Module (VSM) is the next generation service card on the Cisco ASR 9000 SeriesAggregation Services Router. The software infrastructure on this card provides a virtual environment and theservices run as virtual machines (VM) in this environment. The VMs simulate individual physical computingenvironments over a common hardware. The available hardware resources, like processor, memory, hard disk,and so on, are virtualized and allocated to individual virtual machines by the hypervisor.

VSM Components

VSM is capable of hosting multiple VMs. It consists of the following components:

• IOS XR VM: This VM is used for managing the routing functions.• System Admin VM: This VM is used for the system administration• Application VM: CGv6 is the application VM running on VSM. In the current release, only one CGv6VM can run at a given time.

• Linux Host and Hypervisor: The routing functions and the system administration functions are run onseparate virtual machines (VMs) over a Linux host operating system. The CGv6 VM, along with theother VMs, runs on the top of the KVM hypervisor.

Features and Considerations

Some of the features and considerations of VSM are:

• The CGv6 application has to run in a VM environment.• The IOS XR Service Enablement CLIs are needed to create, delete, access, and operate on CGv6 VM.• The VSM card can co-exist with other LCs including ISM.• Each NP has 6 NP ports and can send traffic to 24 CGv6 Application processes.• For each VSM card, a ServiceInfra interface needs to be configured.• Traffic diversion may be done based on a static route or ACL-based forwarding (ABF).• In the current release, VSM does not support multiple CGv6 VMs on the same card.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x160

Carrier Grade IPv6 over Virtualized Services Module (VSM)Virtualized Services Module

Page 175: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Installing CGv6 on VSMThe process of installing CGv6 on VSM involves the following:

If you are performing an upgrade or a downgrade, the CGv6 VM needs to be deactivated first, uninstalled,installed, and then activated. See Uninstalling CGv6 on VSM for information on deactivating the CGv6 VMand uninstalling the CGv6 OVA package.

Note

PrerequisitesEnsure that you have installed the following images:

• asr9k-mini-px.vm (Base IOS-XR image)

• asr9k-services-infra.pie (VSM Services Infra package)

• asr9k-services-px.pie (CGv6 Services package)

• asr9k-fpd-px.pie (FPGA Image IOS XR package)

• asr9k-vsm-cgv6-<version>.ova (Linux Open Virtual Alliance or OVA package)

Installing CGv6 OVA PackageThe CGv6 Virtual Machine (VM) is provided as an OVA package. Open Virtualization Appliance (OVA) isa single file distribution of the file package. The CGv6 OVA package consists of the following files:

• OVA Profile Descriptor file• Package version file• Linux Image file

The process of installation of CGv6 OVA package consists of the following steps:

1. Copy the OVA file from the remote location to the RP disk.

Once the CGv6 OVA package is copied to RP's disk, you can install it on multiple VSMs on the same chasis.Note

2. Install CGv6 VM on a specific VSM card.RP/0/RSP0/CPU0:router# virtual-service install name <service/VM name> package <OVA packagename> node <VSM_location>

The service or VM name can contain only alphanumeric characters (A to Z, a to z, or 0 to 9), or an underscore(_). All other special characters are not allowed. The installation process might take about 7-8 minutes.

Note

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x161

Carrier Grade IPv6 over Virtualized Services Module (VSM)Installing CGv6 on VSM

Page 176: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

3. Check the progress of the installation process by using the show virtual-service list command. Once theinstallation is complete, the status is changed to Installed.RP/0/RSP0/CPU0:router# show virtual-service list

Virtual Service List:Name Status Package Name Nodecgn1 Installing asr9k-vsm-cgv6.ova 0/1/CPU0

RP/0/RSP0/CPU0:NAT#sh virtual-service list

Virtual Service List:Name Status Package Name Nodecgn1 Installed asr9k-vsm-cgv6.ova 0/1/CPU0

Activating CGv6 VMThe steps to activate the CGv6 VM are as follows:

1. Configure the CGv6 VM and the 12 Gigabit Ethernet (GE) interfaces in the global configuration mode.RP/0/RSP0/CPU0:router(config)# virtual-service cgn123

RP/0/RSP0/CPU0:router(config-virt-service)# vnic interface tenGigE 0/2/1/0

RP/0/RSP0/CPU0:router(config-virt-service)# vnic interface tenGigE 0/2/1/1

RP/0/RSP0/CPU0:router(config-virt-service)# vnic interface tenGigE 0/2/1/2

RP/0/RSP0/CPU0:router(config-virt-service)# vnic interface tenGigE 0/2/1/3

RP/0/RSP0/CPU0:router(config-virt-service)# vnic interface tenGigE 0/2/1/4

RP/0/RSP0/CPU0:router(config-virt-service)# vnic interface tenGigE 0/2/1/5

RP/0/RSP0/CPU0:router(config-virt-service)# vnic interface tenGigE 0/2/1/6

RP/0/RSP0/CPU0:router(config-virt-service)# vnic interface tenGigE 0/2/1/7

RP/0/RSP0/CPU0:router(config-virt-service)# vnic interface tenGigE 0/2/1/8

RP/0/RSP0/CPU0:router(config-virt-service)# vnic interface tenGigE 0/2/1/9

RP/0/RSP0/CPU0:router(config-virt-service)# vnic interface tenGigE 0/2/1/10

RP/0/RSP0/CPU0:router(config-virt-service)# vnic interface tenGigE 0/2/1/11

RP/0/RSP0/CPU0:router(config-virt-service)# commit

2. Activate the CGv6 VM.RP/0/RSP0/CPU0:router(config-virt-service)# activateRP/0/RSP0/CPU0:router(config-virt-service)#commit

3. Check the progress of the activation process by using the show virtual-service list command. Once theVM is activated, the status changes to Activated.RP/0/RSP0/CPU0:router# show virtual-service list

Virtual Service List:Name Status Package Namecgn1 Activated asr9k-vsm-cgv6.ova

Once the VM is activated, it takes about 5 minutes for the CGv6 applications to come up.Note

4. Configure the ServiceInfra interface.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x162

Carrier Grade IPv6 over Virtualized Services Module (VSM)Activating CGv6 VM

Page 177: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

RP/0/RSP0/CPU0:router# configure terminal

RP/0/RSP0/CPU0:router(config)# interface ServiceInfra 1

RP/0/RSP0/CPU0:router(config-int)# ipv4 address 3.1.1.1 255.255.255.252

RP/0/RSP0/CPU0:router(config-int)# service-location 0/2/CPU0

RP/0/RSP0/CPU0:router(config-int)# commit

5. Before you configure NAT44, ensure that the 12 Gigabit Ethernet (GE) interfaces are up. If they are inthe shutdown mode, then change their mode by using the no shut command.

In IOS-XR, by default, any interface that is not configured is shut down when the associated line card isreloaded. To prevent this behavior on the VSM TenGigE interface (port), add a minor configuration (such as,description) on the interface.

Note

RP/0/RSP0/CPU0:router(config)# interface tenGigE 0/2/1/0

RP/0/RSP0/CPU0:router(config-if)# interface tenGigE 0/2/1/1

RP/0/RSP0/CPU0:router(config-if)# interface tenGigE 0/2/1/2

RP/0/RSP0/CPU0:router(config-if)# interface tenGigE 0/2/1/3

RP/0/RSP0/CPU0:router(config-if)# interface tenGigE 0/2/1/4

RP/0/RSP0/CPU0:router(config-if)# interface tenGigE 0/2/1/5

RP/0/RSP0/CPU0:router(config-if)# interface tenGigE 0/2/1/6

RP/0/RSP0/CPU0:router(config-if)# interface tenGigE 0/2/1/7

RP/0/RSP0/CPU0:router(config-if)# interface tenGigE 0/2/1/8

RP/0/RSP0/CPU0:router(config-if)# interface tenGigE 0/2/1/9

RP/0/RSP0/CPU0:router(config-if)# interface tenGigE 0/2/1/10

RP/0/RSP0/CPU0:router(config-if)# interface tenGigE 0/2/1/11

RP/0/RSP0/CPU0:router(config-if)# no shut

RP/0/RSP0/CPU0:router(config-if)# commit

When a virtual service is in Activating state and being recovered from a failure event like VSM card reloador server disconnect, and if another failure happens like the VSM card reload or server disconnect, then thevirtual-service activation will not be attempted. In such conditions, virtual service is moved into ActivationFailed state and needs to be recovered manually with the following sequence of operations:RP/0/RSP0/CPU0:router# configure terminalRP/0/RSP0/CPU0:router(config)# virtual-service cgn123RP/0/RSP0/CPU0:router(config-virt-service)# no activateRP/0/RSP0/CPU0:router(config-virt-service)# commitRP/0/RSP0/CPU0:router(config-virt-service)# activateRP/0/RSP0/CPU0:router(config-virt-service)# commit

Note

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x163

Carrier Grade IPv6 over Virtualized Services Module (VSM)Activating CGv6 VM

Page 178: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Uninstalling CGv6 on VSMThe process of uninstalling CGv6 VSM involves the following processes:

• Deactivating CGv6 VM

• Uninstalling CGv6 OVA Package

• Disabling the Service Enablement Feature

Deactivating CGv6 VM

To de-activate the CGv6 VM, perform the following in the global configuration mode:RP/0/RP0/CPU0:router(config)#virtual-service cgn123

RP/0/RP0/CPU0:router(config-virt-service)#no activate

RP/0/RP0/CPU0:router(config-virt-service)#commit

To remove the CGv6 instance, perform the following in the global configuration mode:RP/0/RP0/CPU0:router(config)#no virtual-service cgn123

RP/0/RP0/CPU0:router(config)#commit

Uninstalling CGv6 OVA Package

To uninstall the CGv6 OVA package, run the following commands in the EXEC mode:RP/0/RSP0/CPU0:router# virtual-service uninstall name cgn123

After you have uninstalled the CGv6 OVA package, reload the VSM card before installing any other OVApackage.

Disabling the Service Enablement Feature

To disable the service enablement feature, run the following commands in the global configuration mode.RP/0/RP0/CPU0:router(config)#no virtual-service enable

RP/0/RP0/CPU0:router(config)#commit

Upgrading CGv6 OVA PackageThe CGv6 Virtual Machine (VM) is provided as an OVA package. Open Virtualization Appliance (OVA) isa single file distribution of the file package. The CGv6 OVA package consists of the following files:

• OVA Profile Descriptor file• Package version file• Linux Image file

The process of upgrading the CGv6 OVA package consists of the following steps:

1. Saving the virtual service configuration

2. Deactivating CGv6 VM

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x164

Carrier Grade IPv6 over Virtualized Services Module (VSM)Uninstalling CGv6 on VSM

Page 179: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

3. Uninstalling CGv6 OVA Package

4. Upgrading Cisco IOS XR

5. Installing CGv6 on VSM

6. Restoring the virtual service configuration

Before upgrading or downgrading the CGv6 OVA package on the Active VSM card in HA (high availability)mode, perform a graceful shift of the traffic from Active VSM to Standby VSM. This will ensure that theCGN-related configuration is replicated into a standby card. To perform graceful shift of the traffic, run theservice redundancy failover service-type all preferred-active <active-VSM-slot> command inEXEC mode.

Note

Saving the Virtual Service Configuration

Before you start upgrading the CGv6 OVA package, save the virtual service configuration and related data.

To see the virtual service configuration, perform the following in the global configuration mode:RP/0/RP0/CPU0:router(config)# show run virtual-service

Deactivating CGv6 VM

To de-activate the CGv6 VM, perform the following in the global configuration mode:RP/0/RP0/CPU0:router(config)#virtual-service cgn123

RP/0/RP0/CPU0:router(config-virt-service)#no activate

RP/0/RP0/CPU0:router(config-virt-service)#commit

To remove the CGv6 instance, perform the following in the global configuration mode:RP/0/RP0/CPU0:router(config)#no virtual-service cgn123

RP/0/RP0/CPU0:router(config)#commit

Uninstalling CGv6 OVA Package

To uninstall the CGv6 OVA package, run the following commands in the EXEC mode:RP/0/RSP0/CPU0:router# virtual-service uninstall name cgn123

After you have uninstalled the CGv6 OVA package, reload the VSM card before installing any other OVApackage.

Upgrading Cisco IOS XR

Upgrade Cisco IOS XR. For details refer the Upgrading and Managing Cisco IOS XR software chapter inSystem Monitoring Configuration Guide for Cisco ASR 9000 Series Routers

Installing the CGv6 OVA Package

The process of installing the CGv6 OVA package consists of the following steps:

1. Copy the OVA file from the remote location to the RP disk.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x165

Carrier Grade IPv6 over Virtualized Services Module (VSM)Upgrading CGv6 OVA Package

Page 180: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Once the CGv6 OVA package is copied to RP's disk, you can install it on multiple VSMs on the same chasis.Note

2. Install CGv6 VM on a specific VSM card.RP/0/RSP0/CPU0:router#virtual-service install name <service/VM name> package <OVA packagename> node <VSM_location>

The installation process might take about 7-8 minutes.Note

3. Check the progress of the installation process by using the show virtual-service list command. Once theinstallation is complete, the status is changed to Installed.RP/0/RSP0/CPU0:router#sh virtual-service list

Virtual Service List:Name Status Package Name Nodecgn1 Installing asr9k-vsm-cgv6.ova 0/1/CPU0

RP/0/RSP0/CPU0:NAT#sh virtual-service list

Virtual Service List:Name Status Package Name Nodecgn1 Installed asr9k-vsm-cgv6.ova 0/1/CPU0

Restoring the Virtual Service Configuration

Restore the virtual service configuration.

CGv6 VM is activated automatically after the virtual service configuration is restored.

Check the progress of the activation process by using the show virtual-service list command. Once the VMis activated, the status changes to Activated.RP/0/RSP0/CPU0:router# show virtual-service list

Virtual Service List:Name Status Package Namecgn1 Activated asr9k-vsm-cgv6.ova

Once the VM is activated, it takes about 5 minutes for the CGv6 applications to come up.Note

VSM scale numbersASR9K supports the following VSM scale numbers:

Value per ASR9K Chassis withVSM

Value per VSMParameter Name

81Number of CGN or CGv6Instances

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x166

Carrier Grade IPv6 over Virtualized Services Module (VSM)VSM scale numbers

Page 181: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Value per ASR9K Chassis withVSM

Value per VSMParameter Name

81Number of Service InfraInterfaces

512Number of Service Appinterfaces

81Number of NAT44 instances

80 MillionsNumber of StatefulTranslation

80 MillionNumber of NAT session

4 MillionNumber of NAT users

6000Number of Static PortForwarding Entries

65536 or 16Number of Public IPv4addresses

128 (inside) + 128 (outside)Number of VRF per NAT44instance

32k per npBNG

8000VRF

15 Groups per NodeGDOI

(There are 15 Groups perNode. Two nodes for S2SVPN.)

80 MillionDS-Lite Sessions

80 MillionNAT64 Sessions

6RD

(ASR 9000 EnhancedEthernet Line Card is inlinewith 6RDwith an expectationrate of 90 percent.)

Number of VSM cards per chassis can be adjusted based on the type of chassis and traffic assessment.Note

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x167

Carrier Grade IPv6 over Virtualized Services Module (VSM)VSM scale numbers

Page 182: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Implementing NAT 64 over VSMThis section explains how NAT64 is implemented over VSM. The figure illustrates the implementation ofNAT64 over VSM.

The components of this implementation are as follows:

• Private IP6 subscribers – It denotes a private network.

• Interface/VLAN- It denotes a designated interface or VLAN which is associated with the VRF.

• Inside VRF – It denotes the VRF that handles packets coming from the subscriber network. It is knownas inside VRF as it forwards packets from the private network.

• App SVI- It denotes an application interface that forwards the data packet to and from the VSM. Thedata packet may be sent from another line card through a backplane. Because the VSM card does nothave a physical interface, the APP SVI acts as a logical entry into it.

The inside VRF is bound to an App SVI. There are 2 App SVIs required; one for the inside VRF and theother one for the outside VRF. Each App SVI pair will be associated with a unique "inside VRF" and aunique public IP address pool. The VRF consists of a static route for forwarding packets to App SVI1.

• Outside VRF- It denotes the VRF that handles packets going out to the public network. It is known asoutside VRF as it forwards packets from the public network.

• Public IPV4- It denotes a public network.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x168

Carrier Grade IPv6 over Virtualized Services Module (VSM)Implementing NAT 64 over VSM

Page 183: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

The following figure illustrates the path of the data packet from a private network to a public network in aNAT64 implementation.

The packet goes through the following steps when it travels from the private network to the public network:

1. In the network shown in this figure, the packet travels from the host A (having the IP address3001:DB8:E0E:E03::/40) in the private network to host B (having the IP address 11.11.11.2) in the publicnetwork. The private address has to be mapped to the public address by NAT64 that is implemented inVSM.

2. The packet enters through the ingress port on the Gigabit Ethernet (GigE) interface at Slot 3.

3. Once the packet reaches the designated interface or VLAN on ASR9K, it is forwarded to the inside VRFeither through static routing or ACL-based forwarding (ABL). Based on this routing decision, the packetthat needs address translation is determined and is forwarded to the App SVI that is bound to the VRF.

4. The packet is forwarded by AppSVI1 through a default static route. The destination address and the portget translated because of the CGN configuration applied on VSM.

5. The VSM applies NAT64 to the packet and a translation entry is created. The CGN determines thedestination address from the FIB Look Up. It pushes the packet to the egress port.

6. The packet is then forwarded to the egress port on the interface through App SVI2. The packet is forwardedby App SVI2 through the default static route. Then the packet is sent to the public network.

7. The packets that do not need the address translation can bypass the App SVI and can be forwarded to thedestination through a different static route and a different egress port.

The following figure illustrates the path of the packet coming from the public network to the private network.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x169

Carrier Grade IPv6 over Virtualized Services Module (VSM)Implementing NAT 64 over VSM

Page 184: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

The packet goes through the following steps when it travels from the public network to the private network:

1. In the network shown in this figure, the packet travels from the host A (having the IP address 11.11.11.2)in the public network to host B (having the IP address 3001:DB8:E0E:E03::) in the private network. Thepublic address has to be mapped to the private address by NAT64 that is implemented in VSM.

2. The packet enters through the ingress port on the Gigabit Ethernet (GigE) interface at Slot 3.

3. Once the packet reaches the designated interface or VLAN on ASR9K, it is forwarded to the outside VRFeither through static routing or ACL-based forwarding (ABL). Based on this routing decision, the packetis forwarded to the App SVI that is bound to the VRF.

4. The packet is forwarded by App SVI2 through a default static route. The destination address and the portare mapped to the translated address.

5. The VSM applies NAT64 to the packet. The CGN determines the destination address from the FIB LookUp. It pushes the packet to the egress port.

6. The packet is then forwarded to the egress port on the interface through App SVI2. Then the packet issent to the private network through the inside VRF.

7. The packets that do not need the address translation can bypass the App SVI and can be forwarded to thedestination through a different static route and a different egress port.

NAT44 and NAT 64 over VSMThe following are the features that are supported by NAT44 over VSM:

• TCP Sequence Check

• Address and Port-Dependent Filtering

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x170

Carrier Grade IPv6 over Virtualized Services Module (VSM)NAT44 and NAT 64 over VSM

Page 185: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

• NAT0 or NAT Bypass Mode

• Static Destination Address Translation

• Multiple NetFlow and Syslog Servers for CGN Logging

The following are the features that are supported by NAT64 over VSM:

• Address and Port-Dependent Filtering

• Multiple NetFlow Servers for CGN Logging

VSM scale numbers supported in NAT 44

NAT 44 supports the following VSM scale numbers:

Value per ASR9K Chassis withVSM

Value per VSMParameter Name

81Number of CGN or CGv6Instances

81Number of Service InfraInterfaces

512Number of Service Appinterfaces

81Number of NAT44 instances

80 x Number of InstalledVSM cards based on type ofchassis. Max 8 number ofVSM cards supported perchassis.

80 MillionsNumber of StatefulTranslation

80 x Number of InstalledVSM cards based on type ofchassis. Max 8 number ofVSM cards supported perchassis.

80 MillionNumber of NAT session

4 x Number of Installed VSMcards based on type of chassis.Max 8 number of VSM cardssupported per chassis.

4 MillionNumber of NAT users

6000 x Number of InstalledVSM cards based on type ofchassis. Max 8 number ofVSM cards supported perchassis.

6000Number of Static PortForwarding Entries

65536 or 16Number of Public IPv4addresses

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x171

Carrier Grade IPv6 over Virtualized Services Module (VSM)NAT44 and NAT 64 over VSM

Page 186: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Value per ASR9K Chassis withVSM

Value per VSMParameter Name

128 (inside) + 128 (outside)Number of VRF per NAT44instance

VSM Scale numbers supported in NAT 64

NAT 64 supports the following VSM scale number:

Value per ASR9K Chassis withVSM

Value per VSMParameter Name

80 MillionsNAT64 Sessions

TCP Sequence CheckIn order to overcome security threats to less secure networks, Cisco Virtualized Services Module (VSM)performs TCP sequence check.

A sequence number is a 32-bit number that is included in a packet in a TCP session. The sequence numbersof the incoming packets are stored in the translation or session entry. If a packet's sequence number does notmatch the expected sequence number, then the packet is dropped . In this way, the networks can be securedfrom spoofed packets.

You can perform these TCP sequence checks by using the sequence-check command. An optional keyword,diff-window, has been provided for a user to define and configure the accepted expected range of sequencenumbers. But it is recommended that the user does not specify this range and instead allows the router tocompute the range for each TCP session based on the client-server negotiation.

Two counters are configured for the TCP sequence checks:

• Out-to-In packets counter: This counter keeps a count of the packets whose sequence numbers did notmatch the expected range. But yet these packets are translated and forwarded because TCP sequencecheck has not been configured.

• Dropped packets counter: This counter keeps a count of the packets that were dropped because of theTCP sequence check.

The counters are displayed by using the show cgn nat44 counters command.

Address and Port-Dependent FilteringCurrently, CGN on VSM implements the following by default:

• Endpoint-Independent Mapping: This mapping process reuses the port mapping for subsequent packetsthat are sent from the same internal IP address and port to any external IP address and port.

• Endpoint-Independent Filtering: This filtering process filters out only packets that are not destined tothe internal address and port regardless of the external IP address and port source.

In such a configuration, by knowing the translated IP address and the port of a private host, any malicioushost in a public network can initiate packet floods to that private host. In order to prevent such attacks, theaddress and port-dependent filtering feature has to be enabled by using the filter-policy command. The usercan disable the filtering based on port by using the ignore-port keyword with this command.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x172

Carrier Grade IPv6 over Virtualized Services Module (VSM)TCP Sequence Check

Page 187: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Two counters are configured for the address and port-dependent filtering:

• Total number of sessions created due to Out2In packets: This counter keeps a count of the sessions thatwere created by the packets coming from outside.

• Number of Out2In drops due to end point filtering: This counter keeps a count of the packets that weredropped because of the endpoint filtering.

The counters are displayed by using the show cgn nat44 counters command.

NAT0 or NAT Bypass ModeFor some subscribers, a service provider may want to provide public addresses directly. Hence the NetworkAddress Translation (NAT) is not required for these IP addresses. But at the same time, services like endpointdependent filtering and TCP sequence check are required so that the subscribers do not receive any unwantedtraffic from the Internet. In such cases, NAT0 or NAT Bypass mode is supported per inside-VRF.

The NAT0 mode along with the TCP sequence check and endpoint dependent filtering offers protection tothe subscribers from Outside-to-Inside DoS attacks.

In this mode, when a subscriber sends a packet, an entry is made in the database. When the packet comesfrom the Outside-to-Inside direction, the entry is checked. But no translation occurs. The packet is allowedonly if the entry exists.

NAT0 mode can be enabled by using the nat-mode no-nat command.

Considerations

Some of the considerations regarding the NAT0 mode are as follows:

• Static port forwarding is applicable in this mode.

• Bulk port allocation is not applicable in this mode.

• There is no need for the public address pool to be configured as the translation does not happen.

• If you have not initiated any traffic, then you will not receive any packet. Hence bandwidth can be savedand controlled by the public IP user.

Static Destination Address TranslationIn static destination address translation, the VSM translates the destination IP address along with the sourceIP address. When a packet goes through NAT44, the source IP address translation happens. If the staticdestination address translation is enabled, then the destination IP address translation also takes place. For thesource address translation, the IP address is taken from the public address pool. For the destination addresstranslation, the user needs to provide a 1:1 mapping of the addresses in a .csv file.

To configure static destination address translation, use the static-mapping -file direction command. To deletethe existing configuration use the no static-mapping-file direction command. If you want to modify theexisting configuration, you can edit the existing .csv file and upload it back to the disk.

About the Static Mapping Configuration File

As mentioned before, the static mapping configuration file is in .csv format. The 1:1 mapping of the privateaddresses and the public addresses for the static destination address translation is provided in the .csv file. If

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x173

Carrier Grade IPv6 over Virtualized Services Module (VSM)NAT0 or NAT Bypass Mode

Page 188: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

this file becomes corrupt, then the destination address will not get translated. This file must be stored on thelocal disk.

The 1:1 mapping of the addresses must be in the following format in the .csv file:

13.1.1.0, 12.1.1.013.1.1.1, 12.1.1.113.1.1.2, 12.1.1.213.1.1.3, 12.1.1.313.1.1.4, 12.1.1.413.1.1.5, 12.1.1.5

The IP address, 13.1.1.0, is known as the premap IP address and the IP address, 12.1.1.0, as the postmap IPaddress

Note

Considerations

Some of the considerations regarding the static destination address translation are as follows:

• The static destination address translation feature currently supports static destination NAT in theInside-to-Outside direction and static source NAT in the Outside-to-Inside direction.

• Currently, the static destination address translation supports NAT44 only.

• The maximum value of entries for static mapping of addresses per VSM is 50K.

High Availability Support for the Route Switch Processor (RSP) Switchover

To ensure high availability during the RSP switchover, the user should manually copy the static mappingconfiguration file on both active RSP as well as the standby RSP.

VSM High Availability Support

The high availability of VSM is supported by default.

CGN and BNG Interoperability through NAT44 over VSMBNG interoperates with Carrier Grade NAT (CGN). To address the impending threat from IPv4 address spacedepletion, it is recommended that the remaining or available IPv4 addresses be shared among larger numbersof customers. This is done by using CGN, which primarily pulls the address allocation to a more centralizedNAT in the service provider network. NAT44 is a technology that uses CGN and helps manage depletionissues of the IPv4 address space. BNG supports the ability to perform NAT44 translation on IPoE andPPPoE-based BNG subscriber sessions.

For BNG and CGN interoperability, configure the BNG interface and the application service virtual interface(SVI) on the same VRF instance.

Note

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x174

Carrier Grade IPv6 over Virtualized Services Module (VSM)CGN and BNG Interoperability through NAT44 over VSM

Page 189: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Multiple NetFlow and Syslog Servers for CGN LoggingCisco IOS XR supports High Availability for NAT44 through multiple NetFlow or Syslog servers. Startingfrom Release 5.2.0, you can configure up to 8 additional NetFlow or Syslog Servers for a single inside VRFinstance.

In an inside VRF with multiple servers configured, the NetFlow logging policy will be enabled on all serversif it is enabled for one or more servers inside the VRF.

Note

In an inside VRF with multiple servers configured, the Syslog logging policy will be enabled on all serversif it is enabled for one or more servers inside the VRF.

Note

Dual Stack LiteThe Dual Stack Lite (DS-Lite) feature enables legacy IPv4 hosts and server communication over both IPv4and IPv6 networks. Also, IPv4 hosts may need to access IPv4 internet over an IPv6 access network. The IPv4hosts will have private addresses which need to have network address translation (NAT) completed beforereaching the IPv4 internet. The Dual Stack Lite application has these components:

• Basic Bridging BroadBand Element (B4): This is a Customer Premises Equipment (CPE) router thatis attached to the end hosts. The IPv4 packets entering B4 are encapsulated using a IPv6 tunnel and sentto the Address Family Transition Router (AFTR).

• Address Family Transition Router(AFTR): This is the router that terminates the tunnel from the B4.It decapsulates the tunneled IPv4 packet, translates the network address and routes to the IPv4 network.In the reverse direction, IPv4 packets coming from the internet are reverse network address translatedand the resultant IPv4 packets are sent the B4 using a IPv6 tunnel.

The Dual Stack Lite feature helps in these functions:

1. Tunnelling IPv4 packets from CE devices over IPv6 tunnels to the CGSE blade.

2. Decapsulating the IPv4 packet and sending the decapsulated content to the IPv4 internet after completingnetwork address translation.

3. In the reverse direction completing reverse-network address translation and then tunnelling them overIPv6 tunnels to the CPE device.

IPv6 traffic from the CPE device is natively forwarded.

VSM scale numbers supported in Dual Stack Lite

Dual Stack Lite supports the following VSM scale number:

Value per ASR9K Chassis withVSM

Value per VSMParameter Name

80 MillionsDS-Lite Sessions

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x175

Carrier Grade IPv6 over Virtualized Services Module (VSM)Multiple NetFlow and Syslog Servers for CGN Logging

Page 190: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Scalability and Performance of DS Lite• Supports a total of 60 million translations.

• Number of unique users behind B4 router, basically IPv6 and IPv4 Source tuple, can scale to 1 million.

• There is no real limit to the number of B4 routers and their associated tunnels connecting to the AFTR,except the session limit, which is 20 million B4 routers (assuming each router has only one session). Inreality, a maximum of 1 million B4 routers can connect to an AFTR at any given time.

• The performance of DS-Lite traffic, combined IPv4 and IPv6, is 39 Gbps.

Implementing NAT44 or NAT64 over VSMThis section explains the implementation of NAT44 or NAT64 on VSM.

Configuring NAT44 over VSMPerform the following tasks to configure NAT44 on VSM:

1. Configuring a NAT44 Instance, on page 39

2. Configuring the Application Service Virtual Interface (NAT44), on page 37

3. Configuring an Inside and Outside Address Pool Map (NAT44), on page 40

Configuring a NAT44 InstancePerform this task to configure a NAT44 instance.

The system does not support deleting VRF on live traffic in the following scenarios:

• If you are in the global configuration mode.

• If you are within the CGN instance.

• If you are in the static route table.

Note

SUMMARY STEPS

1. configure2. service cgn nat44instance-name3. service-location preferred-active VSM location4. service-type nat44 nat15. end or commit

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x176

Carrier Grade IPv6 over Virtualized Services Module (VSM)Scalability and Performance of DS Lite

Page 191: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6 NAT44application and enters CGv6 configuration mode.

service cgn nat44instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the NAT preferred active VSM location.service-location preferred-active VSM location

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-locationpreferred-active 0/3/CPU0

Configures the service type keyword definition for CGv6NAT44 application.

service-type nat44 nat1

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Saves configuration changes.end or commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn)# end

orRP/0/RP0/CPU0:router(config-cgn)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Application Service Virtual Interface (NAT44)Perform this task to configure the application service virtual interface (SVI) to forward data traffic.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x177

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Application Service Virtual Interface (NAT44)

Page 192: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

SUMMARY STEPS

1. configure2. interface ServiceApp value3. service cgn instance-name service-type nat444. vrf vrf-name5. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the application SVI as 1 and enters interfaceconfiguration mode.

interface ServiceApp value

Example:

Step 2

RP/0/RP0/CPU0:router(config)# interface ServiceApp1RP/0/RP0/CPU0:router(config-if)#

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name service-type nat44

Example:

Step 3

RP/0/RP0/CPU0:router(config-if)# service cgn cgn1

Configures the VPN routing and forwarding (VRF) for theService Application interface

vrf vrf-name

Example:

Step 4

RP/0/RP0/CPU0:router(config-if)# vrf insidevrf1

Saves configuration changes.end or commit

Example:

Step 5

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-if)# end

orRP/0/RP0/CPU0:router(config-if)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x178

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Application Service Virtual Interface (NAT44)

Page 193: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring an Inside and Outside Address Pool Map (NAT44)Perform this task to configure an inside and outside address pool map with the following scenarios:

• The designated address pool is used for CNAT.

• One inside VRF is mapped to only one outside VRF.

• Multiple non-overlapping address pools can be used in a specified outside VRF mapped to differentinside VRF.

• Max Outside public pool per CGSE/CGN instance is 64 K or 65536 addresses. That is, if a /16 addresspool is mapped, then we cannot map any other pool to that particular CGSE.

• Multiple inside vrf cannot be mapped to same outside address pool.

• While Mapping Outside Pool Minimum value for prefix is 16 and maximum value is 26.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat44 nat14. inside-vrf vrf-name5. map [outside-vrf outside-vrf-name] address-pool address/prefix6. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGNNAT44 application.

service-type nat44 nat1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x179

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring an Inside and Outside Address Pool Map (NAT44)

Page 194: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures an inside VRF named insidevrf1 and entersCGN inside VRF configuration mode.

inside-vrf vrf-name

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-nat44)# inside-vrfinsidevrf1RP/0/RP0/CPU0:router(config-cgn-invrf)#

Configures an inside VRF to an outside VRF and addresspool mapping.

map [outside-vrf outside-vrf-name] address-pooladdress/prefix

Example:

Step 5

RP/0/RP0/CPU0:router(config-cgn-invrf)# mapoutside-vrf outside vrf1 address-pool 10.10.0.0/16orRP/0/RP0/CPU0:router(config-cgn-invrf)# mapaddress-pool 100.1.0.0/16

Saves configuration changes.end or commit

Example:

Step 6

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-invrf-afi)# end

orRP/0/RP0/CPU0:router(config-cgn-invrf-afi)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Predefined NATIn classic NAT, the process of mapping a private IP to a public IP or a private port to an outside port is random.Therefore, it becomes difficult to track the subscribers using an IP and a port at a given time. Predefined NATavoids this random process bymapping a private IP address to a range of ports associatedwith the correspondingpublic IP address. This is done through an algorithm that helps the user to recognize a private IP addresswithout having to refer to the massive CGN logs. The address and port translation is done in accordance withthe algorithm.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x180

Carrier Grade IPv6 over Virtualized Services Module (VSM)Predefined NAT

Page 195: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

In a predefined NAT configuration, if you want to trace a subscriber’s private IP address from a public IPaddress and the associated port, perform the following steps:

• Whenever NAT is configured on a router or when there is a change in the existing configuration, use thefollowing command to get the complete mapping information of private to public users:

show cgn nat44 instance-namemapping {inside-address | outside-address} inside-vrfvrf-instancestart-addr start address [ end-addrend address]

In the above command, specify the lowest address of the configured public IP pool as start address andthe highest address of the pool as end address. This command dumps all the mapping for each privateIP, the translated public IP, and port range. It is recommended that you divert this output in to a file andsave it for future reference. Save this output to separate files each time you change the NAT44configuration parameters and note down the time at which the changes were made and the correspondingfile name.

• Whenever there is a request to trace back the subscriber’s private IP address, access the right file basedon the timestamp provided. The file will have the public IP and port range to which the specified portbelongs. The private IP address in that row will help identify the subscriber.

Considerations and Limitations of Predefined NATThe considerations and the limitations of the predefined mode for NAT 44 are as follows:

• You can configure the predefined mode for each of the inside VRF instance.

• A new parameter, private address range, has been added to the NAT 44 configuration for the predefinedmode. You can specify a minimum of one private address range to a maximum of eight private addressranges. Ensure that you specify atleast one private address range because the available public addressesand the associated ports are mapped to the private addreses specified in this range. If the incoming packethas an address that is outside the private address range, then the packet is discarded. Ensure that the sumof all addresses should not exceed one million across all predefined mode-enabled VRFs.

• The Bulk Port Allocation configuration is not available in the predefined mode. If you try to configureBulk Port Allocation on an inside VRF that has the predefined mode enabled, the configuration is rejectedduring verification.

• The port-preservation option is not available in the predefined mode.

• The global port limit parameter is not available for the predefined mode. Even though you will be allowedto configure the global port limit, the inside VRF, which has predefined mode enabled, ignores that portlimit and uses the port limit configured by the algorithm.

• If you turn the predefined mode on or off for an inside VRF during the active translations, all thetranslations on that VRF are deleted.

• If a request for configuring static port on a private address that is not in the address range is made, therequest is rejected.

• Ensure that you configure NetFlow or syslog only if it is very much required.

• Any configuration change that results in changes in mapping deletes the existing translations. Therefore,ensure that you record such configuration changes. You might need this information to trace the portusage by a subscriber.

• Ensure uniform port allocation uniform for all subscribers.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x181

Carrier Grade IPv6 over Virtualized Services Module (VSM)Considerations and Limitations of Predefined NAT

Page 196: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Configuring the Predefined Mode for NAT44Perform these tasks to configure the predefined mode for NAT44.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat44 nat14. inside-vrf vrf-name5. map address-pool address/prefix6. nat-mode7. predefined ipaddress/prefix8. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGNNAT44 application.

service-type nat44 nat1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Configures an inside VRF named insidevrf1 and entersCGv6 inside VRF configuration mode.

inside-vrf vrf-name

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-nat44)# inside-vrfinsidevrf1RP/0/RP0/CPU0:router(config-cgn-invrf)#

Maps an inside VRF to an outside VRF and address poolmapping.

map address-pool address/prefix

Example:

Step 5

RP/0/RP0/CPU0:router(config-cgn-invrf)# mapaddress-pool 10.10.0.0/16

Specifies the predefined mode for NAT44.nat-mode

Example:

Step 6

RP/0/RP0/CPU0:router(config-cgn-invrf)# nat-mode

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x182

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Predefined Mode for NAT44

Page 197: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Specifies the private address range for the predefinedmode.You can specify a minimum of one address range to eightaddess ranges.

predefined ipaddress/prefix

Example:RP/0/RP1/CPU0:router(config-cgn-invrf-natmode)#predefined private-pool 192.1.106.0/24

Step 7

RP/0/RP1/CPU0:router(config-cgn-invrf-natmode)#predefined private-pool 192.1.107.0/26RP/0/RP1/CPU0:router(config-cgn-invrf-natmode)#predefined private-pool 192.1.107.128/26

Saves configuration changes.end or commit

Example:

Step 8

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-invrf-natmode)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-invrf-natmode)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring NAT64 over VSMPerform the following tasks to configure NAT64 on VSM:

1. Configuring a NAT64 Instance, on page 183

2. Configuring the Application Service Virtual Interface (NAT64), on page 185

3. Configuring an Inside and Outside Address Pool Map (NAT64), on page 187

Configuring a NAT64 InstancePerform this task to configure a NAT64 instance.

SUMMARY STEPS

1. configure

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x183

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring NAT64 over VSM

Page 198: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

2. service cgn instance-name3. service-location preferred-active VSM location4. service-type nat64 stateful instance-name5. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6 NAT64application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the NAT preferred active VSM location.service-location preferred-active VSM location

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-locationpreferred-active 0/3/CPU0

Configures the service type keyword definition for CGv6Stateful NAT64 application.

service-type nat64 stateful instance-name

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn)# service-typenat64 stateful nat64-inst

Saves configuration changes.end or commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-nat64-stateful)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

orRP/0/RP0/CPU0:router(config-cgn-nat64-stateful)#commit

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x184

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring a NAT64 Instance

Page 199: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Configuring the Application Service Virtual Interface (NAT64)Perform this task to configure the application service virtual interface (SVI) to forward data traffic.

SUMMARY STEPS

1. configure2. interface ServiceApp value3. vrf vrf-name4. ipv6 addressaddress5. service cgn instance-name service-type nat64 stateful6. commit7. interface ServiceApp value8. vrf vrf-name9. ipv4 address address10. service cgn instance-name service-type nat64 stateful11. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the application SVI as 1 and enters interfaceconfiguration mode.

interface ServiceApp value

Example:

Step 2

RP/0/RP0/CPU0:router(config)# interface ServiceApp1RP/0/RP0/CPU0:router(config-if)#

Configures the VPN routing and forwarding (VRF) for theService Application interface

vrf vrf-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-if)# vrf insidevrf1

Configures the IPv6 address.ipv6 addressaddress

Example:

Step 4

RP/0/RP0/CPU0:router(config-if)# ipv6 address5001::5555/96

Configures the instance named cgn1 and the service typekeyword definition for CGv6 Stateful NAT64 application.

service cgn instance-name service-type nat64 stateful

Example:

Step 5

RP/0/RP0/CPU0:router(config)# service cgn cgn1service-type nat64 statefulRP/0/RP0/CPU0:router(config-cgn-nat64-stateful)#

Saves configuration changes.commit

Example:

Step 6

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x185

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Application Service Virtual Interface (NAT64)

Page 200: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

RP/0/RP0/CPU0:router(config-cgn-nat64-stateful)#commit

Configures the application SVI as 2 and enters interfaceconfiguration mode.

interface ServiceApp value

Example:

Step 7

RP/0/RP0/CPU0:router(config)# interface ServiceApp2RP/0/RP0/CPU0:router(config-if)#

Configures the VPN routing and forwarding (VRF) for theService Application interface

vrf vrf-name

Example:

Step 8

RP/0/RP0/CPU0:router(config-if)# vrf outsidevrf1

Configures the IPv4 address.ipv4 address address

Example:

Step 9

RP/0/RP0/CPU0:router(config-if)# ipv4 address211.1.1.1 255.255.255.0

Configures the instance named cgn1 and the service typekeyword definition for CGv6 Stateful NAT64 application.

service cgn instance-name service-type nat64 stateful

Example:

Step 10

RP/0/RP0/CPU0:router(config)# service cgn cgn1service-type nat64 statefulRP/0/RP0/CPU0:router(config-cgn-nat64-stateful)#

Saves configuration changes.end or commit

Example:

Step 11

• When you issue the end command, the systemprompts you to commit changes:RP/0/RP0/CPU0:router(config-cgn-nat64-stateful)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-nat64-stateful)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x186

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Application Service Virtual Interface (NAT64)

Page 201: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Configuring an Inside and Outside Address Pool Map (NAT64)Perform this task to configure an inside and outside address pool map with the following scenarios:

• The designated address pool is used for CNAT.

• One inside VRF is mapped to only one outside VRF.

• Multiple non-overlapping address pools (up to a maximum of eight) can be used in a specified outsideVRF mapped to different inside VRF.

• Max Outside public pool per CGSE/CGN instance is 64 K or 65536 addresses. That is, if a /16 addresspool is mapped, then we cannot map any other pool to that particular CGSE.

• Multiple inside vrf cannot be mapped to same outside address pool.

• While Mapping Outside Pool Minimum value for prefix is 16 and maximum value is 26.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat64 stateful instance-name4. ipv6-prefix address/prefix5. ipv4-address-pool address/prefix6. dynamic-port-range start port-number7. address-family ipv48. interface ServiceApp value9. address-family ipv610. interface ServiceApp value11. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters the CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)#service cgn cgn1

Configures the service type keyword definition for CGv6Stateful NAT64 application.

service-type nat64 stateful instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat64 stateful nat64_1

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x187

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring an Inside and Outside Address Pool Map (NAT64)

Page 202: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the IPv6 prefix that is used to convertdestination IPv6 address to an external destination IPv4address.

ipv6-prefix address/prefix

Example:RP/0/RP0/CPU0:router(config-cgn-nat64-stateful)#ipv6-prefix 3301:db8:1::/96

Step 4

Defines the IPv4 address pool.ipv4-address-pool address/prefix

Example:

Step 5

RP/0/RP0/CPU0:router(config-cgn-nat64-stateful)#ipv4 address-pool 62.1.0.0/18

Configures the port range from 1 to 65535.dynamic-port-range start port-number

Example:

Step 6

RP/0/RP0/CPU0:router(config-cgn-nat64-stateful)#dynamic-port-rangestart 1

Enters the address family IPv4 configuration mode.address-family ipv4

Example:

Step 7

RP/0/RP0/CPU0:router(config-cgn-nat64-stateful)#address-family ipv4

Specifies the ServiceApp on which IPv4 traffic enters andleaves.

interface ServiceApp value

Example:

Step 8

RP/0/RP0/CPU0:router(config-cgn-nat64-stful-afi)#interface ServiceApp2

Enters the address family IPv6 configuration mode.address-family ipv6

Example:

Step 9

RP/0/RP0/CPU0:router(config-cgn-nat64-stful-afi)#address-family ipv6

Specifies the ServiceApp on which IPv6 traffic enters andleaves.

interface ServiceApp value

Example:

Step 10

RP/0/RP0/CPU0:router(config-cgn-nat64-stful-afi)#interface ServiceApp1

Saves configuration changes.end or commit

Example:

Step 11

• When you issue the end command, the systemprompts you to commit changes:RP/0/RP0/CPU0:router(config-cgn-nat64-stful-afi)#

commit Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x188

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring an Inside and Outside Address Pool Map (NAT64)

Page 203: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring DS-LitePerform these tasks to configure DS-Lite.

Configuring the Application Service Virtual InterfacePerform this task to configure the application service virtual interface (SVI) to forward data traffic.

SUMMARY STEPS

1. configure2. interface ServiceApp value3. service cgn instance-name service-type ds-lite4. vrf vrf-name5. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the application SVI as 1 and enters interfaceconfiguration mode.

interface ServiceApp value

Example:

Step 2

RP/0/RP0/CPU0:router(config)# interface ServiceApp1RP/0/RP0/CPU0:router(config-if)#

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name service-type ds-lite

Example:

Step 3

RP/0/RP0/CPU0:router(config-if)# service cgn cgn1service-type ds-lite

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x189

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring DS-Lite

Page 204: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the VPN routing and forwarding (VRF) for theService Application interface

vrf vrf-name

Example:

Step 4

RP/0/RP0/CPU0:router(config-if)# vrf insidevrf1

Saves configuration changes.end or commit

Example:

Step 5

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-if)# end

orRP/0/RP0/CPU0:router(config-if)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring Dual Stack Lite InstancePerform this task to configure dual stack lite application.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-location preferred-active node-id [preferred-standby node-id]4. service-type ds-lite instance5. portlimit value6. bulk-port-alloc size value7. map address-pool address8. aftr-tunnel-endpoint-address <address>9. address-family ipv410. interface ServiceApp4111. address-family ipv612. interface ServiceApp6113. protocol tcp

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x190

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring Dual Stack Lite Instance

Page 205: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

14. session {initial | active} timeout seconds15. msssize16. external-logging netflow917. server18. address A.B.C.D port port-number19. external-logging syslog20. server21. address A.B.C.D port port-number22. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Specifies the global command applied per cgn instance. Itinitiates the particular instance of the cgn application onthe active and standby locations.

service-location preferred-active node-id[preferred-standby node-id]

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-locationpreferred-active 0/2/CPU0 preferred-standby0/4/CPU0

Configures the service type keyword definition for the DSLITE application.

service-type ds-lite instance

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite dsl1

Configures the service type keyword definition for the DSLITE application.

portlimit value

Example:

Step 5

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite dsl1

Enables bulk port allocation and sets bulk size that is usedto reduce logging data volume.

bulk-port-alloc size value

Example:

Step 6

RP/0/RP0/CPU0:router(config-cgn-ds-lite)#bulk-port-alloc size 128

Specifies the address pool for the DS LITE instance.map address-pool addressStep 7

Example: 52.52.52.0/24 is the IPv4 public address poolassigned to the DS Lite instance.

Note

RP/0/RP0/CPU0:router(config-cgn-ds-lite)# mapaddress-pool 52.52.52.0/24

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x191

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring Dual Stack Lite Instance

Page 206: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Specifies the IPv6 address of the tunnel end point. TheIPv4 elements must address their IPV6 packets to thisaddress.

aftr-tunnel-endpoint-address <address>

Example:RP/0/RP0/CPU0:router(config-cgn-ds-lite)#aftr-tunnel-endpoint address 3001:DB8:EOE:E01::

Step 8

Enters the address family IPv4 configuration mode.address-family ipv4

Example:

Step 9

RP/0/RP0/CPU0:router(config-cgn-ds-lite)#address-family ipv4

Specifies the ServiceApp on which IPv4 traffic enters andleaves.

interface ServiceApp41

Example:

Step 10

RP/0/RP0/CPU0:router(config-cgn-ds-lite-afi)#interface ServiceApp41

Enters the address family IPv6 configuration mode.address-family ipv6

Example:

Step 11

RP/0/RP0/CPU0:router(config-cgn-ds-lite)#address-family ipv6

Specifies the ServiceApp on which IPv6 traffic enters andleaves.

interface ServiceApp61

Example:

Step 12

RP/0/RP0/CPU0:router(config-cgn-ds-lite-afi)#interface ServiceApp61

Configures the TCP protocol session.protocol tcp

Example:

Step 13

RP/0/RP0/CPU0:router(config-cgn-ds-lite-afi)#protocol tcp

This command configures the timeout value in secondsfor ICMP,TCP or UDP sessions for a service instance. For

session {initial | active} timeout seconds

Example:

Step 14

TCP and UDP, you can configure the initial and activeRP/0/RP0/CPU0:router(config-cgn-proto)# sessioninitial timeout 90

session timeout values. For ICMP, there are no suchoptions. This configuration is applicable to all the IPv4addresses that belong to a particular service instance. Thisexample configures the initial session timeout value as 90for the TCP session.

Configures the adjustment MSS value as 1100.msssize

Example:

Step 15

RP/0/RP0/CPU0:router(config-cgn-proto)# mss 1100

Configures the external-logging facility for the DS LITEinstance named dsl1 and enters the external loggingconfiguration mode.

external-logging netflow9

Example:RP/0/RP0/CPU0:router(config-cgn-ds-lite)#external-logging netflowv9

Step 16

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x192

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring Dual Stack Lite Instance

Page 207: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the logging server information for the IPv4address and port for the server that is used for the

server

Example:

Step 17

netflow-v9 based external-logging facility and entersexternal logging server configuration mode.RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

server

Configures the netflow server address and port number touse for netflow version 9 based external logging facilityfor DS LITE instance.

address A.B.C.D port port-number

Example:RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog-server)#address 90.1.1.1 port 99

Step 18

Configures the external-logging facility for the DS LITEtranslation entries that can be logged in syslog servers toanalyze and debug the information.

external-logging syslog

Example:RP/0/RP0/CPU0:router(config-cgn-ds-lite)#external-logging syslog

Step 19

Configures the logging server information for the IPv4address and port for the server that is used for the syslogbased external-logging facility.

server

Example:RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#server

Step 20

RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog-server)#

Configures the syslog server address and port number touse for syslog based external logging facility for DS LITEinstance.

address A.B.C.D port port-number

Example:RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog-server)#address 90.1.1.1 port 514

Step 21

Saves configuration changes.end or commit

Example:

Step 22

• When you issue the end command, the systemprompts you to commit changes:RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog-server)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog-server)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x193

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring Dual Stack Lite Instance

Page 208: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Policy FunctionsPerform these tasks to configure the policy functions.

Configuring IPv6 Tunnel Endpoint AddressPerform this task to configure the IPv6 tunnel endpoint address:

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite instance name4. aftr-tunnel-endpoint-address X:X::X IPv6 address5. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6DS-Lite application.

service-type ds-lite instance name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1

Configures an IPv6 tunnel endpoint address.aftr-tunnel-endpoint-address X:X::X IPv6 address

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-ds-lite)#aftr-tunnel-endpoint-address 10:2::10RP/0/RP0/CPU0:router(config-cgn-ds-lite)

Saves configuration changes.end or commit

Example:

Step 5

• When you issue the end command, the system promptsyou to commit changes:

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x194

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Policy Functions

Page 209: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router(config-cgn-ds-lite)# endorRP/0/RP0/CPU0:router(config-cgn-ds-lite)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Port Limit per SubscriberPerform this task to configure the port limit per subscriber for the system that includes TCP, UDP, and ICMP.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite ds-lite14. portlimit value5. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6DS-Lite application.

service-type ds-lite ds-lite1

Example:

Step 3

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x195

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Port Limit per Subscriber

Page 210: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1

Configures the port value that restricts the number oftranslations for the ds-lite instance.

portlimit value

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-ds-lite)# portlimit10

Saves configuration changes.end or commit

Example:

Step 5

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn)# end

orRP/0/RP0/CPU0:router(config-cgn)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Timeout Value for ICMP, TCP and UDP SessionsPerform this task to configure the timeout value for ICMP, TCP or UDP sessions for a Dual Stack Lite (DSLite) instance:

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite instance-name4. protocol tcp session {active | initial} timeout value or protocol {icmp | udp} timeout value5. end or commit

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x196

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Timeout Value for ICMP, TCP and UDP Sessions

Page 211: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6DS-Lite application.

service-type ds-lite instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite-instRP/0/RP0/CPU0:router(config-cgn-ds-lite)#

Configures the initial and active session timeout values forTCP.

protocol tcp session {active | initial} timeout value orprotocol {icmp | udp} timeout value

Step 4

Example: Configures the timeout value in seconds for ICMP andUDP.RP/0/RP0/CPU0:router(config-cgn-ds-lite)#protocoltcp session active timeout 90orprotocol icmp timeout 90RP/0/RP0/CPU0:router(config-cgn-ds-lite)

Saves configuration changes.end or commit

Example:

Step 5

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-ds-lite)# end

orRP/0/RP0/CPU0:router(config-cgn-ds-lite)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x197

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Timeout Value for ICMP, TCP and UDP Sessions

Page 212: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Configuring the FTP ALG for DS-Lite InstancePerform this task to configure the FTP ALG for the specified DS-Lite instance.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite ds-lite14. alg ftp5. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for NAT44or DS-Lite application.

service-type ds-lite ds-lite1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1

Configures the FTP ALG on the DS-Lite instance.alg ftp

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-ds-lite)# alg ftp

Saves configuration changes.end or commit

Example:

Step 5

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn)# end

orRP/0/RP0/CPU0:router(config-cgn)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x198

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the FTP ALG for DS-Lite Instance

Page 213: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the RTSP ALG for DS-Lite InstancePerform this task to configure the ALG for the rtsp for the specified DS-Lite instance. RTSP packets areusually destined to port 554. But this is not always true because RTSP port value is configurable.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite ds-lite14. alg rtsp [server-port] value5. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for DS-Liteapplication.

service-type ds-lite ds-lite1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1

Configures the rtsp ALG on the DS-Lite instance for serverport 5000. The range is from 1 to 65535. The default portis 554.

alg rtsp [server-port] value

Example:RP/0/RP0/CPU0:router(config-cgn-nat44)# alg rtspserver-port 5000

Step 4

The option of specifying a server port) iscurrently not supported. Even if you configuresome port, RTSP works only on the default port(554).

Caution

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x199

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the RTSP ALG for DS-Lite Instance

Page 214: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Saves configuration changes.end or commit

Example:

Step 5

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn)# end

orRP/0/RP0/CPU0:router(config-cgn)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

TCP Maximum Segment Size AdjustmentWhen a host initiates a TCP session with a server, the host negotiates the IP segment size by using the maximumsegment size (MSS) option. The value of the MSS option is determined by the maximum transmission unit(MTU) that is configured on the host.

Configuring an Address Pool MapPerform this task to configure an address pool map.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite instance-name4. map address-pool address/prefix5. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x200

Carrier Grade IPv6 over Virtualized Services Module (VSM)TCP Maximum Segment Size Adjustment

Page 215: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6DS-Lite application.

service-type ds-lite instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1

Configures an address pool mapping.map address-pool address/prefix

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-ds-lite)# mapaddress-pool 10.10.0.0/16orRP/0/RP0/CPU0:router(config-cgn-ds-lite)# mapaddress-pool 100.1.0.0/16

Saves configuration changes.end or commit

Example:

Step 5

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Path Maximum Transmission Unit

Before you begin

DS-Lite

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x201

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Path Maximum Transmission Unit

Page 216: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite ds-lite14. path-mtu value5. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for DS-Liteapplication.

service-type ds-lite ds-lite1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1RP/0/RP0/CPU0:router(config-cgn-ds-lite)#

Configures the path MTU with the value of 2900 for theDS-Lite instance.

path-mtu value

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-ds-lite)# path-mtu2000RP/0/RP0/CPU0:router(config-cgn-ds-lite)

Saves configuration changes.end or commit

Example:

Step 5

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-ds-lite)# end

orRP/0/RP0/CPU0:router(config-cgn-ds-lite)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x202

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Path Maximum Transmission Unit

Page 217: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring External Logging for DS-Lite EntriesPerform the following to configure external logging for DS-Lite entries.

Netflow Logging

Perform the following tasks to configure Netflow Logging for NAT table entries.

Configuring the Server Address and Port for Syslog Logging

Perform this task to configure the server address and port to log DS-Lite entries for Syslog logging.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite instance_name4. external-logging syslog5. server6. addressaddressportnumber7. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for theDS-Lite application.

service-type ds-lite instance_name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x203

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring External Logging for DS-Lite Entries

Page 218: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the external-logging facility for the CGv6instance named cgn1 and enters CGv6 external loggingconfiguration mode.

external-logging syslog

Example:RP/0/RP0/CPU0:router(config-cgn-ds-lite)#external-loggingsyslogRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

Step 4

Configures the logging server information for the IPv4address and port for the server that is used for the

server

Example:

Step 5

syslog-based external-logging facility and enters CGv6external logging server configuration mode.RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

serverRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#

Configures the IPv4 address and port number 45 to logNetflow entries.

addressaddressportnumber

Example:

Step 6

RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#address2.3.4.5 port 45

Saves configuration changes.end or commit

Example:

Step 7

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#end

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Path Maximum Transmission Unit

Before you begin

DS-Lite

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x204

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Path Maximum Transmission Unit

Page 219: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite ds-lite14. path-mtu value5. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for DS-Liteapplication.

service-type ds-lite ds-lite1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1RP/0/RP0/CPU0:router(config-cgn-ds-lite)#

Configures the path MTU with the value of 2900 for theDS-Lite instance.

path-mtu value

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-ds-lite)# path-mtu2000RP/0/RP0/CPU0:router(config-cgn-ds-lite)

Saves configuration changes.end or commit

Example:

Step 5

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-ds-lite)# end

orRP/0/RP0/CPU0:router(config-cgn-ds-lite)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x205

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Path Maximum Transmission Unit

Page 220: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Refresh Rate for Netflow Logging

Perform this task to configure the refresh rate at which the Netflow-v9 logging templates are refreshed orresent to the Netflow-v9 logging server.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite ds-lite14. external-logging netflowv95. server6. refresh-rate value7. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6DS-Lite application..

service-type ds-lite ds-lite1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1RP/0/RP0/CPU0:router(config-cgn-ds-lite)#

Configures the external-logging facility for the CGNinstance named cgn1 and enters CGN external loggingconfiguration mode.

external-logging netflowv9

Example:RP/0/RP0/CPU0:router(config-cgn-ds-lite)#external-logging netflow9

Step 4

RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

Configures the logging server information for the IPv4address and port for the server that is used for the

server

Example:

Step 5

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x206

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Refresh Rate for Netflow Logging

Page 221: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

netflow9-based external-logging facility and enters CGv6external logging server configuration mode..

RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)# serverRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#

Configures the refresh rate value of 200 to logNetflow-based external logging information.

refresh-rate value

Example:

Step 6

RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#refresh-rate 200RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)

Saves configuration changes.end or commit

Example:

Step 7

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Timeout for Netflow Logging

Perform this task to configure the frequency in minutes at which the Netflow-V9 logging templates are to besent to the Netflow-v9 logging server.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite ds-lite14. external-logging netflowv95. server6. timeoutvalue7. end or commit

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x207

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Timeout for Netflow Logging

Page 222: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for DS-Liteapplication.

service-type ds-lite ds-lite1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1

Configures the external-logging facility for the CGv6instance named cgn1 and enters CGv6 external loggingconfiguration mode.

external-logging netflowv9

Example:RP/0/RP0/CPU0:router(config-cgn-ds-lite)#external-logging netflow9

Step 4

RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

Configures the logging server information for the IPv4address and port for the server that is used for the

server

Example:

Step 5

netflow9-based external-logging facility and enters CGv6external logging server configuration mode.RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

serverRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#

Configures the timeout value of 200 for Netflow loggingof the DS-Lite instance.

timeoutvalue

Example:

Step 6

RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#timeout 200RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)

Saves configuration changes.end or commit

Example:

Step 7

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x208

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Timeout for Netflow Logging

Page 223: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

(Only NAT44) Syslog Logging

Perform the following tasks to configure Syslog Logging for NAT table entries.

Configuring the Server Address and Port for Syslog Logging

Perform this task to configure the server address and port to log DS-Lite entries for Syslog logging.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite instance_name4. external-logging syslog5. server6. addressaddressportnumber7. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for theDS-Lite application.

service-type ds-lite instance_name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x209

Carrier Grade IPv6 over Virtualized Services Module (VSM)(Only NAT44) Syslog Logging

Page 224: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the external-logging facility for the CGv6instance named cgn1 and enters CGv6 external loggingconfiguration mode.

external-logging syslog

Example:RP/0/RP0/CPU0:router(config-cgn-ds-lite)#external-loggingsyslogRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

Step 4

Configures the logging server information for the IPv4address and port for the server that is used for the

server

Example:

Step 5

syslog-based external-logging facility and enters CGv6external logging server configuration mode.RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

serverRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#

Configures the IPv4 address and port number 45 to logNetflow entries.

addressaddressportnumber

Example:

Step 6

RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#address2.3.4.5 port 45

Saves configuration changes.end or commit

Example:

Step 7

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#end

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Host-Name for Syslog Logging

Perform this task to configure the host name to be filled in the Netflow header for the syslog logging.

SUMMARY STEPS

1. configure2. service cgn instance-name

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x210

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Host-Name for Syslog Logging

Page 225: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

3. service-type ds-lite ds-lite14. external-logging syslog5. server6. host-namename7. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for theDS-Lite application.

service-type ds-lite ds-lite1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1

Configures the external-logging facility for the CGv6instance named cgn1 and enters CGv6 external loggingconfiguration mode.

external-logging syslog

Example:RP/0/RP0/CPU0:router(config-cgn-ds-lite)#external-loggingsyslogRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

Step 4

Configures the logging server information for the IPv4address and port for the server that is used for the

server

Example:

Step 5

syslog-based external-logging facility and enters CGv6external logging server configuration mode.RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

serverRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#

Configures the host name for the syslog-basedexternal-logging facility.

host-namename

Example:

Step 6

RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#host-namehost1

Saves configuration changes.end or commit

Example:

Step 7

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#end

orRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x211

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Host-Name for Syslog Logging

Page 226: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Path Maximum Transmission Unit for Syslog Logging

Perform this task to configure the pathmaximum transmission unit (MTU) for the syslog-based external-loggingfacility.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite instance_name4. external-logging syslog5. server6. path-mtuvalue7. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for theDS-Lite application.

service-type ds-lite instance_name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x212

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Path Maximum Transmission Unit for Syslog Logging

Page 227: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the external-logging facility for the CGv6instance named cgn1 and enters CGv6 external loggingconfiguration mode.

external-logging syslog

Example:RP/0/RP0/CPU0:router(config-cgn-ds-lite)#external-loggingsyslogRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

Step 4

Configures the logging server information for the IPv4address and port for the server that is used for the

server

Example:

Step 5

syslog-based external-logging facility and enters CGv6external logging server configuration mode.RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

serverRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#

Configures the path MTU with the value of 200 for thesyslog-based external-logging facility.

path-mtuvalue

Example:

Step 6

RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#path-mtu200

Saves configuration changes.end or commit

Example:

Step 7

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#end

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Bulk Port Allocation

Perform this task to configure bulk port allocation to reduce Netflow or Syslog data volume.

SUMMARY STEPS

1. configure2. service cgn instance-name

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x213

Carrier Grade IPv6 over Virtualized Services Module (VSM)Bulk Port Allocation

Page 228: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

3. service-type ds-lite instance_name4. bulk-port-alloc size number of ports5. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for theDS-Lite application.

service-type ds-lite instance_name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1

Allocate ports in bulk to reduce Netflow/Syslog datavolume.

bulk-port-alloc size number of ports

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-ds-lite)#bulk-port-allocsize 64RP/0/RP0/CPU0:router(config-cgn-ds-lite)

Saves configuration changes.end or commit

Example:

Step 5

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-ds-lite)# end

orRP/0/RP0/CPU0:router(config-cgn-ds-lite)#commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x214

Carrier Grade IPv6 over Virtualized Services Module (VSM)Bulk Port Allocation

Page 229: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Destination-Based Logging for DS-Lite

Perform these tasks to configure destination-based logging for DS-Lite entries.

Configuring the Session-Logging for Netflow Logging

Perform this task to configure session-logging if destination IP and Port information needs to logged in theNetflow records.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite instance_name4. external-logging netflow95. server6. session-logging7. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for theDS-Lite application.

service-type ds-lite instance_name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1

Configures the external-logging facility for the DS-Liteinstance.

external-logging netflow9

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn)#external-loggingnetflow9RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

Configures the logging server information for the IPv4address and port for the server that is used for the netflow-v9based external-logging facility.

server

Example:RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#serverRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#

Step 5

Configures the session logging for a DS-Lite instance.session-logging

Example:

Step 6

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x215

Carrier Grade IPv6 over Virtualized Services Module (VSM)Destination-Based Logging for DS-Lite

Page 230: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#session-logging

Saves configuration changes.end or commit

Example:

Step 7

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#end

orRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Session-Logging for Syslog Logging

Perform this task to configure session-logging if destination IP and Port information needs to logged in theNetflow records.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite instance_name4. external-logging syslog5. server6. session-logging7. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x216

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Session-Logging for Syslog Logging

Page 231: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for theDS-Lite application.

service-type ds-lite instance_name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1

Configures the external-logging facility for the DS-Liteinstance.

external-logging syslog

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-ds-lite)#external-loggingsyslogRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

Configures the logging server information for the IPv4address and port for the server that is used for the netflow-v9based external-logging facility.

server

Example:RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#serverRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#

Step 5

Configures the session logging for a DS-Lite instance.session-logging

Example:

Step 6

RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#session-logging

Saves configuration changes.end or commit

Example:

Step 7

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#end

orRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x217

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Session-Logging for Syslog Logging

Page 232: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Example

Policy Functions

Configuring Port Limit per SubscriberPerform this task to restrict the number of ports used by an IPv6 address.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat64 stateful instance-name4. portlimit value5. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6Stateful NAT64 application.

service-type nat64 stateful instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat64 stateful nat64-instRP/0/RP0/CPU0:router(config-cgn-nat64-stateful)#

Configures a value to restrict the number of ports used byan IPv6 address.

portlimit value

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-nat64-stateful)#portlimit66RP/0/RP0/CPU0:router(config-cgn-nat64-stateful)

Saves configuration changes.end or commit

Example:

Step 5

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-nat64-stateful)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-nat64-stateful)#commit

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x218

Carrier Grade IPv6 over Virtualized Services Module (VSM)Policy Functions

Page 233: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Timeout Value for ICMP, TCP and UDP SessionsPerform this task to configure the timeout value for ICMP, TCP or UDP sessions for a Dual Stack Lite (DSLite) instance:

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite instance-name4. protocol tcp session {active | initial} timeout value or protocol {icmp | udp} timeout value5. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6DS-Lite application.

service-type ds-lite instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite-instRP/0/RP0/CPU0:router(config-cgn-ds-lite)#

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x219

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Timeout Value for ICMP, TCP and UDP Sessions

Page 234: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the initial and active session timeout values forTCP.

protocol tcp session {active | initial} timeout value orprotocol {icmp | udp} timeout value

Step 4

Example: Configures the timeout value in seconds for ICMP andUDP.RP/0/RP0/CPU0:router(config-cgn-ds-lite)#protocoltcp session active timeout 90orprotocol icmp timeout 90RP/0/RP0/CPU0:router(config-cgn-ds-lite)

Saves configuration changes.end or commit

Example:

Step 5

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-ds-lite)# end

orRP/0/RP0/CPU0:router(config-cgn-ds-lite)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

FTP-ALGCGN supports both passive and active FTP. FTP clients are supported with inside (private) address and serverswith outside (public) addresses. Passive FTP is provided by the basic NAT function. Active FTP is used withthe ALG.

RTSP-ALGCGN supports the Real Time Streaming Protocol (RTSP), an application-level protocol for control over thedelivery of data with real-time properties. RTSP provides an extensible framework to enable controlled,on-demand delivery of real-time data, such as audio and video. Sources of data can include both live datafeeds and stored clips.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x220

Carrier Grade IPv6 over Virtualized Services Module (VSM)FTP-ALG

Page 235: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PPTP-ALGPPTP is a network protocol that enables secure transfer of data from a remote client to a private enterpriseserver by creating a Virtual Private Network (VPN). It is used to provide IP security at the network layer.PPTP uses a control channel over TCP and a GRE tunnel operating to encapsulate PPP packets.

PPTP-ALG is a CGN solution that allows traffic from all clients through a single PPTP tunnel.

A PPTP tunnel is instantiated on the TCP port. This TCP connection is then used to initiate and manage asecond GRE tunnel to the same peer.

PPTP uses an access controller and network server to establish a connection.

PPTP Access Controller (PAC)

A device attached to one or more PSTN or ISDN lines capable of PPP operation and handling the PPTPprotocol. It terminates the PPTP tunnel and provides VPN connectivity to a remote client.

PPTP Network Server (PNS)

A device which provides the interface between the Point-to-Point Protocol (encapsulated in the PPTP protocol)and a LAN or WAN. The PNS uses the PPTP protocol to support tunneling between a PPTP PAC and thePNS. It requests to establish a VPN connectivity using PPTP tunnel.

Control Connection

A control connection is established between a PAC and a PNS for TCP.

Tunnel

A tunnel carries GRE encapsulated PPP datagrams between a PAC and a PNS

Active FTP, PPTP ALG, and RTSP ALG are supported on NAT44 applications. Active FTP and RTSP ALGare supported on DS-Lite applications.

Note

TCP Maximum Segment Size AdjustmentWhen a host initiates a TCP session with a server, the host negotiates the IP segment size by using the maximumsegment size (MSS) option. The value of the MSS option is determined by the maximum transmission unit(MTU) that is configured on the host.

Static Port ForwardingStatic port forwarding helps in associating a private IP address and port with a statically allocated public IPand port. After you have configured static port forwarding, this association remains intact and does not getremoved due to timeouts until the CGSE is rebooted. In case of redundant CGSE cards, it remains intact untilboth of the CGSEs are reloaded together or the router is reloaded. There are remote chances that after a reboot,this association might change. This feature helps in cases where server applications running on the privatenetwork needs access from public internet.

NAT64 on VSM does not support static port forwarding.Note

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x221

Carrier Grade IPv6 over Virtualized Services Module (VSM)PPTP-ALG

Page 236: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Configuring Dynamic Port RangePerform this task to configure a dynamic port range.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat64 stateful instance-name4. dynamic-port-range start port-number5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6Stateful NAT64 application.

service-type nat64 stateful instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat64 stateful nat64-instRP/0/RP0/CPU0:router(config-cgn-nat64-stateful)

Configures the port range from 1 to 65535.dynamic-port-range start port-number

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-nat64-stateful)#dynamic-port-rangestart 66RP/0/RP0/CPU0:router(config-cgn-nat64-stateful)

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-nat64-stateful)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

orRP/0/RP0/CPU0:router(config-cgn-nat64-stateful)#commit

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x222

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring Dynamic Port Range

Page 237: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

(Only NAT44) Configuring One-to-One MappingPerform this task to configure one-to-one mapping for private addresses.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat44 nat14. inside-vrf vrf-name5. map ip one-to-one6. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6NAT44 application.

service-type nat44 nat1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Configures the inside VRF for the CGv6 instance namedcgn1 and enters CGv6 inside VRF configuration mode.

inside-vrf vrf-name

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-nat44)# inside-vrfinsidevrf1RP/0/RP0/CPU0:router(config-cgn-invrf)#

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x223

Carrier Grade IPv6 over Virtualized Services Module (VSM)(Only NAT44) Configuring One-to-One Mapping

Page 238: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures one-to-one mapping for a CGv6 NAT44instance.

map ip one-to-one

Example:

Step 5

RP/0/RP0/CPU0:router(config-cgn-invrf)# map ipone-to-one

Saves configuration changes.end or commit

Example:

Step 6

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-invrf-afi)# end

orRP/0/RP0/CPU0:router(config-cgn-invrf-afi)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

(Only NAT44) Configuring TCP Sequence CheckPerform the following steps for checking the sequence numbers of the packets in a TCP session:

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat44 nat14. inside-vrf vrf-name5. firewall protocol tcp6. sequence-check7. end or commit

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x224

Carrier Grade IPv6 over Virtualized Services Module (VSM)(Only NAT44) Configuring TCP Sequence Check

Page 239: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for NAT44application.

service-type nat44 nat1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Configures the inside VRF for the CGN instance namedcgn1 and enters CGN inside VRF configuration mode.

inside-vrf vrf-name

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-nat44)# inside-vrfinsidevrf1RP/0/RP0/CPU0:router(config-cgn-invrf)#

Enters the firewall mode and the protocol tcp submode.firewall protocol tcp

Example:

Step 5

RP/0/RP0/CPU0:router(config-cgn-invrf)# protocoltcpRP/0/RP0/CPU0:router(config-cgn-invrf-proto)#

Enables checking of the sequence numbers. The optionaldiff-window keyword allows user to configure a value equal

sequence-check

Example:

Step 6

to the difference between the expected and receivedRP/0/RP0/CPU0:router(config-cgn-invrf)#sequence-check 10

sequence numbers. The range for this value is 0 to1,073,725,440.

Saves configuration changes.end or commit

Example:

Step 7

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-ivrf-sport-inside)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-ivrf-sport-inside)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x225

Carrier Grade IPv6 over Virtualized Services Module (VSM)(Only NAT44) Configuring TCP Sequence Check

Page 240: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

(Only NAT44) Enabling Address and Port-Dependent FilteringPerform the following steps to enable address and port-dependent filtering in a NAT44 configuration.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat44 instance-name4. inside-vrf instance-name5. filter-policy ignore-port6. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6NAT44 application.

service-type nat44 instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Configures an inside VRF named insidevrf1 and entersCGv6 inside VRF configuration mode.

inside-vrf instance-name

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-nat44)# inside-vrfinsidevrf1RP/0/RP0/CPU0:router(config-cgn-invrf)#

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x226

Carrier Grade IPv6 over Virtualized Services Module (VSM)(Only NAT44) Enabling Address and Port-Dependent Filtering

Page 241: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Enables the address and port-dependent filtering. Theoptional ignore-port keyword is used to disable theport-dependent filtering.

filter-policy ignore-port

Example:

To enable address and port-dependent filtering

Step 5

RP/0/RP0/CPU0:router(config-cgn-invrf)#filter-policy

To enable address and port-dependent filtering when theport is not checked:RP/0/RP0/CPU0:router(config-cgn-invrf)#filter-policy ignore-port

Saves configuration changes.end or commit

Example:

Step 6

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-if)# end

orRP/0/RP0/CPU0:router(config-if)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

(Only NAT44) Configuring NAT0 ModePerform these tasks to configure the NAT0 mode for NAT44.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat44 nat14. inside-vrf vrf-name5. map [outside-vrf outside-vrf-name] address-pool address/prefix6. nat-mode no-nat

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x227

Carrier Grade IPv6 over Virtualized Services Module (VSM)(Only NAT44) Configuring NAT0 Mode

Page 242: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

7. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGNNAT44 application.

service-type nat44 nat1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Configures an inside VRF named insidevrf1 and entersCGv6 inside VRF configuration mode.

inside-vrf vrf-name

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-nat44)# inside-vrfinsidevrf1RP/0/RP0/CPU0:router(config-cgn-invrf)#

Configures an inside VRF to an outside VRF and addresspool mapping.

map [outside-vrf outside-vrf-name] address-pooladdress/prefix

Example:

Step 5

RP/0/RP0/CPU0:router(config-cgn-invrf)# mapoutside-vrf ovrf outsideServiceApp ServiceApp2address-pool 0.0.0.0/0

Specifies the NAT0 or NAT bypass mode for NAT44.nat-mode no-nat

Example:

Step 6

RP/0/RP0/CPU0:router(config-cgn-invrf)# nat-modeno-nat

Saves configuration changes.end or commit

Example:

Step 7

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-invrf-natmode)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-invrf-natmode)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x228

Carrier Grade IPv6 over Virtualized Services Module (VSM)(Only NAT44) Configuring NAT0 Mode

Page 243: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

(Only NAT44) Configuring the Static Destination Address TranslationPerform the following steps to configure static destination address translation:

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat44 nat14. inside-vrf vrf-name5. map [outside-vrf outside-vrf-name] address-pool address/prefix6. static-mapping-file direction i2o-dst path of the .csv file7. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGNNAT44 application.

service-type nat44 nat1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Configures an inside VRF named insidevrf1 and entersCGN inside VRF configuration mode.

inside-vrf vrf-name

Example:

Step 4

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x229

Carrier Grade IPv6 over Virtualized Services Module (VSM)(Only NAT44) Configuring the Static Destination Address Translation

Page 244: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router(config-cgn-nat44)# inside-vrfinsidevrf1RP/0/RP0/CPU0:router(config-cgn-invrf)#

Configures an inside VRF to an outside VRF and addresspool mapping.

map [outside-vrf outside-vrf-name] address-pooladdress/prefix

Example:

Step 5

RP/0/RP0/CPU0:router(config-cgn-invrf)# mapoutside-vrf outside vrf1 address-pool 10.10.0.0/16orRP/0/RP0/CPU0:router(config-cgn-invrf)# mapaddress-pool 100.1.0.0/16

Configures static destination address translation using thestatic mapping configuration file (.csv). In this example,the file is stored in disk0: location.

static-mapping-file direction i2o-dst path of the .csv file

Example:RP/0/RP0/CPU0:router(config-cgn-invrf-afi)#static-mapping-file direction i2o-dst/disk0:/30K.CSV

Step 6

Saves configuration changes.end or commit

Example:

Step 7

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-invrf-afi)# end

orRP/0/RP0/CPU0:router(config-cgn-invrf-afi)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

(Only NAT44) Configuring Multiple NetFlow ServersPerform this task to configure multiple NetFlow servers. Repeat the same task to configure multiple servers.

SUMMARY STEPS

1. configure

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x230

Carrier Grade IPv6 over Virtualized Services Module (VSM)(Only NAT44) Configuring Multiple NetFlow Servers

Page 245: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

2. service cgn instance-name3. service-type nat44 nat14. inside-vrf vrf-name5. external-logging netflow6. server7. address address port number8. ath-mtu value9. refresh-rate value10. timeout value11. session-logging12. end or commit13.

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6NAT44 application.

service-type nat44 nat1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Configures the inside VRF for the CGv6 instance namedcgn1 and enters CGv6 inside VRF configuration mode.

inside-vrf vrf-name

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-nat44)# inside-vrfinsidevrf1RP/0/RP0/CPU0:router(config-cgn-nat44-invrf)#

Configures the external-logging facility for the NAT44instance.

external-logging netflow

Example:

Step 5

RP/0/RP0/CPU0:router(config-cgn-invrf)#external-logging netflow version 9RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#

Configures the logging server information for the IPv4address and port for the server that is used for thenetflow-v9 based external-logging facility.

server

Example:RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#server

Step 6

RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x231

Carrier Grade IPv6 over Virtualized Services Module (VSM)(Only NAT44) Configuring Multiple NetFlow Servers

Page 246: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the IPv4 address and port number 45 to logNetflow entries for the NAT table.

address address port number

Example:

Step 7

RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#address 2.3.4.5 port 45

Configures the path MTU with the value of 2900 for thenetflowv9-based external-logging facility.

ath-mtu value

Example:

Step 8

RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#path-mtu 2900

Configures the refresh rate value of 50 to logNetflow-based external logging information for an insideVRF.

refresh-rate value

Example:RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#refresh-rate 50

Step 9

Configures the timeout value of 50 for Netflow loggingof NAT table entries for an inside VRF.

timeout value

Example:

Step 10

RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#timeout 50

Configures the session logging for a NAT44 instance.session-logging

Example:

Step 11

RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#session-logging

Saves configuration changes.end or commit

Example:

Step 12

• When you issue the end command, the systemprompts you to commit changes:RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x232

Carrier Grade IPv6 over Virtualized Services Module (VSM)(Only NAT44) Configuring Multiple NetFlow Servers

Page 247: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

To configure a second server, repeat the steps from Step 7to Step 11.

Step 13

(Only NAT64) Configuring External Logging for NetFlow ServersPerform this task to configure external logging for NetFlow servers.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-location preferred-active node-id4. service-type nat64 stateful name5. external-logging netflow6. server7. address address port number8. ath-mtu value9. refresh-rate value10. timeout value11. session-logging12. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Specifies the location in which the application starts.service-location preferred-active node-id

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-locationpreferred-active 0/1/CPU01

Configures the service type keyword and the name forCGv6 NAT64 application.

service-type nat64 stateful name

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn)# service-typenat64 stateful nat64_1

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x233

Carrier Grade IPv6 over Virtualized Services Module (VSM)(Only NAT64) Configuring External Logging for NetFlow Servers

Page 248: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the external-logging facility for the NAT64instance.

external-logging netflow

Example:

Step 5

RP/0/RP0/CPU0:router(config-cgn-invrf)#external-logging netflow version 9RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#

Configures the logging server information for the IPv6address and port for the server that is used for thenetflow-v9 based external-logging facility.

server

Example:RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#server

Step 6

RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

Configures the IPv6 address and port number 614 to logNetflow entries for the NAT table.

address address port number

Example:

Step 7

RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#address 2.3.4.5 port 614

Configures the path MTU with the value of 2900 for thenetflowv9-based external-logging facility.

ath-mtu value

Example:

Step 8

RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#path-mtu 2900

Configures the refresh rate value of 50 to logNetflow-based external logging information for an insideVRF.

refresh-rate value

Example:RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#refresh-rate 50

Step 9

Configures the timeout value of 50 for Netflow loggingof NAT table entries for an inside VRF.

timeout value

Example:

Step 10

RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#timeout 50

Configures the session logging for a NAT64 instance.session-logging

Example:

Step 11

RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#session-logging

Saves configuration changes.end or commit

Example:

Step 12

• When you issue the end command, the systemprompts you to commit changes:RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#commit

[cancel]:

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x234

Carrier Grade IPv6 over Virtualized Services Module (VSM)(Only NAT64) Configuring External Logging for NetFlow Servers

Page 249: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

(Only NAT44) Configuring Multiple Syslog ServersPerform this task to configure an additional Syslog server. Repeat the same task to configure multiple servers.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat44 nat14. inside-vrf vrf-name5. external-logging syslog6. server7. addressaddressportnumber8. path-mtuvalue9. refresh-rate value10. timeout value11. session-logging12. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x235

Carrier Grade IPv6 over Virtualized Services Module (VSM)(Only NAT44) Configuring Multiple Syslog Servers

Page 250: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the service type keyword definition for CGv6NAT44 application.

service-type nat44 nat1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Configures the inside VRF for the CGv6 instance namedcgn1 and enters CGv6 inside VRF configuration mode.

inside-vrf vrf-name

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-nat44)# inside-vrfinsidevrf1RP/0/RP0/CPU0:router(config-cgn-nat44-invrf)#

Configures the external-logging facility for the NAT44instance.

external-logging syslog

Example:

Step 5

RP/0/RP0/CPU0:router(config-cgn-invrf)#external-logging syslogRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#

Configures the logging server information for the IPv4address and port for the server that is used for thenetflow-v9 based external-logging facility.

server

Example:RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#server

Step 6

RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

Configures the IPv4 address and port number 45 to logNetflow entries for the NAT table.

addressaddressportnumber

Example:

Step 7

RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#address 2.3.4.5 port 45

Configures the path MTU with the value of 200 for thesyslog-based external-logging facility.

path-mtuvalue

Example:

Step 8

RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#path-mtu 200

Configures the refresh rate value of 50 to logNetflow-based external logging information for an insideVRF.

refresh-rate value

Example:RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#refresh-rate 50

Step 9

Configures the timeout value of 50 for Netflow loggingof NAT table entries for an inside VRF.

timeout value

Example:

Step 10

RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#timeout 50

Configures the session logging for a NAT44 instance.session-logging

Example:

Step 11

RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#session-logging

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x236

Carrier Grade IPv6 over Virtualized Services Module (VSM)(Only NAT44) Configuring Multiple Syslog Servers

Page 251: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Saves configuration changes.end or commit

Example:

Step 12

• When you issue the end command, the systemprompts you to commit changes:RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Example

(Only NAT44) Configuring External Logging for the NAT Table EntriesPerform the following to configure external logging for NAT table entries.

Configuring the Server Address and Port for Netflow LoggingPerform this task to configure the server address and port to log network address translation (NAT) tableentries for Netflow logging.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat44 nat14. inside-vrf vrf-name5. external-logging netflowv96. server7. address address port number8. end or commit

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x237

Carrier Grade IPv6 over Virtualized Services Module (VSM)(Only NAT44) Configuring External Logging for the NAT Table Entries

Page 252: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for NAT44application.

service-type nat44 nat1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Configures the inside VRF for the CGN instance namedcgn1 and enters CGN inside VRF configuration mode.

inside-vrf vrf-name

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn)# inside-vrfinsidevrf1RP/0/RP0/CPU0:router(config-cgn-invrf)#

Configures the external-logging facility for the CGNinstance named cgn1 and enters CGN inside VRF addressfamily external logging configuration mode.

external-logging netflowv9

Example:RP/0/RP0/CPU0:router(config-cgn-invrf)#external-logging netflowv9RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#

Step 5

Configures the logging server information for the IPv4address and port for the server that is used for the

server

Example:

Step 6

netflowv9-based external-logging facility and enters CGNRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#server

inside VRF address family external logging serverconfiguration mode.RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

Configures the IPv4 address and port number 45 to logNetflow entries for the NAT table.

address address port number

Example:

Step 7

RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#address 2.3.4.5 port 45

Saves configuration changes.end or commit

Example:

Step 8

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#commit

[cancel]:

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x238

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Server Address and Port for Netflow Logging

Page 253: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Path Maximum Transmission Unit for Netflow LoggingPerform this task to configure the path maximum transmission unit (MTU) for the netflowv9-basedexternal-logging facility for the inside VRF.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat44 nat14. inside-vrf vrf-name5. external-logging netflowv96. server7. path-mtu value8. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for NAT44application.

service-type nat44 nat1

Example:

Step 3

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x239

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Path Maximum Transmission Unit for Netflow Logging

Page 254: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Configures the inside VRF for the CGN instance namedcgn1 and enters CGN inside VRF configuration mode.

inside-vrf vrf-name

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn)# inside-vrfinsidevrf1RP/0/RP0/CPU0:router(config-cgn-invrf)#

Configures the external-logging facility for the CGNinstance named cgn1 and enters CGN inside VRF addressfamily external logging configuration mode.

external-logging netflowv9

Example:RP/0/RP0/CPU0:router(config-cgn-invrf)#external-logging netflowv9RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#

Step 5

Configures the logging server information for the IPv4address and port for the server that is used for the

server

Example:

Step 6

netflowv9-based external-logging facility and enters CGNRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#server

inside VRF address family external logging serverconfiguration mode.RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

Configures the path MTU with the value of 2900 for thenetflowv9-based external-logging facility.

path-mtu value

Example:

Step 7

RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#path-mtu 2900

Saves configuration changes.end or commit

Example:

Step 8

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x240

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Path Maximum Transmission Unit for Netflow Logging

Page 255: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Configuring the Refresh Rate for Netflow LoggingPerform this task to configure the refresh rate at which the Netflow-v9 logging templates are refreshed orresent to the Netflow-v9 logging server.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat44 nat14. inside-vrf vrf-name5. external-logging netflowv96. server7. refresh-rate value8. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for NAT44application.

service-type nat44 nat1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Configures the inside VRF for the CGN instance namedcgn1 and enters CGN inside VRF configuration mode.

inside-vrf vrf-name

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn)# inside-vrfinsidevrf1RP/0/RP0/CPU0:router(config-cgn-invrf)#

Configures the external-logging facility for the CGNinstance named cgn1 and enters CGN inside VRF addressfamily external logging configuration mode.

external-logging netflowv9

Example:RP/0/RP0/CPU0:router(config-cgn-invrf)#external-logging netflowv9RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#

Step 5

Configures the logging server information for the IPv4address and port for the server that is used for the

server

Example:

Step 6

netflowv9-based external-logging facility and enters CGNRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#server

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x241

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Refresh Rate for Netflow Logging

Page 256: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)# inside VRF address family external logging server

configuration mode.

Configures the refresh rate value of 50 to log Netflow-basedexternal logging information for an inside VRF.

refresh-rate value

Example:

Step 7

RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#refresh-rate 50

Saves configuration changes.end or commit

Example:

Step 8

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Timeout for Netflow LoggingPerform this task to configure the frequency in minutes at which the Netflow-V9 logging templates are to besent to the Netflow-v9 logging server.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat44 nat14. inside-vrf vrf-name5. external-logging netflowv96. server7. timeoutvalue8. end or commit

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x242

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Timeout for Netflow Logging

Page 257: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for NAT44application.

service-type nat44 nat1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Configures the inside VRF for the CGN instance namedcgn1 and enters CGN inside VRF configuration mode.

inside-vrf vrf-name

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn)# inside-vrfinsidevrf1RP/0/RP0/CPU0:router(config-cgn-invrf)#

Configures the external-logging facility for the CGNinstance named cgn1 and enters CGN inside VRF addressfamily external logging configuration mode.

external-logging netflowv9

Example:RP/0/RP0/CPU0:router(config-cgn-invrf)#external-logging netflowv9RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#

Step 5

Configures the logging server information for the IPv4address and port for the server that is used for the

server

Example:

Step 6

netflowv9-based external-logging facility and enters CGNRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#server

inside VRF address family external logging serverconfiguration mode.RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

Configures the timeout value of 50 for Netflow logging ofNAT table entries for an inside VRF.

timeoutvalue

Example:

Step 7

RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#timeout 50

Saves configuration changes.end or commit

Example:

Step 8

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#commit

[cancel]:

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x243

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Timeout for Netflow Logging

Page 258: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

(Only NAT44) Syslog LoggingPerform the following tasks to configure Syslog Logging for NAT table entries.

Configuring the Server Address and Port for Syslog LoggingPerform this task to configure the server address and port to log DS-Lite entries for Syslog logging.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type ds-lite instance_name4. external-logging syslog5. server6. addressaddressportnumber7. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x244

Carrier Grade IPv6 over Virtualized Services Module (VSM)(Only NAT44) Syslog Logging

Page 259: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the service type keyword definition for theDS-Lite application.

service-type ds-lite instance_name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typeds-lite ds-lite1

Configures the external-logging facility for the CGv6instance named cgn1 and enters CGv6 external loggingconfiguration mode.

external-logging syslog

Example:RP/0/RP0/CPU0:router(config-cgn-ds-lite)#external-loggingsyslogRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

Step 4

Configures the logging server information for the IPv4address and port for the server that is used for the

server

Example:

Step 5

syslog-based external-logging facility and enters CGv6external logging server configuration mode.RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlog)#

serverRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#

Configures the IPv4 address and port number 45 to logNetflow entries.

addressaddressportnumber

Example:

Step 6

RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#address2.3.4.5 port 45

Saves configuration changes.end or commit

Example:

Step 7

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#end

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-ds-lite-extlogserver)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Host-Name for Syslog LoggingPerform this task to configure the host name to be filled in the Netflow header for the syslog logging.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x245

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Host-Name for Syslog Logging

Page 260: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat44 nat14. inside-vrf vrf-name5. external-logging syslog6. server7. host-namename8. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6NAT44 application.

service-type nat44 nat1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Configures the inside VRF for the CGv6 instance namedcgn1 and enters CGv6 inside VRF configuration mode.

inside-vrf vrf-name

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-nat44)# inside-vrfinsidevrf1RP/0/RP0/CPU0:router(config-cgn-invrf)#

Configures the external-logging facility for the CGv6instance named cgn1 and enters CGv6 inside VRF addressfamily external logging configuration mode.

external-logging syslog

Example:RP/0/RP0/CPU0:router(config-cgn-invrf)#external-logging syslogRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#

Step 5

Configures the logging server information for the IPv4address and port for the server that is used for the

server

Example:

Step 6

syslog-based external-logging facility and enters CGv6RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#server

inside VRF address family external logging serverconfiguration mode.RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

Configures the host name for the syslog-basedexternal-logging facility.

host-namename

Example:

Step 7

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x246

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Host-Name for Syslog Logging

Page 261: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#host-name host1

Saves configuration changes.end or commit

Example:

Step 8

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Path Maximum Transmission Unit for Syslog Logging

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat44 nat14. inside-vrf vrf-name5. external-logging syslog6. server7. path-mtuvalue8. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x247

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Path Maximum Transmission Unit for Syslog Logging

Page 262: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6NAT44 application.

service-type nat44 nat1

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Configures the inside VRF for the CGv6 instance namedcgn1 and enters CGv6 inside VRF configuration mode.

inside-vrf vrf-name

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-nat44)# inside-vrfinsidevrf1RP/0/RP0/CPU0:router(config-cgn-invrf)#

Configures the external-logging facility for the CGv6instance named cgn1 and enters CGv6 inside VRF addressfamily external logging configuration mode.

external-logging syslog

Example:RP/0/RP0/CPU0:router(config-cgn-invrf)#external-logging syslogRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#

Step 5

Configures the logging server information for the IPv4address and port for the server that is used for the

server

Example:

Step 6

syslog-based external-logging facility and enters CGv6RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog)#server

inside VRF address family external logging serverconfiguration mode.RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

Configures the path MTU with the value of 200 for thesyslog-based external-logging facility.

path-mtuvalue

Example:

Step 7

RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#path-mtu 200

Saves configuration changes.end or commit

Example:

Step 8

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?

orRP/0/RP0/CPU0:router(config-cgn-invrf-af-extlog-server)#commit

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x248

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Path Maximum Transmission Unit for Syslog Logging

Page 263: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Traffic Flow MirroringTraffic flow mirroring is a solution which enables you to monitor the incoming and outgoing traffic on theVSMmodule (of ASR9K) running a CGN instance. This solution helps you to debug and analyze packets forissues pertaining to NAT-ing (NAT44). The traffic is filtered based on a set of particular parameters, whichcan be set by the user. The packets, collected, are encapsulated in a GRE envelope and sent to a pre-configuredcollector like a UNIX system, laptop, etc. This envelope contains a field, which provides information aboutthe type of packet whether the packets are In2Out packet, Out2In packet, pre-NAT, post-NAT, or dropped,analyzing this field information, the issues pertaining to NAT can be debugged.

Salient Features:

• Any packets dropped will be mirrored.

• The packets are filtered based on destination address; and refined further based on port number, protocol,and IP addresses of the subscriber devices that are mirrored.

• Mirroring of up to 16 VRFs is supported when the destination address filter is configured. There is nolimit on the number of VRFs supported when the mirroring is enabled for only the dropped packets.

Figure 1: Traffic Flow Mirroring Topology

If the packets are filtered based on the destination IP address, then destination IP address is a mandatory fieldfor the solution whereas a few of the fields like protocol used, destination port, private source prefix, etc. areoptional.

Mirroring occurs only for packets that are intercepted after the feature is turned on.Note

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x249

Carrier Grade IPv6 over Virtualized Services Module (VSM)Traffic Flow Mirroring

Page 264: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Mirrored Packet Data Interpretation

The packets received at the collector have the original packet as the payload encapsulated in a GRE header.A typical GRE header is as shown in the following figure.Figure 2: GRE Header

The KEY field in the GRE header contains the value. The following table lists the values and the descriptionassociated with those values.

Table 3: List of KEY field values and their descriptions:

DescriptionValue

In to Out direction, pre-nat packet1

Out to In direction, pre-nat packet2

In to Out direction, post-nat packet3

Out to In direction, post-nat packet4

Dropped In to Out TCP, PPTP control message packet.5

Dropped In to Out TCP Fragment packet. (Received non-first fragment.)6

Dropped In to Out TCP packet. (Failed to create new NAT entry.)7

Dropped In to Out TCP packet due to no session entry.8

Dropped In to Out TCP packet. (Source port is zero)9

Dropped In to Out TCP packet. (None sync drop)10

Dropped In to Out TCP packet (Session creation fail)11

Dropped In to Out TCP packet with TTL <= 1. (No ICMP generateddue to throttling)

12

Dropped packet as ICMP is sent for first fragment only.13

Dropped packet due to Invalid ICMP error code.14

Dropped In to Out due ICMP error packet with TTL <= 1.15

Dropped In to Out ICMP packet due to no NAT entry.16

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x250

Carrier Grade IPv6 over Virtualized Services Module (VSM)Traffic Flow Mirroring

Page 265: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Dropped Out to In ICMP packet (ipv4 packet too large for the tunnel)17

Dropped Out to In ICMP packet due to no NAT entry.18

Dropped In to Out ICMP packet due to no session.19

Dropped In to Out ICMP packet with TTL <= 1. (No ICMP generateddue to throttling)

20

Dropped In to Out ICMP query packet due to no NAT entry.21

Dropped Out to In ICMP query. (No NAT entry)22

Dropped Out to In ICMP query packet due to end point filtering. (EDFis enabled).

23

Dropped Out to In ICMP query packet, could not generate ICMP packetdue to throttling.

24

Dropped Out to In ICMP packet due to no session.25

Dropped Out to In ICMP packet due to no NAT entry.26

Dropped port control protocol (PCP) packet, as it couldn't be handled.27

Dropped In to Out PPTP packet (PPTP not configured)28

Dropped In to Out PPTP packet with TTL <= 1 (No ICMP generateddue to throttling)

29

Dropped Out to In PPTP packet (PPTP not configured)30

Dropped Out to In PPTP fragment packet (No NAT entry)31

Dropped Out to In PPTP packet (No NAT entry)32

Dropped Out to In PPTP packet with TTL <= 1. (No ICMP generateddue to throttling.)

33

Dropped In to Out UDP packet (Has no available ports)34

Dropped In to Out UDP packet (UDP port value of 0).35

Dropped In to Out UDP packet (No configuration available).36

Dropped In to Out UDP packet (No ICMP message generated).37

Dropped In to Out UDP packet (Create session failed).38

Dropped In to Out UDP packet (VRF not in run state)39

Dropped In to Out UDP packet (Port limit exceeded)40

Dropped In to Out UDP packet with TTL <= 1. (No ICMP generateddue to throttling.)

41

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x251

Carrier Grade IPv6 over Virtualized Services Module (VSM)Traffic Flow Mirroring

Page 266: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Dropped In to Out UDP packet (No direct port available).42

Dropped Out to In UDP packet (No NAT entry).43

Dropped Out to In UDP packet due to end point filtering. (EDF isenabled)

44

Dropped Out to In UDP packet (No NAT entry).45

Dropped Out to In UDP packet (Create session DB failed or Sessionlimit exceeded.)

46

Dropped Out to In UDP packet as it is too large for tunneling.

ICMP not generated due to throttling.Note

47

Dropped Out to In UDP packet (Create session failed.)48

Dropped Out to In UDP fragment packet (No NAT entry).49

Not used50

Dropped Out to In Error fragment packet.51

Dropped Out to In unsupported protocol Fragment packet.52

Dropped Out to In TCP packet (PPTP control message dropped.)53

Dropped Out to In TCP packet (No NAT entry)54

Dropped Out to In TCP packet (First fragment packet drop)55

Dropped Out to In TCP due to end point filtering. (EDF is enabled.)56

Dropped Out to In UDP packet as it is too large for tunneling.

ICMP not generated due to throttling.Note

57

Dropped Out to In TCP packet. (Create session failed.)58

Dropped Out to in TCP fragment packet (No NAT entry)59

Dropped Out to in TCP packet (SYN or RST flags not set for TCPsession to be established.)

60

Dropped Out to in TCP packet (Sequence mismatch)61

Dropped Out to In TCP packet with TTL <= 1. (No ICMP generateddue to throttling.)

62

Limitations and AssumptionsThe following are a few of the assumptions and limitations of the traffic flow mirroring solution:

• At any given point in time, only one traffic flow mirroring per inside-vrf is allowed.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x252

Carrier Grade IPv6 over Virtualized Services Module (VSM)Limitations and Assumptions

Page 267: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

• If the collector IP address is not configured, the traffic packet mirroring is blocked. In case the collectorIP address is not reachable, the mirrored packets are dropped.

• If the protocol is not provided, both TCP and UDP packets are mirrored.

• If the port number is not mentioned, the traffic flowing through all the destination ports are mirrored.

• If a private source IP address is not configured, the mirroring is performed for all subscribers of the VRF,that is listed. This can reduce the performance of VSM and also lead to choking the collector. It isadvisable to configure as many parameters as possible to filter and mirror only the required packets.

• Performance figures of VSM are not guaranteed when traffic mirroring is on.

• Traffic flow mirroring solution assumes that the collector is reachable to the router in the default VRF.The router does not attempts to ping or get acknowledgments to ascertain if the collector is receiving thepackets.

Configuring Mirroring Using Destination Address Filter and Collector IPAddress

Perform this task to configure mirroring the traffic packets using a destination address filter and collector IPaddress.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-location preferred-active node-id4. service-type nat44 nat1 instance5. inside-vrf vrf-name6. mirror-packets7. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Specifies the global command applied per CGN instance.It initiates the particular instance of the CGN applicationon the active and standby locations.

service-location preferred-active node-id

Example:RP/0/RP0/CPU0:router(config-cgn)# service-locationpreferred-active 0/1/CPU0

Step 3

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x253

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring Mirroring Using Destination Address Filter and Collector IP Address

Page 268: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the service type keyword definition for theNAT44 NAT1 application.

service-type nat44 nat1 instance

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Configures an inside VRF named BLR_BTM and entersCGN inside VRF configuration mode.

inside-vrf vrf-name

Example:

Step 5

RP/0/RP0/CPU0:router(config-cgn-nat44)# inside-vrfBLR_BTMRP/0/RP0/CPU0:router(config-cgn-invrf)#

Filters the traffic such that the packets are mirrored ontothe provided destination collector IP address.

mirror-packets

Example:

Step 6

RP/0/RP0/CPU0:router(config-cgn-invrf)#mirror-packetsRP/0/RP0/CPU0:router(config-cgn-invrf)#destination-ipv4-address 201.22.3.45

!RP/0/RP0/CPU0:router(config-cgn-invrf)#collector-ipv4-address 187.2.3.55

!!

Saves configuration changes.end or commit

Example:

Step 7

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-invrf)# end

orRP/0/RP0/CPU0:router(config-cgn-invrf)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x254

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring Mirroring Using Destination Address Filter and Collector IP Address

Page 269: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Example

The following example shows how to filter and configure data packets to be mirrored onto a collectorwith the destination IP address and the collector IP address provided.

service cgn cgn1service-location preferred-active 0/1/CPU0service-type nat44 nat1inside-vrf BLR_BTMmirror-packetsdestination-ipv4-address 201.22.3.45!collector-ipv4-address 187.2.3.55!!!!

Configuring Mirroring Using Destination Address, Port Number, Protocol Type,Source-Prefix Filters, and Collector IP Address

Perform this task to configure mirroring the traffic packets using a destination address, port number, protocoltype, source-prefix filter and collector IP address.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-location preferred-active node-id4. service-type nat44 nat1 instance5. inside-vrf vrf-name6. mirror-packets7. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x255

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring Mirroring Using Destination Address, Port Number, Protocol Type, Source-Prefix Filters, and Collector IP Address

Page 270: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Specifies the global command applied per CGN instance.It initiates the particular instance of the CGN applicationon the active and standby locations.

service-location preferred-active node-id

Example:RP/0/RP0/CPU0:router(config-cgn)# service-locationpreferred-active 0/1/CPU0

Step 3

Configures the service type keyword definition for theNAT44 NAT1 application.

service-type nat44 nat1 instance

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Configures an inside VRF named BLR_BTM3 and entersCGN inside VRF configuration mode.

inside-vrf vrf-name

Example:

Step 5

RP/0/RP0/CPU0:router(config-cgn-nat44)# inside-vrfBLR_BTM3RP/0/RP0/CPU0:router(config-cgn-invrf)#

Configures the traffic packets to be mirrored onto theprovided destination collector IP address.

mirror-packets

Example:

Step 6

RP/0/RP0/CPU0:router(config-cgn-invrf)#mirror-packetsRP/0/RP0/CPU0:router(config-cgn-invrf)#destination-ipv4-address 201.22.3.45RP/0/RP0/CPU0:router(config-cgn-invrf)#protocol-type tcp udpRP/0/RP0/CPU0:router(config-cgn-invrf)# port 4002RP/0/RP0/CPU0:router(config-cgn-invrf)#source-prefix 100.1.1.252/30

!RP/0/RP0/CPU0:router(config-cgn-invrf)#collector-ipv4-address 187.2.3.5

!!

Saves configuration changes.end or commit

Example:

Step 7

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-invrf)# end

orRP/0/RP0/CPU0:router(config-cgn-invrf)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x256

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring Mirroring Using Destination Address, Port Number, Protocol Type, Source-Prefix Filters, and Collector IP Address

Page 271: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Example

The following example shows how to filter and configure packets to be mirrored onto a collectorwith the destination details like the IP address, protocol type, port number, source-prefix filter, andthe collector IP address.

service cgn cgn1service-location preferred-active 0/1/CPU0service-type nat44 nat1inside-vrf BLR_BTM3mirror-packetsdestination-ipv4-address 201.22.3.45protocol-type tcp udpport 4002source-prefix 100.1.1.252/30!collector-ipv4-address 187.2.4.5!!!!

Configuring Mirroring for Dropped Packets Using Collector IP AddressPerform this task to configure mirroring the dropped traffic packets using collector IP address.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-location preferred-active node-id4. service-type nat44 nat1 instance5. inside-vrf vrf-name6. mirror-packets7. end or commit

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x257

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring Mirroring for Dropped Packets Using Collector IP Address

Page 272: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGNapplication and enters CGN configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Specifies the global command applied per CGN instance.It initiates the particular instance of the CGN applicationon the active and standby locations.

service-location preferred-active node-id

Example:RP/0/RP0/CPU0:router(config-cgn)# service-locationpreferred-active 0/1/CPU0

Step 3

Configures the service type keyword definition for theNAT44 NAT1 application.

service-type nat44 nat1 instance

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

Configures an inside VRF named BLR_BTM3 and entersCGN inside VRF configuration mode.

inside-vrf vrf-name

Example:

Step 5

RP/0/RP0/CPU0:router(config-cgn)# service-typenat44 nat1

RP/0/RP0/CPU0:router(config-cgn-nat44)# inside-vrfBLR_BTM3RP/0/RP0/CPU0:router(config-cgn-invrf)#

Configures the dropped traffic packets to be mirrored ontothe provided destination collector IP address.

mirror-packets

Example:

Step 6

RP/0/RP0/CPU0:router(config-cgn-invrf)#mirror-packetsRP/0/RP0/CPU0:router(config-cgn-invrf)# all-drops

!RP/0/RP0/CPU0:router(config-cgn-invrf)#collector-ipv4-address 187.2.3.56

!!

Saves configuration changes.end or commit

Example:

Step 7

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-invrf)# end

orRP/0/RP0/CPU0:router(config-cgn-invrf)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x258

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring Mirroring for Dropped Packets Using Collector IP Address

Page 273: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Example

The following example shows how to filter and configure dropped traffic packets to be mirrored ontoa collector with the IP address provided.

service cgn cgn1service-location preferred-active 0/1/CPU0service-type nat44 nat1inside-vrf BLR_BTM2mirror-packetsall-dropscollector-ipv4-address 187.2.3.56!!!!

High AvailabilityHigh Availability (HA) or 1:1 redundancy enables network-wide protection by providing fast recovery fromfaults that may occur in any part of the network. With Cisco High Availability on the module, the networkhardware and software work together and enable rapid recovery from disruption, to ensure fault transparencyto users and network applications. It provides continuous access to applications, data, and content anywhere,anytime by addressing potential causes of downtime with functionality, design, and best practices.

HA supports:

• 1:1 active or standby redundancy infrastructure for the services running on the module

• Intra-chassis redundancy

• Cold standby redundancy

• Replication of CGN-related configuration into a standby card

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x259

Carrier Grade IPv6 over Virtualized Services Module (VSM)High Availability

Page 274: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Before upgrading or downgrading the CGv6 OVA package on the Active VSMcard in HA mode, perform a graceful shift of the traffic from Active VSM toStandby VSM. This will ensure that the CGN-related configuration is replicatedinto a standby card. For more information refer Upgrading CGv6 OVA Package,on page 164.

Note

• Failure detection

• Data path - Channel through which CGV6 application data packets traverse

• CPU health monitoring

• Control path

• Crashed processes

The following commands are supported for failure detection:

• Data PathRP/0/RP0/CPU0:router(config)# service-cgv6-ha location location-name datapath-test

RP/0/RP0/CPU0:router(config)# service-cgv6-ha location location-name datapath-testdisable

By default, failure detection for data path is not triggered unless the abovecommand is configured.

Note

The service-cgv6-ha location location-name datapath-test disable configurationdisables the heartbeat packets (health check packets) flowing in VSM. By default,these packets are flowing. You can disable these packets when required.

Note

• Failure reporting and recovery

• If redundant module is configured, then switch-over the stand by module to active and reload theactive module.

• If redundant module is not configured, then reload the module. This comes up again as an activemodule.

Redundancy Switchover Using CLI

You can trigger the switchover the failover by running the following the commands to an active slot and viceversa. :

Use the following command to switchover the failover to a preferred active slot.RP/0/RP0/CPU0:router(config)# service redundancy failover service-type all preferred-active<preferred-active slot>

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x260

Carrier Grade IPv6 over Virtualized Services Module (VSM)High Availability

Page 275: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Use the following command to revert the failover to a preferred active slot.RP/0/RP0/CPU0:router(config)# service redundancy revert service-type all preferred-active<preferred-active slot>

Configuring High AvailabilityISM and VSM supports high availability or 1:1 redundancy on different CGv6 applications.

Perform these tasks to configure HA.

Configuring Active or Standby ModulePerform this task to configure active or standby module.

SUMMARY STEPS

1. configure2. service cgn <instance name>3. service-location preferred-active node-id[preferred-standby node-id]4. end or commit5. reload

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the infrastructure service virtual interface (SVI)for both the module locations.

service cgn <instance name>

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1

Configures the preferred active and preferred standby nodes.service-location preferred-activenode-id[preferred-standby node-id]

Step 3

Example:RP/0/RP0/CPU0:router(config-if)# service-locationpreferred-active 0/1/CPU0 preferred-standby0/4/CPU0

Saves configuration changes.end or commitStep 4

Example: • When you issue the end command, the system promptsyou to commit changes:

RP/0/RP0/CPU0:router(config-if)# end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

orRP/0/RP0/CPU0:router(config-if)# commit

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x261

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring High Availability

Page 276: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Once the configuration is complete, reload both the cardsfor changes to take effect and wait till in ‘APP READY’state.

reload

Example:RP/0/RP0/CPU0:router#hw-mod location 0/1/CPU0reload

Step 5

Enabling Failure DetectionPerform this task to enable failure detection.

SUMMARY STEPS

1. configure2. service-cgv6-ha location node-iddatapath-test3. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures role as CGv6 and failure detection for datapathtests.

service-cgv6-ha location node-iddatapath-test

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service-cgv6-halocation 0/1/CPU0 datapath-test

Saves configuration changes.end or commitStep 3

Example: • When you issue the end command, the system promptsyou to commit changes:

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x262

Carrier Grade IPv6 over Virtualized Services Module (VSM)Enabling Failure Detection

Page 277: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router(config-if)# endorRP/0/RP0/CPU0:router(config-if)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

By default, failure detection for data path is nottriggered unless the above commands areconfigured.

Note

To disable failure detection, use the no form of thecommand: no service-cgv6-ha locationnode-iddatapath-test

Services Redundancy Configuration (Active/Standby): ExampleActive Configurationconf tinterface ServiceInfra 1service-location 0/1/CPU0ipv4 address 50.1.1.1/24exit

hw-module service cgn location 0/1/CPU0commitexit

Stand By Configurationconf tinterface ServiceInfra 2service-location 0/2/CPU0ipv4 address 100.1.1.1/24exit

hw-module service cgn location 0/2/CPU0commitexitconf tservice cgn cgn1service-location preferred-active 0/1/CPU0 preferred-standby 0/2/CPU0

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x263

Carrier Grade IPv6 over Virtualized Services Module (VSM)Services Redundancy Configuration (Active/Standby): Example

Page 278: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

commitexit

Mapping of Address and Port-Encapsulation ModeMapping of Address and Port-EncapsulationMode (MAP-E) is a CGN solution that allows a service providerto enable IPv4 services at IPv6 (customer) sites to which it provides Customer Premise Equipment (CPE).This approach utilizes stateless IPv4-in-IPv6 encapsulation to transit IPv6-enabled network infrastructure.The encapsulation must be supported by the CPE and MAP-E Gateway/Border Relay, which removes theIPv6 encapsulation from IPv4 packets while forwarding them to the Internet. The provider access networkcan now be on IPv6, while customers see IPv6 and IPv4 service simultaneously.

MAP-E also helps manage IPv4 address exhaustion by keeping the stateful NAT44 on CPE. MAP-E is notsupported on any of the VRF interfaces, that is, either IPv4 or IPv6, whereas Map-T is supported with VRFinterfaces along with an SMU.

Configuring MAP-EPerform these tasks to configure MAP-E.

Configuring the Application Service Virtual InterfaceThis section lists the guidelines for selecting service application interfaces for MAP-E.

• Pair ServiceApp<n> with ServiceApp<n+1>, where <n> is an odd integer. This is to ensure that theServiceApp pairs works with a maximum throughput. For example, ServiceApp1 with ServiceApp2 orServiceApp3 with ServiceApp4.

• Pair ServiceApp<n> with ServiceApp<n+5> or ServiceApp<n+9>, and so on, where <n> is an oddinteger. For example, ServiceApp1 with ServiceApp6, ServiceApp1 with ServiceApp10, ServiceApp3with ServiceApp8, or ServiceApp3 with ServiceApp12.

• Pair ServiceApp<n>with ServiceApp<n+4>, where <n> is an integer (odd or even integer). For example,ServiceApp1 with ServiceApp5, or ServiceApp2 with ServiceApp6.

Although ServiceApp pairs work, the aggregate throughput for Inside-to-Outside and Outside-to-Inside trafficfor the ServiceApp pair is halved.

Warning

Do not pair ServiceApp<n> with ServiceApp<n+1>, where <n> is an even integer. When used,Outside-to-Inside traffic is dropped because traffic flows in the incorrect dispatcher and core.

Caution

Perform this task to configure the application service virtual interface (SVI) to forward data traffic.

SUMMARY STEPS

1. configure

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x264

Carrier Grade IPv6 over Virtualized Services Module (VSM)Mapping of Address and Port-Encapsulation Mode

Page 279: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

2. interface ServiceApp value3. service cgn instance -name service-type map-e4. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the application SVI to 1, and enters interfaceconfiguration mode.

interface ServiceApp value

Example:

Step 2

RP/0/RP0/CPU0:router(config)# interface ServiceApp1

ipv4 address 40.40.40.1 255.255.255.0service cgn cgn1 service-type map-e!

RP/0/RP0/CPU0:router(config)# interface ServiceApp2ipv6 address 1001::101/32service cgn cgn1 service-type map-e!

Configures the application SVI to 1, and enters interfaceconfiguration mode.

service cgn instance -name service-type map-e

Example:

Step 3

RP/0/RP0/CPU0:router(config-if)# service cgn cgn1service-type map-e map1

Saves configuration changes.endor commitStep 4

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-map_e)# end

orRP/0/RP0/CPU0:router(config-cgn-map_e)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x265

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Application Service Virtual Interface

Page 280: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Configuring a MAP-E InstancePerform this task to configure a MAP-E instance.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-e instance-name4. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6MAP-E application.

service-type map-e instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-e m1RP/0/RP0/CPU0:router(config-cgn-map_e)#

Saves configuration changes.endor commitStep 4

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-map_e)# end

orRP/0/RP0/CPU0:router(config-cgn-map_e)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x266

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring a MAP-E Instance

Page 281: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Policy FunctionsPerform these tasks to configure the policy functions.

Configuring Address FamilyPerform these tasks to configure address family.

Configuring IPv4 Address FamilyPerform these tasks configure IPv4 address family for a MAP-E instance.

Configuring IPv4 Interface

Perform this task to configure an IPv4 interface for a MAP-E instance.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-e instance-name4. address-family ipv4 interface ServiceApp number5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application, and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config-if)# service cgn cgn1

Defines the service type keyword definition for the CGv6MAP-E application.

service-type map-e instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-e m1RP/0/RP0/CPU0:router(config-cgn-map_e)

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x267

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Policy Functions

Page 282: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the IPv4 interface to divert IPv4 map-e traffic.address-family ipv4 interface ServiceApp number

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-map_e)#address-family ipv4 interface serviceApp 66RP/0/RP0/CPU0:router(config-cgn-map_e-afi)#

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-map_e-afi)# end

orRP/0/RP0/CPU0:router(config-cgn-map_e-afi)#commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring TCP Maximum Segment Size

Perform this task to configure the Maximum Segment Size (MSS) for TCP.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-e instance-name4. address-family ipv4 tcp mss value5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x268

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring TCP Maximum Segment Size

Page 283: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Defines the service type keyword definition for the CGv6MAP-E application.

service-type map-e instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-e m1RP/0/RP0/CPU0:router(config-cgn-map_e)#

Configures the MSS to be used, in bytes. The range is from28 to 1500.

address-family ipv4 tcp mss value

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-map_e)#address-family ipv4 tcp mss 300RP/0/RP0/CPU0:router(config-cgn-map_e-afi)#

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-map_e-afi)# end

orRP/0/RP0/CPU0:router(config-cgn-map_e-afi)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring IPv6 Address FamilyPerform these tasks configure an IPv6 address family.

Configuring IPv6 Interface

Perform this task to configure an IPv6 interface.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x269

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring IPv6 Address Family

Page 284: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-e instance-name4. address-family ipv6 interface ServiceApp number5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Defines the service type keyword definition for the CGv6MAP-E application.

service-type map-e instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-e m1RP/0/RP0/CPU0:router(config-cgn-map_e)#

Configures the IPv6 interface to divert IPv6 map-e traffic.address-family ipv6 interface ServiceApp number

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-map_e)#address-family ipv6 interface serviceApp 66RP/0/RP0/CPU0:router(config-cgn-map_e-afi)#

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-map_e-afi)# end

orRP/0/RP0/CPU0:router(config-cgn-map_e-afi)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x270

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring IPv6 Interface

Page 285: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring TCP Maximum Segment Size

Perform this task to configure the Maximum Segment Size (MSS) to be used for TCP.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-e instance-name4. address-family ipv6 tcp mss number5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Defines the service type keyword definition for the CGv6MAP-E application.

service-type map-e instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-e m1RP/0/RP0/CPU0:router(config-cgn-map_e)#

Configures the MSS to be used, in bytes. The range is from28 to 1500.

address-family ipv6 tcp mss number

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-map_e)#address-family ipv6 tcp mss 300RP/0/RP0/CPU0:router(config-cgn-map_e-afi)#

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-map_e-afi)# end

orRP/0/RP0/CPU0:router(config-cgn-map_e-afi)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x271

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring TCP Maximum Segment Size

Page 286: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring AFTR Endpoint AddressPerform this task to configure the Address Family Transition Router (AFTR) endpoint address.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-e instance-name4. aftr-endpoint-address IPv6 address5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Defines the service type keyword definition for the CGv6MAP-E application.

service-type map-e instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-e m1RP/0/RP0/CPU0:router(config-cgn-map_e)#

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x272

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring AFTR Endpoint Address

Page 287: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the AFTR endpoint address.aftr-endpoint-address IPv6 address

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-map_e)# aftr-endpoint-address 2001:db8::32RP/0/RP0/CPU0:router(config-cgn-map_e)#

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-map_e)# end

orRP/0/RP0/CPU0:router(config-cgn-map_e)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring Contiguous PortsPerform this task to configure the number of contiguous ports for a MAP-E instance

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-e instance-name4. contiguous-ports number5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x273

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring Contiguous Ports

Page 288: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Defines the service type keyword definition for the CGv6MAP-E application.

service-type map-e instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-e m1RP/0/RP0/CPU0:router(config-cgn-map_e)#

Configures the number of contiguous ports. The range isfrom 1 to 65536.

contiguous-ports number

Example:

Step 4

The value is expressed in powers of 2.NoteRP/0/RP0/CPU0:router(config-cgn-map_e)#contiguous-ports 16RP/0/RP0/CPU0:router(config-cgn-map_e)#

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-map_e)# end

orRP/0/RP0/CPU0:router(config-cgn-map_e)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring CPE Domain ParametersPerform this task to configure Customer Premise Equipment (CPE) domain parameters.

SUMMARY STEPS

1. configure2. service cgn instance-name

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x274

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring CPE Domain Parameters

Page 289: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

3. service-type map-e instance-name4. cpe-domain ipv4 prefix ipv4 address/prefix or cpe-domain ipv6 prefix ipv6 address/prefix5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Defines the service type keyword definition for the CGv6MAP-E application.

service-type map-e instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-e m1RP/0/RP0/CPU0:router(config-cgn-map_e)#

Configures the IPv4 or IPv6 prefixes of the CPE domain.cpe-domain ipv4 prefix ipv4 address/prefix orcpe-domain ipv6 prefix ipv6 address/prefix

Step 4

Example:RP/0/RP0/CPU0:router(config-cgn-map_e)# cpe-domainipv4 prefix 10.2.2.24/2RP/0/RP0/CPU0:router(config-cgn-map_e)#orRP/0/RP0/CPU0:router(config-cgn-map_e)# cpe-domainipv6 prefix 2001:da8:a464::/48RP/0/RP0/CPU0:router(config-cgn-map_e)#

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-map_e)# end

orRP/0/RP0/CPU0:router(config-cgn-map_e)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x275

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring CPE Domain Parameters

Page 290: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring Path MTU of the TunnelPerform this task to configure the path Maximum Transmission Unit (MTU) of the tunnel.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-e instance-name4. path-mtu value5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Defines the service type keyword definition for the CGv6MAP-E application.

service-type map-e instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-e m1RP/0/RP0/CPU0:router(config-cgn-map_e)#

Configures the path MTU of the tunnel. The range is from1280 to 9216.

path-mtu value

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-map_e)# path-mtu1300RP/0/RP0/CPU0:router(config-cgn-map_e)#

Saves configuration changes.endor commitStep 5

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x276

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring Path MTU of the Tunnel

Page 291: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-map_e)# end

orRP/0/RP0/CPU0:router(config-cgn-map_e)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring Port Sharing RatioPerform this task to configure the sharing ratio of the port.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-e instance-name4. sharing-ratio number5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x277

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring Port Sharing Ratio

Page 292: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Defines the service type keyword definition for the CGv6MAP-E application.

service-type map-e instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-e m1RP/0/RP0/CPU0:router(config-cgn-map_e)#

Configures the port sharing ratio. The range is from 1 to32768.

sharing-ratio number

Example:

Step 4

The value is expressed in powers of 2.NoteRP/0/RP0/CPU0:router(config-cgn-map_e)#sharing-ratio 64RP/0/RP0/CPU0:router(config-cgn-map_e)#

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-map_e)# end

orRP/0/RP0/CPU0:router(config-cgn-map_e)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

MAP-E on VSM Configuration: ExampleThis example shows a sample MAP-E configuration on VSM:

interface ServiceApp1ipv4 address 30.30.30.1 255.255.255.0service cgn cgn1 service-type map-e m1!interface ServiceApp2ipv4 address 19.1.1.1 255.255.255.252ipv6 address 2001:101::/32service cgn cgn1 service-type map-e m1!interface ServiceInfra1ipv4 address 200.1.1.1 255.255.255.0

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x278

Carrier Grade IPv6 over Virtualized Services Module (VSM)MAP-E on VSM Configuration: Example

Page 293: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

service-location 0/0/CPU0!router staticaddress-family ipv4 unicast202.38.102.0/24 ServiceApp1 30.30.30.2!address-family ipv6 unicast2001:da8:a464:ffff::/64 ServiceApp2 2001:101::2!service cgn cgn1service-location preferred-active 0/0/CPU0service-type map-e m1cpe-domain ipv6 prefix 2001:da8:a464::/48cpe-domain ipv4 prefix 202.38.102.0/24aftr-endpoint-address 2001:da8:a464:ffff::/128sharing-ratio 16contiguous-ports 32path-mtu 1300

address-family ipv4interface ServiceApp1tcp mss 235

!address-family ipv6interface ServiceApp2tcp mss 1154!!

Mapping of Address and Port-Translation ModeMapping of Address and Port-Translation Mode (MAP-T) is a CGN solution that enables IPv4-only clientsto communicate with IPv6-only resources using address and packet translation. MAP-T is also referred to asDual IVI (dIVI) or Stateless NAT46. This enables a service provider to offer IPv4 services to IPv6 enabled(customer) sites to which it provides customer premise equipment (CPE). This approach utilizes stateless IPv4to IPv6 translation (that is NAT64) to transit IPv6-enabled network infrastructure. The provider access networkcan now be on IPv6, while customers use IPv6 and IPv4 services simultaneously. MAP-T keeps the statefulNAT44 on CPE, as usual, to handle IPv4 address exhaustion, in addition to stateless NAT64 on CPE andBorder Router.

MAP-T is attractive to those SPs who have deployed, or are planning to deploy IPv6 end-to-end services, andwant to manage IPv4 address exhaustion with utmost predictability.

MAP-T is a preferred alternate to DS-Lite in a sevice provider network when there is no tunneling needed.

MAP-T is offered in stateless mode only.Note

Configuring MAP-TPerform these tasks to configure MAP-T.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x279

Carrier Grade IPv6 over Virtualized Services Module (VSM)Mapping of Address and Port-Translation Mode

Page 294: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

MAP-T is supported only on Cisco ASR 9000 Series 400G and 200G Modular Line Cards and Cisco ASR9000 Series 4-Port and 8-Port 100 Gigabit Ethernet Line Cards.

Note

Configuring the Application Service Virtual InterfaceThis section lists the guidelines for selecting service application interfaces for MAP-T.

• Pair ServiceApp<n> with ServiceApp<n+1>, where <n> is an odd integer. This is to ensure that theServiceApp pairs works with a maximum throughput. For example, ServiceApp1 with ServiceApp2 orServiceApp3 with ServiceApp4.

• Pair ServiceApp<n> with ServiceApp<n+5> or ServiceApp<n+9>, and so on, where <n> is an oddinteger. For example, ServiceApp1 with ServiceApp6, ServiceApp1 with ServiceApp10, ServiceApp3with ServiceApp8, or ServiceApp3 with ServiceApp12.

• Pair ServiceApp<n>with ServiceApp<n+4>, where <n> is an integer (odd or even integer). For example,ServiceApp1 with ServiceApp5, or ServiceApp2 with ServiceApp6.

Although ServiceApp pairs work, the aggregate throughput for Inside-to-Outside and Outside-to-Inside trafficfor the ServiceApp pair is halved.

Warning

Do not pair ServiceApp<n> with ServiceApp<n+1>, where <n> is an even integer. When used,Outside-to-Inside traffic is dropped because traffic flows in the incorrect dispatcher and core.

Caution

Perform this task to configure the application service virtual interface (SVI) to forward data traffic.

SUMMARY STEPS

1. configure2. interface ServiceApp value3. service cgn instance-name service-type map-t4. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the application SVI to 1, and enters interfaceconfiguration mode.

interface ServiceApp value

Example:

Step 2

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x280

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Application Service Virtual Interface

Page 295: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router(config)# interface ServiceApp1RP/0/RP0/CPU0:router(config-if)#

Configures the application SVI to 1, and enters interfaceconfiguration mode.

service cgn instance-name service-type map-t

Example:

Step 3

RP/0/RP0/CPU0:router(config-if)# service cgn cgn1service-type map-t map1

Saves configuration changes.endor commitStep 4

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-if)# end

orRP/0/RP0/CPU0:router(config-if)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring a MAP-T InstancePerform this task to configure a MAP-T instance.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-t instance-name4. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x281

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring a MAP-T Instance

Page 296: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router# configure

Configures the instance named cgn1 for the CGv6application and enters CGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6MAP-T application

service-type map-t instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-t map-t-instRP/0/RP0/CPU0:router(config-cgn-mapt)#

Saves configuration changes.end or commit

Example:

Step 4

• When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-mapt)# end

orRP/0/RP0/CPU0:router(config-cgn-mapt)# commit Uncommitted changes found, commit them before

exiting (yes/no/cancel)?

[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring the Policy FunctionsPerform these tasks to configure the policy functions.

Configuring Address FamilyPerform these tasks to configure address family.

Configuring IPv4 Address Family

Perform these tasks configure IPv4 address family for a MAP-T instance.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x282

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring the Policy Functions

Page 297: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Configuring an IPv4 Interface

Perform this task to configure an IPv4 interface for a MAP-T instance.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-t instance-name4. address-family ipv4 interface ServiceApp number5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6MAP-T application.

service-type map-t instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-t map-t-instRP/0/RP0/CPU0:router(config-cgn-mapt)#

Configures the IPv4 interface to divert IPv4MAP-T traffic.address-family ipv4 interface ServiceApp number

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-mapt)#address-familyipv4 interface serviceApp 66RP/0/RP0/CPU0:router(config-cgn-mapt-afi)

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-mapt-afi)# end

orRP/0/RP0/CPU0:router(config-cgn-mapt-afi)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x283

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring an IPv4 Interface

Page 298: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring IPv4 TCP Maximum Segment Size (MSS)

Perform this task to configure the MSS for TCP in bytes.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-t instance-name4. address-family ipv4 tcp mss value5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6MAP-T application.

service-type map-t instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-t map-t-instRP/0/RP0/CPU0:router(config-cgn-mapt)#

Configures the MSS for TCP in bytes.address-family ipv4 tcp mss value

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-mapt)#address-familyipv4 tcp mss 66RP/0/RP0/CPU0:router(config-cgn-mapt-afi)

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x284

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring IPv4 TCP Maximum Segment Size (MSS)

Page 299: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router(config-cgn-mapt-afi)# endorRP/0/RP0/CPU0:router(config-cgn-mapt-afi)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring IPv4 Type of Service (ToS)

Perform this task to configure the configured ToS value to be used when translating a packet from IPv6 toIPv4.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-t instance-name4. address-family ipv4 tos value5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6MAP-T application.

service-type map-t instance-name

Example:

Step 3

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x285

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring IPv4 Type of Service (ToS)

Page 300: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router(config-cgn)# service-typemap-t map-t-instRP/0/RP0/CPU0:router(config-cgn-mapt)#

Configures the TOS value.address-family ipv4 tos value

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-mapt)#address-familyipv4 tos 66RP/0/RP0/CPU0:router(config-cgn-mapt-afi)

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-mapt-afi)# end

orRP/0/RP0/CPU0:router(config-cgn-mapt-afi)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring IPv6 Address Family

Perform these tasks configure an IPv6 address family.

Configuring IPv6 Do not Fragment (DF) Override

Perform this task to enable DF override configuration.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-t instance-name4. address-family ipv6 df-override5. endor commit

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x286

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring IPv6 Address Family

Page 301: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6MAP-T application.

service-type map-t instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-t map-t-instRP/0/RP0/CPU0:router(config-cgn-mapt)

Configures the DF-Override.address-family ipv6 df-override

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-mapt)#address-familyipv6 df-overrideRP/0/RP0/CPU0:router(config-cgn-mapt-afi)

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-mapt-afi)# end

orRP/0/RP0/CPU0:router(config-cgn-mapt-afi)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring an IPv6 Interface

Perform this task to configure an IPv6 interface for a stateful NAT64 instance.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x287

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring an IPv6 Interface

Page 302: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat64 stateful instance-name4. address-family ipv6 interface ServiceApp number5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6Stateful NAT64 application.

service-type nat64 stateful instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat64 stateful nat64-instRP/0/RP0/CPU0:router(config-cgn-nat64-stateful)

Configures the IPv6 interface to divert IPv6 nat64 traffic.address-family ipv6 interface ServiceApp number

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-nat64-stateful)#address-familyipv4 interface ServiceApp 66RP/0/RP0/CPU0:router(config-cgn-nat64-stful-afi)

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-nat64-stful-afi)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

orRP/0/RP0/CPU0:router(config-cgn-nat64-stful-afi)#commit

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x288

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring an IPv6 Interface

Page 303: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring IPv6 TCP Maximum Segment Size (MSS)

Perform this task to configure the MSS for TCP in bytes.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-t instance-name4. address-family ipv6 tcp mss value5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6MAP-T application.

service-type map-t instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-t map-t-instRP/0/RP0/CPU0:router(config-cgn-mapt)

Configures the MSS for TCP in bytes.address-family ipv6 tcp mss value

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-mapt)#address-familyipv6 tcp mss 66RP/0/RP0/CPU0:router(config-cgn-mapt-afi)

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-mapt-afi)# end

orRP/0/RP0/CPU0:router(config-cgn-mapt-afi)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x289

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring IPv6 TCP Maximum Segment Size (MSS)

Page 304: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring IPv6 Traffic-Class

Perform this task to configure a traffic-class.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type nat64 stateful instance-name4. address-family ipv6 traffic-class value5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6Stateful NAT64 application.

service-type nat64 stateful instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typenat64 stateful nat64-instRP/0/RP0/CPU0:router(config-cgn-nat64-stateful)

Configures the traffic class to be set.address-family ipv6 traffic-class value

Example:

Step 4

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x290

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring IPv6 Traffic-Class

Page 305: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router(config-cgn-nat64-stateful)#address-familyipv6 traffic-class 66RP/0/RP0/CPU0:router(config-cgn-nat64-stful-afi)

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-nat64-stful-afi)#

end Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

orRP/0/RP0/CPU0:router(config-cgn-nat64-stful-afi)#commit

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring Contiguous Ports

Perform this task to configure contiguous ports.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-t instance-name4. contiguous-ports number5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x291

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring Contiguous Ports

Page 306: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6MAP-T application.

service-type map-t instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-t map-t-instRP/0/RP0/CPU0:router(config-cgn-mapt)

Configures the number of ports and the value is expressedin powers of 2. The range is from 1 to 65536.

contiguous-ports number

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-mapt)#contiguous-ports14RP/0/RP0/CPU0:router(config-cgn-mapt)

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-mapt)# end

orRP/0/RP0/CPU0:router(config-cgn-mapt)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring Customer Premise Equipment Domain Parameters

Perform this task to configure Customer Premise Equipment (CPE) domain parameters.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-t instance-name4. cpe-domain ipv4 prefix ipv4 address/prefix or cpe-domain ipv6 prefix ipv6 address/prefix5. endor commit

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x292

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring Customer Premise Equipment Domain Parameters

Page 307: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6MAP-T application.

service-type map-t instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-t map-t-instRP/0/RP0/CPU0:router(config-cgn-mapt)

Configures the cpe domain parameters.cpe-domain ipv4 prefix ipv4 address/prefix orcpe-domain ipv6 prefix ipv6 address/prefix

Step 4

Example:RP/0/RP0/CPU0:router(config-cgn-mapt)#acpe-domainipv4 prefix 10.2.2.24/2RP/0/RP0/CPU0:router(config-cgn-mapt)orRP/0/RP0/CPU0:router(config-cgn-mapt)#acpe-domainipv6 prefix 10:2::2/24RP/0/RP0/CPU0:router(config-cgn-mapt)

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-mapt)# end

orRP/0/RP0/CPU0:router(config-cgn-mapt)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x293

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring Customer Premise Equipment Domain Parameters

Page 308: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Configuring External Domain Parameters

Perform this task to configure external domain parameters.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-t instance-name4. external-domain ipv6 prefix ipv6 address/prefix5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6MAP-T application.

service-type map-t instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-t map-t-instRP/0/RP0/CPU0:router(config-cgn-mapt)

Configures the external domain parameters.external-domain ipv6 prefix ipv6 address/prefix

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-mapt)#external-domainipv6 prefix 10:2::2/24RP/0/RP0/CPU0:router(config-cgn-mapt)

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RP0/CPU0:router(config-cgn-mapt)# end

orRP/0/RP0/CPU0:router(config-cgn-mapt)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x294

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring External Domain Parameters

Page 309: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring Port Sharing Ratio

Perform this task to configure port sharing ratio.

SUMMARY STEPS

1. configure2. service cgn instance-name3. service-type map-t instance-name4. sharing-ratio number5. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgn instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgn cgn1RP/0/RP0/CPU0:router(config-cgn)#

Configures the service type keyword definition for CGv6MAP-T application.

service-type map-t instance-name

Example:

Step 3

RP/0/RP0/CPU0:router(config-cgn)# service-typemap-t map-t-instRP/0/RP0/CPU0:router(config-cgn-mapt)

Configures the port sharing ratio and the value is expressedin powers of 2. The range is from 1 to 32768.

sharing-ratio number

Example:

Step 4

RP/0/RP0/CPU0:router(config-cgn-mapt)#sharing-ratio14RP/0/RP0/CPU0:router(config-cgn-mapt)

Saves configuration changes.endor commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x295

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring Port Sharing Ratio

Page 310: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router(config-cgn-mapt)# endorRP/0/RP0/CPU0:router(config-cgn-mapt)# commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

MAP-T Configuration on VSM: Exampleinterface ServiceApp4ipv4 address 30.30.30.1 255.255.255.0service cgn test service-type map-t!interface ServiceApp6ipv4 address 19.1.1.1 255.255.255.252ipv6 address 2001:101::/32service cgn test service-type map-t!interface ServiceInfra1ipv4 address 200.1.1.1 255.255.255.0service-location 0/0/CPU0!router staticaddress-family ipv4 unicast202.38.102.0/24 ServiceApp4 30.30.30.2!address-family ipv6 unicast2001:da8:a464:ffff::/64 ServiceApp6 2001:101::2

!service cgn testservice-location preferred-active 0/0/CPU0service-type map-t xlat1cpe-domain ipv6 prefix 2001:da8:a464::/48cpe-domain ipv4 prefix 202.38.102.0/24external-domain ipv6 prefix 2001:da8:a464:ffff::/64sharing-ratio 64contiguous-ports 128

address-family ipv4interface ServiceApp4

tcp mss 235tos 100

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x296

Carrier Grade IPv6 over Virtualized Services Module (VSM)MAP-T Configuration on VSM: Example

Page 311: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

!address-family ipv6

interface ServiceApp6tcp mss 1154traffic-class 100df-override;!!

Configuration Examples for Implementing the Carrier GradeNAT

This section provides the following configuration examples for CGN:

Configuring a Different Inside VRF Map to a Different Outside VRF: ExampleThis example shows how to configure a different inside VRF map to a different outside VRF and differentoutside address pools:service cgn cgn1inside-vrf insidevrf1map outside-vrf outsidevrf1 address-pool 100.1.1.0/24!!inside-vrf insidevrf2map outside-vrf outsidevrf2 address-pool 100.1.2.0/24!service-location preferred-active 0/2/cpu0 preferred-standby 0/3/cpu0!interface ServiceApp 1vrf insidevrf1ipv4 address 210.1.1.1 255.255.255.0service cgn cgn1!router staticvrf insidevrf10.0.0.0/0 serviceapp 1!!interface ServiceApp 2vrf insidevrf2ipv4 address 211.1.1.1 255.255.255.0service cgn cgn1service-type nat44 nat1!router staticvrf insidevrf20.0.0.0/0 serviceapp 2!!interface ServiceApp 3vrf outsidevrf1ipv4 address 1.1.1.1 255.255.255.0service cgn cgn1service-type nat44 nat1!router static

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x297

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuration Examples for Implementing the Carrier Grade NAT

Page 312: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

vrf outsidevrf1100.1.1.0/24 serviceapp 3!!interface ServiceApp 4vrf outsidevrf2ipv4 address 2.2.2.1 255.255.255.0service cgn cgn1service-type nat44 nat1!router staticvrf outsidevrf2100.1.2.0/24 serviceapp 4!

Configuring a Different Inside VRF Map to a Same Outside VRF: ExampleThis example shows how to configure a different inside VRF map to the same outside VRF but with differentoutside address pools:service cgn cgn1inside-vrf insidevrf1map outside-vrf outsidevrf1 address-pool 100.1.1.0/24!inside-vrf insidevrf2map outside-vrf outsidevrf1 address-pool 200.1.1.0/24!!service-location preferred-active 0/2/cpu0 preferred-standby 0/3/cpu0!interface ServiceApp 1vrf insidevrf1ipv4 address 1.1.1.1 255.255.255.0service cgn cgn1!router staticvrf insidevrf10.0.0.0/0 serviceapp 1!!interface ServiceApp 2vrf insidevrf2ipv4 address 2.1.1.1 255.255.255.0service cgn cgn1!router staticvrf insidevrf20.0.0.0/0 serviceapp 2!!interface ServiceApp 3vrf outsidevrf1ipv4 address 100.1.1.1 255.255.255.0service cgn cgn1!router staticvrf outsidevrf1100.1.1.0/24 serviceapp 3200.1.1.0/24 serviceapp 3!

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x298

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring a Different Inside VRF Map to a Same Outside VRF: Example

Page 313: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

NAT44 Configuration: ExampleThis example shows a NAT44 sample configuration:IPv4: 40.22.22.22/16!interface Loopback40description IPv4 Host for NAT44ipv4 address 40.22.22.22 255.255.0.0!interface Loopback41description IPv4 Host for NAT44ipv4 address 41.22.22.22 255.255.0.0!interface GigabitEthernet0/3/0/0.1description Connected to P2_CRS-8 GE 0/6/5/0.1ipv4 address 10.222.5.22 255.255.255.0encapsulation dot1q 1!router staticaddress-family ipv4 unicast180.1.0.0/16 10.222.5.2181.1.0.0/16 10.222.5.2

!!Hardware Configuration for CSGE:!vrf InsideCustomer1address-family ipv4 unicast!!vrf OutsideCustomer1address-family ipv4 unicast!!hw-module service cgn location 0/3/CPU0!service-plim-ha location 0/3/CPU0 datapath-testservice-plim-ha location 0/3/CPU0 core-to-core-testservice-plim-ha location 0/3/CPU0 pci-testservice-plim-ha location 0/3/CPU0 coredump-extraction!!interface GigabitEthernet0/6/5/0.1vrf InsideCustomer1ipv4 address 10.222.5.2 255.255.255.0encapsulation dot1q 1!interface GigabitEthernet0/6/5/1.1vrf OutsideCustomer1ipv4 address 10.12.13.2 255.255.255.0encapsulation dot1q 1!interface ServiceApp1vrf InsideCustomer1ipv4 address 1.1.1.1 255.255.255.252service cgn cgn1 service-type nat44!interface ServiceApp2vrf OutsideCustomer1ipv4 address 2.1.1.1 255.255.255.252service cgn cgn1 service-type nat44!interface ServiceInfra1

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x299

Carrier Grade IPv6 over Virtualized Services Module (VSM)NAT44 Configuration: Example

Page 314: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

ipv4 address 75.75.75.75 255.255.255.0service-location 0/3/CPU0!!router static!vrf InsideCustomer1address-family ipv4 unicast0.0.0.0/0 ServiceApp140.22.0.0/16 10.222.5.2241.22.0.0/16 10.222.5.22181.1.0.0/16 vrf OutsideCustomer1 GigabitEthernet0/6/5/1.1 10.12.13.1!!vrf OutsideCustomer1address-family ipv4 unicast40.22.0.0/16 vrf InsideCustomer1 GigabitEthernet0/6/5/0.1 10.222.5.2241.22.0.0/16 vrf InsideCustomer1 GigabitEthernet0/6/5/0.1 10.222.5.22100.0.0.0/24 ServiceApp2180.1.0.0/16 10.12.13.1181.1.0.0/16 10.12.13.1!!!CGSE Configuration:service cgn cgn1service-location preferred-active 0/3/CPU0service-type nat44 nat44portlimit 200alg ActiveFTPinside-vrf InsideCustomer1map outside-vrf OutsideCustomer1 address-pool 100.0.0.0/24protocol tcpstatic-forward insideaddress 41.22.22.22 port 80!!protocol icmpstatic-forward insideaddress 41.22.22.22 port 80!!external-logging netflow version 9serveraddress 172.29.52.68 port 2055refresh-rate 600timeout 100 !

!!!!IPv4: 180.1.1.1/16!interface Loopback180description IPv4 Host for NAT44ipv4 address 180.1.1.1 255.255.0.0!interface Loopback181description IPv4 Host for NAT44ipv4 address 181.1.1.1 255.255.0.0!interface GigabitEthernet0/6/5/1.1ipv4 address 10.12.13.1 255.255.255.0encapsulation dot1q 1

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x300

Carrier Grade IPv6 over Virtualized Services Module (VSM)NAT44 Configuration: Example

Page 315: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

!router staticaddress-family ipv4 unicast40.22.0.0/16 10.12.13.241.22.0.0/16 10.12.13.2100.0.0.0/24 10.12.13.2 !

!

NAT64 Configuration: ExampleThis example shows a NAT64 sample configuration:! Defines the Location for CGN Translation! ----------------------------------hw-module service cgn location 0/1/cpu0

! Defines the Service Infra Interface! ------------------------------interface ServiceInfra 1

! Defines the IP address and netmaskipv4 address 3.1.1.2 255.255.255.252

! Defines IPv4 to IPv6 Direction Service Application Interface! ---------------------------------------------interface ServiceApp 1

! Assigns the IPv4 Address and Netmaskipv4 address 211.1.1.1 255.255.255.0

! Indicates the CGN Instance and Service-typeservice cgn cgn1 service-type nat64 stateful

! Defines IPv6 to IPv4 direction Service Application interface! ---------------------------------------------interface ServiceApp 2

! Assigns IPv6 address and netmaskipv6 address 5005::5555/96

! Indicates the CGN instance and Service-typeservice cgn cgn1 service-type nat64 stateful

! Define the CGN Instance! --------------------service cgn cgn1

! Defines the Locationservice-location preferred-active 0/1/CPU0

! Defines the Service-type and Nameservice-type nat64 stateful nat64_1

! Enables RTSP ALGalg RTSP

! Defines the Port Limitportlimit 65535

! Defines IPv6 Prefixipv6-prefix 3301:db8:1::/96

! Defines the IPv4 Address Pool

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x301

Carrier Grade IPv6 over Virtualized Services Module (VSM)NAT64 Configuration: Example

Page 316: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

ipv4 address-pool 52.1.64.0/22

! Defines the Dynamic Port Rangedynamic-port-range start 1

! Defines the IPv4 Address Familyaddress-family ipv4

interface ServiceApp1

! Defines IPv6 Address Familyaddress-family ipv6interface ServiceApp2

! Defines the UDP/TCP/ICMP Protocolprotocol udptimeout 65535

protocol tcpsession initial timeout 65535session active timeout 65535

protocol icmptimeout 65535

! Defines the Netflow and Associated Server.external-logging netflow version 9serveraddress 10.64.81.232 port 44444

! Defines the Static Route for IPv4 to IPv6 directionaddress-family ipv4 unicast

! This route is the same as the IPv4 CPE Domain Prefix52.1.64.0/22 ServiceApp1

! Defines Static Route for IPv6 to IPv4 directionaddress-family ipv6 unicast

! This route is same as the IPv6 External Domain Prefix3301:db8:1::/96 ServiceApp2

Bulk Port Allocation and Syslog Configuration: Exampleservice cgn cgn2service-type nat44 natAinside-vrf broadbandmap address-pool 100.1.2.0/24external-logging syslogserveraddress 20.1.1.2 port 514!!bulk-port-alloc size 64!!

Predefined NAT Configuration: ExampleThis example shows how to configure the predefined NAT for NAT44:

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x302

Carrier Grade IPv6 over Virtualized Services Module (VSM)Bulk Port Allocation and Syslog Configuration: Example

Page 317: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

service cgn cgn1service-location preferred-active 0/2/CPU0service-type nat44 nat1inside-vrf redmap outside-vrf blue address-pool 100.0.0.0/24nat-modepredefined private-pool 103.1.106.0/24predefined private-pool 103.1.107.0/26predefined private-pool 103.1.107.128/26predefined private-pool 103.1.108.0/23predefined private-pool 103.1.112.0/22predefined private-pool 103.1.116.0/24predefined private-pool 103.1.117.64/26predefined private-pool 103.1.117.192/26

PPTP ALG Configuration: Example

NAT44 Instanceservice cgn cgn1service-location preferred-active 0/1/CPU0service-type nat44 inst1alg pptpAlg

DBL Configuration: Example

NAT44 Instanceservice cgn cgn1service-type nat44 nat1inside-vrf ivrfexternal-logging netflow version 9serveraddress x.x.x.x port xsession-logging

DS Lite Configuration: Example

IPv6 ServiceApp and Static Route Configurationconfint serviceApp61

service cgn cgn1 service-type ds-liteipv6 address 2001:202::/32commit

exit

router staticaddress-family ipv6 unicast3001:db8:e0e:e01::/128 ServiceApp61 2001:202::2commitexit

end

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x303

Carrier Grade IPv6 over Virtualized Services Module (VSM)PPTP ALG Configuration: Example

Page 318: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

IPv4 ServiceApp and Static Route Configurationconfint serviceApp41

service cgn cgn1 service-type ds-liteipv4 add 41.41.41.1/24commit

exit

router staticaddress-family ipv4 unicast52.52.52.0/24 ServiceApp41 41.1.1.2commitexit

end

DS Lite Configurationservice cgn cgn1service-location preferred-active 0/2/CPU0 preferred-standby 0/4/CPU0service-type ds-lite dsl1portlimit 200bulk-port-alloc size 128map address-pool 52.52.52.0/24aftr-tunnel-endpoint-address 3001:DB8:E0E:E01::address-family ipv4interface ServiceApp41

address-family ipv6interface ServiceApp61

protocol tcpsession init timeout 300session active timeout 400mss 1200

external-logging netflow9serveraddress 90.1.1.1 port 99

external-logging syslogserveraddress 90.1.1.1 port 514

DBL Configuration: Example

DS-Lite Instanceservice cgn cgn1service-type ds-lite ds-lite1external-logging netflow9server session-logging

Configuring TCP Sequence-Check: ExampleThis example shows how to configure sequence check for TCP sessions.configureservice cgn cgn1

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x304

Carrier Grade IPv6 over Virtualized Services Module (VSM)IPv4 ServiceApp and Static Route Configuration

Page 319: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

service-type nat44 nat1inside-vrf vrf1firewall protocol tcpsequence-check

Configuring Address and Port-Dependent Filtering: ExampleThis example shows how to configure address and port-dependent filtering.configureservice cgn cgn1service-type nat44 nat1inside-vrf vrf1filter-policy ignore-port

NAT0 Mode Configuration: ExampleThis example shows how to configure the NAT0 mode:service cgn cgn1service-location preferred-active 0/2/CPU0service-type nat44 nat1inside-vrf Inside_1map outside-vrf ovrf outsideServiceApp ServiceApp2 address-pool 0.0.0.0/0nat-mode no-nat

Configuration of Multiple NetFlow Servers: Exampleservice cgn cgn1service-location preferred-active 0/1/CPU0service-type nat44 nat1inside-vrf ivrfmap outside-vrf ovrf outsideServiceApp ServiceApp2 address-pool 100.1.1.0/24external-logging netflow version 9serveraddress 111.1.1.1 port 6000path-mtu 1200refresh-rate 600timeout 1000session-logging!address 111.1.1.1 port 9000path-mtu 1100refresh-rate 500timeout 1000session-logging!address 122.1.1.1 port 9000path-mtu 1200refresh-rate 500timeout 1100session-logging!!!

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x305

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuring Address and Port-Dependent Filtering: Example

Page 320: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Configuration of Multiple Syslog Servers: Serversservice cgn cgn1service-location preferred-active 0/1/CPU0service-type nat44 nat1inside-vrf ivrfmap outside-vrf ovrf outsideServiceApp ServiceApp2 address-pool 100.1.1.0/24external-logging syslogserveraddress 211.1.1.1 port 6000path-mtu 1200session-logging!address 211.1.1.1 port 9000path-mtu 1200session-logging!address 212.1.1.1 port 6000path-mtu 1200session-logging!!!

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x306

Carrier Grade IPv6 over Virtualized Services Module (VSM)Configuration of Multiple Syslog Servers: Servers

Page 321: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

C H A P T E R 5Carrier Grade IPv6 without Service Modules

• Configuring MAP-E without service modules , on page 307• MAP-T without Service Cards, on page 313• Configuring MAP-T without Service Cards, on page 314

Configuring MAP-E without service modulesThis feature allows to configureMapping of Address and Portal-EncapsulationMode (MAP-E) CGN solutionwithout service cards (ISM or VSM). The CGN application directly interacts with the line cards to configureMAP-E.

Configuring MAP-E instances without service modulesPerform these tasks to configure MAP-E without service modules.

SUMMARY STEPS

1. configure2. service cgv6 instance-name3. service-inlineinterface-name4. service-type map-e instance-name5. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RSP0/CPU0:routerco# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgv6 instance-name

Example:

Step 2

RP/0/RSP0/CPU0:router(config)# serviceCgv6 cgv6-1

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x307

Page 322: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RSP0/CPU0:router(config-cgv6)#

Configures the service-inline interface.service-inlineinterface-name

Example:

Step 3

RP/0/RSP0/CPU0:router(config-cgv6)#Service-inlineinterface TenGigE0/0/0/0

Configures the service type keyword definition for CGv6MAP-E application.

service-type map-e instance-name

Example:

Step 4

RP/0/RSP0/CPU0:router(config-cgv6) #service-typemap-e map1RP/0/RSP0/CPU0:router(config-cgV6-map_e)#

Saves configuration changes.end or commitStep 5

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RSP0/CPU0:router(config-cgv6-map_e)# end

orRP/0/RSP0/CPU0:router(config-cgv6-map_e)# Commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring cpe domain parameters without service modulesPerform this task to configure cpe domain interface for MAP-E without service modules.

SUMMARY STEPS

1. configure2. service cgv6 instance-name3. service-inline interface-name4. service-type map-e instance-name5. cpe-domain ipv4 prefix ipv4 adress/prefix cpe-domain ipv6 prefix ipv6 adress/prefix6. end or commit

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x308

Carrier Grade IPv6 without Service ModulesConfiguring cpe domain parameters without service modules

Page 323: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RSP0/CPU0:routerco# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgv6 instance-name

Example:

Step 2

RP/0/RSP0/CPU0:router(config)# serviceCgv6 cgv6-1RP/0/RSP0/CPU0:router(config-cgv6)#

Configures the service-inline interface.service-inline interface-name

Example:

Step 3

RP/0/RSP0/CPU0:router(config-cgv6)#Service-inlineinterface TenGigE0/0/0/0

Configures the service type keyword definition for CGv6MAP-E application.

service-type map-e instance-name

Example:

Step 4

RP/0/RSP0/CPU0:router(config-cgv6) #service-typemap-e map1RP/0/RSP0/CPU0:router(config-cgV6-map_e)#

Configures the IPv4 or IPv6 prefixes of the CPE domainparameter without service modules.

cpe-domain ipv4 prefix ipv4 adress/prefix cpe-domainipv6 prefix ipv6 adress/prefix

Example:

Step 5

RP/0/RSP0/CPU0:router(config-cgv6-map_e)#cpe-domainipv4 prefix120.2.1.0/24RP/0/RSP0/CPU0:router(config-cgv6-map_e)#cpe-domainipv6 prefix 9020:da8:2::/48

Saves configuration changes.end or commitStep 6

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RSP0/CPU0:router(config-cgv6-map_e)# end

orRP/0/RSP0/CPU0:router(config-cgv6-map_e)# Commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x309

Carrier Grade IPv6 without Service ModulesConfiguring cpe domain parameters without service modules

Page 324: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring port sharing ratio and contiguous port without service modulesPerform this task to configure port sharing ratio and contiguous port.

SUMMARY STEPS

1. configure2. service cgv6 instance-name3. service-inline interface-name4. service-type map-e instance-name5. cpe-domain ipv4 prefix ipv4 adress/prefix cpe-domain ipv6 prefix ipv6 adress/prefix6. sharing-ration 2567. contiguous-port 168. end or commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RSP0/CPU0:routerco# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgv6 instance-name

Example:

Step 2

RP/0/RSP0/CPU0:router(config)# serviceCgv6 cgv6-1RP/0/RSP0/CPU0:router(config-cgv6)#

Configures the service-inline interface.service-inline interface-name

Example:

Step 3

RP/0/RSP0/CPU0:router(config-cgv6)#Service-inlineinterface TenGigE0/0/0/0

Configures the service type keyword definition for CGv6MAP-E application.

service-type map-e instance-name

Example:

Step 4

RP/0/RSP0/CPU0:router(config-cgv6) #service-typemap-e map1RP/0/RSP0/CPU0:router(config-cgV6-map_e)#

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x310

Carrier Grade IPv6 without Service ModulesConfiguring port sharing ratio and contiguous port without service modules

Page 325: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the IPv4 or IPv6 prefixes of the CPE domainparameter without service modules.

cpe-domain ipv4 prefix ipv4 adress/prefix cpe-domainipv6 prefix ipv6 adress/prefix

Example:

Step 5

RP/0/RSP0/CPU0:router(config-cgv6-map_e)#cpe-domainipv4 prefix120.2.1.0/24RP/0/RSP0/CPU0:router(config-cgv6-map_e)#cpe-domainipv6 prefix 9020:da8:2::/48

Configures the port sharing ratio. The value for the portsharing ratio is 256.

sharing-ration 256

Example:

Step 6

RP/0/RSP0/CPU0:router(config-cgv6-map_e)#sharing-ratio256

Configures the contiguous port. The value for the contiguousport is 16.

contiguous-port 16

Example:

Step 7

RP/0/RSP0/CPU0:router(config-cgv6-map_e)#contiguous-ports16

Saves configuration changes.end or commitStep 8

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RSP0/CPU0:router(config-cgv6-map_e)# end

orRP/0/RSP0/CPU0:router(config-cgv6-map_e)# Commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

Configuring BR Endpoint Address without modulesPerform this task to configure the BR Endpoint Address without service modules.

SUMMARY STEPS

1. configure

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x311

Carrier Grade IPv6 without Service ModulesConfiguring BR Endpoint Address without modules

Page 326: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

2. service cgv6 instance-name3. service-inline interface-name4. service-type map-e instance-name5. cpe-domain ipv4 prefix ipv4 adress/prefix cpe-domain ipv6 prefix ipv6 adress/prefix6. sharing-ration 2567. contiguous-port 168. br-endpoint-adress9. endor commit

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RSP0/CPU0:routerco# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgv6 instance-name

Example:

Step 2

RP/0/RSP0/CPU0:router(config)# serviceCgv6 cgv6-1RP/0/RSP0/CPU0:router(config-cgv6)#

Configures the service-inline interface.service-inline interface-name

Example:

Step 3

RP/0/RSP0/CPU0:router(config-cgv6)#Service-inlineinterface TenGigE0/0/0/0

Configures the service type keyword definition for CGv6MAP-E application.

service-type map-e instance-name

Example:

Step 4

RP/0/RSP0/CPU0:router(config-cgv6) #service-typemap-e map1RP/0/RSP0/CPU0:router(config-cgV6-map_e)#

Configures the IPv4 or IPv6 prefixes of the CPE domainparameter without service modules.

cpe-domain ipv4 prefix ipv4 adress/prefix cpe-domainipv6 prefix ipv6 adress/prefix

Example:

Step 5

RP/0/RSP0/CPU0:router(config-cgv6-map_e)#cpe-domainipv4 prefix120.2.1.0/24RP/0/RSP0/CPU0:router(config-cgv6-map_e)#cpe-domainipv6 prefix 9020:da8:2::/48

Configures the port sharing ratio. The value for the portsharing ratio is 256.

sharing-ration 256

Example:

Step 6

RP/0/RSP0/CPU0:router(config-cgv6-map_e)#sharing-ratio256

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x312

Carrier Grade IPv6 without Service ModulesConfiguring BR Endpoint Address without modules

Page 327: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Configures the contiguous port. The value for the contiguousport is 16.

contiguous-port 16

Example:

Step 7

RP/0/RSP0/CPU0:router(config-cgv6-map_e)#contiguous-ports16

Configures the br-endpoint-address.br-endpoint-adress

Example:

Step 8

RP/0/RSP0/CPU0:router(config-cgv6-map_e)#br-endpoint-address9020:da8:2:ffff::1

Saves configuration changes.endor commitStep 9

Example: • When you issue the end command, the system promptsyou to commit changes:RP/0/RSP0/CPU0:router(config-cgv6-map_e)# end

orRP/0/RSP0/CPU0:router(config-cgv6-map_e)# Commit

Uncommitted changes found, commit them beforeexiting (yes/no/cancel)?[cancel]:

• Entering yes saves configuration changes to therunning configuration file, exits the configurationsession, and returns the router to EXEC mode.

• Entering no exits the configuration session andreturns the router to EXEC mode withoutcommitting the configuration changes.

• Entering cancel leaves the router in the currentconfiguration session without exiting orcommitting the configuration changes.

• Use the commit command to save the configurationchanges to the running configuration file and remainwithin the configuration session.

MAP-T without Service CardsThe objective of this feature is to ensure that the Mapping of Address and Port-Translation Mode (MAP-T)CGN solution can be implemented without service cards (VSM/ISM). With this feature, the CGN applicationdirectly interacts with the line cards to configure the MAP-T parameters and eliminates the dependency onthe service cards.

Restrictions

• MAP-T is supported only on Cisco ASR 9000 Series 400G and 200G Modular Line Cards and CiscoASR 9000 Series 4-Port and 8-Port 100 Gigabit Ethernet Line Cards.

• MAP-T without service cards can be enabled only in an L3VPN and a 6VPE cloud set-up.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x313

Carrier Grade IPv6 without Service ModulesMAP-T without Service Cards

Page 328: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

• If this feature is enabled on an interface, other PBR (policy based routing) features such as CLI PBR,BGP Flow Spec, One Platform Kit (onePK) or OpenFlow may not be functional; this is because onlyone PBR policy will be allowed on the interface.

• In a router, only one mode of either inline-service with service card or inline-service without servicecard will be supported.

• At a router level, the max scale limit for CPE domain parameters is 25 and for external domain parametersis 4k. If a single MAP-T instance has utilized 25 of CPE domain and 4k of external domain parameters;it is not possible to configure additional CPE and external domain parameters in the same router.

Configuring MAP-T without Service CardsTo configure a MAP-T without service cards, perform the steps below.

SUMMARY STEPS

1. configure2. service cgv6 instance-name3. service-inline interface type interface-path-id4. service-type map-t-ciscoinstance-name5. cpe-domain ipv4 prefix length value6. cpe-domain ipv6 vrf vrf-name7. cpe-domain ipv6 prefix length value8. sharing rationumber9. contiguous-portsnumber10. cpe-domain-name cpe-domain-name ipv4 prefix address/prefix ipv6 prefix address/prefix11. ext-domain-name ext-domain-name ipv6 prefix address/prefix ipv4-vrf vrf-name12. commit13. show policy-map transient type pbr14. show pbr service-node table summary

DETAILED STEPS

PurposeCommand or Action

Enters global configuration mode.configure

Example:

Step 1

RP/0/RP0/CPU0:router# configure

Configures the instance for the CGv6 application and entersCGv6 configuration mode.

service cgv6 instance-name

Example:

Step 2

RP/0/RP0/CPU0:router(config)# service cgv6 cgv6-1RP/0/RP0/CPU0:router(config-cgv6)#

Specifies an Ethernet interface on which the CGv6 servicemust be enabled.

service-inline interface type interface-path-id

Example:

Step 3

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x314

Carrier Grade IPv6 without Service ModulesConfiguring MAP-T without Service Cards

Page 329: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or ActionRP/0/RP0/CPU0:router(config-cgv6)# service-inlineinterface TenGigE0/0/0/0/0RP/0/RP0/CPU0:router(config-cgv6)#

Configures the service type keyword definition for CGv6MAP-T application.

service-type map-t-ciscoinstance-name

Example:

Step 4

application.RP/0/RP0/CPU0:router(config-cgv6)# service-typemap-t-cisco map1

Configures the IPv4 prefix of the CPE domaincpe-domain ipv4 prefix length value

Example:

Step 5

RP/0/RP0/CPU0:router(config-cgn-map-t-cisco)#cpe-domain ipv4 prefix length 24

Enables Virtual Routing and Forwarding (VRF) for theMAP-T configuration.

cpe-domain ipv6 vrf vrf-name

Example:

Step 6

RP/0/RP0/CPU0:router(config-cgn-map-t-cisco)#cpe-domain ipv6 vrf mapt-v6

Assigns a value for the ipv6-prefix length to be used aspart of the MAP-T instance.

cpe-domain ipv6 prefix length value

Example:

Step 7

RP/0/RP0/CPU0:router(config-cgn-map-t-cisco)#cpe-domainipv6 prefix length 48

Enters global configuration mode.sharing rationumber

Example:

Step 8

RP/0/RP0/CPU0:router(config-cgn-map-t-cisco)#sharing-ratio256

Specifies the Port Set ID (PSID) configuration.contiguous-portsnumber

Example:

Step 9

RP/0/RP0/CPU0:router(config-cgn-map-t-cisco)#contiguous-ports8

Configures IPv4 and IPv6 prefix for a specific CPEdomain.

cpe-domain-name cpe-domain-name ipv4 prefixaddress/prefix ipv6 prefix address/prefix

Example:

Step 10

RP/0/RP0/CPU0:router(config-cgn-map-t-cisco)#cpe-domain-namecpe1 ipv4-prefix 10.0.0.1 ipv6-prefix1000:1000::1

Configures IPv6 prefix and IPv4 VRF for the externaldomain.

ext-domain-name ext-domain-name ipv6 prefixaddress/prefix ipv4-vrf vrf-name

Example:

Step 11

RP/0/RP0/CPU0:router(config-cgn-map-t-cisco)#ext-domain-nameext1 ipv6-prefix 2000:2000::1/48 ipv4-vrf mapt

commitStep 12

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x315

Carrier Grade IPv6 without Service ModulesConfiguring MAP-T without Service Cards

Page 330: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

PurposeCommand or Action

Displays the transient list type pbr of the policy-map.show policy-map transient type pbr

Example:

Step 13

RP/0/RP0/CPU0:router#show policy-map transienttype pbr

Displays the output for the class-maps.show pbr service-node table summary

Example:

Step 14

RP/0/RP0/CPU0:router#show pbr service-node tablesummary

Configuration Example

Running Configuration

Verification

The following example shows the configuration of MAP-T without service cards:RP/0/RP0/CPU0:router#show running-config service cgv6 cgv6-1service cgv6 cgv6-1service-inline interface Bundle-Ether2service-type map-t-cisco mapt1cpe-domain ipv4 prefix length 24cpe-domain ipv6 vrf SVRF-003sharing-ratio 256contiguous-ports 8cpe-domain-name cpe1 ipv4-prefix 192.1.1.0 ipv6-prefix 2301:d01:1122::ext-domain-name ext1 ipv6-prefix 3301:d01:1122::/48 ipv4-vrf VRF-1

!!

The following example shows the running configuration of MAP-T without service cards:

The following example shows the verification output:RP/0/RP0/CPU0:router#show policy-map transient type pbrpolicy-map type pbr CGN_0handle:0x38000002table description: L3 IPv4 and IPv6class handle:0x78000003 sequence 1

match destination-address ipv4 192.1.1.0 255.255.255.0--->should match the cpe domainIPV4 address and maskpunt service-node index 1001 app-id 0 local-id 0xfa1

!class handle:0x78000004 sequence 1match destination-address ipv6 3301:d01:1122::/48--->should match the ext domain IPV6

address and maskpunt service-node index 2001 app-id 0 local-id 0x1771

!class handle:0xf8000002 sequence 4294967295 (class-default)!end-policy-map

The following example shows the output for the class-maps:

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x316

Carrier Grade IPv6 without Service ModulesConfiguring MAP-T without Service Cards

Page 331: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

RP/0/RP0/CPU0:router#show pbr service-node table summary

Service node count: 4nodeid node0_RSP1_CPU0_____________________________________Name VIdx Enc_____________________________________CGN_1001 1001 cgnCGN_3001 3001 cgnCGN_5001 5001 cgnCGN_7001 7001 cgn

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x317

Carrier Grade IPv6 without Service ModulesConfiguring MAP-T without Service Cards

Page 332: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x318

Carrier Grade IPv6 without Service ModulesConfiguring MAP-T without Service Cards

Page 333: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

C H A P T E R 6External Logging

External logging configures the export and logging of the NAT table entries, private bindings that are associatedwith a particular global IP port address, and to use Netflow to export the NAT table entries.

• Bulk Port Allocation, on page 319• Session logging, on page 320• (Only NAT44) Syslog Logging, on page 320• Reliable Log Transfer, on page 337• Frequently Asked Questions (FAQs), on page 339

Bulk Port AllocationThe creation and deletion of NAT sessions lead to creation of logs. If logs of all such translations are stored,then a huge volume of data is created. This data is stored on a NetFlow or a Syslog collector. To reduce thevolume of this data, a block of ports is allocated. If bulk port allocation is enabled, as soon as a subscribercreates the first session, a number of contiguous external ports are allocated. To indicate this allocation, abulk allocation message is created in the log.

The bulk allocationmessage is created only during the first session. Rest of the sessions use one of the allocatedports. Hence no logs are created for them.

Note

A bulk delete message is created in the log when the subscriber deletes all the sessions that are using theallocated ports.

Another pool of ports is allocated only if the number of simultaneous sessions is more than N where N is thesize of the bulkk allocation. The size of the pool can be configured from the CLI.

Restrictions for Bulk Port AllocationThe restrictions for bulk port allocation are as follows:

• The value for the size of bulk allocation can be 16, 32, 64, 128, 256, 512, 1024, 2048 and 4096. Foroptimum results, it is recommended that you set this size to half of the port limit.

• If the size of bulk allocation is changed, then all the current dynamic transactions will be deleted. Henceit is advisable to change the bulk port allocation size (only if necessary) during a maintenance window.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x319

Page 334: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

• The port numbers below the value of dynamic-port-range start value (which is 1024 by default), are notallocated in bulk.

• The algorithm that is used to allocate a public address to a user remains the same.• When bulk allocation is enabled, session logging is not available.• When bulk allocation is enabled, the translation record will not contain information about L4 protocol.• Bulk port allocation features is not supported in NAT64 stateful application.

Session loggingIn general, NAT translation entries contain information about private source IP, port and translated public IPand port. However, there could be cases when the destination IP address (public IP address) and port mayalso be needed. In such cases, session logging has to be enabled so that Netflow or Syslog translation recordsinclude these values as well.

(Only NAT44) Syslog LoggingPerform the following tasks to configure Syslog Logging for NAT table entries.

Restrictions for SyslogThe restrictions for syslog are as follows:

• Syslog is supported over UDP only.

• Syslog is supported in ASCII format only.

• You cannot log onto multiple collectors or relay agents.

• All the messages comply to RFC 3954 except for the timestamp format. Timestamp is represented in asimpler way as explained later in this section.

• Syslog shall be supported for DS-Lite and NAT444 as of now. Support for NAT64 is not yet available.

Syslog Message FormatIn general, the syslog message is made up of header, structured data, and msg fields. However, in the CGv6applications, the structured data is not used.

HeaderThe header fields shall be as per the RFC 5424. Fields shall be separated by ' ' (white space) as per the RFC.

The header consists of the following fields:

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x320

External LoggingSession logging

Page 335: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DescriptionField

• The priority value represents both the facilityand severity.

• Ensure that the severity code is set toInformational for all the messages at value 6.

Priority

• This field denotes the version of the specificationof the syslog protocol.

• In CGv6 application, the version value is set to1.

Version

• This field is needed to trace the port usage.

• The format is <year> <mon><day><hh:mm:ss>.

• Ensure that the syslog collector converts the timeto local time whenever needed.

The timestamp is always reported inGMT/UTC irrespective of the timezone configured on the device.

Note

Timestamp

• This field is used to identify the device that sentthe syslog message.

• While configuring the syslog server, ensure thatthe host name does not exceed 31 characters.

• The default value for the host name is '-'.

Hostname

These fields are not included. In ASCII format, '-' isincluded for these fields.

App name and PROC ID

• This field identifies the type of the syslogmessage.

• In the ASCII format, the values for NAT44 andDS Lite messages are NAT44 and DS LITErespectively.

MSG ID

Structured DataIt is not used.

MSGThis field consists of the information about the NAT44 or DS Lite events. In a single UDP packet, there couldbe one or moreMSG fields each enclosed in [] brackets. TheMSG field has many sub fields as it has a commonstructure across different records (for both NAT44 and DS Lite). Note, that, depending on the event, some of

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x321

External LoggingStructured Data

Page 336: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

the fields may not be applicable. For example, fields such as 'Original Source IPv6' address are not applicablefor all NAT44 events. In such cases, the inapplicable fields will be replaced by '-'.

The syntax of the MSG part is as follows:

[EventName <L4> <Original Source IP> <Inside VRF Name> <Original Source IPv6> < TranslatedSource IP> <Original Port> <Translated First Source Port> <Translated Last Source Port> <DestinationIP> <Destination Port>]

The descriptions of the fields in this format are as follows:

DescriptionField

Select any one of the values for EventName from thefollowing based on the event:

• UserbasedA: User-based port assignment

• SessionbasedA: Session-based port assignment

• SessionbasedAD: Session-based port assignmentwith destination information

Note: SessionbasedAD is used only if sessionlogging is enabled. Also, session-logging andbulk port allocation are mutually exclusive.

• UserbasedW: User-based port withdrawal

• SessionbasedW: Session-based port withdrawal

• SessionbasedWD: Session-based port withdrawalwith destination information

• Portblockrunout: Ports exhausted

EventName

Specifies the identifier for the transport layer protocol.Select any one of the values for L4 from the following:

• 1 for ICMP

• 6 for TCP

• 17 for UDP

• 47 for GRE

L4

Specify the private IPv4 address.Original Source IP

The Inside vrf is essential to identify the subscriber.Even though multiple subscribers connected to therouter might have the same source IP, they might beplaced in different VRFs. Hence the VRF name andthe original source IP together helps to identify asubscriber. Ensure that the VRF name is not morethan 32 characters in length.

Inside VRF Name

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x322

External LoggingMSG

Page 337: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DescriptionField

Specifies the IPv6 source address of the tunnel in caseof DS Lite.

Original Source IPv6

Specifies the public IPv4 address post translation.Translated Source IP

Specifies the source port number before translation.This is not applicable for the UserbasedA andUserbasedW events.

Original Port

Specifies the first source port after translation.Translated First Source Port

Specifies the last source port after translation. This isapplicable only for the UserbasedA and UserbasedWevents.

Translated Last Source Port

Specifies the destination IP recorded in the syslogsfor the SessionbasedAD and SessionbasedWD events.

Destination IP

Specifies the destination port recorded in the syslogsfor the SessionbasedAD and SessionbasedWD events.

Destination Port

Let us look at an example for NAT444 user-based UDP port translation mapping:

[UserbasedA - 10.0.0.1 Broadband - 100.1.1.1 - 2048 3071 - -]

The description for this example is as follows:

DescriptionValue

Event NameUserbasedA

Original Source IP10.0.0.1

Inside VRF nameBroadband

Translated Source IP100.1.1.1

Translated First Source Port2048

Translated Last Source Port3071

The number of MSG fields in an UDP packet are determined by the following factors:

• The space available in the UDP packet depends on MTU.

• The translation events pertaining to MSG records in a given packet must have happened within a second(starting from the time at which the first event of that packet happened).

Note

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x323

External LoggingMSG

Page 338: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

Netflow v9 SupportThe NAT64 stateful, NAT44, and DS Lite features support Netflow for logging of the translation records..The Netflow uses binary format and hence requires software to parse and present the translation records.However, for the same reason, Netflow requires lesser space than Syslog to preserve the logs.

Considerations

The considerations for NetFlow are as follows:

• NetFlow V9 is supported over UDP.

• You cannot log onto multiple collectors or relay agents.

• All the messages comply to RFC 3954.

NetFlow Record FormatAs NetFlowV9 is based on templates, the record format contains a packet header and templates or data recordsbased on templates.

Header

All the fields of the header follow the format prescribed in RFC 3954. The source ID field is composed ofthe IPv4 address of ServiceInfra interface (of the card) and specific CPU-core that is generating the record.The collector device can use the combination of the sourceIPv4Address field plus the Source ID field toassociate an incoming NetFlow export packet with a unique instance of NetFlow on a particular device.

Templates for NAT44

The templates are defined and used for logging various NAT64 stateful, NAT44 and DS Lite events as follows.The templates may change in future software releases. Hence it is advised that the Netflow collector softwareis designed to understand the templates as distributed by the router and accordingly parse the records.

Options Templates

The translation entries consist of VRF IDs which might be incomprehensible to a user. To simplify this process,the CGv6 applications send the options templates along with the data templates.

Options template is a special type of data record that indicates the format of option data related to the processof NetFlow. The options data consist of the mapping between VRF Ids and VRF names. By parsing and usingthis data, the NetFlow collectors can modify the translation entries by adding VRF names instead of VRFIDs.

The value for the Template ID of options template is 1 where as the value of the Template ID for data templateis 0. For more information on Options template, see RFC3954.

Events

The events and the corresponding template details are described in the following table:

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x324

External LoggingNetflow v9 Support

Page 339: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DescriptionSize inbytes

IANAIPFIX ID

Field NameDestination/SessionLogging

Bulk PortAllocation

TemplateID

Event

ID oftheIngressVRF

4234ingressVRFIDDisabledDisabled256Nat444translationcreate event

ID oftheEgressVRF

4235egressVRFID

OriginalSourceIPv4address

48sourceIPv4Address(pre-NAT)

PostNAT(outside)sourceIPV4address

4225postNATSourceIPv4Address

Originalsourceport

27sourceTransportPort(pre NAT)

PostNAT(translated)sourceport

27sourceTransportPort

L4protocolidentifier

14protocolIdentifier

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x325

External LoggingNetFlow Record Format

Page 340: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DescriptionSize inbytes

IANAIPFIX ID

Field NameDestination/SessionLogging

Bulk PortAllocation

TemplateID

Event

ID oftheIngressVRF

4234ingressVRFIDEnabledDisabled271Nat444sessioncreate event- sessionbased (withdestination) ID of

theEgressVRF

4235egressVRFID

OriginalsourceIPV4address

48sourceIPv4Address

PostNAT(outside)sourceIPV4address

4225postNATSourceIPv4Address

OriginalSourcePort

27sourceTransportPort

PostNAT(translated)sourceport

27sourceTransportPort

DestinationIPaddress

412destinationIPv4Address

Destinationport

211destinationTransportPort

L4protocolidentifier

14protocolIdentifier

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x326

External LoggingNetFlow Record Format

Page 341: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DescriptionSize inbytes

IANAIPFIX ID

Field NameDestination/SessionLogging

Bulk PortAllocation

TemplateID

Event

ID oftheIngressVRF

4234ingressVRFIDDisabledEnabled265Nat444translationcreate event- user based

ID oftheEgressVRF

4235egressVRFID

OriginalsourceIPV4address

48sourceIPv4Address

PostNAT(outside)sourceIPV4address

4225postNATSourceIPv4Address

StartofPostNAT(translated)sourceportblock

2361postNATPortBlockStart

EndofPostNATsourceportblock

2362postNATPortBlockEnd

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x327

External LoggingNetFlow Record Format

Page 342: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DescriptionSize inbytes

IANAIPFIX ID

Field NameDestination/SessionLogging

Bulk PortAllocation

TemplateID

Event

ID oftheIngressVRF

4234ingressVRFIDDisabled257Nat444translationdelete event

OriginalsourceIPV4address

48sourceIPv4Address

Originalsourceport

27sourceTransportPort

L4protocolidentifier

14protocolIdentifier

ID oftheIngressVRF

4234ingressVRFIDEnabledDisabled272Nat444sessiondelete event- sessionbased (withdestination) Original

sourceIPV4address

48sourceIPv4Address

DestinationIPaddress

412destinationIPv4Address

PostNAT(translated)sourceport

27sourceTransportPort

Destinationport

211destinationTransportPort

L4protocolidentifier

14protocolIdentifier

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x328

External LoggingNetFlow Record Format

Page 343: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DescriptionSize inbytes

IANAIPFIX ID

Field NameDestination/SessionLogging

Bulk PortAllocation

TemplateID

Event

ID oftheIngressVRF

4234ingressVRFIDDisabledDisabled266Nat444translationdelete event- user based

OriginalsourceIPV4address

48sourceIPv4Address

StartofPostNAT(translated)sourceportblock.Notethis isnotdefinedbyIANAyet.

2361postNATPortBlockStart

ID oftheIngressVRF

4234ingressVRFIDDisabledDisabled267DS-Litetranslationcreate event

ID oftheEgressVRF

4235egressVRFID

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x329

External LoggingNetFlow Record Format

Page 344: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DescriptionSize inbytes

IANAIPFIX ID

Field NameDestination/SessionLogging

Bulk PortAllocation

TemplateID

Event

OriginalsourceIPV4address.Thisfieldisvalidonlywhensession-loggingisenabled.Else,it willbereportedas 0

48Pre NAT SourceIPv4 Address

IPv6addressof theB4element(Tunnelsource)

1627Pre NAT SourceIPv6 Address

PostNAT(outside)sourceIPV4address

4225postNATSourceIPv4Address

Originalsourceport

27sourceTransportPort

PostNAT(translated)sourceport

2227sourceTransportPort

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x330

External LoggingNetFlow Record Format

Page 345: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DescriptionSize inbytes

IANAIPFIX ID

Field NameDestination/SessionLogging

Bulk PortAllocation

TemplateID

Event

ID oftheIngressVRF

4234ingressVRFIDEnabledDisabled273DS-Litesessioncreate event- sessionbased (withdestination) ID of

theEgressVRF

4235egressVRFID

OriginalsourceIPV4address

48sourceIPv4Address

IPv6addressof theB4element(Tunnelsource)

1627sourceIPv6Address

PostNAT(outside)sourceIPV4address

4225postNATSourceIPv4Address

Originalsourceport

27sourceTransportPort

PostNAT(translated)sourceport

2227sourceTransportPort

DestinationIPaddress

412destinationIPv4Address

Destinationport

211destinationTransportPort

L4protocolidentifier

14protocolIdentifier

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x331

External LoggingNetFlow Record Format

Page 346: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DescriptionSize inbytes

IANAIPFIX ID

Field NameDestination/SessionLogging

Bulk PortAllocation

TemplateID

Event

ID oftheIngressVRF

4234ingressVRFIDDisabledEnabled269DS-Litetranslationcreate event- user based

ID oftheEgressVRF

4235egressVRFID

OriginalsourceIPV4address.Thisfieldisvalidonlywhensession-loggingisenabled.Else,it willbereportedas 0

48sourceIPv4Address

IPv6addressof theB4element(Tunnelsource)

1627sourceIPv6Address

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x332

External LoggingNetFlow Record Format

Page 347: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DescriptionSize inbytes

IANAIPFIX ID

Field NameDestination/SessionLogging

Bulk PortAllocation

TemplateID

Event

PostNAT(outside)sourceIPV4address

4225postNATSourceIPv4AddressDS-Litetranslationcreate event- user based

StartofPostNAT(translated)sourceportblock

2361postNATPortBlockStart

EndofPostNATsourceportblock

2362postNATPortBlockEnd

ID oftheIngressVRF

4234ingressVRFIDDisabledDisabled270DS-Litetranslationdelete event

OriginalsourceIPV4address

sourceIPv4Address

IPv6addressof theB4element(Tunnelsource)

sourceIPv6Address

Originalsourceport

sourceTransportPort

L4protocolidentifier

protocolIdentifier

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x333

External LoggingNetFlow Record Format

Page 348: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DescriptionSize inbytes

IANAIPFIX ID

Field NameDestination/SessionLogging

Bulk PortAllocation

TemplateID

Event

ID oftheIngressVRF

4234ingressVRFIDDS-Litesessiondelete event- sessionbased (withdestination) Original

sourceIPV4address

48sourceIPv4Address

IPv6addressof theB4element(Tunnelsource)

1627sourceIPv6Address

Originalsourceport

27sourceTransportPort

L4protocolidentifier

14protocolIdentifier

ingressVRFID4234ingressVRFIDDisabledDisabled270DS-Litetranslationdelete event- user based

OriginalsourceIPV4address

48sourceIPv4Address

IPv6addressof theB4element(Tunnelsource)

1627sourceIPv6Address

StartofPostNAT(translated)sourceportblock

2361postNATPortBlockStart

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x334

External LoggingNetFlow Record Format

Page 349: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DescriptionSize inbytes

IANAIPFIX ID

Field NameDestination/SessionLogging

Bulk PortAllocation

TemplateID

Event

SourceIPv6address

1627sourceIPv6AddressDisabledDisabled258NAT64statefultranslationcreate event

PostNAT(outside)sourceIPV4address

4225postNATSourceIPv4Address

Originalsourceport

27sourceTransportPort

PostNAT(translated)sourceport

2227sourceTransportPort

L4protocolidentifier

14protocolIdentifier

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x335

External LoggingNetFlow Record Format

Page 350: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DescriptionSize inbytes

IANAIPFIX ID

Field NameDestination/SessionLogging

Bulk PortAllocation

TemplateID

Event

SourceIPv6address(pretranslation)

1627sourceIPv6AddressEnabledDisabled260NAT64statefulsessioncreate event- sessionbased (withdestination) Post

NAT(outside)sourceIPV4address

4225postNATSourceIPv4Address

DestinationIPv6address(pretranslation)

1628destinationIPv6Address

DestinationIPv4address(posttranslation)

4226Post translationDestination IPaddress

Originalsourceport

27sourceTransportPort

PostNAT(translated)sourceport

27sourceTransportPort

Destinationport

211destinationTransportPort

L4protocolidentifier

14protocolIdentifier

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x336

External LoggingNetFlow Record Format

Page 351: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

DescriptionSize inbytes

IANAIPFIX ID

Field NameDestination/SessionLogging

Bulk PortAllocation

TemplateID

Event

IPv6addressof theB4element(Tunnelsource)

1627sourceIPv6AddressDisabledDisabled259NAT64translationdelete event

Originalsourceport

27sourceTransportPort

L4protocolidentifier

14protocolIdentifier

IPv6addressof theB4element(Tunnelsource)

1627sourceIPv6AddressEnabledDisabled261NAT64statefulsessiondelete event- sessionbased (withdestination)

DestinationIPv6address(pretranslation)

1628destinationIPv6Address

Originalsourceport

27sourceTransportPort

Destinationport

211destinationTransportPort

L4protocolidentifier

14protocolIdentifier

Reliable Log TransferThe VSM Line Cards support CGN application with NAT 44 feature. NAT 44 feature performs IPv4 NAToperations. The CGN applications based on server configuration generates NetFlow and Syslog records thatcontain critical NAT information. If an external NetFlow server is configured for storage and retrieval of NATinformation, the information is transferred to the server using UDP connection.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x337

External LoggingReliable Log Transfer

Page 352: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

The CGN application VM running on VSM also supports transfer of records to external NetFlow serversusing TCP. This provides reliable log transfer. Use the protocol command to define the protocol to be usedfor the transfer.

Limitations

• Netflow and syslog records may be lost during any reload of VSM or restart of IOS XR VM or process.

• A maximum of two NetFlow or Syslog servers are supported.

• Server IP address along with the port number defines one server.

• Same TCP server can be configured on any number of VRFs and is considered as one TCP server.

• Loss of TCP connection may result in loss of NetFlow records.

• Bulk port allocation needs to be enabled with a minimum allocation value of 256 to prevent loss of NAT44 records, when Syslog and Netflow records are sent using TCP protocol.

Reliable Log Transfer Configuration: ExamplesConfigure NetFlow records' transport using TCP protocol when the TCP server is in the default globalVRF instance:service cgn cgn1service-location preferred-active 0/3/CPU0service-type nat44 nat1inside-vrf insidevrf1map outside-vrf outsidevrf1 outsideServiceApp ServiceApp2 address-pool 100.1.1.0/24external-logging netflow version 9serveraddress 45.1.1.1 port 65535protocol tcp

Configure NetFlow records' transport using TCP protocol when the TCP server is in an non-defaultVRF instance:service cgn cgn1service-location preferred-active 0/3/CPU0service-type nat44 nat1inside-vrf insidevrf1map outside-vrf outsidevrf1 outsideServiceApp ServiceApp2 address-pool 100.1.1.0/24external-logging netflow version 9serveraddress 55.1.1.1 port 4500protocol tcp vrf netflow-srv-vrf

Disabling NetFlow records' transport:service cgn cgn1service-type nat44 nat1inside-vrf insidevrf1no external-logging netflow version 9

Configure Syslog records' transport using TCP protocol when the TCP server is in the default globalVRF instance:

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x338

External LoggingReliable Log Transfer Configuration: Examples

Page 353: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

service cgn cgn1service-location preferred-active 0/3/CPU0service-type nat44 nat1inside-vrf insidevrf1map outside-vrf outsidevrf1 outsideServiceApp ServiceApp2 address-pool 100.1.1.0/24external-logging syslogserveraddress 45.1.1.1 port 3500protocol tcp

Configure Syslog records' transport using TCP protocol when the TCP server is in an non-default VRFinstance:service cgn cgn1service-location preferred-active 0/3/CPU0service-type nat44 nat1inside-vrf insidevrf1map outside-vrf outsidevrf1 outsideServiceApp ServiceApp2 address-pool 100.1.1.0/24external-logging syslogserveraddress 55.1.1.1 port 4500protocol tcp vrf syslog-srv-vrf

Disabling Syslog records' transport:service cgn cgn1service-type nat44 nat1inside-vrf insidevrf1no external-logging syslog

Frequently Asked Questions (FAQs)This section provides answers to the following frequently asked questions on external logging.

Q: How to trace a subscriber by using the NAT logs?

A: In order to trace a subscriber, you should know the public source IP address (post NAT source address),post NAT source port, protocol, and the time of usage. With these parameters, the steps to trace a subscriberare as follows:

1. Search for the create event that has the matching public IP address, post NAT Source IP address(postNATSourceIPv4Address) and protocol, egress VRF ID/Name and the time of the usage. Ensure thatthe time of the create-event is the same or earlier than the time of usage reported. You may not find theprotocol entry or the exact post NAT source port in the logs if bulk allocation is enabled. In such cases,find the create-event whose Post NAT Port Block Start and Post NAT Port Block End values includethe post NAT source port. The Pre NAT source IP address along with the corresponding ingress VRFID/Name will identify the subscriber.

2. The corresponding delete record may be found optionally to confirm that the subscriber was using thespecified public IP and port during the time of the reported usage.

Q: The Netflow records provide VRF IDs for ingress and egress VRFs. How will I know the VRF names?

A: The following are the two ways to find the VRF name from the VRF ID.

1. Use the command show rsi vrf-id <vrf-id> on the Router console to find VRF-ID to VRF-NAMEassociations.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x339

External LoggingFrequently Asked Questions (FAQs)

Page 354: Cisco ASR 9000 Series Aggregation Services Router CGv6 … › c › en › us › td › docs › routers › asr9000 › ... · ConfiguringCGv6onCiscoIOSXRSoftware 29 InstallingCarrierGradeIPv6onISM

2. The CGv6 applications periodically send out option templates containing the VRF-ID to VRF-NAMEmapping. The Netflow collector software presents the information with VRF-Names rather than VRFIDs.

Q: Does the time format in Syslog or Netflow account for Day light saving?

A: The Syslog and Netflow formats report time corresponding to GMT/UTC. The Netflow header containsthe time in seconds that elapsed since EPOCH whereas the Syslog header contains time in human readableformats. In both cases, the day light saving is not accounted. The Netflow/Syslog collectors have to make thatadjustments if needed.

Q: Since the Netflow and Syslog use UDP, how can we know if a packet containing translation record waslost?

A: The Netflow header contains a field called Sequence Number. This number is indicates the count of thepacket coming from each Source ID. The Netflow collector traces the Seqence Number pertaining to eachunique Source ID. The sequence numbers should be increased by one for each packet sent out by the Source.If the collector ever receives two successive packets with the same Source ID, but with a Sequence numberdifference of more than 1, it indicate a packet loss. However, currently, no such mechanism exists for Syslog.

Q: What is the use of session-logging?

A: Session logging includes destination IP and port number as well. Though this information is not directlyuseful in tracing the subscriber, in some cases, this information may be useful or may be mandated by thelegal authorities. There are cases where, legal authorities may not have the post NAT source 'port', howevermay know the destination IP address (and optionally destination port, such as IP address and port of an e-mailserver). In the absence of post NAT source port information, a list of subscribers who used the specified publicIP during that time may have to be pruned further based on the destination IP and port information.

Q: How does the bulk port allocation reduce data volume of translation logs?

A: With bulk port allocation, subscribers are allocated a range of contiguous ports on a public IP. Quite often,a subscriber will need more ports than just one. Especially AJAX based web pages and other web applicationssimultaneously open several ports. In such cases, pre-allocated ports are used and only one log entry is madethat specifies the range of ports allocated to the user. Hence, bulk port allocation significantly reduces logdata volume and hence the demand on storage space needed for the translation logs.

Q: What else can be done to reduce log data volume?

A: Predefined NAT is an option that can be used to eliminate the logging altogether. The Predefined NATtranslates private IP address to public IP address and a certain port range by using an algorithm. Hence thereis no need to keep track of NAT entries.

Cisco ASR 9000 Series Aggregation Services Router CGv6 Configuration Guide, Release 5.3.x340

External LoggingFrequently Asked Questions (FAQs)