Basic Configuration of Switch
Basic Configuration of Switch
Basic Configuration of Switch
Corporate 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 526-4100
Text Part Number: 78-11424-01
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 WITH THE 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 UCBs public domain version of the UNIX operating system. All rights reserved. Copyright 1981, Regents of the University of California. NOTWITHSTANDING ANY OTHER WARRANTY 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 OF MERCHANTABILITY, 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, WITHOUT LIMITATION, LOST PROFITS OR LOSS OR DAMAGE TO DATA ARISING OUT OF THE USE OR INABILITY TO USE THIS MANUAL, EVEN IF CISCO OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Access Registrar, AccessPath, Are You Ready, ATM Director, Browse with Me, CCDA, CCDE, CCDP, CCIE, CCNA, CCNP, CCSI, CD-PAC, CiscoLink, the Cisco NetWorks logo, Cisco Powered Network logo, Cisco Systems Networking Academy, Fast Step, FireRunner, Follow Me Browsing, FormShare, GigaStack, IGX, Intelligence in the Optical Core, Internet Quotient, IP/VC, iQ Breakthrough, iQ Expertise, iQ FastTrack, iQ Logo, iQ Readiness Scorecard, Kernel Proxy, MGX, Natural Network Viewer, Network Registrar, the Networkers logo, Packet, PIX, Point and Click Internetworking, Policy Builder, RateMUX, ReyMaster, ReyView, ScriptShare, Secure Script, Shop with Me, SlideCast, SMARTnet, SVX, TrafficDirector, TransPath, VlanDirector, Voice LAN, Wavelength Router, WebViewer, Workgroup Director, and Workgroup Stack are trademarks of Cisco Systems, Inc.; Changing the Way We Work, Live, Play, and Learn, Empowering the Internet Generation, are service marks of Cisco Systems, Inc.; and Aironet, ASIST, BPX, Catalyst, Cisco, the Cisco Certified Internetwork Expert Logo, Cisco IOS, the Cisco IOS logo, Cisco Press, Cisco Systems, Cisco Systems Capital, the Cisco Systems logo, Collision Free, Enterprise/Solver, EtherChannel, EtherSwitch, FastHub, FastLink, FastPAD, IOS, IP/TV, IPX, LightStream, LightSwitch, MICA, NetRanger, Post-Routing, Pre-Routing, Registrar, StrataView Plus, Stratm, SwitchProbe, TeleRouter, and VCO are registered trademarks of Cisco Systems, Inc. or its affiliates in the U.S. and certain other countries. All other brands, names, or trademarks mentioned in this document or Web site are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (0010R) Content Services Switch Basic Configuration Guide Copyright 2000, Cisco Systems, Inc. All rights reserved.
C O N T E N T S
About This Guide xxi Audience xxii How to Use This Guide xxii Related Documentation xxiii Documentation Map xxv Symbols and Conventions xxvi
1
CHAPTER
Logging in and Getting Started 1-1 Configuration Quick Start 1-2 Logging into the CSS 1-5 Changing the Administrative Username and Password 1-5 Configuring Usernames and Passwords 1-6 Configuring an IP Address and Subnet Mask for the Ethernet Management Port 1-8 Configuring an IP Address 1-8 Configuring a Subnet Mask 1-9 Configuring a Default IP Route 1-9 Configuring Date and Time 1-10 Configuring European Date 1-11 Configuring an FTP Record 1-11 Copying Files from an FTP Server 1-12 Rebooting the CSS 1-13 Shutting Down the CSS 1-13
iii
Contents
Using the Offline Diagnostic Monitor Menu 1-13 Accessing the Offline Diagnostic Monitor Main Menu 1-14 Using the Boot Configuration Menu 1-17 Setting Primary Boot Configuration 1-19 Setting Secondary Boot Configuration 1-23 Setting IP Address, and Subnet Mask 1-28 Showing the Boot Configuration 1-29 Using the Advanced Options 1-30 Deleting a Software Version 1-30 Using the Security Options 1-31 Using the Disk Options 1-33 Enabling and Disabling Core Dumps 1-38 Showing Core Dumps 1-39 CSS Software Overview 1-39 Using the Running-Config and Startup-Config 1-42 Clearing the Running-Config and the Startup-Config 1-43 Showing the Running-Config 1-43 Showing the Startup-Config 1-46 Creating a Running-Config or Startup-Config Using a Text Editor 1-47 Archiving Files to the Archive Directory 1-48 Archiving a Log File 1-48 Archiving the Running-Config 1-49 Archiving Scripts 1-49 Archiving the Startup-Config 1-49 Clearing the Archive Directory 1-49
iv
78-11424-01
Contents
Restoring Files from the Archive Directory 1-50 Restoring an Archived Log File 1-50 Restoring an Archived Script File 1-51 Restoring an Archived Startup-Config 1-51 Copying Core Dumps to an FTP or TFTP Server 1-52 Copying Core Dumps to an FTP Server 1-52 Copying Core Dumps to a TFTP Server 1-53 Displaying CSS Configurations 1-53 Displaying Software Information 1-54 Displaying Hardware Information 1-54 Showing System Resources 1-56 Showing User Information 1-57 Showing Current Logins 1-58 Where to Go Next 1-58
2
CHAPTER
Configuring User Profiles and CSS Parameters 2-1 Configuring User Profiles 2-2 Configuring User Terminal Parameters 2-3 Configuring Terminal Idle 2-3 Configuring Terminal Length 2-4 Configuring Terminal More 2-4 Configuring Terminal Netmask-Format 2-4 Configuring Terminal Timeout 2-5 Using Expert Mode 2-5 Changing the CLI Prompt 2-6
Contents
Modifying the History Buffer 2-6 Displaying the History Buffer 2-7 Copying and Saving User Profiles 2-8 Copying the Running Profile to the Default-Profile 2-8 Copying the Running Profile to a User Profile 2-8 Copying the Running Profile to an FTP Server 2-9 Copying the Running Profile to a TFTP Server 2-9 Boot Configuration Mode Commands 2-10 Unpacking an ArrowPoint Distribution Image (ADI) 2-10 Removing an ArrowPoint Distribution Image (ADI) 2-11 Specifying the Primary BOOT Configuration 2-11 Configuring the Primary Boot-File 2-11 Configuring the Primary Boot-Type 2-12 Configuring the Primary Config-Path 2-12 Specifying the Secondary Boot Configuration 2-13 Specifying the Secondary Boot-File 2-13 Specifying the Secondary Boot-Type 2-14 Specifying the Secondary Config-Path 2-14 Configuring a Boot Configuration Record for the Passive SCM 2-15 Configuring the Passive SCM IP Address 2-17 Configuring the Passive SCM Primary Boot File 2-17 Configuring the Passive SCM Primary Boot Type 2-17 Configuring the Passive SCM Primary Configuration Path 2-18 Configuring the Passive SCM Secondary Boot File 2-19 Configuring the Passive SCM Secondary Boot Type 2-19 Configuring the Passive SCM Secondary Configuration Path 2-20 Configuring the Passive SCM Subnet Mask 2-20
Content Services Switch Basic Configuration Guide
vi
78-11424-01
Contents
Copying the Boot Configuration Record from the Active SCM to the Passive SCM 2-21 Showing the BOOT Configuration 2-21 Booting the CSS from a Network Drive 2-21 Configuring Network Boot for a Primary SCM 2-22 Configuring Network Boot for a Passive SCM 2-23 Showing Network Boot Configurations 2-24 Configuring Host Name 2-25 Configuring Idle Timeout 2-25 Controlling Remote Access to the CSS 2-26 Restricting Console, FTP, SNMP, Telnet, XML, and Web Management Access to the CSS 2-27 Finding an IP Address 2-28 Configuring Flow Parameters 2-29 Configuring Permanent Connections for TCP Ports 2-29 Resetting Fast Ethernet and Gigabit Ethernet Ports 2-30 Reclaiming Reserved Telnet and FTP Control Ports 2-30 Showing Flow Statistics 2-32 Configuring Content API 2-32 Controlling Access to the CSS HTTP Server 2-33 Configuring the Command Scheduler 2-33 Showing Configured Command Scheduler Records 2-35 Where to Go Next 2-35
vii
Contents
CHAPTER
Configuring CSS Network Protocols 3-1 Configuring Domain Name Service 3-2 Specifying a Primary DNS Server 3-2 Using DNS Resolve 3-2 Specifying a Secondary DNS Server 3-3 Specifying a DNS Suffix 3-3 Configuring Address Resolution Protocol 3-4 Configuring ARP 3-4 Configuring ARP Timeout 3-5 Configuring ARP Wait 3-6 Updating ARP Parameters 3-6 Clearing ARP Parameters 3-6 Showing ARP Information 3-7 Configuring Routing Information Protocol 3-8 Configuring RIP Advertise 3-8 Configuring RIP Redistribute 3-9 Configuring RIP Equal-Cost 3-9 Showing RIP Configurations 3-10 Configuring Internet Protocol 3-11 Configuring IP Record-Route 3-11 Configuring IP Redundancy 3-11 Configuring IP ECMP 3-12 Configuring an IP Route 3-13 Configuring IP Source-Route 3-15 Disabling an Implicit Service for Static Route Next Hop 3-15 Configuring IP Subnet-Broadcast 3-16 Showing IP Information 3-17
Content Services Switch Basic Configuration Guide
viii
78-11424-01
Contents
Showing IP Config 3-17 Showing IP Interfaces 3-17 Showing IP Routes 3-18 Showing IP Statistics 3-20 Showing IP Summary 3-21 Configuring Bridging for the CSS 3-21 Configuring Bridge Aging-Time 3-21 Configuring Bridge Forward-Time 3-22 Configuring Bridge Hello-Time 3-22 Configuring Bridge Max-Age 3-23 Configuring Bridge Priority for the CSS 3-23 Enabling and Disabling Bridge Spanning-Tree 3-24 Showing Bridge Configurations 3-24 Configuring Secure Shell Daemon 3-25 Configuring SSHD Keepalive 3-27 Configuring SSHD Port 3-27 Configuring SSHD Server-Keybits 3-27 Disabling and Enabling Telnet Access when using SSHD 3-28 Showing SSHD Configurations 3-28 Configuring Opportunistic Layer 3 Forwarding 3-28 Where to Go Next 3-30
ix
Contents
CHAPTER
Configuring Interfaces and Circuits 4-1 Interface and Circuit Overview 4-1 Interface and Circuit Configuration Quick Start 4-3 Configuring Interfaces 4-4 Configuring an Interface 4-5 Entering a Description for the Interface 4-5 Configuring Interface Duplex and Speed 4-6 Setting the Interface Maximum Idle Time 4-7 Showing Interface Duplex and Speed 4-8 Bridging the Interface to a VLAN 4-8 Configuring Bridge Pathcost 4-9 Configuring Bridge Priority 4-9 Configuring Bridge State 4-10 Configuring the Low Water Mark of Flow Control Blocks on an Interface 4-10 Showing Bridge Configurations 4-10 Showing Interfaces 4-11 Showing Interface Statistics 4-12 Showing Ethernet Interface Errors 4-13 Shutting Down an Interface 4-14 Restarting the Interface 4-14 Shutting Down All Interfaces 4-14 Restarting All Interfaces 4-15 Configuring Circuits 4-15 Configuring Router-Discovery Lifetime 4-16 Configuring Router-Discovery Limited-Broadcast 4-16
78-11424-01
Contents
Configuring Router-Discovery Max-Advertisement-Interval 4-16 Configuring Router-Discovery Min-Advertisement-Interval 4-17 Showing Circuits 4-17 Configuring a Circuit IP Interface 4-18 Configuring a Circuit IP Address 4-18 Configuring a Circuit-IP Broadcast Address 4-19 Configuring Circuit-IP Redirects 4-19 Configuring Circuit-IP Unreachables 4-20 Enabling Router-Discovery 4-20 Configuring Router-Discovery Preference 4-20 Enabling a Circuit IP 4-21 Disabling a Circuit IP 4-21 Showing IP Interfaces 4-21 Configuring RIP for an IP Interface 4-22 Configuring RIP Default-Route 4-22 Configuring RIP Receive 4-23 Configuring RIP Send 4-23 Showing RIP Configurations 4-23 Where to Go Next 4-24
5
CHAPTER
Configuring Services 5-1 Service, Owner, and Content Rule Overview 5-1 Service Configuration Quick Start 5-4 Service Load Overview 5-5 Using ArrowPoint Content Awareness Based on Server Load and Weight 5-7 Using ACA Based on Server Load 5-7 Using ACA Based on Server Weight and Load 5-8
xi
Contents
Configuring Load for Services 5-9 Configuring Global Load Step 5-9 Configuring Global Load Threshold 5-10 Configuring Global Load Reporting 5-11 Configuring Load Tear Down Timer 5-11 Configuring Load Ageout Timer 5-12 Showing Global Service Loads 5-13 Global Keepalive Mode 5-13 Creating a Global Keepalive 5-14 Activating a Global Keepalive Active 5-15 Configuring a Global Keepalive Description 5-15 Configuring a Global Keepalive Frequency 5-15 Configuring a Global Keepalive IP Address 5-16 Configuring a Global Keepalive Max Failure 5-16 Configuring a Global Keepalive Method 5-16 Configuring a Global Keepalive Port 5-17 Configuring a Global Keepalive Retryperiod 5-17 Deactivating a Global Keepalive 5-17 Configuring a Global Keepalive Type 5-18 Configuring a Global Keepalive URI 5-18 Associating a Service with a Global Keepalive 5-19 Configuring Global Keepalive Hash 5-19 Showing Global Keepalive Configurations 5-21
xii
78-11424-01
Contents
Script Keepalives 5-22 Script Keepalive Considerations 5-22 Configuring Script Keepalives 5-24 Viewing a Script Keepalive in a Service 5-24 Script Keepalive Status Codes 5-26 Creating Services 5-26 Configuring Services 5-27 Assigning an IP Address to the Service 5-27 Specifying a Port 5-28 Specifying a Protocol 5-29 Specifying a Domain Name 5-29 Configuring an Advanced Load Balancing String 5-30 Configuring a Service HTTP Cookie 5-30 Configuring Weight 5-31 Specifying a Service Type 5-31 How the CSS Accesses Server Types 5-33 Configuring Service Access 5-33 Configuring Service Cache Bypass 5-34 Configuring Keepalives 5-34 Configuring Keepalive Frequency 5-36 Configuring Keepalive Maxfailure 5-36 Configuring Keepalive Method 5-36 Configuring Keepalive Port 5-37 Configuring Keepalive Retryperiod 5-38 Configuring Keepalive Type 5-38 Configuring Keepalive URI 5-39 Configuring Keepalive Hash 5-39
Content Services Switch Basic Configuration Guide 78-11424-01
xiii
Contents
Showing Keepalive Configurations 5-41 Configuring Maximum TCP Connections 5-42 Activating a Service 5-42 Suspending a Service 5-42 Removing a Service 5-43 Removing a Service From a Content Rule 5-43 Removing a Service From a Source Group 5-43 Showing Service Configurations 5-44 Where to Go Next 5-45
6
CHAPTER
Configuring Owners 6-1 Owner Configuration Quick Start 6-2 Creating an Owner 6-2 Configuring an Owner DNS Balance Type 6-3 Specifying Owner Address 6-4 Specifying Owner Billing Information 6-4 Specifying Case 6-5 Specifying Owner DNS Type 6-5 Specifying Owner Email Address 6-6 Removing an Owner 6-6 Showing Owner Information 6-6 Showing Owner Summary 6-7 Where to Go Next 6-8
xiv
78-11424-01
Contents
CHAPTER
Configuring Content Rules 7-1 Service, Owner, and Content Rule Overview 7-2 Content Rule Configuration Quick Start 7-5 Naming and Assigning a Content Rule to an Owner 7-6 Configuring a Virtual IP Address 7-7 Configuring a Domain Name Content Rule 7-10 Disabling a Domain Name System in a Content Rule 7-11 Matching Content Rules on Multiple Domain Names 7-11 Configuring a Content Rule using a Domain Name and a Virtual IP Address 7-13 Using Wildcards in Domain Name Content Rules 7-14 General Guidelines for Domain Name Wildcards in Content Rules 7-15 Adding Services to a Content Rule 7-16 Adding a Service to a Content Rule 7-17 Specifying a Service Weight 7-17 Adding a Primary Sorry Server to a Content Rule 7-17 Adding a Domain Name System to a Content Rule 7-18 Activating a Content Rule 7-19 Suspending a Content Rule 7-19 Removing a Content Rule 7-19 Removing a Service from a Content Rule 7-20 Configuring a Protocol 7-20 Configuring Port Information 7-20 Configuring Load Balancing 7-21 Configuring a DNS Balance Type 7-22 Configuring Hotlists 7-23 Configuring a Domain Hotlist 7-25
xv
Contents
Specifying a Uniform Resource Locator 7-26 Specifying an Extension Qualifier List in a Uniform Resource Locator 7-28 Specifying a Load Threshold 7-29 Redirecting Requests for Content 7-29 Configuring Persistence, Remapping, and Redirection 7-30 Content Rule Persistence 7-30 Configuring Bypass Persistence 7-31 Configuring HTTP Redirection and Service Remapping 7-32 Specifying an HTTP Redirect String 7-33 Using Show Remap 7-34 Defining Failover 7-35 Specifying an Application Type 7-38 Enabling Content Requests to Bypass Transparent Caches 7-39 Showing Content 7-40 Showing Content Rules 7-41
8
CHAPTER
Using the CSS Logging Features 8-1 Logging Overview 8-2 Logging Quick Start Table 8-3 Specifying Logging Buffer Size 8-5 Specifying Log File Destination 8-6 Specifying Disk for a Log File Destination 8-6 Disabling Logging to Disk 8-6 Specifying Host for a Log File Destination 8-7 Specifying a Line for a Log File Destination 8-7
xvi
78-11424-01
Contents
Enabling Logging on a Subsystem 8-8 Disabling Logging for a Subsystem 8-10 Configuring a Log Message for a Subsystem at a Logging Level 8-11 Logging ACL Activity 8-12 Sending Log Messages to an Email Address 8-13 Logging CLI Commands 8-14 Showing Log Files 8-14 Copying Log Files to an FTP or TFTP Server 8-16 Copying Log Files to an FTP Server 8-17 Copying Log Files to a TFTP Server 8-17
A
APPENDIX
Upgrading Your CSS Software A-1 Before You Begin A-1 Copying the New CSS Software A-1 Configuring an FTP Server Record on the CSS A-2 Upgrading your CSS A-3 Using the Upgrade Script A-3 Automatically Running the Upgrade Script A-3 Interactively Using the Upgrade Script A-5 Manually Upgrading the CSS A-8
INDEX
xvii
Contents
xviii
78-11424-01
F I G U R E S
Figure 1-1 Figure 3-1 Figure 4-1 Figure 5-1 Figure 5-2 Figure 7-1 Figure 7-2 Figure 7-3 Figure 7-4 Figure 7-5 Figure 7-6
Content Services Switch Interfaces and Circuits Services, Owners, and Content Rules Concepts Load Calculation Example with Three Servers Services, Owners, and Content Rules Concepts Example of Configuring a Virtual IP Address ServerB Configured for Failover Next ServerC Configured for Failover Next
7-36 7-36 7-9
Suspended or Failed Service Configured for Failover Linear Removing a Service Configured for Failover Linear
7-38
7-37
xvii
Figures
xviii
78-11424-01
T A B L E S
Table 1-1 Table 1-2 Table 1-3 Table 4-1 Table 5-1 Table 6-1 Table 6-2 Table 7-1 Table 8-1 Table 8-2 Table 8-3 Table 8-4
1-3 1-15
Interface and Circuit Configuration Quick Start Service Configuration Quick Start Owner Configuration Quick Start Global Bypass Counter Descriptions CSS Log File Descriptions Logging Subsystems
8-8 8-10 8-2 8-4 5-4 6-2 6-8 7-5
4-3
Content Rule Configuration Quick Start Configuring and Enabling Logging Subsystem Logging Levels
xix
Tables
xx
78-11424-01
Note
Access to the Standard and Enhanced feature sets or Proximity Database requires that you enter a software license key when you boot the CSS for the first time. For details, refer to the Content Services Switch Getting Started Guide, Chapter 4, Booting the CSS.
xxi
Note
If you are upgrading from the Standard to the Enhanced feature set or want to activate a CSS software option (for example, SSH Server) that you purchased, refer to the Content Services Switch Getting Started Guide, Chapter 4, Booting the CSS. If you configure your CSS for Proximity Database, you cannot use the CSS for flow control. For details on Proximity Database, refer to the Content Services Switch Advanced Configuration Guide.
Audience
This guide is intended for the following trained and qualified service personnel who are responsible for configuring the CSS:
Chapter 3, Configure the CSS DNS, ARP, RIP, IP, and bridging Configuring CSS features. Network Protocols
Contents Services Switch Basic Configuration Guide
xxii
78-11424-01
Chapter Chapter 4, Configuring Interfaces and Circuits Chapter 5, Configuring Services Chapter 6, Configuring Owners Chapter 7, Configuring Content Rules Chapter 8, Using the CSS Logging Features Appendix A, Upgrading Your CSS Software
Description Configure the CSS management ports, interfaces, and circuits for operation.
Configure services.
Enable logging, set up the log buffer, and determine where to send the activity information. Upgrade your CSS software manually or use the upgrade script.
Related Documentation
In addition to this document, the Content Services Switch documentation set includes the following. Document Title Cisco Content Services Switch Release Note Content Services Switch Getting Started Guide Description The release note provides information not in the previous guides and reference. This guide is intended to help you quickly get your CSS installed and into operation. It provides you with instructions for installing, cabling, booting, and configuring the CSS.
xxiii
Description This guide describes how to configure advanced CSS features, including
Sticky parameters HTTP header load balancing Source groups, ArrowPoint Control Lists (ACLS), Extension Qualifier Lists (EQLs), Uniform Resource Locator Qualifier Lists (URQLs), Network Qualifier Lists (NQLs), and Domain Qualifier Lists (DQLs) VIP and CSS redundancy Content Smart Caching Domain Name Service (DNS) Demand-Based Content Replication and content staging and replication Firewall Load Balancing SNMP and RMON OSPF routing protocol Network proximity
This guide provides an alphabetical list of all CSS Command Line Interface commands including syntax, options, and related commands.
xxiv
78-11424-01
Documentation Map
This section provides a map for using the CSS documentation set.
xxv
Caution
A caution means that a specific action you take could cause a loss of data or adversely impact use of the equipment.
Warning
A warning describes an action that could cause you physical harm or damage the equipment.
Note
A note provides important related information, reminders, and recommendations. Bold text indicates a command in a paragraph.
Courier text
indicates text that appears on a command line, including the CLI indicates commands and text you enter in a command line.
prompt.
Courier bold text
Italics text indicates the first occurrence of a new term, book title, and emphasized text.
1.
A numbered list indicates that the order of the list items is important.
a. An alphabetical list indicates that the order of the secondary list items is
important.
A bulleted list indicates that the order of the list topics is unimportant.
An indented list indicates that the order of the list subtopics is
unimportant.
xxvi
78-11424-01
C H A P T E R
Note
When you boot the CSS for the first time, the software prompts you to enter a valid license key for the Standard or Enhanced feature set, or for Proximity Database, depending on your intended use for the CSS. For details, refer to the Content Services Switch Getting Started Guide, Chapter 4, Booting the CSS. If you are upgrading from the standard to the enhanced feature set or want to activate another optional feature that you purchased, refer to the Content Services Switch Getting Started Guide, Chapter 4, Booting the CSS. If you configure your CSS for Proximity Database, you cannot use the CSS for flow management. For details on Proximity Database, refer to the Content Services Switch Advanced Configuration Guide.
Content Services Switch Basic Configuration Guide
78-11424-01
1-1
Configuration Quick Start Logging into the CSS Configuring an IP Address and Subnet Mask for the Ethernet Management Port Configuring a Default IP Route Configuring Date and Time Configuring an FTP Record Rebooting the CSS Shutting Down the CSS Using the Offline Diagnostic Monitor Menu Enabling and Disabling Core Dumps CSS Software Overview Using the Running-Config and Startup-Config Archiving Files to the Archive Directory Restoring Files from the Archive Directory Displaying CSS Configurations
Log in and access config mode so you can configure the CSS for operation Access boot mode to configure an IP address for the Ethernet Management port From boot mode, configure a subnet mask Configure a default IP route
1-2
78-11424-01
Chapter 1
Enter the date and time Configure an FTP record (optional) Save your configuration from the running-config to the startup-config
Following Table 1-1 is an overview of the CSS system software and commands for saving, archiving, and restoring system configuration files. Once you configure the Ethernet Management port IP address, you can continue to use the Console port or you can use the Ethernet Management port to Telnet into the CSS and configure it remotely
.
Table 1-1
Log into the CSS using the default administrative username admin and password system or the username and password you assigned during the boot process. Access config mode.
# config (config)#
2.
3.
Access boot mode to configure an IP address for the Ethernet Management port. This IP address must be on a different subnet than any other CSS VLAN circuit IP subnet or you will not be able to access the port. You must reboot the CSS for the new IP address to take effect.
(config)# boot (config-boot)# ip address 172.3.6.58
4.
5.
Exit from boot mode to config mode to configure a default route as required.
(config-boot)# exit (config)# ip route 0.0.0.0/0 192.168.3.123
1-3
Table 1-1
Exit from config mode to configure a date. The clock and date commands do not allow backspacing. If you enter a wrong date, re-enter the command with the new information. Enter the date in the format mm-dd-yy.
# clock date Enter date: [03-11-00] 03-12-00
Use the date european-date command to enable the clock date command to accept date input in the format of day, month, and year.
# date european-date 12/03/00
7.
Configure the time using the clock command. The clock command does not allow backspacing. If you enter the wrong time, re-enter the command with the new information. Enter the time in the format hh:mm:ss.
# clock time Enter time: [15:17:33] 16:17:33
8.
Configure a File Transfer Protocol (FTP) record file to use when accessing an FTP server from the CSS. This step is optional.
# ftp-record arrowrecord 192.168.19.21 bobo password "secret" /outgoing
9.
Save your configuration changes (recommended). Configuration changes reside in a virtual file called the running-configuration. To save your current configuration, use the copy running-config startup-config command. If you do not save the running-config, all configuration changes are lost upon reboot.
# copy running-config startup-config
1-4
78-11424-01
Chapter 1
Note
When you power up the CSS (after initial start-up), the boot process provides access to the Offline Diagnostic Monitor (Offline DM) menu. The Offline DM Main menu allows you to set the boot configuration, show the boot configuration, select Advanced Options, or reboot the system. For details on using the Offline DM Main menu, refer to Using the Offline Diagnostic Monitor Menu in this chapter.
Access the Offline Diagnostic Monitor (Offline DM) menu during the boot process. For information on the Offline DM Main menu see Using the Offline Diagnostic Monitor Menu in this chapter. Use the username-offdm name password text command.
1-5
The following example uses the CLI command to change the default administrative username and password.
(config)# username-offdm bobo password secret
User - Allows access to a limited set of commands that enable you to monitor and display CSS parameters, but not change them. A User prompt ends with the > symbol. SuperUser - Allows access to the full set of CLI commands, including those in User mode, that enable you to configure the CSS. A SuperUser prompt ends with the # symbol.
From SuperUser, you can enter global configuration mode and its subordinate configuration modes. If you do not specify superuser when configuring a new user, the new user has only user level status by default. The syntax for this global configuration mode command is:
username name [des-password|encrypted-password|password] {superuser}
password
The example below creates a SuperUser named picard with a password of captain.
(config)# username picard password captain superuser
name - The username you want to assign or change. Enter an unquoted text string with no spaces and a maximum of 16 characters. To see a list of existing usernames, enter username ?. des-password - Specify that the password is Data Encryption Standard (DES) encrypted. Use this option only when you are creating a file for use as a script or a startup configuration file. Enter the DES password as a case-sensitive unquoted text string 6 to 64 characters in length.
1-6
78-11424-01
Chapter 1
encrypted-password - Specify that the password is encrypted. Use this option only when you are creating a file for use as a script or a startup configuration file. password - Specify that the password is not encrypted. Use this option when you use the CLI to create new users dynamically. password - The password. Enter an unquoted text string with no spaces and a length of 6 to 16 characters. superuser - Specify SuperUser privileges to allow a user to access SuperUser mode. If you do not enter this option, the user can only access User mode.
To change a user password, re-enter the username command and specify the new password. Remember to include SuperUser privileges if required. For example:
(config)# username picard password flute superuser
Caution
The no username command removes a user permanently. Make sure you want to do this because you cannot undo this command.
1-7
Chapter 1 Configuring an IP Address and Subnet Mask for the Ethernet Management Port
Configuring an IP Address and Subnet Mask for the Ethernet Management Port
To communicate with the CSS and issue Command Line Interface (CLI) commands using out-of-band management, you must assign an IP address to the Ethernet management port. You may also want to configure a subnet mask that the CSS uses upon boot. The Ethernet Management port is located on the:
CSS 11050 and CSS 11150 rear panels CSS 11800 SCM front panel
At the prompts during the boot process Using the Offline Diagnostic Monitor (Offline DM) menu Using CLI commands
For information on configuring an IP address and subnet mask during the boot routine or using the Offline DM Main menu, refer to Using the Offline Diagnostic Monitor Menu in this chapter. For information on configuring an IP address and subnet mask using CLI commands, refer to the following sections.
Note
You must reboot the CSS for the IP address to take effect.
Configuring an IP Address
To configure an IP address for the CSS Ethernet Management port, use the ip address option in boot mode. This command does not have a no version. To change the IP address, re-issue the ip address command and enter the new IP address. The CSS does not accept an all zero IP address. For example:
(config)# boot (config-boot)# ip address 172.3.6.58
Note
You must reboot the CSS for the new IP address to take effect.
1-8
78-11424-01
Chapter 1
Caution
The Ethernet Management port IP address must be a different subnet than any other CSS VLAN circuit IP subnet. If you do not make the Ethernet Management port IP address unique, you will not be able to access the port.
Becomes aware of the router Re-enters applicable routes into the routing table
To configure a default IP route, use the ip route command and specify either an:
The syntax for the ip route command to configure a default IP route is:
ip route IP address subnet mask IP address2
For example:
(config)# ip route 0.0.0.0/0 192.168.3.123
1-9
ip_address - The destination network address. Enter the IP address in dotted-decimal notation (for example, 192.168.11.1). subnet_mask - The IP subnet mask. Enter the mask as either:
A prefix length in CIDR bitcount notation (for example, /24). Do not
ip_address2 - The next hop address for the route. Enter the IP address in dotted-decimal notation (for example, 192.168.11.1).
For complete information on configuring IP routes, refer to Chapter 3, Configuring CSS Network Protocols.
To set the time, enter the clock time command. The current time is displayed. Enter the new time in the format hh:mm:ss as shown:
# clock time Enter time: [15:12:38] 16:12:38
To display the current date and time, enter the show clock command:
Date: 10-4-2000 Time: 17:56:17
1-10
78-11424-01
Chapter 1
To reset the format for the clock date command to its default of month, day and year, enter:
# no date european-date
ftp_record - The name for the FTP record file. Enter an unquoted text string with no spaces and a maximum length of 16 characters. ip_address or hostname - The IP address or host name of the FTP server you want to access. Enter an IP address in dotted-decimal notation (for example, 192.168.11.1) or a mnemonic host name (for example, myhost.mydomain.com). username - A valid login username on the FTP server. Enter a case-sensitive unquoted text string with no spaces and a maximum length 16 characters. password - The password for the valid login username on the FTP server. Enter a case-sensitive quoted text string with no spaces and a maximum length of 16 characters. des_password - The Data Encryption Standard (DES) encrypted password for the valid login username on the FTP server. Enter a case-sensitive unquoted text string with no spaces and a maximum length of 64 characters.
1-11
encrypted_password - The encrypted password for the valid login username on the FTP server. Enter a case-sensitive unquoted text string with no spaces and a maximum length of 16 characters. base_directory - An optional base directory when using this record. Enter the base directory name as a case-sensitive unquoted text string with no spaces and a maximum length of 64 characters. The config-path and base directory path in the ftp-record associated with a network boot must not contain a pathname that collides with a non-network driver name (for example, c: or host:).
copy ftp ftp_record filename boot-image - Copy a file from an FTP server to the CSS for use as the ArrowPoint Distribution Image (ADI). The file you copy to the CSS must be an ADI. Otherwise, the CSS rejects it. copy ftp ftp_record filename script script_filename - Copy a file from an FTP server to the script directory. copy ftp ftp_record filename startup-config - Copy a file from an FTP server to the startup configuration.
1-12
78-11424-01
Chapter 1
reboot - Reboots the CSS reboot diags - Reboots the CSS and runs diagnostics
1-13
Connect and configure a console to the CSS 11800 SCM console port, or the CSS 11050 or CSS 11150 front panel. Configure the console to the following default values: 9600 baud, no parity, 8 data bits, 1 stop bit, and flow control set to None. Power on the CSS. After the CSS begins to boot (approximately 15 seconds), it displays the following message:
Press any key to access the Offline Diagnostic Monitor menu
2.
Take no action and let the CSS continue booting automatically with the default boot configuration Press any key to halt the boot process and display the Offline DM Main menu
If you choose to access the Offline DM Main menu, press any key before the 5-second window elapses.
1-14
78-11424-01
Chapter 1
Logging in and Getting Started Using the Offline Diagnostic Monitor Menu
The Offline DM Main menu is displayed as shown below. If 5 seconds elapse before you press a key, power down the CSS and then power it up again.
CS-x00 Offline Diagnostic Monitor, Version x.x MAIN MENU Enter the number of a menu selection: 1* 2. 3* 4. Set Boot Configuration Show Boot Configuration Advanced Options Reboot System
An asterisk (*) next to a menu option indicates that the option contains a submenu. Table 1-2 describes each menu item.
Table 1-2 Offline Diagnostic Monitor Menu Options
Enables you to.... 1. 2. 3. r. Set Primary Boot Configuration Set Secondary Boot Configuration Set IP Address, and Subnet Mask Return to previous menu
2. Show Boot Configuration Display boot configurations (including primary and secondary boot configurations, records, and IP information).
1-15
Table 1-2
Enables you to.... 1. 2. 3. r. Delete a software version Security Options Disk Options Return to previous menu
4. Reboot System
Reboot the CSS. The CSS displays the following message before rebooting:
Are you sure you want to reboot? (Y/N)
Enter:
1-16
78-11424-01
Chapter 1
Logging in and Getting Started Using the Offline Diagnostic Monitor Menu
Yes
Done
1-17
49382
Boot Failed
No
Yes
Done
The Boot Configuration menu enables you to perform the following tasks as described in Table 1-3.
Table 1-3 Boot Configuration Options
Menu Option 1. Set Primary Boot Configuration 2. Set Secondary Boot Configuration 3. Set IP Address and subnet mask r. Return to previous menu
Enables you to.... Specify the primary location (Network, FTP, Disk, or Clear) from which the CSS accesses the boot image. The default location is Disk. Specify the secondary location (Network, FTP, Disk, or Clear) from which the CSS accesses the boot image. The default location is Clear. Configure an IP address for the Ethernet Management port, and configure a subnet mask. Display the Offline DM main menu.
BOOT CONFIGURATION MENU Enter the number of a menu selection: 1. 2. 3. r Set Primary Boot Configuration Set Secondary Boot Configuration Set IP Address and Subnet Mask Return to previous menu
1-18
78-11424-01
Chapter 1
Logging in and Getting Started Using the Offline Diagnostic Monitor Menu
Boot via Network allows you to boot the CSS via FTP from CSS software on a network drive on a remote system (such as a PC or UNIX workstation) Boot via FTP allows you to download an ADI file containing CSS software that you want to install on the CSS drive Boot via Disk allows you to boot the CSS from software currently on the CSS drive Boot via Clear instructs the CSS to boot the CSS from the secondary boot record
Refer to the following sections for a description of each Primary Boot Record option:
Specifying a Network-Mounted File System as the Primary Boot Record Specifying FTP as the Primary Boot Record Specifying Disk as the Primary Boot Record Specifying Clear as the Primary Boot Record
1-19
You want multiple CSSs to use the same boot image while keeping their own configuration information. You provide an alternate path for the location of the configuration information. However this information must exist on the same network filesystem with the boot image.
Note
When using an alternate configuration path, make sure that the path leads to a directory containing the script, log, and info subdirectories. These subdirectories must contain the files in the corresponding subdirectories in the boot image. Create these subdirectories. Then copy the files from the boot image.
The CSS has a disk failure. A network boot allows the CSS to boot independent from its disk and to load the configuration into memory.
Locate the remote system on the network where you will copy the CSS software.
Make sure that the CSS can access the system via FTP. Copy the CSS software zip file from the CSS CD onto the system disk. Create a directory and unzip the file into it. This directory will contain
On the CSS, create an FTP record to the directory containing the CSS software on the network drive. Make sure that you cable the following port on the CSS to the network:
CSS 11800 SCM 10/100 Mbps-Ethernet Management port CSS 11050 or CSS 11150 rear panel 10/100-Mbps Ethernet Management
port
1-20
78-11424-01
Chapter 1
Logging in and Getting Started Using the Offline Diagnostic Monitor Menu
When you select Network, the CSS prompts you for the FTP kernel information.
1.
Enter the FTP kernel path information. This path is the FTP daemon addressable location where the boot image has been unpacked. You must also include its IP address, and the username and password to access it. For example:
Enter Enter Enter Enter the FTP FTP FTP FTP Kernel path:[] k:/ap0400003 Server IP address:[] 10.3.6.58 Server authentication username:[] mandy Server authentication password:[] fred
2.
If the configuration information is not in the same directory as the boot image, enter an alternate path to the configuration files, including the startup-config and script files.
Note
The CSS must be able to access the configuration path through the previously configured FTP server IP address, login username, and password. For example:
Enter the FTP Config Path? [] k:/atlanta-config/ Press <Enter> to continue...
3. 4. 5.
Press Enter to display the Boot Configuration menu. Enter r to display the Offline DM Main menu. Select Reboot the System to reboot the CSS.
Accesses the network file system containing the boot image Boots the CSS using the boot image you specified
1-21
CSS 11800 SCM 10/100 Mbps-Ethernet Management port CSS 11050 or 11150 rear panel 10/100-Mbps Ethernet Management port
When you select FTP, the CSS prompts you for the boot image filename and FTP information.
1.
The CSS queries if you want to access the boot image directly from the disk at the next reboot (that is, the next time you reboot the CSS after completing this current boot process).
Boot from Disk at next reboot? y/n Press <Enter> to continue...
2.
Enter either:
y to copy the boot image from the FTP server to the disk. The CSS accesses the boot image directly from the disk at next reboot. The CSS also changes the information in the Primary Boot Record to Disk. n to FTP the boot image from the FTP server at next reboot.
3. 4. 5.
Press Enter to display the Boot Configuration menu. Enter r to display the Offline DM Main menu. Select Reboot the System to reboot the CSS.
Accesses the ADI file from the FTP server and unpacks (uncompresses) it Boots the CSS using the boot image you specified
1-22
78-11424-01
Chapter 1
Logging in and Getting Started Using the Offline Diagnostic Monitor Menu
1.
At the prompt, enter the boot image filename you wish to use.
Enter the boot image filename: ap0400003
2.
3. 4.
Press r to display the Offline DM Main menu. Select Reboot the System to reboot the CSS. Upon reboot, the CSS boots up using the boot image you specified.
Select Clear as the Primary Boot Record. Press Enter to display the Boot Configuration menu. Press r to display the Offline DM Main menu. Select Reboot the System to reboot the CSS. Upon reboot, the CSS uses the Secondary Boot Record.
1-23
Once you select Set Secondary Boot Configuration from the Boot Configuration menu, the CSS displays the following information. If you have previously entered information, the CSS displays the existing information and default values in [square brackets].
Configuring SECONDARY Boot Record Boot via [N]etwork, [F]TP, [D]isk, or [C]lear: [D]
Boot via Network allows you to boot the CSS via FTP from CSS software on a network drive on a remote system (such as a PC or UNIX workstation) Boot via FTP allows you to download an ADI file containing CSS software that you want to install on the CSS disk Boot via Disk allows you to boot the CSS from software currently on the CSS disk Boot via Clear instructs the CSS to boot the CSS from the primary boot record
Refer to the following sections for a description of each Primary Boot Record option:
Specifying a Network-Mounted File System as the Secondary Boot Record Specifying FTP as the Secondary Boot Record Specifying Disk as the Secondary Boot Record Specifying Clear as the Secondary Boot Record
1-24
78-11424-01
Chapter 1
Logging in and Getting Started Using the Offline Diagnostic Monitor Menu
You want multiple CSSs to use the same boot image while keeping their own configuration information. You provide an alternate path for the location of the configuration information. However this information must exist on the same network filesystem with the boot image.
Note
When using an alternate configuration path, make sure that the path leads to a directory containing the script, log, and info subdirectories. These subdirectories must contain the files in the corresponding subdirectories in the boot image. Create these subdirectories. Then copy the files from the boot image.
The CSS has a disk failure. A network boot allows the CSS to boot independently from its disk and to load the configuration into memory.
Locate the remote system (such as a PC or UNIX workstation) on the network where you will copy the CSS software.
Make sure that the CSS can access the system via FTP. Copy the CSS software zip file from the CSS CD onto the system disk. Create a directory and unzip the file into it. This directory will contain
On the CSS, create an FTP record to the directory containing the CSS software on the network drive. Make sure that you cable the following port on the CSS to the network:
CSS 11800 SCM 10/100 Mbps-Ethernet Management port CSS 11050 or CSS 11150 rear panel 10/100-Mbps Ethernet Management
port
1-25
When you select Network, the CSS prompts you for the FTP kernel information.
1.
Enter the FTP kernel path information. This path is the FTP daemon addressable location where the boot image has been unpacked. You must also include its IP address, and the username and password to access it. For example:
Enter Enter Enter Enter the FTP FTP FTP FTP Kernel path:[] k:/ap0400003 Server IP address:[] 10.3.6.58 Server authentication username:[] mandy Server authentication password:[] fred
2.
If the configuration information is not in the same directory as the boot image, enter an alternate path to the configuration files, including the startup-config and script files.
Note
The CSS must be able to access the configuration path through the previously configured FTP server IP address, login username, and password. For example:
Enter the FTP Config Path? [] k:/atlanta-config/ Press <Enter> to continue...
3. 4. 5.
Press Enter to display the Boot Configuration menu. Enter r to display the Offline DM Main menu. Select Reboot the System to reboot the CSS.
Accesses the network file system containing the boot image Boots the CSS using the boot image you specified
1-26
78-11424-01
Chapter 1
Logging in and Getting Started Using the Offline Diagnostic Monitor Menu
CSS 11800 SCM 10/100 Mbps-Ethernet Management port CSS 11050 or CSS 11150 rear panel 10/100-Mbps Ethernet Management port
When you select FTP, the CSS prompts you for the boot image filename and FTP information.
1.
The CSS queries if you want to access the boot image directly from the disk at the next reboot (that is, the next time you reboot the CSS after completing this current boot process).
Boot from Disk at next reboot? y/n
2.
Enter either:
y to copy the boot image from the FTP server to the disk. The CSS accesses the boot image directly from the disk at next reboot. The CSS also changes the information in the Secondary Boot Record to Disk. n to FTP the boot image from the FTP server at next reboot.
3.
4. 5.
Enter r to display the Offline DM Main menu. Select Reboot the System to reboot the CSS. When the CSS uses the Secondary Boot Record on reboot, it:
Accesses the ADI file from the FTP server and unpacks (uncompresses) it Boots the CSS using the boot image you specified
1-27
2.
3. 4.
Enter r to display the Offline DM Main menu. Select Reboot the System to reboot the CSS. Upon reboot, the CSS boots up using the boot image you specified.
Select Clear as the Secondary Boot Record. Press Enter to display the Boot Configuration menu. Enter r to display the Offline DM Main menu. Select Reboot the System to reboot the CSS. Upon reboot, the CSS uses the Primary Boot Record.
Enter an IP address for the Ethernet Management port. The CSS does not accept an all zero IP address. If you enter an all zero IP address, the CSS repeats the prompt until you enter an IP address.
1-28
78-11424-01
Chapter 1
Logging in and Getting Started Using the Offline Diagnostic Monitor Menu
Caution
The Ethernet Management port IP address must be a different subnet than any other CSS VLAN circuit IP subnet. If you do not make the Ethernet Management port IP address unique, you will not be able to access the port.
Enter IP Address: [0.0.0.0] 10.3.6.58
2.
3.
4. 5.
Enter r to display the Offline DM Main menu. Select Reboot the System to reboot the CSS.
1.
1-29
2.
Enter option 3 to reboot the system. The following reboot confirmation is displayed:
Are you sure you want to reboot? (y/n)
3.
Enter either:
Enter the number of a menu selection: 1. 2* 3* r. Delete a Software Version Security Options Disk Options Return to previous menu
Enter option 1 to display the software versions currently stored on the disk. The CSS prompts you to enter the software version to delete. For example,:
ap0310046 ap0400003 Enter the software version to delete: ap040003
1-30
78-11424-01
Chapter 1
Logging in and Getting Started Using the Offline Diagnostic Monitor Menu
2.
3. 4.
Enter r to display the Offline DM main menu. Select Reboot the System to reboot the CSS.
Set Password Protection on the Offline Diagnostic Monitor menu Set Administrative Username and Password
Enter the number of a menu selection: 1. Set Password Protection for Offline Diagnostic Monitor menu 2. Set Administrative Username and Password r. Return to previous menu
Caution
Use care when password-protecting the Offline DM Main menu and ensure that you write down the new password. If you lose the new password, it cannot be recovered and you will be unable to access the Offline DM Main menu. The only solution, at that point, would be to contact the Cisco Technical Assistance Center (TAC) at 1-800-553-2447 or 1-408-526-7209. You can also email TAC at [email protected].
1-31
1.
2.
When you enter yes, the CSS prompts you to enter a username and password when you access the Offline DM Main menu. When you enter no, the CSS does not prompt for a username and password when you access the Offline DM Main menu.
3. 4. 5.
Enter r to return to the Advanced Options menu. Enter r to return to the Offline DM Main menu. Enter either:
Option 4 to reboot the CSS Another option to continue using the Offline DM Main menu
Note
You cannot permanently delete an administrative username and password. If you delete them by using the no username command, they are removed from use until you reboot the CSS. When you reboot the CSS, it restores the username and password from NVRAM.
1-32
78-11424-01
Chapter 1
Logging in and Getting Started Using the Offline Diagnostic Monitor Menu
To configure an administrative username and password through the Offline DM Main menu:
1. 2.
Enter option 2 from the Security Options menu. Enter a username. The CSS prompts for this username when you log in. The CSS also prompts for this username and password if you set password-protection on the Offline DM Main menu.
Enter [administrator] username (minimum 4 characters):
3.
Enter a password. Note that the CSS does not display passwords.
Enter [administrator] password:
4.
Enter r to return to the Advanced Options menu. Enter r to return to the Offline DM Main menu. Enter either:
Option 4 to reboot the CSS Another option to continue using the Offline DM Main menu
Format disk - Enables you to reformat the disk. This option permanently erases all data on the disk. If you wish to retain the startup-config, ensure that you move it off the CSS before reformatting the disk. Also make sure that you have a copy of the CSS software ADI file to reinstall on the CSS. Check disk - Enables you to run a quick check disk or a complete check disk. Check disk disable - Allows you to disable running check disk at boot time or enable it again. By default, check disk is enabled.
1-33
Enter the number of a menu selection: 1. 2. 3. r. Format Disk Check Disk Check Disk Disable Return to previous menu
Enter:
yes to reformat the disk. no to abort the reformat function. If the disk has unrecoverable errors and you do not reformat it, be aware that the file system may be corrupt and functionality is compromised.
2.
The CSS queries whether you want to perform a quick format or a complete format. Enter either:
yes to reformat the disk using the quick format (does not perform cluster verification). Only use the quick format when you are certain of the disk integrity. no to reformat the disk including cluster verification.
3.
1-34
78-11424-01
Chapter 1
Logging in and Getting Started Using the Offline Diagnostic Monitor Menu
4.
Enter r to return to the Offline DM Main menu. Because the disk is empty, you must configure a primary boot record to instruct the CSS where to locate the new ADI file containing the CSS software.
5.
Enter option 1 to set the primary boot configuration. Refer to Setting Primary Boot Configuration in this chapter. If you do not set the primary boot configuration before booting the CSS, the boot process halts at the prompt:
Press any key to access the Offline Diagnostic Monitor menu...
You must enter the Offline DM Main menu to set the primary boot configuration.
Does not detect errors, it reports a status of OK and continues the boot process
Reading configuration records...OK Checking previous shutdown...OK Initializing the disk...OK
If the CSS reports that the disk is dirty, it has discovered errors on the disk. In this case, the CSS automatically perform a check disk to recover from the errors and maintain the integrity of the disk. During a check disk, the CSS:
1-35
Bad cluster identification and mapping in the FAT when reformatting the
disk
Crosslinked FAT entries Disk entry validation, name, size, cluster assignment, cluster chaining Recovery of lost clusters
Cannot recover from sector failures within the first 754 sectors (for example, boot, primary/secondary FAT, root directory entries).
The amount of time the CSS requires to perform a check disk is proportional to the number of installed software releases and directories on the disk. The greater the number of installed software releases and directories, the longer it takes to complete the check disk. To perform a check disk:
1.
Enter option 2 from the Disk Options menu. Choose whether or not you want the CSS to correct errors it detects. Enter either:
yes to enable the CSS to correct recoverable errors it detects. When the CSS completes check disk, it displays a summary of what was fixed. no to prevent the CSS from correcting recoverable errors it detects. The CSS displays a summary of what would have fixed if you had run check disk.
2.
Choose whether you want the CSS to perform a quick check disk or a complete check disk. Enter either:
yes to instruct the CSS to perform a quick check disk (does not include cluster verification no to instruct the CSS to perform a complete check disk (includes cluster verification)
3. 4.
Enter r to return to the Advanced Options menu. Enter r to return to the Offline DM Main menu.
1-36
78-11424-01
Chapter 1
Logging in and Getting Started Using the Offline Diagnostic Monitor Menu
5.
Enter option 3 from the Disk Options menu. Enter r to return to the Advanced Options menu. Enter r to return to the Offline DM Main menu. Enter option 2 to display the boot configuration. When check disk is disabled, it displays the following:
****************** Miscellaneous ********************** Check Disk is disabled ***************** IP/MAC Information *************** IP Address: 10.3.6.58 Subnet Mask: 255.0.0.0 MAC Address: 00-10-58-00-12-ca ***************** PRIMARY ************************** Boot Type: DISK Boot File: ap0400003 ***************** SECONDARY ************************ Boot Type: DISK Boot File: ap0400003 Press <Enter> to continue...
Enter option 3 from the Disk Options menu. Enter r to return to the Advanced Options menu. Enter r to return to the Offline DM Main menu. Enter option 2 to display the boot configuration.
1-37
When check disk is enabled, no state information appears in the Miscellaneous field of the boot configuration:
***************** IP/MAC Information *************** IP Address: 10.3.6.58 Subnet Mask: 255.0.0.0 MAC Address: 00-10-58-00-12-ca ***************** PRIMARY ************************** Boot Type: DISK Boot File: ap0400003 ***************** SECONDARY ************************ Boot Type: DISK Boot File: ap0400003 Press <Enter> to continue...
Writes information about the fatal error to the Core directory of the volume root (for example, c:\core) on either the:
Hard disk, which can store up to 30 sequentially numbered dump files Flash disk, which stores one compressed dump file of 70 MB
Reboots automatically
Note
For a flash disk-based system, if the core dump file is older than 15 minutes, it may be overwritten. If you want to save the core dump file for later examination, archive it to another directory or disk before it is overwritten. For details on using the archive log command, refer to Archiving a Log File later in this chapter. When the CSS experiences a fatal error and core dumps are disabled, the CSS reboots automatically. The CSS does not write information to the hard disk or the flash disk.
Note
1-38
78-11424-01
Chapter 1
Note
1-39
The CSS software is approximately 20 MB in size. If you have a hard disk-based system, you can install a maximum of four software versions on your CSS. If you have a flash disk-based system (CSS 11150 or CSS 11800), you can install a maximum of two software versions on your CSS. To display the maximum number of versions allowed on your CSS, use the show installed-software version-limit command. To view all versions installed on the CSS, use the show installed-software command. The software version format is defined as follows:
ap 00 00 000
ArrowPoint Major Minor Build version version number From an FTP server, you can view the following directories on the hard disk or flash disk:
The scripts directory contains default, profile, and sample scripts The core directory contains any core dumps created by the CSS. For information on copying core dumps to an FTP or TFTP server, refer to Copying Core Dumps to an FTP or TFTP Server later in this chapter. The MIB directory contains MIB files that you can load into SNMP-compliant network management software applications
Note
When you view the CSS software directories installed on a network drive, more directories are listed than those you can view on the hard disk or flash disk. These additional directories are reserved for internal use. Do not manipulate the files in these directories.
1-40
78-11424-01
Chapter 1
The software directory also contains the startup-config file. This is an ASCII file containing commands the CSS executes at startup. This file is created when you:
Finish using the configuration script. Issue the copy running-config startup-config or write memory command. These commands also save configuration changes to the startup-config during a CSS session. Use File Transfer Protocol (FTP) to copy a startup-config file to the CSS.
The archive directory contains the files that you archive from the current software by using the archive command. These files include running-config, startup-config, log files, profile scripts, and scripts you create. You can view a list of archived files by using the show archive ? command. To restore any archived files to the CSS, use the restore command. For more information on the archive and restore commands, refer to the Archiving Files to the Archive Directory and Restoring Files from the Archive Directory in this chapter. To view general information about the CSS disk, use the show disk command. Information similar to the following appearsInformation similar to the following appears:
Disk Size: Disk Free: Bad Cluster Count: File Count: Directory Count: 1,842 MB 730 MB 0 8,686 1,061
Total size of the disk in megabytes Available disk space in megabytes Number of bad clusters on the disk Number of files on the disk Number of directories on the disk
1-41
copy running-config startup-config - Copies the running-config to the startup-config. The CSS uses the startup-config upon reboot. If you do not copy the running-config to the startup-config before you reboot, changes to the running-config are lost. write memory - Functions identically to the copy running-config startup-config command. copy startup-config running-config - Copies the startup-config to the running-config and merges with the running-config.
The copy running-config command can also copy the running configuration to an FTP or TFTP server. The options for this command are:
copy running-config ftp ftp_record filename - Copy the running configuration to an FTP server. copy running-config tftp IP address - Copy the running configuration to a TFTP server using the TFTP server IP address. copy running-config tftp hostname - Copy the running configuration to a TFTP server using the TFTP server hostname.
The copy startup-config command can copy the startup configuration to an FTP or TFTP server. The options for this command are:
copy startup-config ftp ftp_record filename - Copy the startup configuration to an FTP server. copy startup-config tftp IP address - Copy the startup configuration to a TFTP server using the TFTP server IP address. copy startup-config tftp hostname - Copy the startup configuration to a TFTP server using the TFTP server hostname.
1-42
78-11424-01
Chapter 1
To reset the startup-config to the default configuration, use the clear startup-config command in SuperUser mode. This command takes effect upon the next reboot. For example:
# clear startup-config
show running-config - Display all components of the running-config. show running-config acl {index number} - Display Arrowpoint Control List (ACL) information of the running-config. For information about a specific ACL, include its index number. show running-config circuit {circuit name} - Display the circuit components of one or all circuits in the running-config. show running-config global - Display the global components of the running-config. show running-config group {group name} - Display the valid existing group components of the running-config. For information about a specific group, enter the group name as a case-sensitive unquoted text string. show running-config header-field-group {name} - Display the valid existing header-field group components of the running-config. For information about a specific group, enter name as a case-sensitive unquoted text string with a maximum length of 16 characters. To see a list of header-field groups, enter: show running-config header-field-group ?.
1-43
show running-config interface interface name - Display a specific interface component of the running-config.
For a CSS 11050 or CSS 11150, enter the interface name in interface-port
format (for example, ethernet-2) interface format as interface_type-port:channel-group.subinterface (for example, serial-1, serial-2:10, serial-1:10.200).
For a CSS 11800, enter the interface name in slot/port format
show running-config interfaces - Display all the interface components of the running-config. show running-config keepalive keepalive name - Display the existing keepalive components of the running configuration. For information about a specific keepalive, enter keepalive_name as a case-sensitive unquoted text string and a maximum length of 32 characters. To see a list of keepalives, enter: show keepalive-summary. show running-config owner {owner name} - Display the valid existing owner components of the running-config. For information about a specific owner, enter the owner name as a case-sensitive unquoted text string. show running-config service {service name} - Display the components of the running-config for a valid existing service. For information about a specific service, enter the service name as a case-sensitive unquoted text string. show running-config urql {urql name} - Display the components of the running-config for existing Uniform Resource Locator Qualifier Lists (URQL). For information about a specific URQL, enter the URQL name as a case-sensitive unquoted text string. show running-config dql {dql name} - Display Domain Qualifier List (DQL) information of the running-config. For information about a specific DQL, enter the DQL name as a case-sensitive unquoted text string. show running-config eql {eql name} - Display Extension Qualifier List (EQL) information of the running-config. For information about a specific EQL, enter the EQL name as a case-sensitive unquoted text string. show running-config nql {name} - Display Network Qualifier List (NQL) information of the running configuration. For information about a specific NQL, enter the NQL name as a case-sensitive unquoted text string.
1-44
78-11424-01
Chapter 1
show running-config rmon-alarm - Display RMON alarm information of the running configuration. show running-config rmon-event - Display RMON event information of the running configuration. show running-config rmon-history - Display RMON history information of the running configuration.
An example of a running-config is shown below. Comments are preceded by an exclamation point (!). Note that the CSS does not display default values in the running- or startup-config even if you enter the values manually.
# show running-config !************************ GLOBAL ********************** ip route 0.0.0.0/0 158.3.7.2 !********************** INTERFACE ********************* interface ethernet-1 bridge vlan 2 interface ethernet-2 bridge vlan 2 !*********************** CIRCUIT ********************** circuit VLAN1 ip address 10.3.6.58 255.255.255.0 circuit VLAN2 ip address 158.3.7.58 255.255.255.0 !*********************** SERVICE ********************** service serv1 ip address 10.3.6.1 active service serv2 ip address 10.3.6.2 active !************************ OWNER *********************** owner arrowpoint.com content rule1 ip address 158.3.7.43 protocol tcp port 80 add service Serv1 add service Serv2 active
1-45
show startup-config - Display the startup-config show startup-config line-numbers - Display the startup-config with line numbers
An example of a startup-config is shown below. Comments are preceded by an exclamation point (!).
# show startup-config line-numbers 1. !Generated MAR 6 18:56:11 2. configure 3. !********************** CIRCUIT ********************** 4. circuit VLAN1 5. ip address 192.168.2.170 255.255.255.0 6. ip address 192.168.1.108 255.255.255.0 7. !********************** SERVICE ********************** 8. service s1 9. ip address 192.168.2.4 10. keepalive type none 11. active 12. !*********************** OWNER *********************** 13. owner rose 14. content rule-L3 15. vip address 192.168.128.108 16. add service s1 17. active 18. content rule-L5 19. add service s1 20. vip address 192.168.128.108 21. url "/*" 22. active
1-46
78-11424-01
Chapter 1
Global - Contains configuration information relating to the CSS (for example, default route IP address) Interface - Contains physical port and VLAN associations Circuit - Contains circuit VLAN IP addresses and subnet masks Keepalive - Contains the global keepalive configuration Service - Contains service names, IP addresses, and all service configuration information EQL - Contains Extension Qualifier List (EQL) configuration Owner - Contains owner name, content rule name, and content rules Group - Contains source group configurations RMON Event - Contains RMON event configurations RMON Alarm - Contains RMON alarm configurations RMON History - Contains RMON history configurations ACL - Contains ArrowPoint Control List (ACL) configurations URQL - Uniform Resource Locator Qualifier List configurations (URQL)
Though the CSS organizes configuration information automatically, the order in which you configure the CSS is important because of interdependencies within CSS functionality. Enter configuration commands for features in the same sequence as they appear in the startup-config.
1-47
Note
You must archive your startup-config and scripts before you upgrade the CSS software or these files will be overwritten during the upgrade. Once the upgrade is complete and the CSS has rebooted, use the restore command to copy these files from the archive directory to be used as current startup-config and scripts. The options for this command are:
archive log - Archive a log file archive running-config - Archive a running configuration archive script - Archive a script file archive startup-config - Archive the startup configuration file
log_filename {archive_filename}
log_filename - The filename of the log to archive. To see a list of log files, enter archive log ?. archive_filename - An optional name you want to assign to the archive file. Enter an unquoted text string with a maximum length of 32 characters.
1-48
78-11424-01
Chapter 1
archive_filename
Archiving Scripts
Use the archive script command to archive a script file. The syntax for this command is:
archive script script_filename {archive_filename}
script_filename - The filename of the script to archive. To see a list of scripts, enter archive script ?. archive_filename - An optional name you want to assign to the archive file. Enter an unquoted text string with a maximum length of 32 characters.
archive_filename
1-49
restore archive_filename log - Restore an archived log file to the log subdirectory restore archive_filename script - Restore an archived script file to the script subdirectory restore archive_filename startup-config - Restore an archived startup-config file to the startup configuration
Note
The archive directory resides on the CSS hard drive. If you booted your CSS from a network-mounted system and your hard drive is not working, archive- and restore-related functions are suspended. For more information on these options and associated variables, refer to the following sections.
archive_filename - The name of the archived log file. Enter an unquoted text string. To see a list of archived files, enter restore ?. log_filename - An optional name you want to assign to the restored log file. Enter an unquoted text string with a maximum length of 32 characters.
The following example restores the log file arrowlog to the log subdirectory and renames it to arrowpointlog.
# restore arrowlog log arrowpointlog
1-50
78-11424-01
Chapter 1
Logging in and Getting Started Restoring Files from the Archive Directory
archive_filename - The name of the archived file. Enter an unquoted text string. To see a list of archived files, enter restore ?. script_filename - An optional name you want to assign to the script file. Enter an unquoted text string with a maximum length of 32 characters.
The following example restores the script arrowscript to the script subdirectory.
# restore arrowscript script
Caution
The restored file overwrites the startup configuration. The syntax is:
restore archive_filename startup-config
The following example restores the archived startup-config arrowstart as the current startup-config.
# restore arrowstart startup-config
1-51
For example:
# copy core dumpfile ftp ftpserv1 starlogthurs
coredump_filename - The name of the core dump on the CSS. Enter an unquoted text string with no spaces and a maximum length of 32 characters. ftp_record - The name of the FTP record file that contains the FTP server IP address, username, and password. Enter an unquoted text string with no spaces and a maximum length of 32 characters. filename - The name you want to assign to the file on the FTP server. Include the full path to the file. Enter an unquoted text string with no spaces and a maximum length of 32 characters.
1-52
78-11424-01
Chapter 1
coredump_filename - The name of the core dump on the CSS. Enter an unquoted text string with no spaces and a maximum length of 32 characters. IP_address or hostname - The IP address or host name of the TFTP server to receive the file. Enter an IP address in dotted-decimal notation (for example, 192.168.11.1) or in mnemonic host-name format (for example, myhost.mydomain.com). If you wish to use a hostname, you must first set up a host table using the (config) host command. filename - The name you want to assign to the file on the TFTP server. Include the full path to the file. Enter an unquoted text string with no spaces and a maximum length of 32 characters.
Note
The CSS does not show configuration default values in the show displays. This applies even when you enter a command to configure a default value. To display the list of show commands, enter:
(config)# show ?
1-53
show chassis - Display a summary of the chassis configuration. show chassis flash - Display the operational and locked flash version for the CSS 11150 and the CSS 11800 System Control Module (SCM) and Switch Fabric Module (SFM). An asterisk (*) character before a flash version and build number indicates it is the active flash. show chassis inventory - Display the physical configuration of the CSS including their part and serial numbers. show chassis slot number - Display the operational parameters for a slot in a 11800 CSS. Enter an integer value. To see a list of slots, enter show chassis slot ?. show chassis verbose - Display detailed information about the chassis configuration.
1-54
78-11424-01
Chapter 1
Note
In the CSS 11050 and the CSS 11150, the Switch Control Module (SCM) and Switch Fabric Module (SFM) are combined on one integrated circuit card called the Switch Control Fabric Module (SCFM). To view the chassis flash, enter:
# show chassis flash Configuration for CS150: Name: CS150 SW Version: 4.0 Build 3 HW Major Version: 18 HW Minor Version: 0 Serial Number:21119901237 Base Mac Address:00-10-58-00-1f-79 Operational *4.00 Build 3 Locked 3.10 Build 1
1-55
12.0SN: 10059800119 12.0SN: 11319801009 12.0SN: 11319801010 12.0SN: 10059800113 1.0SN: 21279903388 14.0SN: 11349801007 1.0SN: 21279903392 12.0SN: 11319801000 12.0SN: 11349801048 12.0SN: 11349801040 12.0SN: 11319801007
CSS 11150. CSS 11800 SCM and SFM modules. The CSS displays system resources for the primary SCM and SFM.
1-56
78-11424-01
Chapter 1
For example:
(config)# show system-resources System Resources: Installed Memory: Free Memory: CPU: 134,217,728 (128 MB) 27,421,152 (26 MB) 27
Buffer Statistics: Buffer Pool: 0 Size: 256 Total: 1000 Available: 1000 Failures: 0 Low Buffer Count:859 Buffer Pool: 1 Size: 2080 Total: 9000 Available: 8344 Failures: 0 Low Buffer Count: 8299
1-57
The * next to an entry in the Line field indicates the line you are currently logged into.
Where to Go Next
Chapter 2, Configuring User Profiles and CSS Parameters provides information on how to configure user profiles and CSS parameters. This chapter also contains information on using the Content API and Command Scheduler features.
1-58
78-11424-01
C H A P T E R
Configuring User Profiles Boot Configuration Mode Commands Configuring Host Name Configuring Idle Timeout Controlling Remote Access to the CSS Restricting Console, FTP, SNMP, Telnet, XML, and Web Management Access to the CSS Configuring Flow Parameters Finding an IP Address Configuring Content API Configuring the Command Scheduler
2-1
CLI prompt Expert mode History buffer Terminal parameters, including idle time, length, more, netmask format, and timeout
Though the settings are user-specific, each default setting applies to all users until the user saves the default-profile to a username-profile (where username is the current login username). You may choose to continue using the default-profile so that all users logging into a CSS use the same settings. Refer to Copying and Saving User Profiles in this chapter for information on saving the default-profile. If you change a user setting and want to save it in the scripts directory of the current .ADI, use a copy profile command. If you do not, the CSS stores the setting temporarily in a running-profile. If you attempt to log out of the CSS without saving profile changes, the CSS prompts you that profile changes have been made and allows you to save or discard the changes. When you upgrade the .ADI, user profiles, which are saved in the current .ADI directory, are deleted. If you wish to save user profiles permanently, use the save_profile command. This command saves the profiles in both the scripts and archive directories in the current .ADI. The archive directory is not overwritten during a software upgrade. To access the CSS IDM, FTP into the CSS. Use the appropriate commands to access the scripts directory and list the contents of the default-profile. When logged into the CSS, use the show profile command to display either the default-profile or your username-profile.
2-2
78-11424-01
Chapter 2
Configuring User Terminal Parameters Using Expert Mode Changing the CLI Prompt Modifying the History Buffer Copying and Saving User Profiles
terminal idle - Set the session idle timer. terminal length - Set the terminal screen output length. terminal more - Enable terminal more support. The default is enabled. terminal netmask-format - Control subnet mask display. terminal timeout - Set the session maximum login time.
2-3
terminal netmask-format bitcount - Displays masks in bitcount (for example, /24). terminal netmask-format decimal - Displays masks in dotted-decimal format (for example, 255.255.255.0). This is the default format.
2-4
78-11424-01
Chapter 2
terminal netmask-format hexadecimal - Displays masks in hexadecimal format (for example, OXFFFFFFOO).
Execute commands that could delete or change operating parameters Exit a terminal session (console or Telnet) without copying the running-config to startup-config Create services, owners, and content rules
Turning expert mode on prevents the CSS from prompting you for confirmation when you make configuration changes. To prevent the CSS from prompting you for confirmation when you make configuration changes, enter:
# expert
2-5
To allow the CSS to prompt you for confirmation when you make configuration changes, enter:
# no expert
For example, when you issue the command to create an owner and expert mode is off, the CSS prompts you to verify the command:
(config)# owner arrowpoint.com Create owner <arrowpoint.com>, [y/n]:y (config-owner[arrowpoint.com])#
To save the new prompt, add it to user or default profiles. To restore the prompt to its default, use the no prompt command.
2-6
78-11424-01
Chapter 2
2-7
copy profile default-profile - Copy the running profile to the default profile copy profile user-profile - Copy the running profile to your user profile copy profile ftp - Copy the running profile to an FTP server copy profile tftp - Copy the running profile to a TFTP server
Note
If you exit the CSS without copying changes in the running profile to your username-profile or default-profile, the CSS prompts you that the profile has changed and queries whether or not you want to save your changes. If you respond with y, the CSS copies the running profile to your username-profile or the default-profile. Refer to the following sections for information on these options.
2-8
78-11424-01
Chapter 2
filename
ftp_record - The name of the FTP record file that contains the server IP address, username, and password. Enter an unquoted text string with no spaces and a maximum length of 32 characters. filename - The name you want to assign to the file on the server. Include the full path to the file. Enter an unquoted text string with no spaces and a maximum length of 32 characters.
For example:
# copy profile ftp arrowrecord \records\arrowftprecord
ip_or_host filename
ip_address or host - The IP address or host name of the server to receive the file. Enter an IP address in dotted-decimal notation (for example, 192.168.11.1) or in mnemonic host-name format (for example, myhost.mydomain.com). filename - The name you want to assign to the file on the server. Include the full path to the file. Enter an unquoted text string with no spaces and a maximum length of 32 characters.
For example:
# copy profile tftp 192.168.3.6 \home\bobo\bobo-profile
2-9
For information about commands available in boot mode, refer to the following sections:
Unpacking an ArrowPoint Distribution Image (ADI) Removing an ArrowPoint Distribution Image (ADI) Specifying the Primary BOOT Configuration Specifying the Secondary Boot Configuration Configuring a Boot Configuration Record for the Passive SCM Showing the BOOT Configuration Booting the CSS from a Network Drive
Note
Before unpacking the .ADI, you must first copy the .ADI to the CSS disk. Use the copy ftp ftp_record filename boot-image command to copy the .ADI to the CSS disk.
2-10
78-11424-01
Chapter 2
Configuring User Profiles and CSS Parameters Boot Configuration Mode Commands
primary boot-file - Specify the primary boot file primary boot-type - Specify the primary boot method, local disk, using FTP, or a network-mounted file system using FTP primary config-path - Specify the path to a network CSS configuration
Refer to the following sections for more information on these options and associated variables.
2-11
primary boot-type boot-via-disk - Allows you to boot the CSS from software currently on the IDM. primary boot-type boot-via-ftp ftp_record - Allows you to download an ADI file containing CSS software that you want to install on the IDM. primary boot-type boot-via-network ftp_record - Allows you to use FTP to boot the CSS from software located on a network drive. The CSS boots independently from the IDM and loads the configuration into memory. The FTP server must be running on an NT operating system.
Enter the ftp_record as the name of the FTP record file that contains the FTP server IP address, username, and password. Enter an unquoted text string with no spaces and a maximum length of 32 characters. For example, to configure the primary boot-type to boot-via-disk, enter:
(config-boot)# primary boot-type boot-via-disk
Note
2-12
78-11424-01
Chapter 2
Configuring User Profiles and CSS Parameters Boot Configuration Mode Commands
When using an alternate configuration path, make sure that the path leads to a directory containing the script, log, and info subdirectories and the startup-config file. These subdirectories must contain the files in the corresponding subdirectories of the unzipped boot image. First, create these subdirectories, then copy the files from the boot image to the subdirectories. Enter the configuration pathname as an unquoted text string with no spaces and a maximum length of 64 characters. For example, to configure the primary config path, enter:
(config-boot)# primary config-path f:/bootdir/
secondary boot-file - Specify the secondary boot file secondary boot-type - Specify the boot method, local disk or FTP secondary config-path - Specify the path to a network configuration using FTP
For more information on these options and associated variables, refer to the following sections.
2-13
secondary boot-type boot-via-disk - Boot the system from local disk. secondary boot-type boot-via-ftp ftp_record - Boot the system via FTP. secondary boot-type boot-via-network ftp_record - Boot the system from a network-mounted file system using FTP. The CSS boots independently from its hard drive and loads the configuration into memory. The FTP server must be running on an NT operating system.
Note
2-14
78-11424-01
Chapter 2
Configuring User Profiles and CSS Parameters Boot Configuration Mode Commands
When using an alternate configuration path, make sure that the path leads to a directory containing the script, log, and info subdirectories and the startup-config file. These subdirectories must contain the files in the corresponding subdirectories of the unzipped boot image. First, create these subdirectories, then copy the files from the boot image to the subdirectories. Enter the configuration pathname as an unquoted text string with no spaces and a maximum length of 64 characters. For example, to configure the secondary config path, enter:
(config-boot)# secondary config-path f:/bootdir/
2-15
Note
The passive command and its options only effect the current passive SCM. When you configure the passive SCM, the set values are loaded into its nonvolatile RAM. If the passive SCM transitions to the active state, it continues to retain these values but is no longer affected by these commands; boot commands are not saved in the running-config. The options for this boot mode command are:
passive ip address - Configure the system boot IP address for the passive SCM. passive primary boot-file - Specify the primary boot file for the passive SCM. passive primary boot-type - Specify the primary boot method, local disk, FTP, or network-mounted file system using FTP, for the passive SCM. passive primary config-path - Specify the primary alternate path to a network CSS configuration for the passive SCM. passive secondary boot-file - Specify the secondary boot file for the passive SCM. passive secondary boot-type - Specify the secondary boot method, local disk, FTP, or network-mounted file system via FTP, for the passive SCM. passive secondary config-path - Specify the secondary alternate path to a network CSS configuration for the passive SCM. passive subnet mask - Configure the system boot subnet mask for the passive SCM. passive sync - Copy the boot configuration record from the active SCM to the passive SCM.
For more information on these options and associated variables, refer to the following sections.
2-16
78-11424-01
Chapter 2
Configuring User Profiles and CSS Parameters Boot Configuration Mode Commands
To change the passive SCM boot IP address, reissue the passive ip address command.
To remove the primary boot file from the passive SCM, enter:
(config-boot)# no passive primary boot-file
passive primary boot-type boot-via-disk - Boot the system from local disk. passive primary boot-type boot-via-ftp ftp_record - Boot the system via FTP. passive primary boot-type boot-via-network ftp_record - Boot the system from a network-mounted file system via FTP. The CSS boots independently from its hard drive and loads the configuration into memory. The FTP server must be running on an NT operating system.
2-17
Enter the ftp_record as the name of the FTP record file that contains the FTP server IP address, username, and password. Enter an unquoted text string with no spaces and a maximum length of 32 characters. For example:
(config-boot)# passive primary boot-type boot-via-ftp arecord
To remove the primary boot type from the passive SCM, enter:
(config-boot)# no passive primary boot-type
Note
The FTP server must be running on an NT operating system. When using an alternate configuration path, make sure that the path leads to a directory containing the script, log and info subdirectories, and the startup-config file. These subdirectories must contain the files in the corresponding subdirectories in the unZipped boot image. First, create these subdirectories. Then copy the files from the boot image to the subdirectories. Enter the configuration path for network configuration. Enter an unquoted text string with no spaces and a maximum length of 64 characters. For example:
(config-boot)# passive primary config-path c:/bootdir/
2-18
78-11424-01
Chapter 2
Configuring User Profiles and CSS Parameters Boot Configuration Mode Commands
To remove the secondary boot file from the passive SCM, enter:
(config-boot)# no passive secondary boot-file
passive secondary boot-type boot-via-disk - Boot the system from local disk. passive secondary boot-type boot-via-ftp ftp_record - Boot the system via FTP. passive secondary boot-type boot-via-network ftp_record - Boot the system from a network-mounted file system via FTP. The CSS boots independently from its hard drive and loads the configuration into memory. The FTP server must be running on an NT operating system.
Enter the ftp_record as the name of the FTP record file that contains the FTP server IP address, username, and password. Enter an unquoted text string with no spaces and a maximum length of 32 characters. For example:
(config-boot)# passive secondary boot-type boot-via-disk
To remove the secondary boot type from the passive SCM, enter:
(config-boot)# no passive secondary boot-type
2-19
Note
The FTP server must be running on an NT operating system. When using an alternate configuration path, make sure that the path leads to a directory containing the script, log and info subdirectories and the startup-config file. These subdirectories must contain the files in the corresponding subdirectories of the unzipped boot image. First, create these subdirectories. Then copy the files from the boot image to the subdirectories. Enter the configuration path as an unquoted text string with no spaces and a maximum length of 64 characters. For example:
(config-boot)# passive secondary config-path c:/bootdir/
2-20
78-11424-01
Chapter 2
Configuring User Profiles and CSS Parameters Boot Configuration Mode Commands
Copying the Boot Configuration Record from the Active SCM to the Passive SCM
Use the passive sync command to copy the primary and secondary boot configuration record from the nonvolatile RAM (NVRAM) of the active SCM to its passive SCM backup. This command is available in boot mode. For example:
(config-boot)# passive sync
Note
Note
2-21
You want multiple CSSs to use the same boot image while keeping their own configuration information. Provide an alternate path for the location of the configuration information. This information must exist on the same network file system as the boot image.
Note
When using an alternate configuration path, make sure that the path leads to a directory containing the script, log and info subdirectories. These subdirectories must contain the files in the corresponding subdirectories in the boot image. Create these subdirectories, then copy the files from the boot image.
The CSS has a hard drive failure. A network boot allows the CSS to boot independently from its hard drive and to load the configuration into memory.
Ensure the SCM management port has access to the network drive from which you are booting the CSS. The SCM will mount the drive, and read and write to it. FTP the software .zip file to the network drive base directory specified in the FTP record. This must be the same directory from which you are booting the CSS. Unzip the file. You must use the .zip distribution format for network loading.
2.
3.
2-22
78-11424-01
Chapter 2
Configuring User Profiles and CSS Parameters Boot Configuration Mode Commands
4.
Configure the FTP record (refer to the section entitled Configuring an FTP Record in Chapter 1). Note that the config-path and the base directory path in the ftp-record associated with the network boot must not contain a pathname that collides with a non-network driver name (for example, c: or host:). For example:
# ftp-record bootrecord 192.168.19.21 bobo encrypted-password "secret" e:/adi_directory/
6.
Optionally, configure a primary configuration path to allow multiple CSSs to use the same boot image while keeping their configuration information in separate directories. The CSS must be able to access the configuration path through the FTP server as defined in the FTP record. For example:
(config-boot)# primary config-path e:/adi_directory/
Configure an FTP record for the passive SCM, if not already configured. Refer to Configuring a Boot Configuration Record for the Passive SCM in this chapter. Ensure the passive SCM management port has access to the network drive from which you are booting the CSS. If the primary SCM fails, the passive SCM will connect to the remote disk and load the software configuration. Configure the CSS to boot from a network drive. For example:
(config-boot)# passive primary boot-type boot-via-network bootrecord
2.
3.
To display a list of configured ftp records, re-enter the command and use a ?. For example:
(config-boot)# passive primary boot-type boot-via-network bootrecord ?
2-23
4.
Optionally, configure a primary configuration path to allow multiple CSSs to use the same boot image while keeping their configuration information in separate directories. Your FTP daemon must support the drive mapping. Also, the CSS must be able to access the configuration path through the FTP server as defined in the FTP record. For example:
(config-boot)# primary config-path e:/adi_directory/
ap0400003 (4.00 Build 03) Version: Network Path: e:/adi_directory/ Config Path: e:/adi_directory/ Flash (Locked): 3.10 Build 10 Flash (Operational):4.00 Build 2 Type: PRIMARY Standard Feature Set License Cmd Set: Enhanced Feature Set SSH Server
You can also use the show boot-config command to display network boot configuration information. For example:
(config)# show boot-config !*********************** BOOT CONFIG *********************** secondary config-path e:/adi_directory/ secondary boot-type boot-via-network Secondary-Boot ap0400003 primary boot-file primary boot-type boot-via-network subnet mask 255.0.0.0 ip address 192.168.4.226
2-24
78-11424-01
Chapter 2
host_name - The name of the host. Enter an unquoted text string with no spaces and a length of 1 to 16 characters. ip_address - The address associated with the host name. Enter the IP address in dotted-decimal notation (for example, 192.168.11.1).
For example:
(config)# host CS150-LML 192.168.3.6
Note
To add a host to the Host table, the host name must not already exist. To change a current host address, remove it and then add it again. To remove an existing host from the Host table, enter:
(config)# no host CS150-LML
Note
To override the idle timeout value for a specific session, configure the terminal timeout command. Terminal commands are user-specific; that is, they apply uniquely for each CSS user.
2-25
It is recommended that you configure the idle timeout to at least 30 minutes. Setting this value to 30 minutes:
Cleans up idle Telnet sessions Helps prevent busy conditions due to a high number of active Telnet sessions
To revert the terminal timeout value to its default of enabled for 5 minutes, enter:
(config)# no idle timeout
virtual authentication - Requires users to enter a login name and password to log into the CSS (default). no virtual authentication - Does not require users to enter a login name and password to log into the CSS. virtual authentication disallowed - Does not allow any additional users to log into the CSS. This command does not terminate existing connections. To terminate all existing connections, use the admin-shutdown command. console authentication - Requires users to enter a login name and password to log into the CSS console port (default). no console authentication - Does not require users to enter a login name and password to log into the CSS console port.
2-26
78-11424-01
Chapter 2
Configuring User Profiles and CSS Parameters Restricting Console, FTP, SNMP, Telnet, XML, and Web Management Access to the CSS
2.
Prevent users from establishing new connections to the CSS by using the virtual authentication disallowed command.
(config)# virtual authentication disallowed
Restricting Console, FTP, SNMP, Telnet, XML, and Web Management Access to the CSS
Use the restrict command to enable or disable console, FTP, SNMP, Telnet, XML, and Web management access to the CSS. Access through a console, FTP, SNMP, and Telnet is enabled by default.
Note
Disable Telnet access when you want to use the Secure Shell Host (SSH) server. For information on configuring SSHD, refer to Configuring Secure Shell Daemon in Chapter 3. The syntax and options for this global configuration mode command are:
restrict console - Disable console access to the CSS restrict ftp - Disable FTP access to the CSS restrict snmp - Disable SNMP access to the CSS restrict telnet - Disable Telnet access to the CSS restrict XML - Disable XML access to the CSS restrict web-mgmt - Disable Web management access to the CSS
2-27
no restrict console - Enable console access to the CSS no restrict ftp - Enable FTP access to the CSS no restrict snmp - Enable SNMP access to the CSS no restrict telnet - Enable Telnet access to the CSS no restrict xml - Enable XML access to the CSS no restrict web-mgmt - Enable Web management access to the CSS
For example:
(config)# restrict telnet
Finding an IP Address
Use the find ip address command to search the CSS configuration for the specified IP address. You can include a netmask for subnet (wildcard) searches. This search can help you avoid IP address conflicts when you configure the CSS. When you use this command, it checks services, source groups, content rules, ACLs, the management port, syslog, APP sessions, and local interfaces for the specified IP address. If the address is found, the locations of its use are displayed. If no addresses are found, the CSS returns you to the command prompt. This command is available in all modes. The syntax is:
find ip address ip_or_host {subnet_mask|range number}
Enter the:
IP address in dotted-decimal notation (for example, 192.168.11.1) or enter the host name in mnemonic host-name format (for example, host.domain.com). Optional subnet mask as either:
A prefix length in CIDR bitcount notation (for example, /24). Do not
2-28
78-11424-01
Chapter 2
range number to define how many IP addresses you want to find, starting with the ip_or_host address. Enter a number from 1 to 65535. The default range is 1. For example, if you enter an IP address of 203.1.1.1 with a range of 10, the CSS tries to find the addresses from 203.1.1.1 through 203.1.1.10.
For example:
(config)# find ip address 192.168.0.0 Users of IP address 192.168.0.0 Content Rule - 192.168.12.1, layer 3, owner: lml, state:Active Content Rule - 192.168.12.1, layer 5, owner: lml, state:Active Service - 192.168.3.6, serv1, state:Active Service - 192.168.3.7, serv3, state:Active Interface - 192.168.1.117. VLAN1 Interface - 192.168.2.117. VLAN1
flow permanent - Permanent TCP ports that are not reclaimed flow port-reset - Resets Fast Ethernet and Gigabit Ethernet ports automatically when the CSS detects that they are not responding flow reserve-clean - Interval flows with port numbers less than or equal to 23 are reclaimed
2-29
flow permanent port1 portnumber flow permanent port2 portnumber flow permanent port3 portnumber flow permanent port4 portnumber
To reset a permanent connection to its default port number of 0, use the no flow permanent command. For example, to reset the port number for port1 to 0, enter:
(config) no flow permanent port1
Caution
Do not disable port-resets without guidance from Cisco support personnel. For example, enter:
(config)# flow port-reset
2-30
78-11424-01
Chapter 2
Enter the flow reserve-clean time in seconds as the interval the CSS uses to scan flows. Enter an integer from 0 to 100. The default is 10. To disable the flow reclaiming process, enter a flow reserve-clean value of 0. For example:
(config)# flow reserve-clean 36
2-31
UDP Flows per second TCP Flows per second Total Flows per second Hits per second
------------------------------------------------------------Port Active Total TCP UDP ------------------------------------------------------------1 13 43339169 13 0 2 16 43337519 16 0 5 18 3167362 18 0 6 9 33483528 9 0
Note
The CSS listens for XML connections on port 80. To use Content API to issue CLI commands, enclose the CLI commands within the <action></action> tag set. For example:
<action>add service MyServiceName</action> <action>vip address 10.2.3.4</action>
2-32
78-11424-01
Chapter 2
Configuring User Profiles and CSS Parameters Configuring the Command Scheduler
no restrict xml - Enable XML access to the CSS restrict xml - Disable XML access to the CSS
Note
To terminate the execution of a command string, use the disconnect command. The syntax and options for this global configuration mode command are:
cmd-sched - Enables command scheduling cmd-sched record name minute hour day month weekday commands... {logfile_name} - Creates a configuration record
2-33
The variables are listed below. When entering minute, hour, day, month, and weekday variables, you may enter a single integer, a wildcard (*), a list separated by commas, or a range separated by a dash (-).
name - The name of the configuration record. Enter an unquoted text string up to 16 characters. minutes - The minute of the hour to execute this command. Valid numbers are from 0 to 59. hour - The hour of the day. Valid numbers are from 0 to 23. day - The day of the month. Valid numbers are from 0 to 31. month - The month of the year. Valid numbers are from 1 to 12. weekday - The day of the week. Valid numbers are from 1 to 7. Sunday is 1. command - The commands you want to execute. Enter a quoted text string up to 255 characters. Separate multiple commands with a semicolon (;) character. If the command string includes quoted characters, use a single quote character; any single quoted characters not preceded by a backslash (\) character is converted to double quotes when the command string is executed. logfile_name, as an optional variable that defines the name of the log file. Enter a text string up to 32 characters.
Any of the time variables can contain one or some combination of the following values:
A single number to define a single or exact value for the specified time variable A wildcard (*) character matching any valid number for the specified time variable A list of numbers separated by commas, up to 40 characters, to define multiple values for a time variable Two numbers separated by a dash (-) character indicating a range of values for a time variable
For example:
(config)# cmd-sched record periodic_shows 30 21 3 6 1 "show history;show service;show rule;show system-resources"
2-34
78-11424-01
Chapter 2
Configuring User Profiles and CSS Parameters Configuring the Command Scheduler
show cmd-sched - Lists the state of the command scheduler and all scheduled CLI command records show cmd-sched name record_name - Lists information about the specified scheduled CLI command record
For example, to view the command scheduler state and all scheduled CLI command records, enter:
(config)# show cmd-sched Cmd Scheduler: Enabled1 record currently configured. Sched Rec: suspendRule id: 8265b980 Next exec: APR 14 10:46:00 executions:1145 minList: 0 hourList: 12 dayList: * monthList: * weekdayList: 2,3,4,5,6 cmd: config;owner owner1;content content1;suspend
Where to Go Next
Chapter 3, Configuring CSS Network Protocols describes how to configure the CSS DNS, ARP, RIP, IP, routing, bridging, SSH, and opportunistic Layer 3 forwarding.
2-35
2-36
78-11424-01
C H A P T E R
Configuring Domain Name Service Configuring Address Resolution Protocol Configuring Routing Information Protocol Configuring Internet Protocol Configuring an IP Route Configuring IP Source-Route Disabling an Implicit Service for Static Route Next Hop Configuring IP Subnet-Broadcast Showing IP Information Configuring Bridging for the CSS Configuring Secure Shell Daemon Configuring Opportunistic Layer 3 Forwarding
3-1
dns primary - Specifies the primary DNS server dns resolve - Queries DNS to resolve a hostname dns secondary - Specifies the secondary DNS server dns suffix - Specifies the default suffix to use when querying DNS
3-2
78-11424-01
Chapter 3
Note
You can specify a maximum of two secondary servers. To specify each additional server, repeat the dns secondary command. The order in which you enter the IP addresses is the order in which they are used. To remove a secondary DNS server, enter the no version of the command followed by the IP address of the DNS server you wish to remove. For example:
(config)# no dns secondary 192.158.3.6
3-3
Configuring ARP Configuring ARP Timeout Configuring ARP Wait Updating ARP Parameters Clearing ARP Parameters Showing ARP Information
Configuring ARP
To define a static ARP mapping, use the arp command. The syntax for this global configuration mode command is:
ip_address - The address of the system for static mapping. Enter an IP address in dotted-decimal notation (for example, 192.168.11.1) or in mnemonic host-name format (for example, myhost.mydomain.com). hostname - The address of the system for static mapping. Enter a hostname in mnemonic host-name format (for example, myhost.mydomain.com). You must configure DNS and the hostname must be resolved to an IP address for hostname to work. mac_address - The MAC address of the system for static mapping. Enter the MAC address in hyphenated-hexadecimal notation (for example, 00-60-97-d5-26-ab).
3-4
78-11424-01
Chapter 3
interface - The CSS interface that you want to configure. For a CSS 11050 or CSS 11150, enter the interface name in interface-port format (for example, ethernet-2). For a CSS 11800, the interface format is slot/port (for example, 3/1).
Note
To show static ARP mapping when you use the show arp command, the IP route must exist in the routing table. For example:
(config)# arp 192.168.11.1 00-60-97-d5-26-ab ethernet-2
To remove a static mapping address, use the no form of the arp command. For example:
(config)# no arp 192.168.11.1
3-5
To delete dynamic entries from the ARP cache, use the clear arp cache command with an IP address or hostname. The syntax for this command is:
clear arp cache - Clear the entire ARP cache clear arp cache ip_address - Clear a single ARP IP address entry clear arp cache hostname - Clear a single ARP hostname entry
For example:
# clear arp cache
3-6
78-11424-01
Chapter 3
show arp - Display the complete ARP resolution table with IP addresses, MAC addresses, and resolution type. show arp config - Display ARP global configuration parameters. The screen displays the response timeout and the flush timeout in seconds. show arp file - Display the hosts reachable using ARP. The screen displays the IP addresses of the host systems. show arp ip_address - Display the resolution for the IP address. show arp hostname - Display the resolution for the hostname.
For example:
(config)# show arp ARP Resolution Table: IP Address 192.168.10.1 192.168.10.10 192.168.10.21 192.168.10.29 192.168.10.31 192.168.10.52 192.168.10.75 192.168.10.251 MAC Address 00-10-58-FF-FB-6E 00-10-58-00-13-42 00-60-08-8F-96-8C 00-10-4B-2C-FF-6B 00-10-4B-2C-FF-16 08-00-1B-3E-02-68 00-A0-C9-C8-75-CC 00-10-58-00-11-56 Type dynamic dynamic dynamic dynamic dynamic dynamic dynamic dynamic Port ethernet-11 ethernet-11 ethernet-10 ethernet-12 ethernet-11 ethernet-9 ethernet-11 ethernet-11
3-7
rip advertise - Advertise a route through RIP on the CSS rip redistribute - Advertise routes from other protocols through RIP rip equal-cost - Specify how many equal-cost routes RIP can insert into the routing table
By default, RIP advertises RIP routes and local routes for interfaces running RIP. The rip command advertises other routes.
ip_address - The IP address for the route prefix. Enter an IP address in dotted-decimal notation (for example, 192.168.1.0). subnet_mask - The IP prefix length in CIDR bitcount notation (for example, /24) or in dot-decimal notation (for example, 255.255.255.0). metric - The optional metric to use when advertising this route. Enter a number from 1 to 15. The default is 1.
For example:
(config)# rip advertise 192.168.1.0/24 9
Note
The network does not have to be present in the routing table to be advertised. The rip advertise command is intended for advertising Virtual IP addresses (VIPs). To stop advertising a route through RIP on the CSS, enter:
(config)# no rip advertise 192.168.1.0/24
3-8
78-11424-01
Chapter 3
rip redistribute firewall metric - Advertise firewall routes through RIP rip redistribute local metric - Advertise local routes (interfaces not running rip) rip redistribute static metric - Advertise static routes rip redistribute ospf metric - Advertise OSPF routes
You can also enter an optional metric, which is the metric the CSS uses when advertising this route. Enter a number from 1 to 15. The default is 1. For example:
(config)# rip redistribute static 3
To stop advertising routes from other protocols through RIP, use either the local, static, or firewall option. The following command stops advertising static routes:
(config)# (config)# (config)# (config)# no no no no rip rip rip rip redistribute redistribute redistribute redistribute firewall local static ospf
3-9
show rip - Displays RIP configurations for all interfaces show rip ip_address - Displays a single RIP interface entry show rip globals - Displays RIP global statistics show rip statistics - Displays RIP interface statistics for all interfaces show rip statistics ip_address - Displays RIP interface statistics for a specific interface
The show rip globals command displays the following type of information:
(config)# show rip globals RIP Global Statistics: RIP Route Changes: 3
The show rip statistics command displays the following type of information:
(config)# show rip statistics RIP Interface Statistics: System Route Changes: IP Address: Bad Packets Received: IP Address: Bad Packets Received: IP Address: Bad Packets Received: 3 192.0.3.20 0 192.0.3.24 0 192.3.1.21 0 System Global Query Rspns: 0 Triggered Updates Sent: 3 Bad Routes Received: 0 Triggered Updates Sent: 3 Bad Routes Received: 0 Triggered Updates Sent: 3 Bad Routes Received: 0
3-10
78-11424-01
Chapter 3
ip record-route - Enable processing of frames with a record-route option ip redundancy - Enable CSS-to-CSS redundancy ip ecmp - Set the equal-cost multipath selection algorithm
Configuring IP Record-Route
To enable the CSS to process frames with a record-route option, use the ip record-route command. The syntax is:
(config)# ip record-route
Caution
Enabling ip record-route could pose security risks to your network. Record-route inserts the IP address of each router along a path into the IP header. To disable processing frames with a record-route option (the default behavior), enter:
(config)# no ip record-route
Configuring IP Redundancy
To enable CSS-to-CSS redundancy, use the ip redundancy command. The syntax is:
(config)# ip redundancy
For information on configuring redundancy, refer to the Content Services Switch Advanced Configuration Guide.
3-11
Configuring IP ECMP
Use the ip ecmp command to set the equal-cost multipath selection algorithm and the preferred reverse egress path. The syntax and options for this global configuration mode command are:
ip ecmp address - Choose among alternate paths based on IP addresses. For example:
(config)# ip ecmp address
ip ecmp no-prefer-ingress - Do not prefer the ingress path of a flow for its reverse egress path. By default, the ingress path for a flow is its preferred egress path. For example:
(config)# ip ecmp no-prefer-ingress
To reset the ingress path of a flow for its preferred reverse egress path, enter:
(config)# no ip ecmp no-prefer-ingress
ip ecmp roundrobin - Alternate between equal paths in roundrobin fashion. For example:
(config)# ip ecmp roundrobin
Note
The equal-cost multipath selection algorithm for non-TCP/UDP packets (for example, ICMP) is applied on a packet-by-packet basis. Multipath selection for TCP and UDP is performed on a per-flow basis and all packets for a particular flow take the same path. ECMP cannot recover a failed router unless you configure a content rule for a router service.
3-12
78-11424-01
Chapter 3
Configuring an IP Route
When you configure an IP route, the CSS polls the router periodically to ensure that the router is functioning. If the router fails, the CSS removes any entries from the routing table that point to the failed router and stops sending traffic to the failed router. When the router recovers, the CSS:
Becomes aware of the router Re-enters applicable routes into routing table
To configure an IP route, use the ip route command. Each ip route command requires either an:
The ip route options are defined below. Note that the examples use the /subnet mask prefix option.
ip route IP address subnet mask blackhole - Instructs the CSS to drop any packets addressed to the route. For example:
(config)# ip route 192.168.1.0/24 blackhole
ip route IP address subnet mask IP address2 - Specify the next hop address for the route. For example:
(config)# ip route 0.0.0.0/0 10.0.1.1
ip route IP address subnet mask IP address2 distance - Specify the administrative distance. Enter an integer from 1 to 254. Note that the larger the administrative distance value (more hops), the less the route is preferred. For example:
(config)# ip route 0.0.0.0/0 10.0.1.1 40
ip route IP address subnet mask firewall index distance - Configure a firewall route. The firewall option instructs the CSS to use firewall load balancing for this route. You can optionally set the administrative distance. For example:
(config)# ip route 192.168.1.0/24 firewall 3 2
3-13
ip route IP address subnet mask IP address originated-packets - Specifies that the route is used only by packets that are created using flows or sessions going to and from the CSS (for example, a Telnet session to the CSS). The route is not used by flows or sessions that go through the CSS (for example, between an attached server and a remote client). The optional originated-packets keyword instructs the CSS to use this route for flow and session packets going to and from the CSS (for example, a Telnet session to the CSS). Flows or session packets that go through the CSS (for example, between an attached server and a remote client) do not use this route. For example:
(config)# ip route 0.0.0.0/0 10.0.1.1 originated-packets
Note
Ping responses and SNMP responses do not use the originated-response route. Ping requests sent from the CSS use the originated-response route. Ping responses sent from the CSS do not use the originated-response route. The variables are:
ip_address - The destination network address. Enter the IP address in dotted-decimal notation (for example, 192.168.11.1). subnet_mask - The IP subnet mask. Enter the mask in either:
CIDR bitcount notation (for example, /24). Do not enter a space to
ip_address2 - The next hop address for the route. Enter the IP address in dotted-decimal notation (for example, 192.168.11.1). distance - The optional administrative distance. Enter an integer from 1 to 254. A smaller number is preferable. The default value is 1. index - An existing index number for the firewall route. For information on configuring a firewall index, refer to the ip firewall command.
3-14
78-11424-01
Chapter 3
Configuring IP Source-Route
To enable processing of source-routed frames, use the ip source-route command. For example:
(config)# ip source-route
Caution
Enabling ip source-route could pose a major security risk to your network. Source-route specifies information that overrides the default routing a packet would normally take. The packet could then bypass a firewall. To disable processing of source-routed frames (the default behavior), enter:
(config)# no ip source-route
3-15
Configuring IP Subnet-Broadcast
To enable the CSS to forward subnet broadcast addressed frames, use the ip subnet-broadcast command. For example:
(config)# ip subnet-broadcast
To disable forwarding of subnet broadcast addressed frames (the default behavior), enter:
(config)# no ip subnet-broadcast
Caution
Enabling the forwarding of the subnet broadcast can make the subnet susceptible to smurf attacks; an attacker sends an ICMP echo request frame using a subnet broadcast address as a destination and a forged address as the source.
Caution
If the attack is successful, all the destination subnet hosts reply to the echo and flood the path back to the source. By disabling the subnet broadcast forwarding, the original echo never reaches the hosts.
3-16
78-11424-01
Chapter 3
Showing IP Information
Use the show ip command to display Internet Protocol (IP) information for the CSS. Refer to the following sections to display CSS IP information.
Showing IP Config - Display IP global configuration parameters Showing IP Interfaces - Display configured IP interfaces Showing IP Routes - Display IP routing information Showing IP Statistics - Display aggregate UDP and TCP statistics for the unit Showing IP Summary - Display a summary of IP global statistics
Showing IP Config
Use the show ip config command to display IP global configuration parameters. The parameters shows the state (enabled or disabled) of the source route option, forward IP broadcasts, record route option, and IP route change logging. It also shows the value for the orphaned route timer. For example:
(config)# show ip config IP Global Configuration: disable disable 180 disable address disable
Source Route Option: Forward IP Broadcasts: Orphaned Route Timer (in seconds): Record Route Option: Multiple Equal Cost Path Algorithm: IP Route Change Logging:
Showing IP Interfaces
Use the show ip interfaces command to display configured IP interfaces on the CSS. The display includes the circuit state, IP address, broadcast address, Internet Control Message Protocol (ICMP) settings, and Router Discovery Program (RDP) settings.
3-17
For example:
(config)# show ip interfaces IP Interface Summary: Circuit Name: IP Address: Broadcast Address: ICMP Redirect: RIP: VLAN2 172.16.1.200 172.16.255.255 enabled enabled State: Network Mask: Redundancy: ICMP Unreachable: active 255.255.0.0 disabled enabled
Showing IP Routes
Use the show ip routes command to display IP routing information. The syntax and options for this command are:
show ip routes - Display the entire routing table, including host IP address, next hop, interface, route type, protocol, age (in seconds), and metric show ip routes firewall - Display all firewall routes show ip routes local - Display all local routes show ip routes ospf - Display all OSPF routes show ip routes rip - Display all RIP routes show ip routes static - Display all static routes show ip routes ip_address or host {to ip_address or host|mask or prefix} Display information about a route to a destination, a specific route, or routes in a range
ip_address or host - The IP address of the host or network prefix. Enter an IP address in dotted-decimal notation (for example, 192.168.11.1). The IP address after the keyword is the last IP address in a range. mask or prefix - Subnet address of the specific network. Enter the subnet address in mask or prefix notation (for example, /24).
3-18
78-11424-01
Chapter 3
3-19
Showing IP Statistics
Use the show ip statistics command to display aggregate TCP statistics for the unit. For example:
(config)# show ip statistics UDP Statistics: Input Datagrams: No Port Errors: TCP Statistics: Retransmit Algorithm: Max Retransmit Time: Active Opens: Failed Attempts: Established Conns: Output Segments: Input Errors: ICMP Statistics: Echo Requests In: VIP Echo Requests: Unreachable: Redirect: Router Solicit: Param Problem: Timestamp Reply: Information Reply: Mask Reply: ARP Statistics: Requests In: Requests Out: Duplicate Addr: Invalid: 43 2 0 0 Replies In: Replies Out: In Off Subnet: Unresolved: 17 641 0 0 0 0 0 0 0 0 0 0 0 Echo Replies In: VIP Echo Replies: Source Quench: Router Adv: Time Exceeded: Timestamp: Information Request: Mask Request: Invalid: 19,502 0 0 0 0 0 0 0 other 15,000 29,166,294 19,005,678 58 291,780,784 0 Min Retransmit Time: Max TCP Connections: Passive Opens: Resets: Input Segments: Retransmit Segments: Output Resets: 500 65,536 29,228,773 7,917 340,097,331 0 6,521 11,077,859 Output Datagrams: 11,077,859 0 Input Errors: 0
3-20
78-11424-01
Chapter 3
Showing IP Summary
Use the show ip summary command to display a summary of IP global statistics. The statistics include data on reachable and total routes, reachable and total hosts, memory in use for each, and total IP routing memory in use. To show a summary of global CSS IP statistics, enter:
# show ip summary IP Route Summary: 10 10 23 23 Memory Memory Memory Memory in in in in use use use use (reachable routes): (total routes): (reachable hosts): (total hosts): 1040 1040 2392 2392
bridge aging-time - Set the bridge filtering database aging time bridge forward-time - Set the bridge forward delay time bridge hello-time - Set the bridge hello time interval bridge max-age - Set the bridge spanning-tree maximum age bridge priority - Set the bridge spanning-tree priority bridge spanning-tree - Enable or disable the bridge spanning-tree
3-21
Note
Make sure that bridge maximum age is less than or equal to 2 x (bridge forward-time - 1 second) and greater than or equal to 2 x (bridge hello-time + 1 second). For example, to set the bridge forward time to 9, enter:
(config)# bridge forward-time 9
3-22
78-11424-01
Chapter 3
Note
Make sure that bridge maximum age is greater than or equal to 2 x (bridge hello-time + 1 second) and less than or equal to 2 x (bridge forward-time - 1 second). For example, to set the bridge maximum age to 21, enter:
(config)# bridge max-age 21
3-23
Caution
Disabling spanning-tree may make your network susceptible to packet storms. To re-enable bridge spanning-tree, enter:
(config)# bridge spanning-tree enable
3-24
78-11424-01
Chapter 3
To display bridge status information, use the show bridge status command. For example:
(config)# show bridge status STP State: Designated Root: Bridge ID: Root Max Age: Root Hello Time: Root Fwd Delay: Enabled 80-00-00-00-81-0b-d2-ef 80-00-00-10-58-00-04-e0 20 2 15 Root Port Designated Bridge/ Cost Cost Designated Root 20 10 20 10 10 10 80-00-00-10-58-00-04-e0 80-00-00-00-81-0b-d2-ef 80-00-00-10-58-ff-fb-6e 80-00-00-00-81-0b-d2-ef 80-00-00-10-58-00-04-e 80-00-00-00-81-0b-d2-ef Desg Port 800a 8008 0800c
VLAN 1 1 1
Note
This feature requires an SSHD Server License, which enables SSHD functionality on both the Standard and Enhanced versions of CSS software.
3-25
Attacks from machines pretending to be another server, router, or a domain name server IP spoofing, where a remote host sends out packets that pretend to come from another trusted host IP source routing, where a host can pretend that an IP packet comes from another trusted host DNS spoofing, where an attacker forges name server records Interception of clear text passwords or data on the network Manipulation of data by people in control of intermediate hosts
Note
To enhance security when using SSHD, disable Telnet access. To disable Telnet access, use the telnet-access disable command as described later in this chapter. Telnet access is enabled by default. The CSS provides the following SSHD commands:
sshd keepalive - Enable SSHD keepalive sshd port - Set the SSHD port sshd server-keybits - Set the number of bits in the server key
For more information on these options and associated variables, refer to the following sections:
Configuring SSHD Keepalive Configuring SSHD Port Configuring SSHD Server-Keybits Disabling and Enabling Telnet Access when using SSHD
3-26
78-11424-01
Chapter 3
3-27
Keepalive Setting: No. of Server Key Bits: Listen Port No.: Telnet Disallowed:
3-28
78-11424-01
Chapter 3
end station B, it uses its default route to Router1. The packet contains Router1s destination MAC address. A traditional layer 2 device would forward the packet to Router1 and it would forward the packet to end station B on VLAN2. Using opportunistic Layer 3 forwarding, the CSS inspects the IP packet header to determine the destination IP address. Instead of forwarding the packet to Router1, the CSS forwards the packet directly to end station B. Because the CSS only handles the packet once, the router and uplink are not used and network resources are conserved.
Figure 3-1 Opportunistic Layer 3 Forwarding Example
Internet
local (default) - Apply opportunistic Layer 3 forwarding if the destination IP address belongs to a node that resides on one of the subnets directly attached to the CSS and the CSS knows an ARP resolution for that node. Because the local option is the default, use the no ip opportunistic command to reconfigure ip opportunistic to local. all - Apply opportunistic Layer 3 forwarding if the destination IP address matches any routing entry on the CSS. This mode is not recommended if the topology includes multiple routers and the CSS does not know all of the routes that the routers know.
3-29
disabled - The CSS does not perform opportunistic Layer 3 forwarding. Regular Layer 3 forwarding is performed only for packets that contain the CSSs destination MAC address.
When you configure ip opportunistic all, you can use the ip route originated-packets command to configure routes that the CSS will use to reach devices, but will not use as opportunistic routes for forwarding traffic. Routes created using the ip route originated-packets command apply only to packets that originate on the CSS. Packets and flows forwarded by the CSS will not use these routes. For example,
(config)# ip route 0.0.0.0/0 192.168.1.7 originated-packets
Where to Go Next
For information on configuring circuits and interfaces, refer to Chapter 4, Configuring Interfaces and Circuits.
3-30
78-11424-01
C H A P T E R
Interface and Circuit Overview Configuring Interfaces Configuring Circuits Configuring a Circuit IP Interface Configuring RIP for an IP Interface
4-1
The CSS forwards VLAN circuit traffic to the IP interface. The IP interface passes the traffic to the IP Forwarding function where the CSS compares each packet destination address to the information contained in the routing table. Once the CSS resolves the packet addresses, it forwards the packet to the appropriate VLAN and destination port. Figure 4-1 illustrates the CSS interfaces, circuits, and VLANs.
Figure 4-1 Content Services Switch Interfaces and Circuits
VLAN1 Circuit IP Interface for VLAN 1 10.3.6.58 Bridging Domain vlan 1 Interface Ethernet-1 Interface Ethernet-2 Interface Ethernet-3 Interface Ethernet-4
VLAN2 IP Forwarding (Layer 3) Circuit IP Interface for VLAN 2 158.3.7.58 Bridging Domain vlan 2
4-2
78-11424-01
Chapter 4
Log into the CSS. Enter into config mode by typing config.
(config)#
3.
Enter into the interface mode for the interface you wish to configure. This set of interface commands applies to the CSS 11050 and CSS 11150.
CS150(config)# interface ethernet-1 CS150(config-if[ethernet-1])#
4.
5.
Bridge the interface to a VLAN. All interfaces are assigned to vlan 1 by default. This set of interface commands applies to the CSS 11050 and CSS 11150.
CS150(config-if[ethernet-1])# bridge vlan 2
6.
Display the interfaces and vlans to which they are configured (optional).
(config-if[2/1])# show circuit all
4-3
Table 4-1
8.
Configure circuits as required. Assign an IP address and subnet mask to each circuit.
(config)# circuit VLAN1 (config-circuit[VLAN1])# ip address 10.3.6.58/24 (config)# circuit VLAN3 (config-circuit[VLAN3])# ip address 158.3.7.58/24 (config-circuit-ip[VLAN3-158.3.7.58])# exit
9.
10. Save your configuration changes (recommended). If you do not save the
Configuring Interfaces
Interfaces are ports that enable you to connect devices to the CSS and connect the CSS to the Internet. The commands to configure interfaces on the CSS 11050 and CSS 11150 differ slightly from the commands to configure interfaces on the CSS 11800 because the CSS 11800 requires a slot/port designation. The CSS 11050 and CSS 11150 do not use the slot/port designation. Configuring an interface requires you to:
Configure an interface and enter into the interface mode Add a description of the interface (optional) Configure an interface duplex and speed Set the maximum idle time for the interface Bridge the interface to a VLAN Optionally, you may configure the low water mark of flow control blocks
4-4
78-11424-01
Chapter 4
Configuring an Interface
To configure an interface, enter the interface command and a valid interface name. To use the interface command for a:
CSS 11050 or CSS 11150, enter the interface name in interface-port format (for example, ethernet-2) CSS 11800, enter the interface format in slot/port format (for example, 3/1)
For example, to configure interface ethernet-1 on a CSS 11050 or CSS 11150, access interface mode for ethernet-1 by entering:
(config)# interface ethernet-1
The CSS changes from config mode to the specific interface mode.
(config-if[ethernet-1])#
To display an interface description, use the show running-config interface command. For example:
(config-if[ethernet-1])# show running-config interface ethernet-11 !************************ INTERFACE ************************ interface ethernet-11 description "Connects to server17" bridge vlan 2
4-5
phy 10Mbits-FD - Set the FEM port to 10 Mbits per second and full-duplex. phy 10Mbits-HD - Set the FEM port to 10 Mbits per second and half-duplex. phy 100Mbits-FD - Set the FEM port to 100 Mbits per second and full-duplex. phy 100Mbits-HD - Set the FEM port to 100 Mbits per second and half-duplex. phy auto-negotiate - Resets the FEM or GEM port to automatically negotiate speed or pause method, respectively, and duplex (default). phy 1Gbits-FD-asym - Set the GEM port to full duplex mode with asymmetric pause toward the link partner. phy 1Gbits-FD-no pause - Set the GEM port to full duplex mode with no pause. phy 1Gbits-FD-sym - Set the GEM port to full duplex mode with symmetric pause. phy 1Gbits-FD-sym-asym - Set the GEM port to full duplex mode with asymmetric and symmetric pause toward the local device.
4-6
78-11424-01
Chapter 4
For example, to set interface ethernet-1 to 100 Mbps and half-duplex, enter:
(config-if[ethernet-1])# phy 100Mbits-HD
To reset the idle time for an interface to its default value of 0, enter:
(config-if[ethernet-7])# no max-idle
4-7
Name ethernet-1 ethernet-2 ethernet-3 ethernet-4 ethernet-5 ethernet-6 ethernet-7 ethernet-8 ethernet-9 ethernet-10 ethernet-11 ethernet-12 Ethernet-Mgmt
Speed auto auto auto auto auto auto auto auto auto auto auto auto 100 Mb/s
To show duplex and speed value for a specific interface, enter the show phy command and the interface name. For example:
(config)# show phy ethernet-3 Configured Duplex Speed auto 10 Mb/s Actual Duplex Link half Down
Name ethernet-3
Speed auto
Note
When you enter the bridge vlan command, enter the word vlan in lowercase letters and include a space before the vlan number (for example, vlan 2).
4-8
78-11424-01
Chapter 4
To display all interfaces and the vlans to which they are configured, enter the show circuit command.
Note
In the show circuit display, vlans appear as VLAN (uppercase, with no space before the VLAN number).
(config)# show circuit Circuit Name VLAN2 Operational Interface Status ethernet-1 Up ethernet-3 Up
IP Address 192.0.3.204
4-9
Enter the percentage as the total number of available FCBs. Enter a number from 1 to 100. The default is 25%. To reset the percentage of available FCBs to its default of 25, enter:
(config-if[ethernet-7])# no fcb-lowwater
4-10
78-11424-01
Chapter 4
For example:
(config)# show bridge forwarding VLAN VLAN1 VLAN4 VLAN5 MAC Address 00-e0-1e-3e-9c-98 00-e0-b0-5a-59-d1 00-a0-c9-b0-d6-d8 02-60-8c-a3-82-ed 00-60-08-8f-96-8c Port Number ethernet-1 ethernet-2 ethernet-8 ethernet-6 ethernet-4
To display bridge status information, use the show bridge status command.
Showing Interfaces
To display a list of valid interfaces for the CSS, use the show interface command as shown in the following example:
(config)# show interface Name ifIndex ethernet-1 1 ethernet-2 2 ethernet-3 3 ethernet-4 4 ethernet-5 5 ethernet-6 6 ethernet-7 7 ethernet-8 8 ethernet-9 9 ethernet-10 10 ethernet-11 11 ethernet-12 12 Serial-Mgmt. 13 Ethernet-Mgmt. 14 Type fe fe fe fe fe fe fe fe fe fe fe fe console fe Oper Down Up Up Up Up Up Up Up Up Up Up Up Up Up Admin Up Down Down Down Down Down Down Down Down Down Down Down Up Up Last Change 7/20/1998 13:48:10 7/20/1998 13:48:10 7/20/1998 13:48:10 7/20/1998 13:48:10 7/20/1998 13:48:10 7/20/1998 13:48:10 7/20/1998 13:48:10 7/20/1998 13:48:10 7/20/1998 13:48:10 7/20/1998 13:48:10 7/20/1998 13:48:10 7/20/1998 13:48:10 7/20/1998 13:48:10 7/20/1998 13:48:1
To only display information for a specific interface, enter the show interface command and the interface name as shown:
(config)# show interface ethernet-7 Name ifIndex ethernet-7 7 Type fe Oper Up Admin Down Last Change 7/20/1998 13:48:10
4-11
To see a list of interfaces in the CSS, enter: show mibii ?. To clear interface statistics, use the clear statistics command in SuperUser mode. For example:
# clear statistics
4-12
78-11424-01
Chapter 4
show ether-errors - Display the extended 64-bit statistics for errors on all Ethernet interfaces in the CSS. The Enterprise ap64Stats MIB defines these statistics. show ether-errors interface name -Display the extended 64-bit statistics for errors on a specific Ethernet interface in the CSS. The Enterprise ap64Stats MIB defines these statistics. Enter the interface name as a case-sensitive unquoted text string. show ether-errors zero - Display the Ethernet errors for all Ethernet interfaces in the CSS and reset the statistics to zero upon retrieval. show ether-errors zero interface name - Display the Ethernet errors for the specified Ethernet interface in the CSS and reset the statistics to zero upon retrieval. Enter the interface name as a case-sensitive unquoted text string. show ether-errors-32 - Display the RFC1398 32-bit statistics, include the -32 suffix. show ether-errors-32 interface name - Display the RFC1398 32-bit statistics, include the -32 suffix. Enter the interface name as a case-sensitive unquoted text string.
For example:
(config)# show ether-errors ethernet-1 Ethernet Errors for <ethernet-1>: Alignment: FCS: Single Collision: Multiple Collisions: SQE Test: Deferred Tx: 0 0 0 0 0 0 Internal Rx Errors: Frame too Long: Carrier Sense Errors: Internal Tx Errors: Excessive Collisions: Late Collisions: 0 0 0 0 0 0
4-13
Caution
Shutting down an interface terminates all connections to the interface. For example, to shut down interface ethernet-3, enter:
(config-if[ethernet-3]) admin-shutdown physical
Caution
Shutting down an interface terminates all connections to the interface. To shut down all interfaces, enter:
# admin-shutdown
Note
To shutdown one interface, use the admin-shutdown command in interface mode. Refer to the Shutting Down an Interface section described previously in this chapter.
4-14
78-11424-01
Chapter 4
Configuring Circuits
A circuit on the CSS is a logical entity that maps IP interfaces to a logical port or group of logical ports (for example, a VLAN). Each VLAN circuit requires an IP address. Assigning an IP address to each VLAN circuit allows the CSS to route Ethernet interfaces from VLAN to VLAN. To enter a specific circuit configuration mode, enter the circuit command and VLAN as shown in the following example:
(config)# circuit VLAN7 (config-circuit[VLAN7])#
Note
When you use the circuit command, enter the word VLAN in uppercase letters and do not include a space between VLAN and the VLAN number (for example, VLAN7). You can configure the following settings for a circuit:
router-discovery lifetime - Configure router discovery lifetime router-discovery limited-broadcast - Transmit router discovery packets using 224.0.0.1 router-discovery max-advertisement-interval - Configure router discovery maximum advertisement interval timer router-discovery min-advertisement-interval - Configure router discovery minimum advertisement interval timer
Note
The CSS allows you to enable router discovery and define a router discovery preference for each interface. To enable router discovery and define a preference per interface, refer to the sections Enabling Router-Discovery and Configuring Router-Discovery Preference, respectively, later in this chapter.
4-15
To restore router discovery maximum advertisement interval to the default of 600, enter:
(config-circuit[VLAN7])# no router-discovery max-advertisement-interval
4-16
78-11424-01
Chapter 4
To reset the minimum router advertisement interval to the default of 0.75 x the maximum advertisement value, enter:
(config-circuit[VLAN7])# no router-discovery min-advertisement-interval
Showing Circuits
To show circuit information, use the show circuits command. A circuit on the CSS is a logical entity that maps IP interfaces to a logical port or group of logical ports. This command provides the following options:
show circuits - Displays all circuit information for circuits that are currently up show circuits all - Displays all circuit information regardless of circuit state show circuit name circuit name - Display circuit information for a specific circuit regardless of state
For example:
(config) show circuits all Circuit Name Circuit State IP Address VLAN1 active-ipEnabled 172.0.3.20 VLAN3 active-ipEnabled 172.0.3.24 Operational Interface Status ethernet-2 Up ethernet-4 Up ethernet-5 Up
4-17
Note
When you use the circuit command, enter the word VLAN in uppercase letters and do not include a space between VLAN and the VLAN number (for example, VLAN7). The following sections describe how to define a a circuit IP address.
Configuring a Circuit IP Address Configuring a Circuit-IP Broadcast Address Configuring Circuit-IP Redirects Configuring Circuit-IP Unreachables Enabling Router-Discovery Configuring Router-Discovery Preference Enabling a Circuit IP Disabling a Circuit IP Showing IP Interfaces
4-18
78-11424-01
Chapter 4
When you specify an IP address, the mode changes to the specific circuit-ip-VLAN-IP address as shown:
(config-circuit-ip[VLAN7-173.3.6.58])#
To remove a local IP address from a circuit, enter the following command from the circuit mode:
(config-circuit[VLAN7])# no ip address
To reset the broadcast IP address to the default all-ones host address, enter:
(config-circuit[VLAN7-173.3.6.58])# no broadcast
4-19
Enabling Router-Discovery
To enable router discovery for an interface, use the router-discovery command. When enabled, router discovery transmits packets with a multicast address of 244.0.0.1. To enable an interface to transmit packets with a multicast address of 255.255.255.255, use the router-discovery limited-broadcast command in circuit mode (see Configuring Router-Discovery Limited-Broadcast, earlier in this chapter). Router discovery is disabled by default. For example:
(config-circuit-ip[VLAN7-192.168.1.58])# router-discovery
4-20
78-11424-01
Chapter 4
Enabling a Circuit IP
To enable the IP interface on a circuit, use the enable command. The default is enable. For example:
(config-circuit-ip[VLAN7-173.3.6.58])# enable
Disabling a Circuit IP
To disable the interfaces on a circuit, enter:
(config-circuit-ip[VLAN7-173.3.6.58])# no enable
Showing IP Interfaces
To display information on configured IP interfaces, enter the show ip interface command. For example:
(config)# show ip interface IP Interface Summary: CircuitName: IP Address: Broadcast Address: ICMP Redirect: RIP: VLAN2 172.0.1.100 11.255.255.255 enabled disabled State: Network Mask: Redundancy: ICMP Unreachable: active 255.0.0.0 disabled enabled
4-21
When you enable router discovery for a circuit interface, the show ip interface command display also provides the following fields and values in addition to the information shown above.
Router Discovery: RDP Max Interval: RDP Lifetime: RIP: enabled 600 0 disabled RDP Preference: 0 RDP Min Interval: 0 RDP Multicast: disabled
rip - Start RIP on the IP interface rip default-route - Advertise a default route on this interface rip receive - Specify the RIP version that the IP interface receives rip send - Specify the RIP version that the IP interface sends
4-22
78-11424-01
Chapter 4
For example:
(config-circuit-ip[VLAN7-192.168.1.58])# rip default-route 9
rip receive both - Receive both RIP version 1 and RIP version 2 (default) rip receive none - Receive no RIP packets rip receive v1 - Receive RIP version 1 packets only rip receive v2 - Receive RIP version 2 packets only
For example:
(config-circuit-ip[VLAN7-192.168.1.58])# rip receive both
rip send none - Send no RIP packets rip send v1 - Send RIP version 1 packets only rip send v2 - Send RIP version 2 packets only (default)
For example:
(config-circuit-ip[VLAN7-192.168.1.58])# rip send v1
4-23
show rip ip_address - Displays a single RIP interface entry show rip globals - Displays RIP global statistics show rip statistics - Displays RIP interface statistics for all interfaces show rip statistics ip_address - Displays RIP interface statistics for a specific interface
The show rip globals command displays the following type of information:
(config)# show rip globals RIP Global Statistics: RIP Route Changes: 3
The show rip statistics command displays the following global statistics:
(config)# show rip statistics RIP Interface Statistics: System Route Changes: IP Address: Bad Packets Received: IP Address: Bad Packets Received: IP Address: Bad Packets Received: 3 192.0.3.20 0 192.0.3.24 0 192.3.1.21 0 System Global Query Rspns: Triggered Updates Sent: Bad Routes Received: Triggered Updates Sent: Bad Routes Received: Triggered Updates Sent: Bad Routes Received: 0 3 0 3 0 3 0
Where to Go Next
For information on creating and configuring services, refer to Chapter 5, Configuring Services.
4-24
78-11424-01
C H A P T E R
Configuring Services
This chapter describes how to configure services. This chapter also contains an overview on the association between services, owners, and content rules. Information in this chapter applies to all CSS models except where noted. This chapter contains the following sections:
Service, Owner, and Content Rule Overview Service Load Overview Configuring Load for Services Global Keepalive Mode Script Keepalives Creating Services Configuring Services Showing Service Configurations
5-1
Configuring Services
A service is a destination location where a piece of content resides physically (a local or remote server and port). You add services to content rules. Adding a service to a content rule includes it in the resource pool that the CSS uses for load-balancing requests for content. A service may belong to multiple content rules. An owner is generally the person or company who contracts the Web hosting service to host their Web content and allocate bandwidth as required. Owners can have multiple content rules. A content rule is a hierarchical rule set containing individual rules that describe which content (for example, .html files) is accessible by visitors to the Web site, how the content is mirrored, on which server the content resides, and how the CSS should process requests for the content. Each rule set must have an owner. The CSS uses content rules to determine:
Where the content physically resides, whether local or remote Where to direct the request for content (which service or services) Which load balancing method to use
Uses the owner content rule to translate the owner Virtual IP address (VIP) or domain name using Network Address Translation (NAT) to the corresponding service IP address and port. Checks for available services that match the content request. Uses content rules to choose which service can best process the request for content. Applies all content rules to service the request for content (for example, load balancing method, redirects, failover, stickiness).
2. 3. 4.
Figure 5-1 illustrates the CSS service, owner, and content rule concepts
5-2
78-11424-01
Chapter 5
Figure 5-1
49385
5-3
Configuring Services
2.
Create services. When you create a service, the CLI enters that service mode, as shown in the command response below. To create additional services, re-enter the service command.
(config)# service serv1 (config-service[serv1])# (config-service[serv1])# service serv2 (config-service[serv2])#
3.
Assign an IP address to each service. The IP address is the actual IP address of the server.
(config-service[serv2])# (config-service[serv2])# ip address 10.3.6.2 (config-service[serv2])# service serv1 (config-service[serv1])# ip address 10.3.6.1
4.
5.
5-4
78-11424-01
Chapter 5
Note
Redirect services have load numbers associated with them, but the load numbers are either 2 (available) or 255 (unavailable). Figure 5-2 shows servers A, B, and C with response times of 100 ms, 1100 ms, and 120 ms, respectively. One group of servers has load step configured to 10 ms. The second group of servers has load step configured to 100 ms.
5-5
Configuring Services
Figure 5-2
Server Name serverA serverB serverC Servers with 10 ms load step Calculated load number 255 254
Normalized Response Time 100 ms 1100 ms 120 ms Servers with 100 ms load step Calculated load number 255 254
serverB
130 102
130
serverC serverA
4 2
12 2
49386
For the servers set to the 10 ms load step, the difference in response time between:
ServerA and serverB is 1000 ms. Because this value is greater than the configured load step of 10 ms, the CSS considers the server loads different. ServerA and serverC is 20 ms. Because this value is greater than the configured load step of 10 ms, the CSS considers the server loads different.
For the servers set to 100 ms load step, the difference in response time between:
ServerA and serverB is 1000 ms. Because this value is greater than the configured load step of 100 ms, the CSS considers the server loads different. ServerA and serverC is 20 ms. Because this value is less than the configured load step of 100 ms, the CSS considers servers A and C to have the same load.
5-6
78-11424-01
Chapter 5
Increasing the load step causes the load for servers to be closer to each other. Decreasing the load step causes the load for servers to be further from each other. To enable you to configure an accurate load threshold for a server, you can calculate a load number for a server. To calculate a server load number:
1. 2. 3.
Take the difference between the server with the lowest response time and the server for which you want to determine a load number. Divide the difference by the configured load step. Add this number to the calculated load step of the server with the lowest response time, which is always 2.
For example, to calculate the load number for serverC with the 10 ms load step:
1. 2. 3.
Take the difference in server response time between serverA and serverC (20 ms). Divide it by the configured load step (10 ms). The result equals 2. Add 2 to serverAs (server with lowest response time) calculated load (2) to determine serverCs calculated load of 4.
5-7
Configuring Services
5-8
78-11424-01
Chapter 5
load step msec dynamic | static - Define the load step. load threshold number - Set the load threshold for a service, determining its eligibility to receive flows. load reporting - Enable or disable the CSS from generating teardown reports and deriving load numbers. load teardown-timer - Set the maximum amount of time between teardown reports. load ageout-timer - Set the time interval in seconds in which the CSS ages out stale load information for a service.
For more information on these options and associated variables, refer to the following sections.
Increasing the load step causes the load for services to be closer to each other, thus increasing the number of flows to a slower service. Decreasing the load step causes the load for services to be further from each other, thus decreasing the flows to a slower service.
5-9
Configuring Services
The options and syntax for this global configuration mode command are:
load step msec dynamic (default) - Set the initial load step. The CSS uses the default of 10 ms as the initial load step, modifying it after the CSS collects sufficient response time information. load step msec static - Set a constant load step. The CSS uses this load step value instead of making dynamic calculations. The default is 10 ms.
Enter the load step in milliseconds from 10 to 1000000000. The default is 10 ms. For example, to set the load step to 100 ms, enter:
(config)# load step 100
Note
If you do not configure a load threshold for the content rule with the (config-owner-content) load-threshold command, the rule inherits this global load threshold. To set the load threshold to the default of 254, enter:
(config)# no load threshold
5-10
78-11424-01
Chapter 5
Note
The teardown timer is overridden when a service is reset. After 10 teardown reports are recorded, the timer is reset to its configured value. Enter the teardown timer as the number of seconds between teardown reports. enter an integer from 0 to 1000000000. The default is 20. The value of 0 disables the timer. For example, to set the teardown timer to 120 seconds, enter:
(config)# load teardown-timer 120
5-11
Configuring Services
5-12
78-11424-01
Chapter 5
Global keepalives configured in keepalive configuration mode. The CSS counts a global keepalive as one keepalive regardless of the number of services you assign to it through the (config-service) keepalive type named command. ICMP, HTTP, TCP, and FTP keepalives configured and assigned to a service through the (config-service) keepalive command. Each time you assign one of these keepalives to a service through the (config-service) keepalive type command, the CSS counts it as another keepalive.
5-13
Configuring Services
Caution
If you configure more than 255 keepalives, any services assigned to the keepalives over 255 will not work. To access keepalive configuration mode, use the keepalive command from circuit, global, interface, and IP configuration modes. The prompt changes to (config-keepalive [name]). You can also use this command from keepalive mode to access another keepalive. The following sections describe how to configure global keepalives:
Creating a Global Keepalive Activating a Global Keepalive Active Configuring a Global Keepalive Description Configuring a Global Keepalive Frequency Configuring a Global Keepalive IP Address Configuring a Global Keepalive Max Failure Configuring a Global Keepalive Method Configuring a Global Keepalive Port Configuring a Global Keepalive Retryperiod Deactivating a Global Keepalive Configuring a Global Keepalive Type Configuring a Global Keepalive URI Associating a Service with a Global Keepalive Configuring Global Keepalive Hash
5-14
78-11424-01
Chapter 5
When you access this mode, the prompt changes to (config-keepalive [keepimages]).
(config-keepalive[keepimages])#
5-15
Configuring Services
method get - The get method. method head (default ) - The head method.
5-16
78-11424-01
Chapter 5
Not configured, the default port number is 0 HTTP or TCP, the default port number is 80 FTP, the default port number is 21
5-17
Configuring Services
type ftp ftp_record - Keepalive type that accesses an FTP server by logging into the server as defined in an FTP record file. type http - An HTTP index page request using persistent connections. type http non-persistent - An HTTP index page request using non-persistent connections. type icmp (default) - An ICMP echo message. type script script_name {arguments} - Script keepalive to be used by the service. The script is played every time the keepalive is issued. For details on script keepalives, refer to Script Keepalives, later in this chapter. type tcp - A TCP session that determines service viability (3-way handshake and reset (RST)).
For example, to set the global keepalive keepimages to type tcp, enter:
(config-keepalive[keepimages])# type tcp
5-18
78-11424-01
Chapter 5
2.
5-19
Configuring Services
3.
4.
Use the hash value from the keepalive display to configure the keepalive hash. Enter the MD5 hash as a quoted hexadecimal string up to 32 characters. For example:
(config-keepalive[keepimages])# hash "1024b91e516637aaf9ffca21b4b05b8c"
5-20
78-11424-01
Chapter 5
show keepalive - Displays information for all keepalives show keepalive keepalive_name - Displays information for a specific keepalive show keepalive-summary - Display summary information for all keepalives
For example:
(config)# show keepalive Keepalives: Name: keepimages Index: 1 State: ALIVE ( ICP Check ) Description: This keepalive is for image servers Address: 172.16.1.7 Port: 80 Type: HTTP:HEAD:/index.html Frequency: 5 Max Failures: 3 Retry Frequency: 5 Dependent Services: imageserver1 Name: rualive Index: 2 State: ALIVE Description: Auto generated for service serv2 Address: 172.16.1.8 Port: 80 Type: HTTP:HEAD:/index.html Frequency: 5 Max Failures: 3 Retry Frequency: 5 Dependent Services: serv2 (config)# show keepalive-summary Keepalives: keepimagesALIVE172.16.1.7 rualiveALIVE172.16.1.8
5-21
Configuring Services
Script Keepalives
Script keepalives are scripts that you can create to provide custom keepalives for your specific service requirements. To create the scripts, use the rich CSS Scripting Language that is included in your CSS software. For details on using the CSS Scripting Language, including using socket commands and examples of keepalive scripts, refer to Content Services Switch Advanced Configuration Guide. Currently, a CSS provides keepalives for FTP, HTTP, ICMP, and TCP. For information on global keepalives, refer to Global Keepalive Mode, earlier in this chapter. For information on configuring keepalive messages, refer to Configuring Keepalives, earlier in this chapter. Using scripts allows you to extend the CSS keepalive functionality beyond the default keepalives. For example, you can develop a script specifically to connect a CSS to a Post Office Protocol 3 (POP3) mail server. Once you create a script offline, you can upload it to the CSS and configure the script keepalive option on a service.
Note
You can also configure a script keepalive without having the corresponding script present on the CSS. In this case, a constant Down state remains on the service until you upload the appropriate script to the CSS. This allows you to develop and implement a configuration before uploading all the scripts to the CSS.
5-22
78-11424-01
Chapter 5
Use the script naming convention of ap-kal-type, so that, when you press tab or ?, you can easily see the keepalive scripts available for use. For example, an SMTP script would be named ap-kal-smtp. The script name can have a maximum of 32 characters and the arguments must be in a quoted text string with a maximum of 128 characters. For the configured script keepalive to find the corresponding script, the script must reside in the /<current running version>/script directory. When you configure a script keepalive, use only script names. (A CSS does not accept path names.) If the script is present elsewhere on the CSS, the script keepalive assumes it does not exist.
Note
Because many scripts have a multistep process such as connecting, sending a request, and waiting for a specific type of response, configure a higher frequency time value for script keepalives than for standard keepalives. A time interval of 10 seconds or higher ensures that the script keepalive has enough time to finish. Otherwise, state transitions may occur more often than is usual. Because a CSS reads an entire script into memory, there is a maximum script keepalive size of 200 KB (approximately 6,000 lines). If a script exceeds this limit, it will not load. This should be more than adequate for all applications. For example, the script keepalives included with your CSS software are approximately 1 KB. To further conserve CSS memory, services can share a common script keepalive so that only one instance of the script needs to reside in memory. However, you must configure the script keepalive for each service where you want the script to run. To see a complete list of all scripts available in the /<current running version>/script directory, press the Tab key or ?. Optionally, you can type a script name not found in the list, then you can upload the script later. You can manipulate scripts using the archive, clear, and copy commands. You can also upload a script from a local hard drive to the /script directory on the CSS, or download a script from the /script directory on the CSS to a local hard drive.
5-23
Configuring Services
For a large number of services that use script keepalives, use a smaller subset of global keepalives to handle the work for them. For information on global keepalives, refer to Global Keepalive Mode, earlier in this chapter. Use the keepalive type script command to configure script keepalives. The syntax for this service configuration mode command is:
(config-service[serv1)# keepalive type script script_name arguments
In the example above, the keepalive command configures the serv1 service keepalive to be of type script with the script name ap-kal-httplist and the arguments 10.10.102.105 /default.htm. To disable a script keepalive on a service, enter:
(config-service[serv1])# keepalive type none
Note
5-24
78-11424-01
Chapter 5
For example:
(config-service[serv1])# show service Name: serv1 Index: 1 Type: Local State: Alive Rule (10.10.102.105 ANY ANY) Redirect Domain: Keepalive: (SCRIPT ap-kal-httplist 10 3 5) Script Arguments: 10.10.102.105 /default.htm Script Error: None Script Run Time: 1 second Mtu: 1500 State Transitions: Connections: 0 Max Connections: Total Connections: 0 Total Reused Conns: Weight: 1 Load:
14 0 0 2
Note
If a script keepalive terminates with an error, you can use the Script Error and Script Run Time fields to help troubleshoot the problem. You can also use the show running-config command to display the script keepalive and its arguments. For example:
(config-service[serv1])# show running-config service serv1 ip address 10.10.102.105 keepalive frequency 10 keepalive type script ap-kal-httplist 10.10.102.105 /default.htm active
The example above shows the script keepalive and arguments that have been configured on a service. If no arguments are specified in the script, then the quoted text following the script name will not appear.
5-25
Configuring Services
Because the above script fails when it executes the exit command, the script returns a non-zero value. By default, the script will fail with a syntax error if the connect command fails. Be sure to check the logic of your scripts to ensure that the CSS returns the correct value.
Creating Services
A service can be a destination location or entity that contains and provides Internet content (for example, a server, an application on a server such as FTP, or streaming audio). A service has a name that is associated with an IP address, and optionally, a protocol and a port number. By creating a service, you identify the service and enable the CSS to recognize it. You can then apply content rules to services that allow the CSS to:
Direct requests for content to the service Deny requests for content from the service
Enter the service name from 1 to 31 characters. For example, to create service serv1, enter:
(config)# service serv1
5-26
78-11424-01
Chapter 5
Configuring Services
The following sections describe how to configure content services.
Assigning an IP Address to the Service Specifying a Port Specifying a Protocol Specifying a Domain Name Configuring an Advanced Load Balancing String Configuring a Service HTTP Cookie Configuring Weight Specifying a Service Type Configuring Service Access Configuring Service Cache Bypass Configuring Keepalives Showing Keepalive Configurations Configuring Maximum TCP Connections Activating a Service Suspending a Service Removing a Service
5-27
Configuring Services
The ip address range command allows you to specify a range of IP addresses starting with the IP address you specified using the ip address command. Enter a number from 1 to 65535. The default range is 1. For example, if you enter an IP address of 172.16.1.1 with a range of 10, the IP addresses range from 172.16.1.1 through 172.16.1.10. When using the ip address range command, use IP addresses that are within the subnet you are using. The CSS does not arp for IP addresses that are not on the circuit subnet. For example, if you configure the circuit for 10.10.10.1/24 and configure the VIP range as 10.10.10.2 range 400, the CSS will not arp for any IP addresses beyond 10.10.10.254. Using the same example only with a VIP range of 200, the CSS will arp for all IP addresses in the range. For example:
(config-service[serv1])# ip address 172.16.1.1 range 10
Specifying a Port
Use the port command to specify a service TCP/UDP port number or range of port numbers. The TCP or UDP destination port number is associated with a service. Enter the port number as an integer from 0 to 65535. The default is any. For example:
(config-service[serv1])# port 80
To specify a port to be used for keepalives, refer to the service mode keepalive port command. Use the range option to specify a range of port numbers starting with the port number you specified using the port command. Enter a range number from 1 to 65535. The default range is 1. For example, if you enter a port number of 80 with a range of 10, the port numbers will range from 80 through 89. You can use the port range command only on local (default) services. For example:
(config-service[serv1])# port 80 10
5-28
78-11424-01
Chapter 5
Specifying a Protocol
To specify a service IP protocol, use the protocol command. The default setting for this command is any, for any IP protocol. The options for this command are:
protocol tcp - The service uses the TCP protocol suite. protocol udp - The service uses the UDP protocol suite.
For example:
(config-service[serv1])# protocol tcp
Note
You can only use a service redirect domain on a service of type redirect.
Note
You cannot simultaneously configure the domain and (config-service) redirect-string commands on the same service. Enter the service domain name as an unquoted text string with no spaces and a maximum of 64 characters.
5-29
Configuring Services
For example:
(config-service[serv1])# domain www.arrowpoint.com
Enter the cookie_name as an unquoted text string with no spaces and a maximum of 15 characters. For example:
(config-service[serv1])# string userid3217
5-30
78-11424-01
Chapter 5
Configuring Weight
To specify the relative weight of the service, use the weight command in service mode. The CSS uses this weight when you configure ACA or weighted roundrobin load balancing on a content rule. By default, all services have a weight of 1. A higher weight will bias flows towards the specified service. To set the weight for a service, enter a number from 1 to 10. The default is 1. For example:
(config-service[serv1])# weight 2
Note
When you add a service to content rules, the service weight as configured in service mode is applied to each rule as a server-specific attribute. To define a content rule-specific server weight, use the add service weight command. This command overrides the server-specific weight and applies only to the content rule to which you add the service. For information on the add service weight command, refer to Chapter 7, Configuring Content Rules.
type nci-direct-return - Specify the service is NAT Channel indication for direct return. type nci-info-only - Specify the service is NAT Channel indication for information only. type proxy-cache - Define the service as a proxy cache. This is a cache-specific option. This option bypasses content rules for requests coming from the cache server. Bypassing content rules in this case prevents a loop between the cache and the CSS. For a description of a proxy cache, refer to the Content Services Switch Advanced Configuration Guide.
Content Services Switch Basic Configuration Guide
78-11424-01
5-31
Configuring Services
type redirect - Define the service as a remote service to enable the CSS to redirect content requests to the remote service when a local service is not available (for example, the local service has exceeded its configured load threshold). To configure a load threshold for a content rule, use the load-threshold command in owner-content mode (refer to Chapter 7, Configuring Content Rules, the section Specifying a Load Threshold). If you have multiple remote services defined as type redirect, the CSS uses the roundrobin load-balancing method to load balance requests between them. When you add a type redirect service to a content rule, you must also configure an URL to match on the content. For example, /* or /vacations.html.
type redundancy-up - Specify the router service in a redundant uplink. type rep-cache-redir - Specify the service is a replication cache with redirect. type rep-store - Specify the service is a replication store. type rep-store-redir - Specify the service is a replication store with redirect. No content rules are applied to requests from this service type. type transparent-cache - Specify the service as a transparent cache. This is a cache-specific option. No content rules are applied to requests from this service type. Bypassing content rules in this case prevents a loop between the cache and the CSS. For a description of a transparent cache, refer to the Content Services Switch Advanced Configuration Guide.
For example, to enable the CSS to redirect content requests for serv1, specify redirect in the serv1 content rule:
(config-service[serv1])# type redirect
5-32
78-11424-01
Chapter 5
The local services are not active or configured, the rule hits the primary sorry server. The primary sorry server fails, the rule hits the secondary sorry server.
Redirect services and redirect content strings cannot be used with Layer 3 or 4 rules because they use the HTTP protocol. When you configure a Layer 5 content rule, the CSS directs content requests to local services. If:
The local services are not active or configured, the rule sends the HTTP redirects with the location of the redirect services to the clients. The local and redirect services are not active or configured, the rule forwards the HTTP requests to the primary sorry server. All services are down except the secondary sorry server, the rule forwards the HTTP requests to the secondary sorry server.
For information on adding a service to a content rule or adding primary and secondary sorry servers, refer to Chapter 7, Configuring Content Rules, in the section, Adding Services to a Content Rule.
5-33
Configuring Services
Enter the access ftp record as the name of the existing FTP record. Enter an unquoted text string with no spaces and a maximum length of 16 characters. For example:
(config-service[serv1])# access ftp arrowrecord
To allow the CSS to apply content rules to requests from a proxy or transparent-cache type service, enter:
(config-service[serv1])# no cache-bypass
Configuring Keepalives
Use the keepalive command to configure keepalive message parameters for a service. With keepalive messages you can determine whether a service is still functioning. When you configure keepalive for a service, the CSS periodically sends a message to the service requesting a return message as to the server state. If the CSS determines that a service is no longer functioning, it removes the service from the load-balancing algorithm.
5-34
78-11424-01
Chapter 5
Keepalive is a valuable and recommended attribute to set for a service. This information enables the CSS to take action immediately when a service fails. The CSS supports a maximum of 255 keepalives. These keepalives include:
Global keepalives configured in keepalive configuration mode. The CSS counts a global keepalive as one keepalive regardless of the number of services you assign to it through the (config-service) keepalive type named command. ICMP, HTTP, TCP, and FTP keepalives configured and assigned to a service through the (config-service) keepalive command. Each time you assign one of these keepalives to a service through the (config-service) keepalive type command, the CSS counts it as another keepalive.
Caution
If you configure more than 255 keepalives, any services assigned to the keepalives over 255 will not work.
Caution
A CSS supports a maximum of 16 script keepalives. For details, refer to Script Keepalives, earlier in this chapter. The options for this service mode command are:
keepalive frequency - Specify the keepalive message frequency keepalive maxfailure - Specify how many times the service can fail to respond to a keepalive message before it is considered offline keepalive method - Specify the HTTP method for the service keepalive port - Specify the port to be used for keepalives keepalive retryperiod - Specify the keepalive retry period for the service keepalive type - Specify the type of keepalive message for the service keepalive uri - Specify the HTTP keepalive URI for the service keepalive hash - Specify the MD5 hash that is compared for HTTP keepalives that use the GET method
For more information on these options and associated variables, refer to the following sections.
5-35
Configuring Services
keepalive method get - The CSS issues a Get to the service, computes a checksum on the page, and stores the checksum as a reference point. Subsequent Gets require a 200 OK status (HTTP command completed OK response) and the checksum to equal the reference checksum. If the 200 OK status is not returned, or if the 200 OK status is returned but the checksum is different from the reference checksum, the CSS considers the service down.
5-36
78-11424-01
Chapter 5
keepalive method head (default) - The CSS issues a Head and a 200 OK status is required. The CSS does not compute a reference checksum for this type of keepalive. When you specify a URI for an HTTP keepalive, the CSS calculates a checksum for the Web page specified in the URI. If the Web page changes, the checksum no longer matches the original checksum and the CSS assumes that the service is down. To prevent the CSS from assuming that a service is down due to a checksum mismatch, specify the keepalive method as head.
For example:
(config-service[serv1])# keepalive method get
Not configured, the default port number is 0 HTTP or TCP, the default port number is 80 FTP, the default port number is 21
Note
If you do not configure a keepalive port, the TCP keepalive uses the service port configured with the (config-service) port command. If you do not configure either port, the TCP keepalive uses port 80. For example, to specify port 8080 as the keepalive port for service serv1, enter:
(config-service[serv1])# keepalive port 8080
5-37
Configuring Services
keepalive type ftp ftp_record - Keepalive method that accesses an FTP server by logging into the server as defined in an FTP record file. keepalive type http {non-persistent} - An HTTP index page request. By default, HTTP keepalives use persistent connections. To disable this behavior, include the non-persistent option. keepalive type icmp - An ICMP echo message (ping). This is the default keepalive type. keepalive type named name - Specify a global keepalive name to associate the server with a global keepalive. Before using this command, ensure that the global keepalive is activated through the (config-keepalive) active command. Assigning a service to a global keepalive overrides any keepalive properties you assigned in service mode. keepalive type none - Do not send keepalive messages to a service. keepalive type script script_name {arguments} - Script keepalive to be used by the service. The script is played every time the keepalive is issued. For details, refer to Script Keepalives, earlier in this chapter. keepalive type tcp - A TCP session that determines service viability (3-way handshake and reset (RST)).
5-38
78-11424-01
Chapter 5
When you specify a URI for an HTTP keepalive, the CSS calculates a checksum for the Web page specified in the URI. If the Web page changes, the checksum no longer matches the original checksum and the CSS assumes that the service is offline. To prevent the CSS from assuming that a service is offline due to a checksum mismatch, define keepalive method as head. The CSS does not compute a checksum for this type of keepalive. If you specify the URI of a dynamic Web page and do not specify the head keepalive method, you must suspend and reactivate the service each time the Web page changes.
Configure the keepalive. The example below creates a keepalive GET to a test page.
(config)# service serv1 (config-service[serv1])# (config-service[serv1])# (config-service[serv1])# (config-service[serv1])# (config-service[serv1])# ip address 10.0.3.21 keepalive type http keepalive method get keepalive uri "/testpage.html" active
5-39
Configuring Services
2.
Display the hash value using the show keepalive command. For example:
(config-service[serv1])# show keepalive Keepalives: Name: serv1 Index: 0 State: ALIVE Description: Auto generated for service serv1 Address: 10.0.3.21 Port: 80 Type: HTTP:GET:/testpage.html Hash: 1024b91e516637aaf9ffca21b4b05b8c Frequency: 5 Max Failures: 3 Retry Frequency: 5 Dependent Services:
3.
Use the hash value from the keepalive display to configure the keepalive hash. Enter the MD5 hash as a quoted hexadecimal string up to 32 characters. For example:
(config-service[serv1])# keepalive hash "1024b91e516637aaf9ffca21b4b05b8c"
5-40
78-11424-01
Chapter 5
show keepalive - Displays information for all keepalives show keepalive-summary - Display summary information for all keepalives.
For example:
(config)# show keepalive Keepalives: Name: keepimages Index: 1 State: ALIVE ( ICP Check ) Description: Auto generated for service imageserver1 Address: 172.16.1.7 Port: 80 Type: HTTP:HEAD:/index.html Frequency: 5 Max Failures: 3 Retry Frequency: 5 Dependent Services: imageserver1 Name: rualive Index: 2 State: ALIVE Description: Auto generated for service serv2 Address: 172.16.1.8 Port: 80 Type: HTTP:HEAD:/index.html Frequency: 5 Max Failures: 3 Retry Frequency: 5 Dependent Services: serv2 (config)# show keepalive-summary Keepalives: keepimagesALIVE172.16.1.7 rualiveALIVE172.16.1.8
5-41
Configuring Services
Activating a Service
Once you configure a service, you must activate it to enable the CSS to access it for content requests. Activating a service puts it into the resource pool for load-balancing content requests and starts the keepalive function. The following command activates service serv1:
(config-service[serv1])# active
Suspending a Service
Suspending a service removes it from the pool for future load-balancing content requests. Suspending a service does not affect existing content flows, but it prevents additional connections from accessing the service for its content. You may want to suspend a service prior to performing maintenance on the service. The following command suspends service serv1:
(config-service[serv1])# suspend
Note
When you suspend a service, the CSS rebalances the remaining services using the failover setting.
5-42
78-11424-01
Chapter 5
Removing a Service
When you remove a service, the CSS:
Removes the service from all content rules to which the service has been added. Rebalances the remaining services. The CSS does not apply the failover setting.
Note
You cannot retrieve service information once you issue the remove service command.
To remove service server1 from owner arrowpoint content rule rule1, enter:
(config-owner-content[arrowpoint-rule1])# remove service server1
For example, to remove service serviceftp from source group ftpgroup, enter:
(config-group[ftpgroup])# remove service serviceftp
5-43
Configuring Services
show service - Display configurations for each service show service service_name - Display service information for a specific service show service summary - Display a summary of each service
From a specific service mode, the show service command displays configuration information only for that service. When you issue this command from any other mode, it displays configuration information for all services. For example:
(config)# show service Name: Type: Rule: Keepalive: Mtu: Connections: Total Connections: Weight: s1 Index: Local State: Alive 192.168.101.15 ANY ANY ) (ICMP 5 3 5 ) 1500 State Transitions: 0 Max Connections: 0 Total Reused Conns: 1 Load:
1 0 0 2
The show service summary command displays a summary of all service currently configured. For example:
(config)# show service summary Service Name State Conn Weight Avg Load serv17 DOWN 0 1 254 serv18 ALIVE 0 0 254 NS6 ALIVE 0 0 254 [email protected] ALIVE 0 1 212 Long Load 254 0 0 254 State Transitions 1 5 3 1
5-44
78-11424-01
Chapter 5
The State field in the show service display reports the service as either Alive, Dying, or Down. The Dying state reports that a service is failing according to the parameters configured in the following service mode commands:
Where to Go Next
For information on creating and configuring owners, refer to Chapter 6, Configuring Owners.
5-45
Configuring Services
5-46
78-11424-01
C H A P T E R
Configuring Owners
This chapter describes how to create and configure owners. Services, which are associated with content rules, are discussed in Chapter 5, Configuring Services. Information in this chapter applies to all CSS models except where noted. This chapter contains the following sections:
Owner Configuration Quick Start Creating an Owner Configuring an Owner DNS Balance Type Specifying Owner Address Specifying Owner Billing Information Specifying Case Specifying Owner DNS Type Specifying Owner Email Address Removing an Owner Showing Owner Information
6-1
Configuring Owners
2.
Create an owner.
(config)# owner arrowpoint (config-owner[arrowpoint])#
3.
4.
5.
6.
Creating an Owner
An owner is generally the person or company who contracts the web hosting service to host their web content and allocate bandwidth as required. Use the owner command to create an owner for a content rule. When you create an owner, you enable the CSS to identify the entity (for example, person, company name, or other meaningful title) that owns content rules. The CSS can contain many owners and maintain a configurable profile for each owner.
6-2
78-11424-01
Chapter 6
When creating an owner, you may want to use the owners DNS name. Enter the owner name as an unquoted text string from 1 to 31 characters in length. The following example creates the owner arrowpoint:
(config)# owner arrowpoint
Once you create an owner, the CLI enters into owner mode.
(config-owner[arrowpoint])#
To remove an owner, use the no owner command. When you remove an owner, you also remove all content rules created for the owner. For example:
(config-owner[arrowpoint])# no owner arrowpoint
dnsbalance leastloaded - Resolve the request to the least-loaded of all local or remote domain sites. The CSS first compares load numbers. If the load number between domain sites is within 50, then the CSS compares their response times. The site with the faster response time is considered the least-loaded site.
Note
For the leastloaded option to work properly, all domain sites must be running a minimum of CSS software version 3.01.
dnsbalance preferlocal - Resolve the request to a local VIP address. If all local systems exceed their load threshold, the CSS chooses the least-loaded remote system VIP address as the resolved address for the domain name.
6-3
Configuring Owners
dnsbalance roundrobin (default) - Resolve the request by evenly distributing the load to resolve domain names among content domain sites, local and remote. The CSS does not include sites that exceed their local load threshold.
For example:
(config-owner[arrowpoint])# dnsbalance preferlocal
To reset the DNS load balancing method to its default setting of roundrobin, enter:
(config-owner[arrowpoint])# no dnsbalance
6-4
78-11424-01
Chapter 6
Specifying Case
To define whether or not the CSS employs case-sensitivity when matching content requests to an owners content rule, use the case command. The default is case insensitive. For example, a client requests content from arrowpoint/index.html. If owner arrowpoint is configured for:
case sensitive, the request must match content index.html exactly case insensitive, the request can be any combination of uppercase and lowercase letters (for example, Index.html, INDEX.HTML)
dns accept - Accept all content rules proposed by the CSS peer dns push - Push (send) all content rules onto the CSS peer dns both - Accept all content rules proposed by the CSS peer and push all rules onto the CSS peer
For example:
(config-owner[arrowpoint])# dns push
6-5
Configuring Owners
Removing an Owner
To remove an owner, issue the no owner command from config mode as shown in the following example. To remove an owner, you must first exit from the owner mode. You cannot be in the owner mode that you wish to remove.
(config)# no owner arrowpoint
Caution
Removing an owner also deletes the content rules associated with it.
6-6
78-11424-01
Chapter 6
You can issue the following show summary commands from any mode:
show summary - Display a summary of all owner information show summary owner_name - Display a summary of owner information for a specific owner
For example:
(config)# show summary Global Bypass Counters No Rule Bypass Count: Acl Bypass Count: URL Params Bypass Count: Cache Miss Bypass Count: Garbage Bypass Count: Owner arrowpoint Content Rules layer5 State Active Active 1299737 0 4373 275034 540 Services serv1 server86 server87 server88 server86 server87 cache Service Hits 18 0 0 0 0 0 276440
fredmandy.com layer3
layer5 cacherule
Active Active
6-7
Configuring Owners
Description Content requests or connections that were not directed to the configured cache servers due to content rule matching. Content requests or connections configured via ACLs to bypass content rules and go directly to the origin server.
URL Params Bypass Counter Content requests that match on content rules that have param-bypass set to enable. The CSS forwards the content requests to the origin server. Cache Miss Bypass Counter TCP connections from the cache servers that bypassed content rules so the cache server could access the origin server for the requested content. Content requests that the CSS examined and deemed unrecognizable or corrupt. As a result, the CSS forwards the content request to the origin server rather than the cache server.
Where to Go Next
Once you create and configure an owner, refer to Chapter 7, Configuring Content Rules for information on configuring content rules. Content rules instruct the CSS on how to handle requests for the owners content. You create and configure a content rule within a specific owner mode. This method ensures that the configured content rule applies only to a specific owner.
6-8
78-11424-01
C H A P T E R
Service, Owner, and Content Rule Overview Naming and Assigning a Content Rule to an Owner Configuring a Virtual IP Address Configuring a Domain Name Content Rule Adding Services to a Content Rule Activating a Content Rule Suspending a Content Rule Removing a Content Rule Removing a Service from a Content Rule Configuring a Protocol Configuring Port Information Configuring Load Balancing Configuring a DNS Balance Type Configuring Hotlists Specifying a Uniform Resource Locator
7-1
Specifying a Load Threshold Redirecting Requests for Content Configuring Persistence, Remapping, and Redirection Defining Failover Specifying an Application Type Showing Content Showing Content Rules
A service is a destination location where a piece of content physically resides (a local or remote server and port). You add services to content rules. Adding a service to a content rule includes it in the resource pool that the CSS uses for load balancing requests for content. A service may belong to multiple content rules. An owner is generally the person or company who contracts the web hosting service to host their web content and allocate bandwidth as required. A content rule is a hierarchical rule set containing individual rules that describe which content (for example, .html files) is accessible by visitors to the web site, how the content is mirrored, on which server the content resides, and how the CSS should process requests for the content. Each rule set must have an owner.
Uses the owner content rule to translate the owner Virtual IP address (VIP) or domain name using Network Address Translation (NAT) to the corresponding service IP address and port. Checks for available services that match the content request. Uses content rules to choose which service can best process the request for content.
2. 3.
7-2
78-11424-01
Chapter 7
4.
Applies all content rules to service the request for content (for example, load-balancing method, redirects, failover, stickiness).
Where the content physically resides, whether local or remote. Where to direct the request for content (which service or services). Which load-balancing method to use.
The type of rule also implies the Layer at which the rule functions.
A Layer 3 content rule implies a destination IP address of the host or network. A Layer 4 content rule implies a combination of destination IP address and port. A Layer 5 content rule implies a combination of destination IP address, port, and URL that may or not contain an HTTP cookie or a domain name.
Content rules are hierarchical. That is, if a request for content matches more than one rule, the characteristics of the most specific rule apply to the flow. The hierarchy for content rules is shown below. The CSS uses this order of precedence to process requests for the content, with 1 being the highest match and 8 being the lowest match.
1. 2. 3. 4. 5. 6. 7. 8.
Domain name, IP address, protocol, port, URL IP address, protocol, port, URL IP address, protocol, port IP address, protocol IP address Domain name, protocol, port, URL Protocol, port, URL Protocol, port
Figure 7-1 illustrates the CSS service, owner, and content rule concepts
7-3
Figure 7-1
7-4
49385
78-11424-01
Chapter 7
2.
Enter into the owner mode for which you wish to create content rules.
(config)# owner arrowpoint
3.
4.
Configure a Virtual IP address (VIP) or domain name for the owner content. This example configures a VIP.
(config-owner-content[arrowpoint-rule1]# vip address 192.168.3.6
5.
6.
7-5
Table 7-1
8.
The name rule1 to the content rule Content rule rule1 to owner arrowpoint
(config-owner[arrowpoint])# content rule1
Once you assign a content rule to an owner, the CLI prompt changes to reflect the specific owner and content rule mode.
(config-owner-content[arrowpoint-rule1])#
Within owner and content mode, you can configure how the CSS will handle requests for the content. To remove an existing content rule from an owner, issue the no content command from owner mode:
(config-owner[arrowpoint])# no content rule1
7-6
78-11424-01
Chapter 7
Note
The CSS allows you to configure a domain name instead of a VIP. See the next section for information on configuring a domain name. You may configure either a VIP, a domain name, or both in a content rule. To enable the CSS to translate an owners Internet IP address to the IP address of the service where the content resides, configure a VIP to the owner content. By translating a VIP to the service IP address, the CSS enhances network security because it prevents users from accessing your private network IP addresses.
Caution
Ensure that all VIPs are unique IP addresses. Do not configure a VIP to the same address as an existing IP address on your network or a static ARP entry.
Note
When you configure a rule without a VIP, the rule will match on any VIP that matches the other configured rule attributes (for example, port and protocol). If you have a configuration that requires this type of rule (called a wildcard VIP rule), be aware that the client request will match on this rule when the client request attempts to connect directly to a server IP address.
7-7
The variables and options for the vip address command include:
ip_address or host - The IP address or name for the content rule. Enter the address in either dotted-decimal IP notation (for example, 192.168.11.1) or mnemonic host-name format (for example, myhost.mydomain.com). range number - The range option and variable allows you to specify a range of IP addresses starting with the VIP address. Enter a number from 1 to 65535. The default range is 1. The ip_or_host variable is the first address in the range. For example, if you enter a VIP of 172.16.3.6 with a range of 10, the VIP addresses will range from 172.16.1.1 to 172.16.1.10.
Note
When you use an FTP content rule with a configured VIP address range, be sure to configure the corresponding source group with the same VIP address range (refer to the Content Services Switch Advanced Configuration Guide, Chapter 3, Configuring Source Groups, ACLs, EQLs, URQLs, NQLs, and DQLs). To configure a Virtual IP address (VIP), issue the vip address command and specify either an IP address or a host name. For example:
(config-owner-content[arrowpoint-rule1])# vip address 192.168.3.6
To configure a Virtual IP address (VIP) with a range of 10, issue the vip address command with the range option. For example:
(config-owner-content[arrowpoint-rule1])# vip address 192.168.3.6 range 10
When using the vip address range command, use IP addresses that are within the subnet you are using. The CSS does not arp for IP addresses that are not on the circuit subnet. For example, if you configure the circuit for 10.10.10.1/24 and configure the VIP range as 10.10.10.2 range 400, the CSS will not arp for any IP addresses beyond 10.10.10.254. Using the same example with a VIP range of 200, the CSS will arp for all IP addresses in the range. To remove a VIP from a content rule, enter:
(config-owner-content[arrowpoint-rule1])# no vip address
7-8
78-11424-01
Chapter 7
Note
When you ping a VIP, the CSS only responds if there is at least one live service, live sorry server, or redirect string configured for the VIP. If the services or sorry servers are down and you have not defined a redirect string for the VIP, the CSS does not respond to the ping. Figure 7-2 shows an example of configuring a VIP. In this example, a user requests content from arrowpoint. The content physically resides on the server with IP address 10.3.6.1. By configuring VIP 158.37.6.0 to the content, the CSS translates the VIP to the server IP address where the content actually resides without exposing internal IP addresses
Figure 7-2 Example of Configuring a Virtual IP Address
.
Ethernet-2 CSS VLAN2 158.3.7.58 Router1 158.3.7.2
Ethernet-4 Serv2 10.3.6.2 Ethernet-3 Serv1 10.3.6.1 Owner - arrowpoint Content - rule1 VIP 158.37.6.0 VLAN1 10.3.6.58 Client PC requesting content from arrowpoint (VIP 158.37.6.0)
49387
7-9
Enable service provisioning to be independent of IP-to-domain name mappings Provision cache bandwidth as needed based on domain names
Note
Domain names in content rules are case-insensitive, regardless of the case command setting. To configure a domain name in a content rule, use the url command and place two slash characters (//) at the front of the quoted url_name or url_path. For example:
(config-owner-content[arrowpoint-rule1])# url //www.arrowpoint.com/*
Use domain name rules rather than VIP rules when you have several transparent caches and you want certain domains to use the most powerful cache server. You want all other domains load balanced among the remaining cache servers. For this configuration, set up a domain name rule for the specific domains you want directed to the powerful cache server. Then configure a wildcard VIP rule (specify port 80 and no VIP) to balance all other HTTP traffic among the remaining caches. You may use a single VIP in front of a server that is hosting many domain names. Over time, some of the domain names may receive more traffic and could benefit from having their content on a separate server. To segregate the traffic, configure the domain names you want directed to specific services. You do not need to configure additional VIPs for the domain names because the CSS will use the domain names as the matching criteria in the content rules.
7-10
78-11424-01
Chapter 7
To enable DNS in the content rule, use the no dns-disable-local command. For example:
(config-owner-content[arrowpoint-rule1])# no dns-disable-local
The domain names you could add as part of the DQL include www.wood.com, www.woodworker.com, www.maple.com, www.oak.com. You could configure www.wood.com and www.woodworker.com to have the same mapping index. You can enter indexes from 1 to 1000 and provide an optional quoted description for each index.
7-11
For example:
(config-dql[Woodworker]# domain www.wood.com index 1 This is the same as the woodworker domain (config-dql[Woodworker]# domain www.woodworker.com index 1 (config-dql[Woodworker]# domain www.maple.com index 2 (config-dql[Woodworker]# domain www.oak.com index 3
If you specify a DQL as a matching criteria for content rule WoodSites, and there are two services, S1 and S2, associated with the rule, the CSS checks the services at mapping time for ranges. To add a DQL to a content rule, use the url command as shown:
(config-owner-content[WoodSites])# url /* dql Woodworker
For example, if the CSS receives a request for www.oak.com along with other criteria, a match on the WoodSites rule occurs on DQL index 3. If the rule has the roundrobin load balancing method, the CSS examines a service (S2 for this example) to determine the backend connection mapping parameters. If you configured S2 with a VIP address of 10.0.0.1 with a range of 5, the addresses include 10.0.0.1 through 10.0.0.5. Because this service has a range of addresses and any as its port, the DQL index of 3 matches the service VIP range index of 3, which is address 10.0.0.3. To delete a DQL, use the no dql command. For example:
(config)# no dql Woodworker
Note
You cannot delete a DQL currently in use by a content rule. For a complete description of DQLs, refer to the Content Services Switch Advanced Configuration Guide.
7-12
78-11424-01
Chapter 7
If your network topology does not require that the CSS ARP-reply for VIPs, you do not need to configure separate content rules for the domain name and VIP. In this situation, a domain name content rule without a VIP is sufficient because it will match on all content requests going to the domain regardless of the VIP. An example of a topology where ARP-replying is not required is when an upstream router has the CSS statically configured as the next hop router for the VIPs. A domain name content rule is shown below.
content domainRule3 protocol tcp port 80 url //www.domain.com/* add service Serv1 active
7-13
Note
You cannot use wildcards with either a Domain Qualifier List or a Uniform Resource Locator Qualifier List. For example, the following content rule criteria have the highest precedence because, as a set, they provide the greatest specificity in matching content: Domain name, IP address, protocol, port, URL If you want to create a content rule using all these criteria, such as the configuration shown below, then the content rule matches only on the JPEG files that are found in the domain whose name starts with arr, as well as the other criteria, including VIP address, protocol, and port number.
(config-owner-content[arrowpoint-rule1])# (config-owner-content[arrowpoint-rule1])# (config-owner-content[arrowpoint-rule1])# (config-owner-content[arrowpoint-rule1])# vip address 192.168.3.6 protocol tcp port 80 url //arr*.com/*.jpg
When the CSS encounters a content rule with a wildcard domain name and matches according to the content rule hierarchy, it stops the search at that point. This behavior is consistent with the way that the CSS manages content rules in general. For example, if the content request matches on the rule with VIP address 192.168.3.6 and URL /*, the CSS does not continue the search to match on a second rule with a wildcard VIP address (no address specified) and an URL of /*.jpg. The specific address match makes the first rule more specific than the second rule. To further clarify, if the match occurs on a rule with //arrowpoint*.com/*, the search stops at that point and does not continue to match on a rule with //arr*.com/*.gif, because the first rule is a more specific match. Also note that a fully-specified domain name rule (arrowpoint.com) is more specific than a wildcard domain name rule (arr*.com).
7-14
78-11424-01
Chapter 7
For example, to have the content rule match on all instances of the text string arr in the domain name portion of the content rule, issue the following command:
(config-owner-content[arrowpoint-rule1])# url //www.arr*.com/*
Notice that the wildcard character either appears by itself as a domain word, or appears to the right of any characters that start a domain word. However, a wildcard character cannot start a domain name word. For example, point.com
Note
You cannot use wildcards on the rightmost portion (for example, .com, .org, .gov) of the domain name. For this reason, the wildcard domain name syntax f* is not supported. You can use wildcards in any other words that make up the domain name.
7-15
Note
You can only add local services to a content rule that contains either a Domain Qualifier List (DQL) or a service port range. The add service command enables you to add the following types of services to a content rule:
When you configure a Layer 3 or 4 content rule, the rule hits the local services. If:
The local services are not active or configured, the rule hits the primary sorry server. The primary sorry server fails, the rule hits the secondary sorry server.
Redirect services and redirect content strings cannot be used with Layer 3 or 4 rules because they use the HTTP protocol. When you configure a Layer 5 content rule, the CSS directs content requests to local services. If:
The local services are not active or configured, the rule sends the HTTP redirects with the location of the redirect services to the clients. The local and redirect services are not active or configured, the rule forwards the HTTP requests to the primary sorry server. All services are down except the secondary sorry server, the rule forwards the HTTP requests to the secondary sorry server.
For information on configuring service types, refer to Specifying a Service Type in Chapter 5, Configuring Services.
7-16
78-11424-01
Chapter 7
Note
When you add a service to content rules, the service weight as configured in service mode is applied to each rule as a server-specific attribute. Use the add service weight command to define a content rule-specific server weight. This command overrides the server-specific weight and applies only to the content rule to which you add the service. For information on the (config-service)# weight command, refer to Chapter 5, Configuring Services.
7-17
Enter the server name as a case-sensitive unquoted text string with no spaces. For example:
(config-owner-content[arrowpoint-rule1])# primarySorryServer slowserver
Use the secondarySorryServer command to configure the secondary sorry service for a content rule. A secondary sorry service is a backup service the CSS uses when the primary sorry service is unavailable. You can configure this service to contain content, or to provide a drop or redirect message. This service is not used in load balancing. Enter the server name as a case-sensitive unquoted text string with no spaces. For example:
(config-owner-content[arrowpoint-rule1])# secondarySorryServer slowestserver
add dns dns_name - The DNS name mapped to the content rule. Enter the name as a case-sensitive unquoted text string with no spaces and a length of 1 to 31 characters. add dns dns_name ttl_value - The DNS name mapped to the content rule with the optional Time to Live (TTL) value in seconds. This value sets how long the DNS client remembers the IP address response to the query. Enter a value from 0 to 255. The default is 0.
For example:
(config-owner-content[arrowpoint-rule1])# add dns arrowpoint 120
7-18
78-11424-01
Chapter 7
Note
To configure DNS server functionality on the CSS, use the (config) dns-server command.
Prevents the CSS from providing access to the content Does not affect existing flows to the content
To suspend a content rule, use the suspend command in content mode. For example:
(config-owner-content[arrowpoint-rule1])# suspend
7-19
Configuring a Protocol
Specifying a protocol in a content rule enables the CSS to direct requests for content associated with the content rule to use a specific protocol. You may specify the following protocols for content:
any (default, meaning the rule will match on a tcp or udp port) tcp udp
7-20
78-11424-01
Chapter 7
balance aca - ArrowPoint Content Awareness algorithm. The CSS uses the normalized response time from client to server to determine the load on each service. ACA balances the traffic over the services based on load. balance destip - Destination IP address division algorithm. The CSS directs all client requests with the same destination IP address to the same service. This option is typically used in a caching environment. balance domain - Domain name division algorithm. The CSS divides the alphabet evenly across the number of caches. It parses the host tag for the first four letters following the first dot and then uses these characters of the domain name to determine to which server it should forward the request. This option is typically used in a caching environment. balance domainhash - Internal CSS hash algorithm based on the domain string. The CSS parses the host tag and does an exclusive XOR hash across the entire host name. It then uses the XOR hash value to determine to which server to forward the request. This method guarantees that all requests with the same host tag will be sent to the same server in order to increase the probability of a cache hit. This option is typically used in a caching environment. balance leastconn - Least connection algorithm. This balance method chooses a running service that has the least number of connections. balance roundrobin - Roundrobin algorithm (default). The CSS resolves the request by evenly distributing the load to resolve domain names among local and remote content domain sites. balance srcip - Source IP address division algorithm. The CSS directs all client requests coming from the same source IP address to the same service. This option is generally used in a caching configuration. balance url - URL division algorithm. The CSS divides the alphabet evenly across the number of caches. It then parses the URL for the first four characters located after the portion of the URL matched on by the rule. For example, if the URL in a content rule is configured for "/news/*", the CSS will balance on the first four characters following "/news/". This option is typically used in a caching environment.
7-21
balance weightedrr - Weighted roundrobin algorithm. The CSS uses roundrobin but weighs some services more heavily than others depending on the servers configured weight. All servers have a default weight of 1. To set a server weight, use the add service weight command in owner-content mode. balance urlhash - Internal CSS hash algorithm based on the URL string. The CSS parses the URL and performs an XOR hash across the URL. It then uses the XOR hash value to determine to which server to forward the request. This method guarantees that all requests for the same URL will be sent to the same server in order to increase the probability of a cache hit. This option is typically used in a caching environment.
dnsbalance preferlocal - Resolve the request to a local VIP address. If all local systems exceed their load threshold, the CSS chooses the least loaded remote system VIP address as the resolved address for the domain name. dnsbalance roundrobin - Resolve the request by evenly distributing the load to resolve domain names among local and remote content domain sites. The CSS does not include sites that exceed their local load threshold. dnsbalance leastloaded - Resolve the request to the least-loaded of all local or remote domain sites. The CSS first compares load numbers. If the load number between domain sites is within 50, then the CSS compares their response times. The site with the faster response time is considered the least-loaded site.
7-22
78-11424-01
Chapter 7
Note
For the leastloaded option to work properly, all domain sites must be running a minimum of CSS software version 3.02.
dnsbalance useownerdnsbalance - Resolve the request by using the DNS load balancing method assigned to the owner. This is the default method for the content rule. If you do not configure an owner method, the CSS uses the default owner DNS load-balancing method of roundrobin. To configure a DNS balancing method for an owner, refer to Configuring an Owner DNS Balance Type in Chapter 6, Configuring Owners.
For example:
(config-owner-content[arrowpoint-rule1])# dnsbalance roundrobin
To restore the DNS balance type to the default setting of using the owners method, enter:
(config-owner-content[arrowpoint-rule1])# no dnsbalance
Configuring Hotlists
Use the hotlist command to define a hotlist that lists the content most requested (hot content) during a user-defined period of time. The CSS enables you to configure hotlist attributes for content rules. Defining hotlist attributes for a content rule enables you to determine which content is heavily accessed. With this information, you can accurately determine which content should be replicated.
Note
You must configure and enable a hotlist for replication-store and replication-cache to work. You can configure the following attributes for hotlists for specific content from config-owner-content mode:
hotlist - Enable the hotlist. To enable a hotlist for a specific content rule, enter the hotlist command from the corresponding owner-content mode. For example:
(config-owner-content[arrowpoint-rule1])# hotlist
7-23
hotlist interval - Set the hotlist refresh interval. Enter the interval time in minutes from 1 to 60. The default is 1. For example:
(config-owner-content[arrowpoint-rule1])# hotlist interval 10
hotlist size - Set the size of the hotlist. Enter the total number of entries maintained for this rule from 1 to 100. The default is 10. For example:
(config-owner-content[arrowpoint-rule1])# hotlist size 10
hotlist threshold - Set the hotlist threshold. Enter an integer from 0 to 65535 to specify the threshold above which a piece of content is considered hot. The default is 0. For example:
(config-owner-content[arrowpoint-rule1])# hotlist threshold 9
hitCount - Set the hotlist type to hit count, how may times the content was accessed. For example:
(config-owner-content[arrowpoint-rule1])# hotlist type hitcount
7-24
78-11424-01
Chapter 7
To display hotlist information, use the show domain hotlist command. For example:
(config)# show domain hotlist Hotlist Enabled Size: 100, Interval: 1, Threshold: 0 3 Hot Domains Hits: Domain: 3 www.flute.com 1 www.violin.com 17 www.piano.com
domain hotlist - Enable the domain hotlist. The domain hotlist is disabled by default. domain hotlist interval minutes - Configure the interval to refresh the domain hotlist and start a new list. Enter the interval from 1 to 60 minutes. The default is 1 minute. domain hotlist size max_entries - Configure the maximum number of domain entries contained in the hotlist. Enter the maximum number of entries from 1 to 100. The default is 10 entries. domain hotlist threshold number - Configure the threshold, which is the number of domain hits per interval that must be exceeded for a domain to be considered hot and added to the list. Enter the threshold from 0 to 65535. The default is 0, which disables the threshold.
To display the domain hotlist and its configuration, use the show domain hotlist command.
7-25
url /url_name - Specify the URL for the content as a quoted text string with a maximum length of 255 characters. url /{url_path}/* eql eql_name - Specify the URL for any content file that has its file extension defined in the specified Extension Qualifier List (EQL). url /{url_path}/* dql dql_name {eql_name} - Specify the URL for any content file that has its file extension defined in the specified Domain Qualifier List (DQL). You cannot use a DQL in conjunction with a domain name in an URL. You may optionally include an EQL after the DQL name to specify specific file extensions as part of the DQL matching criteria. url urql urql_name - Specify a URQL consisting of a group of URLs to this content rule. Note that you cannot specify both url urql and application ssl for the same content rule.
url_name - The URL for the content. Enter a quoted text string with a maximum length of 255 characters. You must place a slash character (/) at the beginning of the URL (for example, /announcements/prize.html). To specify a domain name, place two slashes (//) at the beginning of the URl. For example, //www.arrowpoint.com/* allows the rule to match on HTTP traffic that contains the www.arrowpoint.com domain name in the HTTP host tag. To use stickiness based on Secure Socket Layer (SSL) session ID, set the URL to /*. Also, set the port to 443 with the (config-owner-content) port command and enable stickiness with the (config-owner-content) advanced-balance ssl command. Then specify an SSL application type.
7-26
78-11424-01
Chapter 7
You can specify certain wildcard operations for wildcard matching. Use a * character to specify a wildcard match. You can specify a maximum of eight directories. Each directory name can be a maximum of 32 characters with a total maximum of 255 characters in the URL. You can specify only one wildcard per URL. Examples of supported wildcards are:
/*.html - Matches all requests with the .html extension. /announcements/* - Matches all requests for files in the announcements directory. /announcements/*.html - Matches requests for files in the announcements directory having .html extensions. /announcements/new/*.jpg - Matches requests for all files in the announcements/new directory that contain the .jpg extension.
url_path - An optional path to any content file that has its file extension defined in the EQL. Enter a quoted text string. You must place:
A slash character (/) at the beginning of the quoted path /* characters at the end of the quoted path
eql_name - The name of the EQL. To see a list of EQLs, enter eql ?. urql_name - The name of the URQL. You can only assign one URQL per rule. To see a list of URQLs, enter urql ?.
Note
For caching environments, you can configure a domain content rule by placing two slash characters (//) at the front of the url_name or url_path. The rule matches HTTP traffic that contains the domain name in the HTTP host tag. For example, to specify a URL that matches all requests for content in the announcements directory with .html extensions, enter:
(config-owner-content[arrowpoint-products.html])# url "/announcements/*.html"
7-27
To display a URL for a content rule, enter the show rule command for the content rule.
Note
Do not specify a file extension in the URL when you use an EQL in the URL or the CSS will return an error message. For example, the CSS will return an error message for the command url /*.txt eql Cacheable. The following command is valid; url /* eql Cacheable. For example:
(config-owner-content[arrowpoint-products.html])# url "/*" eql graphics
The following example enables the CSS to direct all requests to the correct service for content that matches:
7-28
78-11424-01
Chapter 7
Make the content unavailable to subsequent requests at its current address. Provide an URL to send back to the requestor. You must add an URL to the content rule for redirect to force the HTTP request. For example, url /*. Enter the URL as a quoted text string with a maximum of 64 characters.
Note
If you also set status code 404 (drop message) for content, code 302 takes priority. Do not configure a service for a redirect-only content rule. For example:
(config-owner-content[arrowpoint-rule1])# redirect "//www.arrowpoint.com/newlocation.html"
7-29
Matches on the same content rule that specified the current service. Matches on a new content rule that contains the current service, even if a different best service is specified by the content rule. Does not match on a content rule, but a previous content rule match connected the client to the current service.
This CSS behavior is known as content rule persistence. If you are using transparent caches (which prefetch content) or mirrored-content servers, this scheme works well because the same content is available on each service.
7-30
78-11424-01
Chapter 7
Use the persistent command in content configuration mode to maintain a persistent connection with a server as long as the above criteria are met. By default, persistence is enabled. Disabling persistence will allow the CSS to move a connection to a better service on the same rule or to use cache bypass functionality (EQLs or failover bypass). For example:
(config-owner-content[arrowpoint-rule1])# persistent
A balance method of domain or domain hash when using proxy caches A balance method of url or urlhash when using transparent caches A failover method of bypass when using transparent caches An EQL bypass with a transparent cache Adding a sorry server to a content rule
To disable persistence:
(config-owner-content[arrowpoint-rule1])# no persistent
Note
If a request for content on a persistent connection matches on a new content rule that does not contain the current service, or persistence is disabled and there is a better service configured in the content rule, the CSS redirects or remaps the current connection to a new best service based on the setting of the persistence reset command, if configured. If you do not configure persistence reset, the CSS performs an HTTP redirect by default. For details, refer to Configuring HTTP Redirection and Service Remapping, later in this chapter.
7-31
You can configure the CSS to redirect or remap a bypassed connection using the bypass persistence global config command in conjunction with the persistence reset command. Use the bypass persistence command to determine if the CSS performs either a remapping or redirection operation to reset a bypassed service when a content request matches on a content rule, but a previous request caused the bypass. This global command affects all flows. By default, bypass persistence is enabled. For example:
(config)# bypass persistence disable
The CSS uses remapping or redirection to reset the connection according to the setting of the persistence reset method.
(config)# bypass persistence enable
The CSS does not use remapping or redirection to reset the connection and continues to bypass a service.
Redirection - An HTTP technique that resets both the client-to-CSS (front-end) connection and the CSS-to-service (back-end) connection, then establishes a new flow to the best service that contains the requested content.
7-32
78-11424-01
Chapter 7
Service Remapping - A technique that resets only the back-end connection to the current service and then creates a new back-end connection to the best service that contains the requested content. This technique is faster and more efficient than redirection because the CSS does not need to reset and then reestablish the front-end connection. With Service Remapping, the CSS strictly manages port mapping to prevent the occurrence of duplicate port numbers.
Use the persistence reset command with the content rule no persistent command to cause an HTTP redirection or perform a back-end remapping operation when resetting a connection to a new back-end service. The global persistence reset command affects all flow setups that require redirection or remapping. For example, to enable redirection:
(config)# persistence reset redirect
Note
The CSS does not use remapping when selecting redirect type services. Refer to Specifying a Service Type in Chapter 5, Configuring Services.
7-33
Note
You can only use a redirect string on a service of type redirect. The redirect-string and (config-service) domain commands are similar. However, the CSS returns the redirect-string command string as configured and does not append it with the queried URL. You cannot configure the redirect-string and (config-service) domain commands on the same service. The syntax for this service mode command is:
redirect-string
string
Enter the HTTP redirect string as an unquoted text string with no spaces and a maximum of 64 characters. For example:
(config-service[serv1])# redirect-string www.arrowpoint.com
7-34
78-11424-01
Chapter 7
Defining Failover
To define how the CSS handles content requests when a service fails or is suspended, use the failover command. For the CSS to use this setting, ensure that you configure a keepalive for each service; that is, do not set the keepalive type to none (the keepalive default is ICMP). The CSS uses the keepalive settings to monitor the services to determine server health and availability. The failover command applies to the following caching load balancing types:
balance domain balance url balance srcip balance destip balance domainhash balance urlhash
Note
If you remove a service (using the remove service command), the CSS rebalances the remaining services. The CSS does not use the failover setting. This command supports the following options:
failover bypass - Bypass all failed services and send the content request directly to the origin server. This option is used in a proxy or transparent cache environment when you want to bypass the failed cache and send the content request directly to the server that contains the content. failover linear (default) - Distribute the content request evenly between the remaining services. failover next - Send the content requests to the cache service next to the failed service. The CSS selects the service to redirect content requests to by referring to the order in which you configured the services.
For example:
(config-owner-content[arrowpoint-rule1])# failover bypass
7-35
Figure 7-3 shows three cache services configured for failover next. If ServerB fails, the CSS sends ServerB content requests to ServerC, which was configured after ServerB in the content rule.
Figure 7-3 ServerB Configured for Failover Next
ServerA 33%
ServerB 33%
As shown in Figure 7-4, if ServerC fails, the CSS sends ServerC content requests to ServerA because no other services were configured after ServerC.
Figure 7-4 ServerC Configured for Failover Next
ServerB 33%
49388
CSS 11800
ServerC 33%
7-36
49389
CSS 11800
78-11424-01
Chapter 7
Figure 7-5 shows three cache services configured for failover linear. If you suspend ServerB or if it fails, the CSS does not rebalance the services. It evenly distribute ServerB cache workload between servers A and C. Note that Figure 7-5 and Figure 7-6 use the alphabet to illustrate division balance.
Figure 7-5 Suspended or Failed Service Configured for Failover Linear
Figure 7-6 also shows three cache services configured for failover linear, but in this example, you remove ServerB using the remove service command from owner-content mode. Because the CSS does not apply the failover setting when you remove a service, it rebalances the remaining services.
49389
CSS 11800
7-37
Figure 7-6
ServerA A-M
ServerB removed
ServerC N-Z
bypass - Bypass the matching of a content rule and sends the request directly to the origin server. ftp-control - Process FTP data streams. http (default) - Process HTTP data streams. realaudio-control - Process RealAudio Control data streams. ssl - Process Secure Socket Layer (SSL) protocol data streams. Note that you cannot specify both url urql and application ssl for the same content rule.
7-38
49381
CSS 11800
78-11424-01
Chapter 7
For example, in a content rule that specifies port 21, you may want to configure the application type as ftp-control. Configuring the content rule to application type ftp-control instructs the CSS to process only FTP requests coming into port 21.
(config-owner-content[arrowpoint-rule1])# application type ftp-control
For example, the following owner portion of a startup-config shows a content rule configured for application ftp-control.
!************************** OWNER ************************** owner arrowpoint content ftprule vip address 192.3.6.58 protocol tcp port 21 application ftp-control add serv1 add serv3 active
param-bypass disable (default) - Content requests with special terminators do not bypass transparent caches. param-bypass enable - Content requests with special terminators bypass transparent caches and are forwarded to the origin server.
7-39
Showing Content
The show content command enables you to display all configured content in the CSS. You can issue the show content command from any mode. To display content information, enter:
# show content Content: There are 2 pieces of content: Index: 0 <173.168.128.11> TCP Index: 1 <173.168.128.11> TCP /index.html
The CSS 11800 provides two additional options to the show content command:
all sfp_number
These options display all content entries in the Switch Fabric Processors (SFP) on a specific SFP. Each SFM has two SFPs, for a maximum of four SFPs in a CSS 11800. For example:
(config)# show content all CS800(config)# show content all Content Database: Total pieces of content: Pieces of content for SFP Pieces of content for SFP Pieces of content for SFP Pieces of content for SFP 22 3 6 5 8
7-40
78-11424-01
Chapter 7
show rule - Display all owners and content rules currently configured in the CSS show rule-summary - Display a summary of owner content information show rule owner_name - Display information identical to the show rule command, but only for the specified owners content show rule owner_name content_name - Display information identical to the show rule command, but only for a specific owner and content
7-41
Advanced Balance: cookies Sticky Mask: 255.255.255.255 Sticky Group: 0 Sticky Server Down Failover: Balance String Match Criteria: String Range: 1 - 100 String Prefix: "UID=" String Eos-Char: ";" String Ascii-Conversion: Enabled String Skip-Len: 3 String Process-Len: 0 String Operation: Match-Service-Cookie Redirect: Param-Bypass: Disabled Services: Local Load Threshold: 254 PrimarySorryServer: None SecondSorryServer: None Name: s1 s2 Hits: 0 0 Wgt: R-1 R-1 State: Alive Alive Ld: 2 2 KAlive: ICMP ICMP Conn: 0 0 DNS: 0 0
DNS Names: DNS TTL: ns.bobo.arrowpoint 0 DNS Balance: roundrobin Hotlist: Enabled Size: 10, Type: HitCount, Threshold 0, Interval 1
Note
The CntRuleName and OwnerName fields display the first 16 characters of the configured data. The Url field displays the first 10 characters of configured data.
7-42
78-11424-01
C H A P T E R
Logging Overview Specifying Logging Buffer Size Specifying Log File Destination Enabling Logging on a Subsystem Logging CLI Commands Showing Log Files Copying Log Files to an FTP or TFTP Server
8-1
Logging Overview
The CSS provides logging capabilities for debugging and system monitoring by generating the log files described in Table 8-1.
Table 8-1 CSS Log File Descriptions
Log File Destination Log File Boot.log Default Location Alternate Location Records Results of the boot process.
Hard disk and None console or flash disk and console Hard disk and None console or flash disk and console
Boot.bak
Backup of a boot log file. Each time you reboot the CSS, the software renames the current boot log file to boot.log.prev and starts a new boot log file. The CSS overwrites an existing backup boot log file when a boot log file is renamed. Log information for user-defined subsystem or CLI commands. By default, logging is enabled and logs subsystem all with level warning. The CSS creates sys.log to record this log information.
Sys.log
8-2
78-11424-01
Chapter 8
Table 8-1
Log File Destination Log File Default Location Alternate Location Console syslogd VTY1 VTY2 Records Backup of a system log file. When a system log file reaches its maximum size (50 MB, for a hard disk-based CSS; 10 MB, for a flash disk-based CSS), the software renames the system log file to sys.log.prev and starts a new system log file. The CSS overwrites an existing backup system log file when a system log file is renamed. When you reboot a CSS, the software continues to use the existing system log file until it reaches its maximum size.
By default, the CSS has boot logging and system logging enabled and writes the logged information to the log files on the hard disk or flash disk, depending on the type of storage in your CSS. The maximum size of a log file is 50 MB for hard disk-based systems and 10 MB for flash disk-based systems. Log file information is recorded as ASCII text. You can display or copy a log file using the show log or copy log command, respectively. For details on these commands, refer to the Content Services Switch Command Reference, included on your Content Services Switch Documentation and System Software CD.
8-3
Note
Configure all logging commands from config mode except for the clear log command. The clear log command is available in SuperUser mode at the root prompt (#).
Table 8-2 Configuring and Enabling Logging
Step
1. 2.
Logging Option size - Size of the disk buffer (0 to 64000) disk filename - New or existing filename in the log directory
Specify the disk buffer size. Specify the destination (disk, host, line) where you wish to log subsystem activity.
host ip or host - IP address of logging host the syslog daemon on the host 192.168.11.3 or a host name logging host myhost.domain.co m log line - CSS active session logging line vty1 subsystem - Valid subsystems: all, urql, keepalive, acl, publish, vpm, fac, security, circuit, portmapper, csdpeer, redundancy, vrrp, rip, app, netman, vlanmgr, chassis, ipv4, wcc, flowmgr, buffer, syssoft, nql logging subsystem rip level alert-1
3.
Enable logging on a CSS subsystem (default all) and level (default warning).
level - Valid levels: fatal-0, alert-1, critical-2, error-3, warning-4, notice-5, info-6, debug-7
8-4
78-11424-01
Chapter 8
Table 8-2
Step
4.
Logging Option sendmail email address of mail recipient IP address or hostname of SMTP host level - Valid levels: fatal-0, alert-1, critical-2, error-3, warning-4, notice-5, info-6, debug-7
Optionally, enable the CSS to send log messages to an email address and specify a level.
5.
8-5
disk filename - New or existing filename in the disk log directory host ip or host - IP address of the syslog daemon on the host or a host name log line - CSS active session
Stops writing default log information to sys.log Creates the filename you specify in the disk log directory Sends subsystem and level information to the log filename
You can have only one active log file on the disk at a time. If you wish to send subsystem information to a different log file on the disk, re-enter the logging disk command with a different filename.
When you disable logging to disk, the CSS stops logging to the specified file and re-enables logging to the sys.log file.
8-6
78-11424-01
Chapter 8
An IP address or a host name - The address of the syslog daemon on the host. Enter the IP address in dotted-decimal notation (for example, 192.168.11.1) or the mnemonic host name (for example, myhost.mydomain.com). facility number - The syslog daemon facility level. Enter a number from 1 to 7. For more information on the syslog daemon and facility levels, refer to your syslog daemon documentation.
For example:
(config)# logging host 192.168.11.1 facility 3
8-7
Table 8-3 defines the CSS subsystems for which you can enable logging.
Table 8-3 Logging Subsystems
Subsystem acl all (default) app buffer chassis circuit csdpeer dql fac flowmgr hfg ipv4 keepalive netman nql ospf
Definition Access Control List (ACL) All CSS subsystems Application Peering Protocol (APP) Buffer manager Chassis manager Circuit manager Content Server Database (CSD) peer Domain Qualifier List (DQL) Flow Admission Control (FAC) Flow manager subsystem Header Field Group (HFG) Internet Protocol version 4 (IPv4) Keepalive Network management Network Qualifier List (NQL) Open Shortest Path First
8-8
78-11424-01
Chapter 8
Table 8-3
Subsystem pcm portmapper proximity publish redundancy replicate rip security syssoft urql vlanmgr vpm vrrp wcc
Definition Proximity CAPP Messaging (PCM) Port Mapper Proximity Publish CSS redundancy Content replication RIP Security manager System software Uniform Resource Locator Qualifier List VLAN manager Virtual pipe manager Virtual Router Redundancy Protocol Web conversation control
8-9
Table 8-4 defines the logging levels you can set for a CSS subsystem. The logging levels are listed in order of severity with a fatal error being the most severe and info being the least severe error.
Table 8-4 Subsystem Logging Levels
Definition Fatal errors only. Alert errors, including fatal errors. Critical errors, including alert and fatal errors. The following trap events log at the critical level: link down, cold start, warm start, service down, service suspended. General errors, including critical, alert, and fatal errors. Warning messages, including all lower levels (error, critical, alert, and fatal. Notice messages, including all trap events (except for events logged at critical) and all lower levels except for info and debug. Informational messages, including all lower levels except for debug. Debug messages, including all other error levels.
8-10
78-11424-01
Chapter 8
name - The name of a CSS subsystem. Enter one of the following subsystem names:
acl - ArrowPoint Control Lists all - All subsystems app - Application Peering Protocol (APP) buffer - Buffer Manager chassis - Chassis Manager circuit - Circuit Manager csdpeer - Content Server Database (CSD) Peer dql - Domain Qualifier List (DQL) fac - Flow Admission Control (FAC) flowmgr - Flow Manager hfg - HFG ipv4 - IPv4 keepalive - Keepalive netman - Network Management nql - Network Qualifier List (NQL) ospf - OSPF pcm - PCM portmapper - PortMapper proximity - Proximity publish - Publish replicate - Replication
Content Services Switch Basic Configuration Guide
78-11424-01
8-11
redundancy - CSS redundancy rip - RIP security - Security Manager syssoft - System software urql - Uniform Resource Qualifier List vlanmgr - VLAN Manager vpm - Virtual Pipe Manager vrrp - Virtual Router Redundancy Protocol wcc - Web Conversation Control
level - The log level for the message. Enter one of these levels:
fatal-0 - Fatal errors only alert-1 - Alert errors, including errors at the fatal-0 level critical-2 - Critical errors, including errors at the alert-1 level error-3 - Error errors, including errors at the critical-2 level warning-4 - Warning errors (default), including errors at the error-3 level notice-5 - Notice messages, including errors at the warning-4 level info-6 - Informational messages, including errors at the notice-5 level debug-7 - All errors and messages
Note
Before you configure logging for a specific ACL clause, ensure that global ACL logging is enabled. To globally enable ACL logging, use the logging subsystem acl level debug-7 command in config mode.
8-12
78-11424-01
Chapter 8
Enter the ACL mode for which you want to enable logging.
(config)# acl 7 (config-acl[7])#
2.
A new clause by entering the log option at the end of the clause. For example:
(config-acl[7])# clause 1 deny udp any eq 3 destination any eq 3 log
email_address - The email address for the recipient. Enter the email address as a case-sensitive unquoted text string with a length of 1 to 30 characters. IP_address - The IP address for the SMTP host. Enter the IP address in dotted-decimal notation (for example, 192.168.11.1). level - The type of information to log. The valid levels are defined in Table 8-4.
8-13
domain - The domain name for the SMTP host. Enter an unquoted text string with a maximum length of 64 characters (for example, arrowpoint.com). Do not insert an @ sign before the domain name. The CSS automatically prepends it to the domain name.
show log - Send the log activity to your current session. Press any key to stop displaying log activity. This command performs the same function as (config) logging line. Note that you cannot run these commands at the same time. show log logfilename - Display the contents in a log file. show log-list - Display a list of all log files. show log traplog - Display all traps that have occurred. A trap log file is an ASCII file in the log directory containing generic and enterprise traps.
8-14
78-11424-01
Chapter 8
To display a list of valid log files, enter the show log ? command line. For example:
(config)# show log ? <cr> stub timestamps.txt seqnumbers.txt traplog Execute command MAR 23 14:16:42 MAR 23 14:18:48 MAR 23 14:18:48 MAR 25 10:16:18
6 0 0 569
To display information in a specific log file, enter the show log command with a valid log filename. For example:
(config)# show log stubs SEP 22 09:59:18 5/1 918 NETMAN-7: SNMP:SET RSP (3803) SEP 22 09:59:53 5/1 919 NETMAN-7: SNMP:SET (3804) SEP 22 09:59:53 5/1 920 NETMAN-7: SNMP: 1) apLogHostIpAddress.[1.2.3.4] VT_IPADDRESS <1.2.3.4> SEP 22 09:59:53 5/1 921 NETMAN-7: SNMP: 2) apLogHostIpAddress.[1.2.3.4] VT_IPADDRESS <1.2.3.4>
8-15
To display which levels are set for subsystems, use the show log-state command. For example:
(config)# show log-state Subsystem Levels: debug info notice warning error critical alert fatal | X | | | | | | | | | X | | | | | | | | | X | | | | | | | | | X | | | | | | | | | X | | | | | | | | | X | | | | | | | | | X | | | | | | | | | X | | | | | | | | | X | | | | | | | | | X | | | | | | | | | X | | | | | | | | | X | | | | | | | | | X | | | | | | | | | X | | | | | | | | | X | | | | | | | | | X | | | | | | | | | X | | | | | | | | | X | | | | | | | | | X | | | | | | | | | X | | | | | | | | | X | | | | | | | | | X | | | | | | | | | X | | | | | | | |
syssoft buffer flowmgr wcc ipv4 chassis vlanmgr netman app rip vrrp redundancy csdpeer portmapper circuit security fac vpm publish acl keepalive urql nql
8-16
78-11424-01
Chapter 8
Using the CSS Logging Features Copying Log Files to an FTP or TFTP Server
For example:
# copy log starlog ftp ftpserv1 starlogthurs
logfilename - The name of the log file on the CSS. Enter an unquoted text string with no spaces and a maximum length of 32 characters. ftp_record - The name of the FTP record file that contains the FTP server IP address, username, and password. Enter an unquoted text string with no spaces and a maximum length of 32 characters. filename - The name you want to assign to the file on the FTP server. Include the full path to the file. Enter an unquoted text string with no spaces and a maximum length of 32 characters.
8-17
logfilename - The name of the log file on the CSS. Enter an unquoted text string with no spaces and a maximum length of 32 characters. IP address or hostname - The IP address or host name of the TFTP server to receive the file. Enter an IP address in dotted-decimal notation (for example, 192.168.11.1) or in mnemonic host-name format (for example, myhost.mydomain.com). If you wish to use a hostname, you must first set up a host table using the (config) host command. filename - The name you want to assign to the file on the TFTP server. Include the full path to the file. Enter an unquoted text string with no spaces and a maximum length of 32 characters.
8-18
78-11424-01
A P P E N D I X
A-1
Note
You do not need to uncompress the GZIP-compressed software. When you copy it or the upgrade script copies it to the CSS, the CSS uncompresses it.
Log into the CSS. Access global configuration mode. For example:
# config (config)#
3.
Configure the default FTP server by using the ftp-record command. The syntax is:
ftp-record ftp_record ip_or_host username [password|encrypted-password encrypted_pwd] {base_directory}
ftp_record - Name for this FTP record file. Enter an unquoted text string with no spaces and a maximum length of 32 characters. ip_or_host - IP address or host name of the FTP server you want to access. Enter an IP address in dotted-decimal notation (for example, 192.168.11.1) or a mnemonic host name (for example, myhost.mydomain.com). username - Valid login username on the FTP server. Enter a case-sensitive unquoted text string with no spaces and a maximum length 32 characters. password - Password for the valid login username on the FTP server. Enter a case-sensitive quoted text string with no spaces and a maximum length of 16 characters.
A-2
78-11424-01
Appendix A
encrypted_pwd - Encrypted password for the valid login username on the FTP server. Enter a case-sensitive unquoted text string with no spaces and a maximum length of 16 characters after the encrypted-password option. base_directory - Optional base directory when using this record.
For example:
(config)# ftp-record DEFAULT_FTP 192.168.2.01 eng1 encrypted-password serve
Automatically Running the Upgrade Script Interactively Using the Upgrade Script
Checks to see how many installed software versions are installed on the CSS. On a hard disk-based system, if there are four installed versions (the maximum), the script deletes an older version. On a flash disk-based system (CSS 11150 or CSS 11800), if there are two installed versions (the maximum), the script deletes the older version.
A-3
Note
The script will not offer to delete a version that you have configured as the primary or secondary boot file. On a flash disk-based system, you may need to quit and then deselect the primary or secondary boot file before continuing with the upgrade.
Archives the running-config to startup-config. Copies the new ADI to the CSS boot-image directory. Unpacks the new ADI. Sets the primary boot-file to the new ADI. Reboots the CSS.
Caution
If you created additional profiles on the CSS, archive them by using the archive script or save_profile command. After the upgrade is done, use the restore filename script command to restore the profile you archived.
2.
Start the upgrade script and include the name of the ADI and its extension in quotes.
If you are using a GZIP-compressed ADI from the FTP server, include the gz file extension. For example:
#
upgrade ap0400003.gz
If you are using an uncompressed version of the ADI from the FTP server, include the adi file extension. For example:
#
upgrade ap0400003.adi
If you did not configure a default FTP record before starting the upgrade script, you are prompted to configure one. You can either:
Allow the CSS to automatically configure a record to an ArrowPoint server containing the ADI. At the prompts, manually configure the FTP record by entering the FTP server information where you copied the upgrade ADI.
A-4
78-11424-01
Appendix A
When a default FTP record is configured, information similar to the following appears during the upgrade:
Current Version:ap0400003 (Build 3) *** You must remove an installed version to upgrade. *** Attempting to delete ap0310046 archive running-config startup-config Attempting ftp of ap04010001.adi: # copy ftp DEFAULT_FTP ${new_version_adi} boot-image Copying (-) 57,241,012 Completed successfully. #(config-boot)# unpack ${new_version_adi} Unpacking(/) 99% (config-boot)# setting primary boot-file ap0401001 rebooting
The CSS automatically performs a flash upgrade, if necessary, and then boots the new image.
Remove ADIs from the CSS if the script detects four installed versions on a hard disk-based system or two versions on a flash disk-based system (CSS 11150 or CSS 11800) Enter the version of the new ADI Set the primary boot-file to the new ADI Reboot the CSS with the ADI you are installing after the upgrade is done Archive the running-config to startup-config
A-5
Caution
If you created additional profiles on the CSS, archive them by using the archive script or save_profile command. After the upgrade is done, use the restore filename script command to restore the profile you archived.
2.
If you did not configure a default FTP record before starting the upgrade script, you are prompted to configure one. You can either:
Allow the CSS to automatically configure a record to an ArrowPoint server containing the ADI. At the prompts, manually configure the FTP record by entering the FTP server information where you copied the upgrade ADI.
When a default FTP record is configured, the script displays the current version of the ADI.
Current Version: ap04100003 (Official)
A hard disk-based CSS can contain a maximum of four ADIs. A flash disk-based CSS (CSS 11150 or CSS 11800) can contain a maximum of two ADIs. If the script detects the maximum number of ADIs, a message informs you that you need to remove an ADI. Then the script prompts you to remove an older ADI. For example:
*** You must remove an installed version to upgrade.*** remove ap0310046 [y n q]?
Note
The script will not offer to delete a version that you have configured as the primary or secondary boot file. On a flash disk-based system, you may need to quit and then deselect the primary or secondary boot file before continuing with the upgrade.
A-6
78-11424-01
Appendix A
3.
Enter y to remove the displayed ADI version. Enter n for the script to display another version to remove. Enter q to exit from the script.
4.
At the prompt, enter the file name and extension of the GZIP-compressed ADI version to install, and verify the information you entered. For example:
Please Enter Version to Install:ap0401001.gz
Note
If you are using an uncompressed version of the ADI from the FTP server, include the adi file extension (for example, ap0401001.adi).
Upgrade to Version ap0401001? [y n q] y
5.
Enter y to set the ADI as the primary boot-file and change the CSS configuration. Enter n to keep the same primary boot-file configuration.
6.
Determine whether to have the CSS reboot with the ADI you are installing.
Enter y to reboot the CSS with this ADI after the upgrade is done. Enter n to not reboot the CSS with the ADI after the upgrade is done.
7.
Determine whether to have the CSS archive the running-config to the startup-config.
Enter y to archive the running-config to the startup-config. Enter n to keep the same startup-config.
A-7
The script copies the ADI from the FTP server, unpacks and installs it, and sets it as the primary boot-file.
Attempting ftp of ap0401001.gz: # copy ftp DEFAULT_FTP ${new_version_adi} boot-image
Copying (-) 57,241,012 Completed successfully. # (config-boot)# unpack ${new_version_adi} unpacking(/) 99% (config-boot)# setting primary boot-file ap0401001
If you decided to reboot the CSS with the installed ADI in Step 6, the CSS reboots automatically. If you made the ADI the primary boot-file and archived the running-config to the startup-config, the CSS automatically performs a flash upgrade, if necessary, and then boots the new image. To manually reboot the system, enter the following commands:
(config)# boot (config-boot)# reboot
Note
Make sure that you configure a default FTP server, as described in the Before You Begin section earlier in this appendix. To manually upgrade the software version on your CSS:
1. 2.
Log onto the CSS. If necessary, remove an older version of the ADI from the CSS. A hard disk-based CSS can contain a maximum of four ADIs. A flash disk-based CSS (CSS 11150 or CSS 11800) can contain a maximum of two ADIs.
A-8
78-11424-01
Appendix A
Caution
Do not remove the ADI currently running on the CSS. Use the version command to see the currently running software version. To remove an ADI:
a. List the ADIs on the CSS. For example:
(config)# show installed-software ap0301006 ap0301046 ap0400003
3.
You can also use the save_config alias to archive your startup-config. To view all available aliases, use the show aliases command.
Caution
If you created additional profiles on the CSS, archive them by using the archive script or save_profile command. After the upgrade is done, use the restore filename script command to restore the profile you archived.
4.
DEFAULT_FTP is the FTP record file defined in Configuring an FTP Server Record on the CSS.
A-9
When you copy a GZIP-compressed ADI onto the CSS, the CSS automatically uncompresses it.
Note
If you are copying an uncompressed version of the ADI from the FTP server, include the adi file extension (for example, ap0400003.adi).
5.
6.
Set the new ADI as the primary boot-file and install it.
(config-boot)# primary boot-file ap0400003
7.
The CSS automatically performs a flash upgrade, if necessary, and then boots the new image.
A-10
78-11424-01
I N D E X
A
ACA load balancing 7-21 using with server weight and load 5-7 ACLs disabling logging globally 8-13 logging activity 8-12 activating content rule 7-19 service 5-42 active SCM copying boot configuration record to passive SCM 2-21 adding service specifying a service weight 7-17 address specifying for owner 6-4 ADI removing 2-11 unpacking 2-10 administrative password changing 1-5 administrative username setting using Offline Diagnostic Monitor menu 1-33
advanced options for Offline Diagnostic Monitor menu 1-30 aging time configuring for bridging 3-21 alternate configuration path 1-20, 2-22 application specifying in a content rule 7-38 Application Program Interface configuring 2-32 application type required for Layer 5 content rules 7-38 archive directory archiving files to 1-48 clearing 1-49 restoring files from 1-50 archived log file restoring 1-50 archived script restoring 1-51 archive startup-config restoring 1-51
IN-1
Index
archiving files to the archive directory 1-48 log files 1-48 running-config 1-49 scripts 1-49, A-4 startup-config 1-49 ARP clearing parameters 3-6 configuring for CSS 3-4 configuring timeout 3-5 configuring wait time 3-6 displaying information 3-7 updating parameters 3-6 ArrowPoint Content Awareness. See ACA ArrowPoint Distribution Image. See ADI assigning content rule to owner 7-6 IP address to a service 5-27 VIP to owner content 7-7 associating service to global keepalive 5-19 audience xxii
billing information specifying for owner 6-4 boot specifying primary boot file 2-11 specifying primary boot type 2-12 boot.bak 8-2 boot.log 1-40, 8-2 boot configuration displaying 1-29 flowchart 1-17 mode 2-10 specifying secondary 2-13 Boot Configuration menu 1-17 options 1-18 boot configuration mode 2-10 boot configuration path specifying secondary 2-14 boot configuration record copying from active SCM to passive SCM 2-21 boot file specifying secondary 2-13 booting the CSS 1-13 boot mode
B
balance type for DNS 7-22 load balancing 7-21
IN-2
78-11424-01
Index
bridge enabling and disabling spanning tree 3-24 bridge aging time restoring default value 3-22 bridge forward time restoring default value 3-22 bridge hello time configuring 3-22 restoring default value 3-22 bridge max age configuring 3-23 restoring default value 3-23 bridge pathcost configuring 4-9 bridge priority configuring for bridging 4-9 configuring for CSS 3-23 restoring default value 4-9 bridge state configuring 4-10 disabling 4-10 bridging configuring aging time 3-21 configuring for CSS 3-21 interface to VLAN 4-8 broadcast IP address restoring default value 4-19
bypass caches 7-35 for failover 7-35 parameter bypass 7-39 transparent caches 7-39 bypassing transparent caches 7-39 bypass persistence 7-30 configuring 7-31
C
cache bypassing transparent cache 7-39 cache bypass configuring for a service 5-34 case-sensitivity specifying for content requests 6-5 caution configuring Ethernet Management port IP address 1-29 smurf attacks 3-16 changing CLI prompt 2-6 user password 1-7 check disk disabling or enabling on the disk 1-37 performing on the disk 1-35 checksum calculated for Web page 5-39
IN-3
Index
circuit overview 4-1 showing 4-17 circuit IP configuring an IP address 4-18 configuring broadcast address 4-19 configuring redirects 4-19 disabling 4-21 enabling 4-21 removing 4-19 clearing archive directory 1-49 ARP parameters 3-6 running-config or startup-config 1-43 CLI changing the prompt 2-6 expert mode 2-28 CLI commands logging to sys.log 8-14 command scheduler configuring 2-33 displaying records 2-35 configuration quick start content rule 7-5 initial configuration 1-2 logging 8-3 service and owner 5-4
configuring bridge aging time 3-21 bridge forward time 3-22 bridge hello time 3-22 bridge max age 3-23 bridge pathcost 4-9 bridge priority 4-9 bridge state 4-10 circuit 4-15 circuit IP address 4-18 circuit IP broadcast address 4-19 circuit IP redirects 4-19 circuit IP unreachables 4-20 content rule port information 7-20 domain name in a content rule 7-10 ECMP 3-12 FTP server record A-2 global keepalive active 5-15 global keepalive description 5-15 global keepalive frequency 5-15 global keepalive IP address 5-16 global keepalive maxfailure 5-16 global keepalive method 5-16 global keepalive port 5-17 global keepalive retry period 5-17, 5-38 global keepalive suspend 5-17 global keepalive type 5-18 global keepalive URI 5-18 hotlist attributes for content rules 7-23
IN-4
78-11424-01
Index
interface 4-4 interface duplex and speed 4-6 IP ECMP 3-12 IP for CSS 3-11 IP record route 3-11 IP redundancy 3-11 IP route 3-13 IP source route 3-15 IP subnet broadcast 3-16 load balancing 7-21 permanent connections for TCP ports 2-29 protocol for a content rule 7-20 reset of Fast Ethernet and Gigabit Ethernet ports 2-30 RIP advertise 3-8 RIP default-route 4-22 RIP equal-cost 3-9 RIP for an interface 4-22 RIP for CSS 3-8 RIP receive 4-23 RIP redistribute 3-9 RIP send 4-23 router-discovery for an IP interface 4-20 router-discovery lifetime 4-16 router-discovery limited-broadcast 4-16 router-discovery max-advertisement-interval 4-16 router-discovery min-advertisement-interval 4-17 router-discovery preference 4-20
service 5-27 service keepalive port 5-37 time and date 1-10 user name and password 1-6 virtual IP address 7-7 console enabling access 2-28 restricting access to the CSS 2-27 console authentication configuring 2-26 content case-sensitivity 6-5 removing from owner 7-6, 7-19 showing 7-40 specifying an EQL in a URL 7-28 specifying a URL 7-26 content API configuring 2-32 content requests enabling to bypass transparent caches 7-39 content rule activating 7-19 adding a domain name service 7-11, 7-18 adding a primary sorry server 7-17 adding a secondary sorry server 7-18 adding a service 7-16 assigning to owner 7-6 configuration quick start 7-5 configuring a domain name 7-10
IN-5
Index
configuring hotlist 7-23 configuring port information 7-20 configuring protocol 7-20 defining failover 7-35 description 7-2 layer 3 7-3 layer 4 7-3 layer 5 7-3 persistence 7-30 purpose in life 5-2, 7-3 redirecting requests 7-29 removing 7-19, 7-20 removing service 5-43 showing 7-41 specifying domain name wildcards 7-15 specifying load threshold 7-29 suspending 7-19 wildcards in domain names 7-11, 7-14 content rule, service, owner overview 5-2 content rule persistence 7-30 content rules using a domain name and VIP 7-13 Content Services Switch assigning a subnet mask 1-8, 1-9 booting from a network drive 2-21 configuring bridging 3-21 configuring host name 2-25 configuring idle timeout 2-25
configuring RIP 3-8 configuring user terminal parameters 2-3 controlling remote access to 2-28 displaying configurations 1-53 logging functions 8-4 logging in 1-5 opportunistic layer 3 forwarding 3-28 rebooting 1-13 restricting access to 2-27 shutting down 1-13 Content Services Switch HTTP server controlling access to 2-33 control ports reclaiming 2-30 copying core dumps to FTP or TFTP server 1-52 core dumps to TFTP server 1-53 log files to FTP or TFTP server 8-16 log files to FTP server 1-52, 8-17 log files to TFTP server 8-17 copying new software to CSS A-1 core directory 1-40 core dumps copying to an FTP or TFTP server 1-52 copying to TFTP server 1-53 creating global keepalive 5-14 service 5-26
IN-6
78-11424-01
Index
CSS configuring flow parameters 2-29 CSS. See Content Services Switch CSS 11050 port designation 4-5 CSS 11150 port designation 4-5 CSS 11800 slot/port designation 4-5
performing a check disk 1-35 specifying for log file destination 8-6 disk boot primary boot record 1-23 secondary boot record 1-28 disk buffer size specifying for logging 8-5 disk drive failure network boot for 1-20 disk module restoring files from archive directory 1-50 disk options Offline Diagnostic Monitor menu 1-33 reformatting the disk 1-33 running check disk on the disk 1-33 displaying content 7-40 CSS configurations 1-53 log files 8-14 username 1-7 DNS configuring for CSS 3-1, 3-2 configuring primary server for CSS 3-2 configuring resolve for CSS 3-2 configuring secondary server for CSS 3-3 specifying suffix 3-3
D
date configuring 1-10 configuring for european 1-11 default VLAN restoring 4-9 deleting software from the disk 1-30 describing global keepalive 5-15 disabling circuit IP unreachables 4-20 hotlist 7-24 logging 8-10 logging to disk 8-6 router discovery 4-20 Telnet access for SSHD 3-28 Telnet for use with SSHD 3-26 disk deleting a software version 1-30 disabling logging to 8-6 disabling or enabling check disk 1-37
IN-7
Index
dnsbalance leastloaded 7-22 preferlocal 7-22 roundrobin 7-22 DNS type specifying for owner 6-5 documentation chapter contents xxii map xxv set xxiii symbols and conventions xxvi domain hotlist configuring 7-25 domain name specifying 5-29 domain names configuring in a content rule 7-10 using in a content rule 7-13 using wildcards in content rules 7-15 using with wildcards in a content rule 7-14 domain name service adding to content rule 7-11, 7-18 DQL adding to a content rule 7-26 Duke of URL 7-41 dumps copying core dumps to FTP or TFTP servers 1-52 duplex configuring for interface 4-6
Content Services Switch Basic Configuration Guide
E
ECMP configuring 3-12 configuring IP address 3-12 configuring no-prefer-ingress 3-12 configuring round-robin 3-12 recovering from a failed router 3-12 email address sending log messages to 8-13 specifying for owner 6-6 enabling hotlist 7-23 EQL specifying in a URL 7-28 Ethernet management port configuring an IP address 1-8 european date configuring 1-11 expert mode 2-5 Extension Qualifier List. See EQL
F
failover bypass 7-35 defining for a content rule 7-35 linear 7-35 next 7-35
IN-8
78-11424-01
Index
file destination specifying for logging 8-6 flash disk installed software versions A-3 logging to 8-2 flow parameters configuring 2-29 flow statistics showing 2-32 forward time configuring for bridging 3-22 FTP copying log files to server 1-52, 8-17 enabling access 2-28 reclaiming reserved control ports 2-30 restricting access to the CSS 2-27 FTP boot primary boot record 1-22 secondary boot record 1-27 ftp-control specifying as application type in a content rule 7-38 FTP record configuring 1-11 FTP server copying core dumps to 1-52 copying files from 1-12 copying log files to 8-16 FTP server record configuring A-2
G
global bypass counters descriptions 6-8 in show summary command 6-7 global keepalive mode. See keepalive
H
hard disk directory structure 1-39 installed software versions A-3 logging to 8-2 hard disk failure using network boot 2-22 hardware displaying chassis information 1-54 hash configuring for global keepalive 5-19 configuring for keepalive 5-39 hello time configuring for bridging 3-22 history buffer displaying 2-7 modifying 2-6 host specifying as log file destination 8-7 host name configuring 2-25
IN-9
Index
hotlist configuring for content rules 7-23 configuring for domains 7-25 disabling 7-24 enabling 7-23 HTTP specifying as application type in a content rule 7-38 status code 302 7-29 HTTP cookie configuring for a service 5-30 HTTP keepalive specifying a URI 5-37 HTTP redirection 7-30 HTTP redirection and service remapping configuring 7-32 HTTP server configuring on CSS 2-33
configuring RIP 4-22 describing 4-5 displaying statistics 4-12 overview 4-1 reset of Fast Ethernet and Gigabit Ethernet ports 2-30 restarting 4-14, 4-15 showing 4-11 showing duplex and speed 4-8 showing Ethernet errors 4-13 shutting down 4-14 shutting down all 4-14 interface and circuit quick start 4-3 interface duplex and speed configuring 4-6 interface layer restarting 4-14 internal disk module directory structure 1-39 Internet Assigned Name Authority 7-7 Internet service providers 7-7 IP address configuring for the CSS ethernet management port 1-8 configuring using Offline Diagnostic Monitor menu 1-28 finding 2-28 management port 1-8 removing from circuit 4-19
I
ICMP redirect message transmission disabling 4-19 idle timeout configuring for all sessions 1-53 install new software 1-22, 1-27 interface bridging to VLAN 4-8 configuring 4-4, 4-5 configuring maximum idle time 4-7
Content Services Switch Basic Configuration Guide
IN-10
78-11424-01
Index
IP configuration showing 3-17 IP ECMP configuring 3-12 configuring address 3-12 configuring no-prefer-ingress 3-12 configuring round-robin 3-12 IP interfaces displaying configurations 3-17 showing 4-21 stopping RIP 4-22 IP record route configuring 3-11 IP redundancy configuring 3-11 IP route configuring 3-13 displaying configurations 3-18 removing 3-14 IP source route configuring 3-15 IP statistics displaying configurations 3-20 IP subnet broadcast configuring 3-16 IP summary showing 3-21
K
keepalive activating global 5-15 associating service to global keepalive 5-19 checksums for URI 5-39 configuring for service 5-34 configuring frequency 5-36 configuring global description 5-15 configuring global frequency 5-15 configuring global IP address 5-16 configuring global maxfailure 5-16 configuring global method 5-16 configuring global port 5-17 configuring global retry period 5-17 configuring global suspend 5-17 configuring global type 5-18 configuring global URI 5-18 configuring hash for global keepalive 5-19 configuring maxfailure 5-36 configuring method 5-36 configuring retry period 5-38 configuring type 5-38 configuring URI 5-39 creating global keepalive 5-14 global mode 5-13 script 5-22, 5-24, 5-26 showing configurations 5-21, 5-41 specifying hash 5-39
IN-11
Index
keepalive maxfailure configuring 5-36 keepalive port configuring for service 5-37 keepalive type configuring 5-38 keepalive URI configuring 5-39
least connection 7-21 roundrobin 7-21 srcip 7-21, 7-35 url 7-21, 7-35 urlhash 7-22, 7-35 weighted roundrobin 7-22 load reporting configuring 5-11 load step configuring for services 5-9 load tear down timer configuring 5-11 load threshold configuring for services 5-10 specifying for content rule 7-29 locating an IP address 2-28 log file destination specifying disk 8-6 specifying host 8-7 specifying line 8-7 log files archiving 1-48 boot 1-40 copying to an FTP or TFTP server 8-16 copying to FTP server 1-52, 8-17 copying to TFTP server 8-17 restoring archived files 1-50 showing 8-14 sys.log 1-40
L
Layer 3 content rule description 7-3 Layer 4 content rule description 7-3 Layer 5 content rule description 7-3 specifying an application type 7-38 load configuring for services 5-9 showing for services 5-13 load age out timer configuring 5-12 load balancing ACA 7-21 configuring 7-21 destip 7-21, 7-35 domain 7-21, 7-35 domainhash 7-21, 7-35
IN-12
78-11424-01
Index
logging ACL activity 8-12 CLI commands 8-14 commands 8-2 configuring from config mode 8-4 disabling 8-7, 8-10 enabling for a subsystem 8-8 file destination 8-6 for a subsystem 8-6 levels 8-10 overview 8-2 quick start table 8-3, 8-4 showing log files 8-14, 8-15 specifying disk buffer size 8-5 subsystems 8-8 turning off from disk 8-6 turning off from host 8-7 logging into the CSS 1-5 logging to disk disabling 8-6 logging to host disabling 8-7 log messages sending to an email address 8-13
M
management port assigning an IP address 1-8 max age configuring for bridging 3-23 max connections configuring for service 5-42 MIB directory 1-40
N
netmask format configuring for user 2-4 network boot primary boot record 1-20 secondary boot record 1-25 specifying primary config path 2-12 network boot configuration showing 2-24 network drive booting the CSS from 2-21
IN-13
Index
O
Offline Diagnostic Monitor menu 1-13 advanced options 1-30 disabling or enabling check disk 1-37 disk options 1-33 performing a check disk 1-35 reformatting the disk 1-33 setting password protection 1-31 using to configure IP address 1-28 using to configure subnet mask 1-28 opportunistic layer 3 forwarding configuration example 3-29 configuring 3-28 origin servers 7-35 overview circuit 4-1 interface 4-1 service, owner, content rules 7-2 service load 5-5 system software 1-39 owner assigning content rule 7-6 configuration quick start 6-2 creating 6-3 removing 6-6 removing content 7-6, 7-19 showing global bypass counters 6-7 showing information 6-6
specifying address 6-4 specifying DNS type 6-5 specifying email address 6-6 specifying owner billing information 6-4 owner, service, content rule overview 5-2
P
packet storms preventing 3-24 param-bypass 7-39 passive SCM configuring boot record 2-15 configuring IP address 2-17 configuring primary boot file 2-17 configuring primary configuration path 2-18 configuring SCM secondary boot file 2-19 configuring secondary boot type 2-19 configuring secondary configuration path 2-20 configuring subnet mask 2-20 copying boot-config from active SCM 2-21 primary boot file 2-17 primary configuration path 2-17 passive sync command 2-21 password protection setting on Offline Diagnostic Monitor menu 1-31, 1-34
IN-14
78-11424-01
Index
passwords changing 1-5, 1-7 configuring 1-6 pathcost configuring for bridging 4-9 permanent connections configuring for TCP ports 2-29, 2-30 persistence configuring in a content rule 7-30 port configuring as permanent connections 2-30 configuring for service keepalive 5-37 reset of Fast Ethernet and Gigabit Ethernet ports 2-30 resetting 2-30 specifying for a service 5-28 Port. See also interface prefix notation configuring for subnet mask display 2-4 primary boot configuration 2-11 primary boot configuration setting 1-19 primary boot file specifying 2-11 primary boot record disk boot 1-23 FTP boot 1-22 network boot 1-20 secondary boot 1-23 primary boot type configuring 2-12
primary config path specifying for network boot 2-12 primary sorry server adding to content rule 7-17 priority configuring for bridging 4-9 protocol for content rule 7-20 tcp 5-29 udp 5-29
Q
quick start configuring logging 8-4 configuring the CSS 1-2 content rule 7-5 interface and circuit 4-3 logging 8-3 owner 6-2 service and owner 5-4
R
realaudio-control specifying as application type in a content rule 7-38 rebooting CSS 1-13
IN-15
Index
rebooting the CSS 1-13 redirecting requests for content 7-29 redirection configuring in a content rule 7-30 redundancy disabling 3-11 reformatting the disk 1-34 remap configuration showing 7-34 remapping configuring in a content rule 7-30 remote access setting for CSS 2-26 remote service 5-31 removing content rule 7-19, 7-20 content rule from owner 7-6 IP address from a circuit 4-19 owner 6-6 service 5-43 service from content rule 5-43 user name 1-7 restarting interface 4-14 interfaces 4-15 restoring archived log file 1-50 archived script file 1-51 archived startup-config 1-51
bridge priority default value 4-9 default aging-time 3-22 default bridge forward time 3-22 default bridge hello-time 3-22 default bridge max-age 3-23 default bridge priority 4-9 default broadcast IP address 4-19 default path cost 4-9 default VLAN 4-9 files from archive directory 1-50 router-discovery advertisement interval timers 4-17 router-discovery max-advertisement-interval default value 4-16 router discovery preference 4-21 restricting access to the CSS telnet, snmp, console, ftp 2-27 RIP displaying configurations 3-10, 4-23 equal cost 3-9 stopping on an IP interface 4-22 RIP advertise stopping 3-8 RIP default-route configuring 4-22 RIP receive configuring 4-23 RIP redistribute stopping 3-9
IN-16
78-11424-01
Index
RIP send configuring 4-23 roundrobin least connection 7-21 load balancing 7-21 router recovering from a failed router 3-12 router discovery configuring for an IP interface 4-20 configuring min-advertisement-interval 4-17 configuring preference 4-20 disabling 4-20 enabling 4-20 router discovery advertisement interval timers restoring default value 4-17 router-discovery advertisement interval timers restoring default value 4-17 router discovery lifetime configuring 4-16 router discovery limited-broadcast configuring 4-16 router discovery max-advertisement-interval configuring 4-16 router-discovery max-advertisement-interval restoring default value 4-16 router discovery preference configuring 4-20 restoring default value 4-21
running check disk on the disk disk options 1-33 running-config archiving 1-49 clearing 1-43 creating using text editor 1-47 displaying 1-43 example 1-45 ordering information within 1-47 using 1-42 running-profile copying to an FTP server 2-9 copying to an TFTP server 2-9 copying to a user profile 2-8 copying to the default profile 2-8
S
SCM configuring boot record for passive SCM 2-15 configuring IP address for passive SCM 2-17 configuring network boot for passive 2-23 configuring network boot for primary 2-22 script keepalives configuring 5-24 displaying 5-24 overview 5-22 status codes 5-26
IN-17
Index
scripts archiving 1-49 disk directory 1-40 restoring archived file 1-51 secondary boot configuration path specifying 2-14 secondary boot configuration setting 1-23 secondary boot file specifying 2-13 secondary boot record disk boot 1-28 FTP boot 1-27 network boot 1-25 secondary boot type specifying 2-14 secondary config path specifying 2-14 secondary sorry server adding to a content rule 7-18 Secure Shell Daemon. See SSHD security options Offline Diagnostic Monitor menu 1-31 setting password protection on Offline Diagnostic Monitor menu 1-31 sending log messages to an email address 8-13 server primary sorry 7-17 secondary sorry 7-18 servers
Content Services Switch Basic Configuration Guide
order in which types are hit 5-33, 7-16 server types how CSS handles 5-33 server weight and load using with ACA 5-7 service activating 5-42 adding to a content rule 7-17 adding to content rule 7-16 assigning an IP address 5-27 configuring 5-27 configuring an advanced balanced string 5-30 configuring an HTTP cookie 5-30 configuring cache bypass 5-34 configuring global load reporting 5-11 configuring global load threshold 5-10 configuring keepalive 5-34 configuring keepalive port 5-37 configuring load ageout timer 5-12 configuring load step 5-9 configuring load tear down timer 5-11 configuring max connections 5-42 configuring service load 5-9 configuring weight 5-31 creating 5-26 load overview 5-5 order in which types are hit 5-33, 7-16 primary sorry 7-17 removing 5-43
IN-18
78-11424-01
Index
removing from content rule 5-43 removing from source group 5-43 secondary sorry 7-18 showing configuration 5-44 showing load 5-13 specifying a port 5-28 specifying a protocol 5-29 specifying type 5-31 suspending 5-42 service, owner, content rule overview 5-1, 7-2 service access configuring 5-33 service and owner configuration quick start 5-4 service remapping 7-30 service remapping and HTTP redirection configuring 7-32 service type nci-direct-type 5-31 nci-info-type 5-31 proxy-cache 5-31 redirect 5-32 redundancy-up 5-32 replication cache redirect 5-32 replication-store 5-32 replication-store redirect 5-32 transparent-cache 5-32
session specifying as log file destination 8-7 show boot configuration 1-29 showing bridge forwarding 3-24, 4-10 circuits 4-17 content 7-40 content rules 7-41 Ethernet interface errors 4-13 global bypass counters 6-7 interfaces 4-11 IP configuration 3-17 IP interfaces 4-21 IP summary 3-21 log files 8-14 owner information 6-6 service configuration 5-44 user information 1-57 shutting down all interfaces 4-14 interface stack layer 4-14 the CSS 1-13 smurf attacks caution 3-16 SNMP enabling access 2-28 restricting access to the CSS 2-27 software deleting a version from the disk 1-30 directory 2-33
IN-19
Index
displaying information 1-54 overview 1-39 version format 1-40 software upgrade A-3 caution A-4 copying new software to CSS A-1 manual process A-8 script A-3 sorry server adding a primary to a content rule 7-17 adding a secondary to a content rule 7-18 source group removing service 5-43 spanning tree caution when disabling 3-24 enabling and disabling 3-23 specifying owner address 6-4 owner billing information 6-4 owner email address 6-6 speed configuring for interface 4-6 SSHD configuring 3-25 configuring keepalive 3-27 configuring port 3-27 configuring server-keybits 3-27 disabling Telnet for use with 3-26 displaying configurations 3-28
SSL specifying as application type in a content rule 7-38 starting interface 4-14 startup-config 1-41 archiving 1-49 clearing 1-43 creating using text editor 1-47 displaying 1-46 ordering information within 1-47 restoring archived file 1-51 saving offline 1-42 using 1-42 statistics showing flows 2-32 subnet mask assigning to CSS 1-9 configuring using Offline Diagnostic Monitor menu 1-28 subnet mask prefix notation configuring for user 2-4 subsystem disabling logging 8-10 enabling for logging 8-8 suspending content rule 7-19 service 5-42 sys.log 1-40, 8-2 logging CLI commands 8-14
IN-20
78-11424-01
Index
sys.log.prev 8-3 syslogd logging to 8-2, 8-3 system resources showing 1-56
configuring terminal more 2-4 configuring terminal netmask format 2-4 configuring terminal timeout 2-5 terminal timeout configuring for user 2-5 text editor using to create running-config 1-47 using to create startup-config 1-47 TFTP copying log files to server 8-17 TFTP server copying core dumps to 1-53 copying log files to 8-16 time configuring for CSS 1-10 transparent cache bypassing 7-39 transparent caches bypassing 7-39 type specifying for service 5-31
T
TCP ports configuring permanent connections 5-29 specifying destination number 5-28 Telnet disabling for use with SSHD 3-26, 3-28 enabling access 2-28 enabling and disabling for SSHD 3-28 reclaiming reserved control ports 2-30 restricting access to the CSS 2-27 terminal idle configuring for user 2-3 terminal length configuring for user 2-4 terminal more configuring for user 2-4 terminal parameters configuring for users 2-3 configuring terminal idle 2-3 configuring terminal length 2-4
U
UDP destination port number 5-28 Universal Resource Locator. See URL upgrading CSS manually A-8
IN-21
Index
upgrading software configuring FTP record A-2 copying new software to CSS A-1 URI specifying for HTTP keepalive 5-37 URL specifying for content 7-26 user information showing 1-57 username configuring 1-6 displaying 1-7 removing 1-7 user parameter configuring terminal netmask format 2-4 user password changing 1-7 configuring 1-6 user profiles configuring 2-2 copying and saving 2-8 user terminal parameters configuring 2-32 configuring terminal domain lookup 2-3 configuring terminal idle 2-3 configuring terminal length 2-4 configuring terminal more 2-4 configuring terminal timeout 2-5
V
virtual authentication configuring 2-26 virtual IP address configuring 7-7 VLAN bridge to interface 4-8 restoring default 4-9 VTY log files 8-2, 8-3
W
web management enabling access 2-28 restricting access to the CSS 2-27 web page verifying checksum 5-37 weight configuring for a service 5-31 weighted roundrobin load balancing 7-22 wildcards domain names in content rules 7-14 using in content rule domain names 7-15
IN-22
78-11424-01
Index
X
XML enabling access 2-28 enabling access to the CSS 2-33 restricting access to the CSS 2-27, 2-33 using on the CSS 2-32 XOR hash used in domainhash balance algorithm 7-21 used in urlhash balance algorithm 7-22
Y
you audience xxii
Z
zero resetting Ethernet statistics to 4-13 zero IP addresses invalid 1-8 zip file included on documentation CD 2-21 using for network boot 2-21
IN-23
Index
IN-24
78-11424-01