Extreme Networks Px Series manual Configuring Traffic Tagging

Page 55

Configuring Virtual Services

config pattern-rule “<string>” server-group-name <name>

Pattern rules specify the URL that is being matched and the server group that should be used to forward traffic for that URL match.

config domain default

config pattern-rule default server-group-name <name>

All layer 7 service definitions require at least a default pattern rule, to define the “last resort” rule for URL switching. If you use any domain other than domain*, you must define a default domain. The default domain can only contain one pattern rule: the default. These defaults also provide the place to configure cookie and SSL persistence:

config pattern-rule default server-group-name <name> cookie-name <name>

cookie-type [self hash learned]

Cookie-name is the ASCII name of the cookie to search for, and cookie type refers to the type of cookie-based persistence for the virtual service. Although you configure cookies for the default domain, the cookie information applies to the entire site. See Chapter 6 for more information on cookies.

Configuring Traffic Tagging

You can configure a service to tag traffic based on the application or transaction type. You can then use the tag for QoS, MPLS tunneling, or bandwidth reservation, all enforced by the L2/3 infrastructure.

You can specify tags for the 802.1p header and the DiffServ code point (DSCP) in the TCP header. You can tag either or both of these fields. You can specify different tags for traffic towards the server and traffic towards the network.

For level 4 services, configure the service itself for tagging:

config service vip <addr> port <port> proto tcp L4 <tag spec>

For level 7 services, create rules to apply the tags, so that when a session is initiated, the flow is tagged with the specified values.

config service vip <addr> port <port> proto tcp L7 class http config domain name <domain>

config pattern-rule [<url>default] server-group-name <grp> <tag spec>

Table 5-1 shows the possible tag specifications.

Px Series Application Switch Installation and Configuration Guide

5-5

Image 55
Contents Published April Part number 100101-00 Rev Page Contents Installing the PxM Application Switch Module Configuring Servers and Services Index Index of Commands Introduction PrefaceConvention Description ConventionsText Conventions Icon Alerts you toRelated Publications Preface Purpose of Server Load Balancing Server Load Balancing Concepts1Conceptual view of server load balancing TermsLayer 4 Load Balancing Load Balancing Modes2Single client-server transaction using layer Layer 7 Load Balancing and Content Analysis3Establishing a layer 7 request Port Rewrite Getting Started on Load Balancing ConfigurationGetting Started on Load Balancing Configuration Page Overview of the SummitPx1 Application Switch Installing the SummitPx1 Application SwitchSummitPx1 Front View Color Indicates 1Px series application switch LEDsTo DB-9 SummitPx1 Application Switch Rear ViewSignal Description 2DB-9 Adapter PinoutsDetermining the Location Installing the SummitPx1 Application SwitchRack Mounting Free-Standing Powering On the SummitPx1Setting Up Console Communication Configuring Switch IP Parameters Configuring the 10/100 Ethernet Management Port Installing I/O Modules Installing the PxM Application Switch ModuleRemoving I/O Modules Removing I/O Modules Page Managing the Switch 1Command Syntax Symbols Using the Command-Line InterfaceAbbreviated Syntax and Command Completion Syntax Symbols2Line-Editing Keys Symbol DescriptionLine-Editing Keys Specifying Text ValuesCommand History Configuring Management AccessPrompt Text Changing the Default Passwords Modifying Accounts Creating AccountsManaging the PxM Command DescriptionConfiguring VLANs Contact Configuring Snmp4SNMP Configuration Settings Setting Description SystemSettingDescription Configuring DNS Client Services5DNS Client Configuration Commands Using Secure Shell 2 SSH2Config ssh2 key Enabling SSH2 for Inbound Switch AccessUsing SCP2 from an External SSH2 Client SSH2 Client Functions on the Switch Showing CPU Load UtilitiesChecking Basic Connectivity Logging Starting the GlobalPx Content Director Agent Configuring a Startup Banner MessageInternet DNS server Example ConfigurationFollowing commands configure all system-related facilities Page Configuring Real Servers Configuring Servers and ServicesConfiguring Server Groups Configuring Virtual Services Layer 4 Port-based Load Balancing Layer 7 Virtual ServicesConfiguring Traffic Tagging 1Tag Specifications Configuration ExampleTag Specification Description Tag Range Configuration Example Page Scheduling Policies Choosing Policies, Persistence Modes, and NAT1Scheduling Policies Persistence ModesSpecifier Policy Description UDP Flow Persistence Client IP Persistence Mode1Client IP persistence mode Cookie Persistence Modes Configuring Client IP Stickiness2Self-identifying cookie persistence mode Persistence Modes Hashed Cookie Persistence Session Learned Cookie Persistence Mode 4Learned cookie persistence mode Configuring Cookie Stickiness SSL Session Identifier Persistence NAT Modes Full-NAT ModeConfiguring Full-NAT Mode and Proxy IP Addresses Server-only Half-NAT ModeConfiguring Half-NAT Mode Config source-flow name next-hop gateway-mode ip Real Syslog server SummitPx1 Configuration Example Page Domain and URL Switching URL Switching1Typical switching scenario Domain Switching2Domain switching example URL Switching Configuring URL Switching3Simple URL switching example 4More Complicated URL switching example 5Hierarchical approach to pattern rules 1Wildcard Combinations Creating Domain and URL Switching RulesWildcard Example Definition Modifying Existing URL Rules and Domains Application Servers Management net Configuration Example Page Using Vrrp with the SummitPx1 Configuring RedundancyGive backup systems lower priorities Adding and Configuring VRRPsUsing Vrrp in Existing Redundant Networks Vrrp Automatic Synchronization 1Application switch using multiple VLANsFollowing commands can be passed from master to backup Using Esrp with the PxM Configuring Redundancy for the PxMFor SW2 Configuring the PxM for Multiple VLANsConfiguring a Default Gateway Overview Health ChecksServer Startup Pacing Health Checking Procedure Timers and Counters Configuring Health ChecksTypes of Health Checks You can disable health checks for a server group Page 1Statistics Display Commands Monitoring the SwitchShowing Traffic Statistics Displays packet-level counters for 2Configuration Display Commands Showing Configuration DetailsConfiguration Displays SummitPx128 # show server details Status DisplaysColumn Description Show health Information5Management and Troubleshooting Commands Managing and Troubleshooting OperationCommandDescription Esrp IndexHttp GET AUX Page Index of Commands