Cisco LocalDirector Configuration and Command Reference Guide (Software Version 4.2.1)
Command Reference

Table Of Contents

Command Reference

Command-Line Editing

Command-Line Completion

Wildcard Functions

Abbreviating Commands

Access Modes

Help Information

Unrecognized Commands

Commands Listed by Feature

alias ip address

arp

assign

autounfail

backup

bind

boot config

boot image

bridge

buddy

channel

clear

clear configuration

clear counters

clear dns-boomerang counters

clock set

color

configuration

content-rule

data

default

delay

direct-ip

disable

dns-boomerang client

dns-boomerang enable

dynamic-feedback

dynamic-feedback-agent

dynamic-feedback-agent-ip

dynamic-feedback-pw

enable

enable password

failover

failover alias ip address

failover hellotime

failover ip address

failover reset

help

hostname

in-service

interface ethernet

ip address

kill

link

maxconns

mtu

multiring

name

names

out-of-service

pager

pager lines

password

ping

ping-allow

predictor

probe

probeconfig

probedns nodename

probehttp

real

reassign

redirection

reload

replicate

restart

retry

rip passive

rip version

route

secure

service

show

show blocks

show connections

show dns-boomerang client

show dns-boomerang counters

show dns-boomerang enable

show failover

show hardware

show probe

show probeconfig

show probehttp

show rule

show sntp

show syn

shutdown

snmp-server

sntp broadcast client

sntp poll

sntp server

static

sticky

synguard

syslog

telnet

tftp-server

threshold

timeout

url

virtual

weight

who

write

write net


Command Reference


This chapter contains an alphabetical listing of LocalDirector commands and command usage sections. Documentation for each command includes a brief description, command syntax, usage guidelines, and command output examples. Topics include:

Command-Line Editing

Command-Line Completion

Wildcard Functions

Abbreviating Commands

Access Modes

Help Information

Unrecognized Commands

Commands Listed by Feature

Command-Line Editing

You can use the commands shown in Table 5-1 on the command line to edit or display previously entered commands.

Table 5-1 Command-Line Editing 

Command
Function

^a

Go to the beginning of the command line.

^b

Go back one character (left arrow on VT100 terminals).

^d

Delete the current character.

^e

Go to the end of the command line.

^f

Go forward one character (right arrow on VT100 terminals).

^k

Delete line starting from the cursor and put into the delete buffer.

^h

Erase character (same as the Backspace key).

^l

Redraw line.

^n

Move forward (down) in the command history listing (down arrow on VT100 terminals).

^p

Move backward (up) in the command history listing (up arrow on VT100 terminals).

^t

Transpose characters.

^u

Delete entire line.

^y

Yank (bring back) last item that was put into the delete buffer.

^z

Log out of the session.



Note These are all the editing commands supported by LocalDirector.


The show history command lists the last ten command lines entered.

Command-Line Completion

LocalDirector supports command-line completion. When you enter part of a command and press the Tab key, the command matching that letter combination appears. For example, entering fa and pressing the Tab key returns the failover command:

localdirector(config)# fa[Tab]
localdirector(config)# failover

Should the partial command have more than one completion option, press Tab again to display a list of possible completions (the first Tab issues a beep to alert you that more input is needed). For example:

localdirector(config)# s[Tab][Tab]
   secure
   snmp-server
   static
   statistics
   sticky
   syn
   synguard
   syslog
localdirector(config)# s

In the following command example, notice you cannot complete more than the command itself; keywords and variables are not completed:

localdirector(config)# fa[Tab]
localdirector(config)# failover

localdirector(config)# failover ?
usage:[no] failover [active]
        failover ip address <ip_address>
        failover alias ip address <ip_address> [<netmask>]
        failover reset
localdirector(config)# failover i[Tab]
usage:[no] failover [active]

Wildcard Functions

Wildcards can be used with the show commands and with some action commands that are described in this chapter.

In a show command, any field in a real_id or virtual_id specifier may be left blank or padded with the keyword all to list a set of servers that match.

For example, the following two commands display a list of all TCP virtual servers:

localdirector(config)# show virtual all:all:all:tcp
localdirector(config)# show virtual :::tcp

To display a list of virtual servers configured to use port 443 (trailing colons are unnecessary), use the following command:

localdirector(config)# show virtual all:443

To display a list of TCP virtual servers configured to use port 443, use the following minimal command:

localdirector(config)# show virtual :443 tcp

When using some commands for real servers (such as assign, retry, and timeout), you can replace the real_id specifier with the virtual server ID. This allows all the real servers that are bound to the virtual server to be affected by these commands.

With some action commands, you can pad a real_id or virtual_id specifier with the keyword all to act on a set of servers that match. If the command (or no form of the command) does not accept the wildcard all, an error message appears that states the command cannot be used with the all keyword. With some commands involving real_id or virtual_id you do not need to specify port numbers, bind-id's, or protocols. You can substitute :all:all:all for all port numbers, bind-id's, or protocols.

Abbreviating Commands

You can abbreviate most commands by using only a few unique characters for a command. For example, you can enter conf t (configuration terminal) to start configuration mode.

Access Modes

The command interpreter provides a command set that emulates Cisco IOS technologies. This command set provides three administrator access modes:

Unprivileged mode displays the > prompt. You can view current running settings.

Privileged mode displays the # prompt. You can change current settings and write to Flash memory. Any unprivileged command also works in privileged mode.

Configuration mode displays the (config)# prompt. You can change system configurations. Configuration mode commands work only in this mode. Only some of the configuration commands are replicated in the secondary LocalDirector.

Follow this procedure to enter configuration mode:


Step 1 At startup, the console is in unprivileged mode. You can access privileged mode by using the enable command.

a. LocalDirector then prompts you for a password. When you first configure LocalDirector, a password is not required. Press the Enter key at the prompt.

b. Assign a password to privileged mode by using the enable password command.

c. Exit privileged mode by using the disable command.

Step 2 Access configuration mode by using the configuration terminal command while in privileged mode. You can then write your settings to Flash memory, diskette, or the console.


Help Information

Information about each command is available when you enter the command name followed by a question mark at the command line prompt, as shown in the following example.

LocalDirector(config)# route 0.0.0.0 0.0.0.0 ? 
		usage: [no] route <dest_net> <net_mask> <gateway> [<metric>]

LocalDirector(config)# route 0.0.0.0 0.0.0.0 

The syntax of the command appears, followed by the prompt with your previous text entry on the command line. If necessary, use the pager command to control display output.

For a listing of all commands available for the current mode, type a question mark.

Unrecognized Commands

If you enter a command that LocalDirector does not recognize, the following message appears:

Type `?' for a list of commands

This message can be caused by the following:

Incorrect access mode—Ensure you are in configuration mode before entering configuration mode commands. From unprivileged mode, use the enable command to start privileged mode. From privileged mode, use the configuration terminal command to start configuration mode.

Incorrect number of parameters—Enter the help command to check the syntax of the command that you are entering.

Incorrect abbreviations—Try the command again with more characters or the full command name.

Commands Listed by Feature

Table 5-2 lists LocalDirector features and the corresponding configuration commands.

Table 5-2 LocalDirector Features 

LocalDirector Feature
Command

Access modes

Enter privileged mode

Enter configuration mode

Turn off privileged commands

enable

configuration terminal

disable

ARP table entries

Add entry

Delete alias ARP entry

Remove ARP entry

arp

no arp

clear arp

Buddy group management

Create a buddy group

Remove a buddy group

buddy

no buddy

Configuration management

Configure from the console, diskette, Flash memory, or TFTP server

Remove configuration

Reboot and configure from Flash memory

Save configuration

Identify TFTP server for storing configuration

Store current LocalDirector configuration on a remote TFTP server

Boot remote software image or configuration

Set the date and time for LocalDirector

configuration

clear configuration

reload

write

tftp-server

write net

boot config

clock set

Connections

Set time for dropping idle connections

Set number of unanswered TCP SYN packets allowed

Set number of outstanding connections allowed

Set maximum number of connections that LocalDirector sends to a real server

timeout

synguard

data

maxconns

Default values

Change command default values

default

Display output

Display command values

Control display output

Set number of lines in pager display output

show

pager

pager lines

Dynamic feedback protocol (DFP)

DFP Manager

Enable the DGP Manager on LocalDirector

Configure password for connections between the LocalDirector DFP manager and DFP agents connecting to it

DFP Agent

Enable the DFP agent on LocalDirector

Specify IP address and password for DFP managers that are allowed to connect to the DFP agent on LocalDirector

dynamic-feedback

dynamic-feedback-pw

dynamic-feedback-agent

dynamic-feedback-agent-ip

Failover

Configure

Maintain state of connections (stateful failover)

Force LocalDirector to active

Set time before LocalDirector reaches failover state and initiates backup routine

Reset a failed LocalDirector

Set failover IP address

Set failover alias IP address

failover

replicate

failover active

failover hellotime

failover reset

failover ip address

failover alias ip address

Flash memory access

Clear configuration from Flash memory

Reboot and configure from Flash memory

Write to

write erase

reload

write memory

Floppy disk access

Read configuration from diskette

Save configuration to diskette

configuration floppy

write floppy

Help

help, ?

HTTP and DNS probe support

Create probe for real or virtual machine

To enable probing

Configure node name to be used in DNS query request packets

Set up customized HTTP probe configuration on real or virtual machine

probe

probeconfig

probedns nodename

probehttp

Hot-standby servers

backup

Interface

Ethernet

Set maximum transmission unit (MTU)

Configure Fast EtherChannel

Turn off unused interfaces

interface ethernet

mtu

channel

shutdown

IP address

Create a virtual and real server with same IP address

Set system IP address

Set alias IP address

Set failover IP address

Set failover alias IP address

direct-ip

ip address

alias ip address

failover ip address

failover alias ip address

IP precedence

Set IP precedence for virtual servers

color

Load balancing

Define rules for content load balancing

Assign type of load balancing

Add or remove virtual server entries

Add or remove real server entries

Associate or disassociate bindings

Send connections to same server

Set time for dropping idle connections

Weight server connections

Set load balancing mode (directed, dispatched, or dispatched assisted)

content-rule

predictor

virtual

real

bind

sticky

timeout

weight

redirection

LocalDirector as boomerang content agent

Configure domain for LocalDirector agent support

Enable boomerang software on LocalDirector

Clear counters on LocalDirector agent domain

dns-boomerang client

dns-boomerang enable

clear dns-boomerang counters

MAC addresses

To manipulate bridge table operations

Flush associated with a bridge

bridge

clear bridge

Multiring

Enable the Routing Information Field (RIF) for FDDI interfaces

multiring

Name

Associate a name with an IP address

Turn name viewing on or off

name

names

Passwords

Change privileged mode access password

Modify Telnet password

enable password

password

Ping

Test connectivity

Control ability to ping virtual servers

ping

ping-allow

Prompt (change the host name at the prompt)

hostname

Real server adjustments

Number of refused connections before connection is reassigned

Time before testing state

Number of reassignments before server is failed

Set number of outstanding connections allowed

Set time for dropping idle connections

Translate IP address to virtual IP for outbound connections

reassign


retry

threshold

data

timeout

static

Routing Information Protocol (RIP)

Enable or disable RIP for listening

Enable IP routing table updates from RIP broadcasts that are received

rip passive

rip version

Routing table

Adjust

route

Security

Block bridging

Control connections based on source IP of client

Control ability to ping virtual servers

Set number of unanswered SYNs allowed

secure

assign

ping-allow

synguard

Service state

Put server in service

Take server out of service

Test failed server that has existing connection with data passing

Restart a failed server

Time before testing state

Set type of service enhancements provided by virtual server

in-service

out-of-service

autounfail

restart

retry

service

Simple Network Time Protocol (SNTP)

Set LocalDirector as SNTP broadcast client

Set interval between time requests

Set IP address of servers to which SNTP time requests are sent

sntp broadcast client

sntp poll

sntp server

SNMP

Identify SNMP contact

Identify the SNMP system location

Identify the SNMP community

Designate up to five SNMP management stations to receive SNMP traps

Enable SNMP traps

snmp-server contact

snmp-server location

snmp-server community

snmp-server host

snmp-server enable traps

Status counters

Clear error counter data

Clear interface counter data

Clear statistics counter data

Clear all counter data

clear counters error

clear counters interface

clear counters statistics

clear counters all

Syslog

Dump buffer to console

Specify the type of syslog messages to accept

Assign host to collect syslog messages

syslog console

syslog output

syslog host

Telnet

Enable Telnet access from remote system

Terminate a Telnet session

View Telnet access

Modify Telnet password

telnet

kill

who

password

Virtual server adjustments

Create an association between URL and virtual server

Associate name to virtual server

Assign type of load balancing

Send connections to same server

Group virtual servers

Define a URL and create a short identifier to replace a long URL string

link

name

predictor

sticky

buddy

url


alias ip address

To set an alias IP address, use the alias ip address command. Use the no form of this command to remove an alias IP address.

alias ip address ip_address [subnet_mask]

no alias ip address ip_address [subnet_mask]

Syntax Description

ip_address

Alias IP address for LocalDirector. Up to 256 aliases are allowed.

subnet_mask

(Optional) Subnet mask for the aliased IP address. By default, the subnet mask is 255.255.255.0.


Defaults

No default behavior or values.

Command Modes

Configuration

Usage Guidelines

The alias ip address command assigns multiple IP addresses to LocalDirector. This allows LocalDirector to be placed on a different IP network than the real servers, without using a router.

Examples

In the following example, an alias IP address of 192.168.34.33 is set. No subnet mask is set, so the default value of 255.255.255.0 is used.

localdirector(config)# alias ip address 192.168.34.33
localdirector(config)# show alias ip address
alias ip address 192.168.34.33 255.255.255.0
localdirector(config)#

Related Commands

show alias

show alias ip

show alias ip address

arp

To add an entry to the LocalDirector Address Resolution Protocol (ARP) table, use the arp command. Use the no arp command to remove an ARP entry.

arp ip mac_address interface_number [alias]

no arp ip mac_address interface_number [alias]

Syntax Description

ip

IP address for the ARP table entry.

mac_address

Hardware MAC address for the ARP table entry.

interface_number

Interface number.

alias

(Optional) Name for the IP address. Alias entries do not time out and are stored in the configuration with the write command. Alias entries stay in the ARP table after LocalDirector reboot if they are saved in the configuration.


Defaults

No default behavior or values.

Command Modes

Privileged, configuration

Usage Guidelines

The arp command adds an entry to the LocalDirector ARP table. ARP is a low-level protocol that maps the physical address of a node to its IP address.


Note All virtual servers, whether in service or out of service, respond to ARP requests.


Gratuitous ARPs are supported in LocalDirector Versions 1.6 and later. In Versions 3.1 and later, all gratuitous ARPs have the same MAC address regardless of source interface number. A gratuitous ARP is an unsolicited ARP reply. LocalDirector broadcasts its own MAC address to a host on the same wire. This host can be a gateway, router, or switch. These hosts can repopulate the ARP table automatically.

Examples

LocalDirector(config)# arp 192.168.1.42 0000.0101.0202 0
LocalDirector(config)# arp 192.168.1.43 0000.0101.0203 1 alias
LocalDirector(config)# show arp
Interface 0:
        192.168.1.42     (0000.0101.0202)
Interface 1:
        192.168.1.43     (0000.0101.0203)        alias
Interface 2:
LocalDirector(config)# clear arp
LocalDirector(config)# show arp
Interface 0:
Interface 1:
        192.168.1.43     (0000.0101.0203)        alias
Interface 2:
LocalDirector(config)# no arp 192.168.1.43 0000.0101.0203 1
LocalDirector(config)# show arp
Interface 0:
Interface 1:
Interface 2:
LocalDirector(config)#

Related Commands

clear arp

show arp

assign

To direct connection requests to a specific instance of a virtual server, use the assign command. Use the no assign command to remove these connection requests.

assign virtual_id client_ip [netmask]

no assign virtual_id client_ip [netmask]

Syntax Description

virtual_id

Virtual server IP address or name, port number, bind-id, and protocol.


Note The virtual server name is case sensitive.


 

client_ip

IP address of the client requesting a connection.

netmask

(Optional) Subnet mask used with the client IP address. The subnet mask determines the resolution of the client network that is associated with the particular virtual server. For example, a subnet mask of 255.255.255.0 specifies the entire Class C network, whereas a subnet mask of 255.255.255.255 specifies exactly one IP address.


Defaults

The bind-id when you are defining a virtual server is 0 and the protocol is TCP.

Command Modes

Configuration

Usage Guidelines

Use the assign command to associate client IP addresses with specific virtual servers. Any client IP address not identified by an assign command statement is directed to the default bind-id of 0. A virtual server with a bind-id of 0 cannot be used with the assign command because bind-id 0 is reserved for default traffic.

Prior to Version 3.1, a first-fit algorithm was used to determine which virtual server a client was sent to. If a client fits more than one assignment, LocalDirector selects the first correct virtual server that it looks up. The following example sends clients from the 172.16.67.0 network to virtual server bind-id 1, with the exception of the individual client 172.16.67.146, which is assigned to virtual server bind-id 2:

LocalDirector(config)# assign 192.168.200.1:80:1:tcp 172.16.67.0 255.255.255.0
LocalDirector(config)# assign 192.168.200.1:80:2:tcp 172.16.67.146 255.255.255.255

Version 3.x uses a best-fit algorithm. The most restrictive subnet mask is judged the best fit, and port assignments are used secondarily. Additionally, to maintain security-related functionality for a particular virtual IP address, if a client IP address fits a subnet mask, then that client is restricted to that subnet mask for all virtual servers with that virtual IP address. As an example:

LocalDirector(config)# assign 192.168.200.1:0:1:tcp 172.16.67.0 255.255.255.0
LocalDirector(config)# assign 192.168.200.1:80:1:tcp 172.16.67.146 255.255.255.255

restricts the 172.16.67.146 client to port 80. If the client attempts a connection to any other port, even though the IP address fits the subnet mask for the port 0 virtual server, the client is rejected. Once the client is restricted to the 255.255.255.255 subnet mask, any virtual server the client is allowed to access for that IP address must be assigned with an exact subnet mask. If there is no bind-id 0 for that virtual server, and the client is not specifically assigned to another virtual server, the client will be denied access to the virtual server. To allow the client into another port for that IP address, the client must be assigned to that port explicitly (or, of course, with port 0 virtual servers, any port). To allow this client access to port 443, for example:

LocalDirector(config)# assign 192.168.200.1:443:1:tcp 172.16.67.146 255.255.255.255

Administrators can validate the assignments they make using the test assign command:

LocalDirector(config)# test assign dest_ip dest_port source_ip [protocol]

The command output shows the virtual server the client will be assigned to, or an indication that no virtual server is available for that client.

Examples

LocalDirector(config)# assign 192.168.200.1:80:1:tcp 172.16.1.0 255.255.255.0
LocalDirector(config)# assign 192.168.200.1:80:2:tcp 172.16.6.0 255.255.255.0

Related Commands

show assign

autounfail

To allow a real server to continue sending data to existing connections after a brief interruption, use the autounfail command. Use the no autounfail command to turn off the autounfail feature.

autounfail real_id | virtual_id

no autounfail real_id | virtual_id

Syntax Description

real_id

Real server IP address or name, port number (if a port-bound server), bind-id, and protocol.

virtual_id

Virtual server IP address or name, port number, bind-id, and protocol.

You must first bind this virtual server to a real server. The autounfail command action applies to all real servers bound to this virtual server.


Defaults

The autounfail command is on by default.

Command Modes

Configuration

Usage Guidelines

An example of a brief interruption would be when a cable is disconnected by mistake, and quickly reconnected. A real server is failed when it does not answer the number of connections set with the threshold command, even though it still might answer one of its existing data connections, or when it responds with TCP RSTs. The autounfail command brings a failed server back in operation if it answers or sends data on a connection that is already established.

When a virtual_id argument is specified, all real servers represented by that virtual server are affected by this command.

In autounfail mode, the real server receives one real incoming connection. If it answers that connection, it is put in service. If it does not answer that connection, it is failed again.

Examples

localdirector(config)# autounfail 192.168.1.2
localdirector(config)#

Related Commands

show autounfail

backup

To assign a backup server for a real or a virtual server, use the backup command. Use the no backup command to remove a backup server.

backup {real_id | virtual_id} backup_id

no backup {real_id | virtual_id} backup_id

Syntax Description

real_id

Real server IP address or name, port (if a port-bound server), bind-id, and protocol.

virtual_id

Virtual server ID to bind to; includes the virtual server IP address or name, port number, bind-id, and protocol.

backup_id

Secondary or backup ID for a virtual or a real server. You can specify either a virtual server, real server, or a url_id as the backup. Use the IP address or name, port number (if a port-bound server), bind-id, and protocol of the real or virtual server that becomes the backup. If you specify a url_id, you can only back up a virtual server. You cannot back up a real server with a url_id.


Defaults

No default behavior or values.

Command Modes

Configuration

Usage Guidelines

You can back up real servers with virtual addresses, and you can back up virtual servers with a real server. You can use a backup server when the real or virtual server is not in service (for example, it is failed or out of service).

The url_id is the ID for the Uniform Resource Locator (URL) of a real server as defined by the url command. If you use a url_id as the designated backup server, the url_id can be used to back up a virtual server only.

It is important to note that the backup server is treated just like any other real or virtual server by LocalDirector. For example, if the backup server is a real server, it has the same adjustable parameters (retry, timeout, reassign, and so on) that other real machines have. The predictor command for the backup virtual server is used to load balance the servers being backed up by that virtual server.

A real server bound to a virtual server cannot also be used as a backup for that virtual server, which means that the following configuration works:

virtual 10.1.1.1
real 10.2.2.2
real 10.3.3.3
real 10.4.4.4
real 10.5.5.5

backup 10.2.2.2 10.4.4.4
backup 10.3.3.3 10.5.5.5

bind 10.1.1.1 10.2.2.2
bind 10.1.1.1 10.3.3.3

However, if you tried to bind real server 10.5.5.5 to virtual server 10.1.1.1, you would not be allowed, because that real server is already serving as a backup for that virtual server.

Also, if real server 10.2.2.2 fails and is backed up by real server 10.4.4.4, it uses that real server 10.4.4.4 as long as it is in service. If real server 10.4.4.4 does not stay in service, there is no check for a backup for 10.4.4.4.

Examples

LocalDirector(config)# backup server1 remote1
LocalDirector(config)# backup server2 remote1
LocalDirector(config)# backup server3 remote1
LocalDirector(config)# show backup
          Real Machine(s)               Backup
       Virtual Machine(s)               Backup
        server1:0:0:tcp                  remote1:0:0:tcp 
        server2:0:0:tcp                  remote1:0:0:tcp 
        server3:0:0:tcp                  remote1:0:0:tcp 
LocalDirector(config)#

Related Commands

show backup

bind

To associate a virtual server with one or more real servers, use the bind command. Use the no bind command to release an association between a real server and virtual server.

bind virtual_id {real_id | url_id} [real_id | url_id...]

no bind virtual_id {real_id | url_id} [real_id | url_id...]

Syntax Description

virtual_id

Virtual server ID to bind to; includes the virtual server IP address or name, port number, bind-id, and protocol.

real_id

Real server IP address or name, port (if a port-bound server), bind-id, and protocol.

url_id

ID for the Uniform Resource Locator (URL) of the real server as defined by the url command. URLs cannot be bound to FTP proxy virtual servers, or any virtual server that has a sticky service such as cookie sticky, SSL sticky, generic sticky, and so on.


Defaults

No default behavior or values.

Command Modes

Configuration

Usage Guidelines

Use the virtual or real command to define the virtual server and real server addresses before using the bind command. Use the bind command to direct network traffic from a virtual server to a real server. If you are binding a real server to more than one virtual server, each real server must use a unique bind-id.

In the following example where the virtual server is defined as 191.191.191.100:0 (a registered Network Information Center address), use the bind command between URLs and a real server as shown:

LocalDirector(config)# virtual 191.191.191.100:0
LocalDirector(config)# url w1 http://www1.acme.com
LocalDirector(config)# url w2 http://www2.acme.com
LocalDirector(config)# bind 191.191.191.100:0 w1
LocalDirector(config)# bind 191.191.191.100:0 w2

You should create a url_id for each web server at your site. Use the show bind command to confirm binding of URLs to each real server.

Examples

ld(config)# bind 192.168.1.100:80 192.168.1.1:8001
ld(config)# bind 192.168.1.100:80 192.168.1.2:8001
ld(config)# bind 192.168.1.100:80 192.168.1.3:8001
ld(config)# bind 192.168.1.101:80 192.168.1.1:8002
ld(config)# bind 192.168.1.101:80 192.168.1.2:8002
ld(config)# bind 192.168.1.101:80 192.168.1.3:8002
LocalDirector(config)# show bind

       Virtual Machine(s)        Real Machines
   192.168.1.101:80:0:tcp(IS)
                             192.168.1.3:8002:0:tcp(IS)
                             192.168.1.2:8002:0:tcp(IS)
                             192.168.1.1:8002:0:tcp(IS)
   192.168.1.100:80:0:tcp(IS)
                             192.168.1.3:8001:0:tcp(IS)
                             192.168.1.2:8001:0:tcp(IS)
                             192.168.1.1:8001:0:tcp(IS)
ld(config)#

The following is an example of the binding for a UDP virtual and real server:

Ld(config)# bind 192.168.10.101:300:0:udp 192.168.10.1:200:0:udp
Ld(config)#
Ld(config)# show bind
       Virtual Machine(s)        Real Machines
 192.168.10.101:300:0:udp(OOS)
                              192.168.10.1:200:0:udp(OOS)

Related Commands

show bind

boot config

To enable booting from a remote configuration file, use the boot config command. Use the no boot config command to disable booting from a remote configuration file.

boot config filename tftp_server_ip [port port]

no boot config filename tftp_server_ip [port port]

Syntax Description

filename

Name of the configuration file stored on the TFTP server. Use the complete path name for the configuration file.

tftp_server_ip

IP address of the TFTP server.

port

(Optional) Uses the port specified with the port argument.

port

(Optional) Port number (by default, port 69 is used).


Defaults

The default port number is 69.

Command Modes

Configuration

Usage Guidelines

LocalDirector configuration files can be stored on a TFTP server. This command accesses the configuration file and boots LocalDirector using the new configuration.

When a configuration file is loaded, each statement is read into the current configuration and evaluated with these rules:

If the command is identical to an existing command in the current configuration, it is ignored.

If the command redefines an existing command, the command overwrites the command in the current configuration in RAM.

Examples

localdirector(config)# boot config /tftpboot/ld.conf 10.15.15.253 
localdirector(config)# write memory 
Building configuration... 
[OK] 
localdirector(config)# reload 
Proceed with reload? [confirm] [Enter]

Rebooting.... 

Finesse Bios V3.3 

Booting Floppy 

Loading from Flash 
384MB RAM 
 i82557 rev 5 Ethernet @ irq15 dev 0 index  0 MAC:00e0.b600.664f 
 i82557 rev 5 Ethernet @ irq 9 dev 1 index  1 MAC:00e0.b600.664e 
 i82557 rev 5 Ethernet @ irq11 dev 2 index  2 MAC:00e0.b600.664d 
 i82557 rev 5 Ethernet @ irq 9 dev 3 index  3 MAC:00e0.b600.664c 
 fx1000 rev 3 Ethernet @ irq 9 dev 14 index  4 MAC:0090.27d5.05c4 
 fx1000 rev 3 Ethernet @ irq11 dev 15 index  5 MAC:0090.27d5.05f3 
Flash=AT29C040A @ 0x300 

The configuration software is loaded in LocalDirector.

LocalDirector 430 Version 3.3.3  Initialization done. 

Related Commands

show boot

boot image

To enable booting from a remote image, use the boot image command.

boot image image_filename tftp_server_ip [port port]

Syntax Description

image_filename

Name of the LocalDirector software file stored on the TFTP server. Use the complete path name for the configuration file.

tftp_server_ip

IP address of the TFTP server.

port

(Optional) Uses the port specified with the port argument.

port

(Optional) PSort number (by default, port 69 is used).


Defaults

The default port number is 69.

Command Modes

Configuration

Usage Guidelines

LocalDirector software (image file) can be stored on a TFTP server. This command accesses that software and boots LocalDirector using the new image. Optionally, you can specify to reload the image.

Examples

In the following example, LocalDirector is booted from a remote image but not reloaded:

localdirector(config)# boot image ld210115.bin 172.18.183.249
confirm boot [N]: y
saving image from flash
copying 274944 bytes
saving config from flash
writing image to flash
wrote 274944 bytes e.size=274944
writing the config to flash
confirm reboot on new image [N]: n
localdirector(config)# 

In the following example, LocalDirector is booted from a remote image and reloaded:

localdirector(config)# show version
LocalDirector 410 Version 3.3.3
localdirector(config) 3# boot image ld333123.bin 172.18.183.249
confirm boot [N]:
saving image from flash
copying 279040 bytes
saving config from flash
writing image to flash
wrote 279040 bytes e.size=279040
writing the config to flash
confirm reboot on new image [N]:
remove floppy from drive and hit any key
Rebooting....
Finesse Bios V3.3
Booting Floppy
Loading from Flash
32MB RAM
Flash=AT29C040A @ 0x300
 i82557 rev 2 Ethernet @ irq11 dev 13 index  0 MAC: 00a0.c965.576f
 i82557 rev 2 Ethernet @ irq15 dev 14 index  1 MAC: 00a0.c965.5b33

LocalDirector 410 Version 3.x  Initialization.....done.
Copyright (c) 1998 by Cisco Systems, Inc.

        Restricted Rights Legend
Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.

        Cisco Systems, Inc.
        170 West Tasman Drive
        San Jose, California 95134-1706
		localdirector >

bridge

To manipulate bridge table operations, use the bridge command.

show bridge interface_number

clear bridge interface_number

Syntax Description

interface_number

Interface number.


Defaults

No default behavior or values.

Command Modes

Configuration

Usage Guidelines

LocalDirector is a transparent learning bridge. As traffic is received, a bridge table is populated for each interface, showing the MAC addresses that are accessible through that interface. LocalDirector bridges traffic between interfaces only if the source and destination addresses reside on different interfaces. If a server is physically moved from one interface to another, you may need to clear the bridge table to ensure that traffic destined for that server is sent to the correct interface.

Examples

localdirector(config)# show bridge

Interface 0
       Address      Age   RX cnt    TXcnt
0090.f245.3050        1    29934        0
0050.e2e0.4470        0    16882     2541
0060.5cc2.0ae5        2     4955        0
0000.bc11.4b58       12     2003        0
Interface 1
       Address      Age   RX cnt    TXcnt
Interface 2
       Address      Age   RX cnt    TXcnt
Interface 3
       Address      Age   RX cnt    TXcnt
Count = 4

buddy

To associate virtual servers and create a group, use the buddy command. Use the no buddy command to remove a virtual server from a buddy group, or a buddy group, if all servers have been removed.

buddy buddy_group virtual_id [virtual_id ... ]

no buddy buddy_group virtual_id [virtual_id ... ]

Syntax Description

buddy_group

Name of the group associated with the virtual servers.

virtual_id

(Optional) Virtual server IP address or name, port number, bind-id, and protocol.


Defaults

No default behavior or values.

Command Modes

Configuration

Usage Guidelines

Use the buddy command to create a buddy group (named buddy_group) consisting of a list of virtual servers. Certain commands and parameters that affect one virtual server affect all other virtual servers in the buddy group (for example, the buddy relationship shares the generic information from the sticky command). A virtual server can reside in only one buddy group; if it currently exists in a group, it must be removed from that group before it can be added to a new group. An unlimited number of virtual servers can exist within a buddy group.

The show buddy buddy_group command lists the virtual servers in a group, or an error message if the buddy_group does not exist.


Note In the current release, the only use of the buddy command is to share generic sticky associations. The buddy command cannot be used to group a virtual server using the sticky command ssl option with a virtual server using the sticky command generic option. The buddy command cannot be used for cookie sticky associations.


Examples

The following example creates the buddy group my_app and adds virtual servers 10.0.0.100 and 10.0.0.200. The contents of the group are displayed with the show buddy command.

localdirector(config)# buddy my-app 10.0.0.100:0:0:tcp
localdirector(config)# buddy my-app 10.0.0.200:0:0:tcp
localdirector(config)# sticky 10.0.0.200 10
localdirector(config)# show buddy
         Buddy Group        Virtual Machine(s)
             my-app
                            10.0.0.100:0:0:tcp
                            10.0.0.200:0:0:tcp

With the sticky feature turned on for virtual server 10.0.0.200, when a client visits the virtual server 10.0.0.100 after visiting 10.0.0.200, the client will be sent to the same real server as on the 10.0.0.100 connection.

Related Commands

show buddy

sticky

channel

To assign two or four interfaces as Fast EtherChannel ports, use the channel command. To restore the primary interface that was channeled, use the no channel command.

channel interface_number two | four

no channel interface_number two | four

Syntax Description

interface_number

First (starting) interface included in the Fast EtherChannel, for example, interfaces 0-1, 2-3, 0-3, or 4-7. The starting interface varies depending on the number of interfaces in the channel.

two
four

Number of interfaces that make up the channel.


Defaults

No default behavior or values.

Command Modes

Configuration

Usage Guidelines

The channel command sets the interface numbers for the Fast EtherChannel configuration. See the "Fast EtherChannel Configuration" section in "Implementing a LocalDirector Network," for a configuration procedure.

The no channel command restores only the primary interface of the channel. The other interfaces are shut down to prevent a bridge loop. For example, the command channel 0 four channels four interfaces to one at interface 0. The command no channel 0 four undoes the channel 0 four command, but only restores interface 0. Interfaces 1, 2, and 3 are shut down to prevent a bridge loop. You must use the no shutdown command to restore interfaces 1, 2, and 3.

Examples

localdirector(config)# show channel
localdirector(config)# show interface
ethernet 0 is up, line protocol is up
  Hardware is i82557 rev 5 ethernet, address is 00e0.b600.810f
  MTU 1500 bytes, BW 100000 Kbit full duplex
        19 packets input, 1020 bytes, 0 no buffer
        Received 0 broadcasts, 0 runts, 0 giants
        0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
        112 packets output, 8720 bytes, 0 underruns
ethernet 1 is up, line protocol is up
  Hardware is i82557 rev 5 ethernet, address is 00e0.b600.810f
  MTU 1500 bytes, BW 100000 Kbit full duplex
        3 packets input, 218 bytes, 0 no buffer
        Received 0 broadcasts, 0 runts, 0 giants
        0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
        123 packets output, 9310 bytes, 0 underruns
ethernet 2 is up, line protocol is up
  Hardware is i82557 rev 5 ethernet, address is 00e0.b600.810f
  MTU 1500 bytes, BW 100000 Kbit full duplex
        15 packets input, 812 bytes, 0 no buffer
        Received 0 broadcasts, 0 runts, 0 giants
        0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
        120 packets output, 9216 bytes, 0 underruns
ethernet 3 is up, line protocol is up
  Hardware is i82557 rev 5 ethernet, address is 00e0.b600.810f
  MTU 1500 bytes, BW 100000 Kbit full duplex
        3 packets input, 218 bytes, 0 no buffer
        Received 0 broadcasts, 0 runts, 0 giants
        0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
        125 packets output, 9494 bytes, 0 underruns
ethernet 4 is up, line protocol is up
  Hardware is fx1000 rev 3 ethernet, address is 00e0.b600.810f
  MTU 1500 bytes, BW 1000000 Kbit full duplex
        66 packets input, 7348 bytes, 0 no buffer
        Received 44 broadcasts, 0 runts, 0 giants
        0 input errors, 0 CRC, 66 frame, 0 overrun, 0 ignored, 0 abort
        86 packets output, 6946 bytes, 0 underruns
ethernet 5 is up, line protocol is up
  Hardware is fx1000 rev 3 ethernet, address is 00e0.b600.810f
  MTU 1500 bytes, BW 1000000 Kbit full duplex
        53 packets input, 4464 bytes, 0 no buffer
        Received 3 broadcasts, 0 runts, 0 giants
        0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
        92 packets output, 9298 bytes, 0 underruns
localdirector(config)# channel 0 two
localdirector(config)# channel 2 two
localdirector(config)# show channel
Fast EtherChannel 0-1 is up, line protocol is up uu
  Hardware is i82557 rev 5 ethernet, address is 00e0.b600.810f
  MTU 1500 bytes, BW 200000 Kbit full duplex
        35 packets input, 2090 bytes, 0 no buffer
        Received 4 broadcasts, 0 runts, 0 giants
        0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
        335 packets output, 26910 bytes, 0 underruns
Fast EtherChannel 2-3 is up, line protocol is up uu
  Hardware is i82557 rev 5 ethernet, address is 00e0.b600.810f
  MTU 1500 bytes, BW 200000 Kbit full duplex
        32 packets input, 1942 bytes, 0 no buffer
        Received 4 broadcasts, 0 runts, 0 giants
        0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
        358 packets output, 29070 bytes, 0 underruns
localdirector(config)# no channel 0 two
localdirector(config)# show channel
Fast EtherChannel 2-3 is up, line protocol is up uu
  Hardware is i82557 rev 5 ethernet, address is 00e0.b600.810f
  MTU 1500 bytes, BW 200000 Kbit full duplex
        121 packets input, 7786 bytes, 0 no buffer
        Received 20 broadcasts, 0 runts, 0 giants
        0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
        708 packets output, 50892 bytes, 0 underruns
localdirector(config)# show interface
ethernet 0 is up, line protocol is up
  Hardware is i82557 rev 5 ethernet, address is 00e0.b600.810f
  MTU 1500 bytes, BW 100000 Kbit full duplex
        106 packets input, 6528 bytes, 0 no buffer
        Received 20 broadcasts, 0 runts, 0 giants
        0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
        221 packets output, 16484 bytes, 0 underruns
ethernet 1 is administratively down, line protocol is up
  Hardware is i82557 rev 5 ethernet, address is 00e0.b600.810e
  MTU 1500 bytes, BW 100000 Kbit full duplex
        19 packets input, 1466 bytes, 0 no buffer
        Received 0 broadcasts, 0 runts, 0 giants
        0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
        473 packets output, 32844 bytes, 0 underruns
ethernet 2 is up, line protocol is up
  Hardware is i82557 rev 5 ethernet, address is 00e0.b600.810f
  MTU 1500 bytes, BW 100000 Kbit full duplex
        105 packets input, 6536 bytes, 0 no buffer
        Received 20 broadcasts, 0 runts, 0 giants
        0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
        237 packets output, 18238 bytes, 0 underruns
ethernet 3 is up, line protocol is up
  Hardware is i82557 rev 5 ethernet, address is 00e0.b600.810f
  MTU 1500 bytes, BW 100000 Kbit full duplex
        21 packets input, 1622 bytes, 0 no buffer
        Received 0 broadcasts, 0 runts, 0 giants
        0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
        483 packets output, 33450 bytes, 0 underruns
ethernet 4 is up, line protocol is up
  Hardware is fx1000 rev 3 ethernet, address is 00e0.b600.810f
  MTU 1500 bytes, BW 1000000 Kbit full duplex
        220 packets input, 20060 bytes, 0 no buffer
        Received 103 broadcasts, 0 runts, 0 giants
        0 input errors, 0 CRC, 339 frame, 0 overrun, 0 ignored, 0 abort
        473 packets output, 33524 bytes, 0 underruns
ethernet 5 is up, line protocol is up
  Hardware is fx1000 rev 3 ethernet, address is 00e0.b600.810f
  MTU 1500 bytes, BW 1000000 Kbit full duplex
        364 packets input, 24918 bytes, 0 no buffer
        Received 21 broadcasts, 0 runts, 0 giants
        0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
        317 packets output, 27744 bytes, 0 underruns
localdirector(config)#

Related Commands

show channel

show interface

clear

To delete information associated with the other commands, use the clear command.

clear command

Syntax Description

command

arp, bridge, buddy, configuration, counters, route, snmp-server, sticky, syslog, and telnet commands.


Defaults

No default behavior or values.

Command Modes

Privileged, configuration

Usage Guidelines

Use the clear command with arp, bridge, buddy, configuration, counters, route, snmp-server, sticky, syslog, and telnet to clear the values associated with those commands.


Note You must clear the ARP tables for the router adjacent to LocalDirector when you upgrade LocalDirector software from Version 2.x to Version 3.x.


Examples

LocalDirector(config)# show arp
Interface 0:
        192.168.1.42     (0000.0101.0202)
Interface 1:
LocalDirector(config)# clear arp
LocalDirector(config)# show arp
Interface 0:
Interface 1:

Related Commands

clear buddy

clear configuration

To delete all or part of the LocalDirector configuration currently operating, use the clear configuration command.

clear configuration [secondary primary all]

Syntax Description

secondary

(Optional) Clears currently operating configurations in this LocalDirector for virtual and real servers, server bindings, backup servers, and load balancing.

primary

(Optional) Clears currently operating settings for routing, network interfaces, passwords, error logging, and networking.

all

(Optional) Clears both the primary and secondary set of configurations.


Defaults

If you enter the clear configuration command without an optional argument, the default is to clear the secondary configuration.

Command Modes

Privileged, configuration

Usage Guidelines

Use the clear configuration command to delete all or part of the LocalDirector configuration.


Caution The clear configuration command clears the running configuration. Once you use the write memory command to save the configuration to Flash memory, any information that has been cleared cannot be restored. We recommend that you first save configurations to diskette with the write floppy command or a TFTP server with the write net command.

Examples

The following LocalDirector configuration (configured for failover operations with a primary and secondary LocalDirector) exists before you use the clear configuration command. The output appearance has been condensed to conserve space.

LocalDirector4(config)# write terminal 
Building configuration... 
:Saved 
:LocalDirector 430 Version 3.3.3 
syslog output 20.7 
no syslog console 
syslog host 10.0.0.0 
enable password 000000000000000000000000000000 encrypted 
hostname LocalDirector4 
shutdown ethernet 0 
no shutdown ethernet 1 
.
.
.
no shutdown ethernet 5 
interface ethernet 0 100full 
.
.
.
interface ethernet 4 auto 
interface ethernet 5 auto 
mtu 0 1500 
mtu 1 1500 
mtu 2 1500 
mtu 3 1500 
mtu 4 1500 
mtu 5 1500 
multiring all 
channel 0 four 
no secure  0 
no secure  1 
no secure  2 
no secure  3 
no secure  4 
no secure  5 
ping-allow 0 
ping-allow 1 
ping-allow 2 
ping-allow 3 
ping-allow 4 
no ping-allow 5 
ip address 10.10.10.1 255.255.255.0 
route 192.168.0.0 255.0.0.0 10.10.10.10 1 
.
.
.
route 10.255.255.255 192.168.0.0 10.0.0.0 1 
route 15.15.15.0 255.255.255.0 10.10.10.21 1 
route 0.0.0.0 0.0.0.0 10.10.10.21 1 
no rip passive 
rip version 1 
failover ip address 0.0.0.0 
no failover 
failover hellotime 30 
password cisco 
telnet 10.10.10.0 255.255.255.0 
telnet 10.10.10.0 255.255.0.0 
telnet 10.0.0.0 255.0.0.0 
snmp-server enable traps 
snmp-server community public 
no snmp-server contact 
no snmp-server location 
tftp-server 10.0.0.255 port 69 /tftpboot 
virtual 10.10.10.163:0:0:tcp is 
virtual 10.10.10.164:0:0:tcp is 
.
.
.
virtual 10.10.10.161:0:0:tcp is 
virtual 10.10.10.162:0:0:tcp is 
buddy testgroup 10.10.10.58:0:0:tcp 
buddy testgroup 10.10.10.58:80:0:tcp 
.
.
.
buddy testgroup 10.10.10.61:80:0:tcp 
buddy testgroup 10.10.10.60:0:0:tcp 
predictor 10.10.10.58:0:0:tcp roundrobin 
predictor 10.10.10.58:80:0:tcp roundrobin 
.
.
.
predictor 10.10.10.100:80:0:tcp roundrobin 
predictor 10.10.10.130:80:0:tcp roundrobin 
real 10.10.10.17:0:0:tcp is 
real 10.10.10.16:0:0:tcp is 
.
.
.
real 10.10.10.7:80:0:tcp is 
real 10.10.10.2:80:0:tcp is 
replicate interface 4 
replicate 10.10.10.163:0:0:tcp 
replicate 10.10.10.164:0:0:tcp 
.
.
.
replicate 10.10.10.161:0:0:tcp 
replicate 10.10.10.162:0:0:tcp 
timeout 10.10.10.17:0:0:tcp 600 
timeout 10.10.10.16:0:0:tcp 600 
.
.
.
timeout 10.10.10.7:80:0:tcp 600 
timeout 10.10.10.2:80:0:tcp 600 
name 10.10.10.140 HH_right_bottom 
name 10.10.10.17 washington8 
.
.
.
name 10.10.10.7 lincoln6 
name 10.10.10.2 lincoln1 
name 10.10.10.130 HH_right_top 
name 10.10.10.110 HH_left_top 
name 10.10.10.120 HH_left_bottom 
no names 
bind 10.10.10.163:0:0:tcp 10.10.10.2:0:0:tcp 
bind 10.10.10.163:0:0:tcp 10.10.10.3:0:0:tcp 
.
.
.
bind 10.10.10.162:0:0:tcp 10.10.10.8:0:0:tcp 
bind 10.10.10.162:0:0:tcp 10.10.10.9:0:0:tcp 
sticky 10.10.10.58:0:0:tcp 10 generic 
sticky 10.10.10.58:80:0:tcp 10 generic 
.
.
.
sticky 10.10.10.100:80:0:tcp 5 generic 
sticky 10.10.10.130:80:0:tcp 10 generic 
threshold 10.10.10.17:0:0:tcp 60 
threshold 10.10.10.16:0:0:tcp 60 
.
.
.
threshold 10.10.10.7:80:0:tcp 3 
threshold 10.10.10.2:80:0:tcp 3 
:end 

The following LocalDirector configuration exists after you use the clear configuration secondary command.

LocalDirector4(config)# clear configuration secondary 
LocalDirector4(config)# write terminal 
Building configuration... 
:Saved 
:LocalDirector 430 Version 3.3.3 
syslog output 20.7 
no syslog console 
syslog host 10.15.15.253 
enable password 000000000000000000000000000000 encrypted 
hostname LocalDirector4 
shutdown ethernet 0 
no shutdown ethernet 1 
no shutdown ethernet 2 
no shutdown ethernet 3 
no shutdown ethernet 4 
no shutdown ethernet 5 
interface ethernet 0 100full 
interface ethernet 1 100full 
interface ethernet 2 100full 
interface ethernet 3 100full 
interface ethernet 4 auto 
interface ethernet 5 auto 
mtu 0 1500 
mtu 1 1500 
mtu 2 1500 
mtu 3 1500 
mtu 4 1500 
mtu 5 1500 
multiring all 
channel 0 four 
no secure  0 
no secure  1 
no secure  2 
no secure  3 
no secure  4 
no secure  5 
ping-allow 0 
ping-allow 1 
ping-allow 2 
ping-allow 3 
ping-allow 4 
no ping-allow 5 
ip address 10.10.10.1 255.255.255.0 
route 10.0.0.0 255.0.0.0 10.10.10.10 1 
route 10.1.0.0 240.0.0.0 10.10.10.11 1 
.
.
.
route 192.168.0.0 240.0.0.0 10.10.10.12 1 
route 192.168.10.0 240.0.0.0 10.10.10.9 1 
route 10.15.15.0 255.255.255.0 10.10.10.21 1 
route 0.0.0.0 0.0.0.0 10.10.10.21 1 
no rip passive 
rip version 1 
failover ip address 0.0.0.0 
no failover 
failover hellotime 30 
password cisco 
telnet 10.10.10.0 255.255.255.0 
telnet 10.10.10.0 255.255.0.0 
telnet 10.0.0.0 255.0.0.0 
telnet 30.0.0.0 255.255.0.0 
snmp-server enable traps 
snmp-server community public 
no snmp-server contact 
no snmp-server location 
tftp-server 10.15.15.253 port 69 /tftpboot 
replicate interface 4 
no names 
:end 

The following LocalDirector configuration exists after you use the clear configuration primary command.

LocalDirector4(config)# clear configuration primary 
LocalDirector4(config)# write terminal 
Building configuration... 
:Saved 
:LocalDirector 430 Version 3.3.3 
syslog output 20.7 
no syslog console 
enable password 000000000000000000000000000000 encrypted 
hostname localdirector4 
shutdown ethernet 0 
no shutdown ethernet 1 
no shutdown ethernet 2 
no shutdown ethernet 3 
no shutdown ethernet 4 
no shutdown ethernet 5 
interface ethernet 0 100full 
interface ethernet 1 100full 
interface ethernet 2 100full 
interface ethernet 3 100full 
interface ethernet 4 auto 
interface ethernet 5 auto 
mtu 0 1500 
mtu 1 1500 
mtu 2 1500 
mtu 3 1500 
mtu 4 1500 
mtu 5 1500 
multiring all 
no secure  0 
no secure  1 
no secure  2 
no secure  3 
no secure  4 
no secure  5 
ping-allow 0 
ping-allow 1 
ping-allow 2 
ping-allow 3 
ping-allow 4 
no ping-allow 5 
ip address 10.10.10.1 255.255.255.0 
no rip passive 
rip version 1 
failover ip address 0.0.0.0 
no failover 
failover hellotime 30 
password cisco 
telnet 10.10.10.0 255.255.255.0 
telnet 10.10.10.0 255.255.0.0 
telnet 10.0.0.0 255.0.0.0 
telnet 10.10.0.0 255.0.0.0 
snmp-server enable traps 
snmp-server community public 
no snmp-server contact 
no snmp-server location 
tftp-server 10.15.15.253 port 69 /tftpboot 
replicate interface 4 
no names 
:end 

clear counters

To reset the error, interface, or SNMP counters, use the clear counters command.

clear counters [all | error | interface | statistics]

Syntax Description

all

(Optional) Clears all counter data and resets counters to their default settings.

error

(Optional) Clears the error counter data.

interface

(Optional) Clears the interface counter data for each port.

statistics

(Optional) Clears the counter data that appears from the
show statistics command.


Defaults

No default behavior or values.

Command Modes

Privileged, configuration

Usage Guidelines

Use the clear counters command to restart the LocalDirector data counters periodically.

If you enter the clear counters command without an argument, all counters are cleared.

Examples

In the following example, the clear counters command is used to clear all error counters.

LocalDirector# clear counters error
LocalDirector# show error 
General Indicators: 
  Real machine not available: 0 
  Connection reassigned: 0 
  Release Conn extra not handled: 0 
  Attempt to add conn again: 0 
  Buddy has no sticky assoc: 0 
  Invalid TCP checksum in SYN packet: 0 
  Inbound data packets: 0 
  Inbound data bytes: 0 
  Outbound data packets: 0 
  Outbound data bytes: 0
Predictors: 
  `fastest' called: 0 
  `roundrobin' called: 0 
  `loaded' called: 0 
  `leastconns' called: 0 
  `weighted' called: 0 
  `slowstart leastconns' called: 0 
  `slowstarted' called: 0 
  `sticky buddy' called: 0 
  Site determined busy: 0

Related Commands

show error

show interfaces

show snmp

clear dns-boomerang counters

To clear the counters maintained for each LocalDirector agent domain, use the clear dns-boomerang client command.

clear dns-boomerang counters

Syntax Description

This command has no arguments or keywords.

Defaults

No default behavior or values.

Command Modes

Configuration

Examples

localdirector (config)# clear dns-boomerang counters
localdirector (config)

Related Commands

dns-boomerang enable

no dns-boomerang enable

show dns-boomerang client

show dns-boomerang counters

show dns-boomerang enable

clock set

To set the date and time for LocalDirector, use the clock set command. You must enter the time based on Coordinated Universal Time (UTC). You cannot disable the clock.

clock set hh:mm:ss month day year

Syntax Description

hh:

UTC hour followed by a colon. Valid entries are 00 (for midnight) through 24 for the number of complete hours that have passed since midnight.

mm:

UTC minute followed by a colon. Valid entries are 00-59.

ss

UTC second followed by a space. Valid entries are 00-59.

month

Month of year between 01 (January) and 12 (December) followed by a space. Valid entries are three-character month names: Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, or Dec.

day

Day of the month between 01 and 31.

year

Current year in the Gregorian calendar. Valid entries are 0000-9999.


Defaults

All hour entries are based on Coordinated Universal Time, or UTC.

Command Modes

Privileged, configuration

Usage Guidelines

The clock is used by the sticky command as the timeout reference for the cookie-passive option.


Note If you are using the cookie-insert option of the sticky command, you must accurately set the date and time, and synchronize clocks with the appropriate real servers.


Examples

localdirector(config)# clock set 20:00:00 march 21 2000
localdirector(config)# show clock set
Thurs 12:14:25 Oct 25 2000 GMT 
localdirector(config)#

Related Commands

show clock set

sticky

color

To set an IP precedence value for a virtual server, use the color command. Use the no color command to remove the IP precedence value for a virtual server.

color virtual_id ip_precedence_value

no color virtual_id ip_precedence_value

Syntax Description

virtual_id

Virtual server IP address or name, port number, bind-id, and protocol.

ip_precedence_value

IP precedence value. Permissible values are 0 to 7 and the following keywords with their related values:

routine (0)
priority (1)
immediate (2)
flash (3)
flash-override (4)
critical (5)
internet (6)
network (7)


Defaults

The IP precedence feature is off by default.

Command Modes

Configuration

Usage Guidelines

The color command allows a value to be set on a per virtual server basis to allow prioritizing of packets for different types of services. Prioritized packets are sent to and from virtual servers. For example, one port may be used for HTTP traffic, using one priority, while another port may handle UDP traffic, with another priority.

Examples

localdirector(config)# color 192.168.1.99 critical
localdirector(config)# show color
       Virtual Machine(s)             Coloring
     192.168.1.99:0:0:tcp             critical
localdirector(config)#

Related Commands

show color

configuration

To define the current configuration, use the configuration command.

configuration {floppy | memory | terminal | net}

Syntax Description

floppy

Merges the current running configuration with the configuration stored on diskette with the write floppy command.

memory

Merges the configuration in Flash memory with the current configuration in RAM.

terminal

Starts configuration mode, and merges the current running configuration with commands entered from the keyboard.

net

Configures from a remote TFTP server. To use this keyword, use the tftp-server command first, or include the full path name of the file and the IP address of the TFTP server.


Defaults

No default behavior or values.

Command Modes

Privileged, configuration

Usage Guidelines

Each statement is read into the current configuration and evaluated with these rules:

If the command is identical to an existing command in the current configuration, it is ignored.

If the command redefines an existing command, the command overwrites the command in the current configuration in RAM.

Examples

LocalDirector# configuration terminal
LocalDirector(config)# real 192.168.1.1:0
LocalDirector(config)# show real
Real Machines:

                                                   No Answer TCP Reset DataIn
                  Machine  Connect   State  Thresh Reassigns Reassigns Conns
      192.168.1.1:0:0:tcp       0     OOS       8         0         0      0
LocalDirector(config)#

Related Commands

show configuration

content-rule

To define the rules to use for content load balancing for a virtual server, use the content-rule command. To remove a content rule, use the no content-rule command. Make sure that no virtual servers are bound when you issue the no content-rule command. Use rule for the abbreviation of the content-rule command.

content-rule rule_name [depth number of bytes] "content_string"

no content rule rule_name [depth number of bytes] "content_string"

Syntax Description

rule_name

Name of the rule used in the virtual command. You can use up to eight alphanumeric characters and the colon (:) character.

depth

(Optional) Use this with the value of number of bytes

number of bytes

(Optional) Indicates the number of bytes in the data packet to be examined for a match with content_ string. The default depth is 2048 bytes.

"content-string"

Defines the actual character string to be matched by examining the data packet. You must surround characters with quotation marks (" "). A maximum of 256 characters (including the surrounding quotation marks) is allowed in content_string.

Wildcard characters including the question mark (?) and asterisk (*) can be used in the content_string parameter with the following meanings and functions:

? indicates one character in this position can be any value. Use \? to specify a literal match for the question mark character.

* indicates that multiple characters of any value can be in this position. Use \* to specify a literal match for the asterisk character.

A content_string of "*" matches any data and is an automatic match for using the rule_name defined with the "*" content_string.


Defaults

The default number of bytes examined in a data packet is 2048.

Command Modes

Privileged, configuration

Usage Guidelines

You can define a maximum number of 512 content rules in each LocalDirector.

LocalDirector does not support the following:

Accelerated server load balancing (ASLB) and content load balancing for a virtual server at the same time

Sticky connections and content load balancing for a virtual server at the same time

HTTP redirect and content load balancing for a virtual server at the same time

FTP proxy and content load balancing for a virtual server at the same time


Note Do not create a rule name that contains only the asterisk (*) wildcard as the content string. All content would match and go to the virtual server configured for this rule.


Examples

LocalDirector(config)# show rule
Rule Name    Depth      Content to Match
gold001      1024       "/files/customer/gold/?????.lst"
spec204      2048       "/public/info/sales/corporate/ 
filesys/gateway/lev..."
images:152    256        "/files/images/*.gif"
images:153    256        "/files/images/*.jpg

data

To limit the number of connections to a server that has an open connection to a client, but is not sending data in response to a request, use the data command. To return the connection value to 0, use the no data command.

data {real_id | virtual_id} [number of connections]

no data {real_id | virtual_id} [number of connections]

Syntax Description

real_id

IP address or name, port (if port-bound server), bind-id, and protocol of a real server.

virtual_id

Virtual server IP address or name, port number, bind-id, and protocol.


Note You must first bind this virtual server to a real server. The data command applies to all real servers bound to this virtual server.


 

number of connections

(Optional) Number of connections to allow to a real server when data has been requested, but no data has been sent by the server. To calculate this value, examine the data count during busy periods, and double it.


Defaults

The feature is disabled by default, with an initial value of 0.

Command Modes

Configuration

Usage Guidelines

Some web servers continue to establish connections to a real server even though the daemon or application running on that port is dead. The data command can be used to limit the number of connections that are sent to a real server that is not sending data.


Note Traffic containing data packets is transparently passed by LocalDirector with the ASLB feature, and no DataIn counters are incremented. The data command is used to limit the number of connections to a real server that is not sending data packets. LocalDirector can fail a real server based on DataIn counters. You cannot use the data command to fail real servers that are not sending data packets with an ASLB configuration.


When a virtual_id is specified, all real servers represented by that virtual server are affected.

No time interval is associated with the data command. The following scenario describes the sequence of events that determines whether the server is responding:

1. Client sends SYN.

2. Server kernel responds with SYN/ACK.

3. Client sends ACK to complete the TCP handshake.

4. Client sends HTTP GET request (LocalDirector counts this as one data request).

5. If the server responds, LocalDirector subtracts 1 from the count.

6. If the count reaches a preset threshold, LocalDirector fails the server.

Many kernels do not accept a TCP connection (SYN) if there is no process listening on the port that the client is attempting to connect to. Some kernels, though, mistakenly do accept the connection (SYN/ACK). Because the server is responding (with a SYN/ACK, but not with data), LocalDirector does not recognize this as a real server failure.

The data command determines the number of connections to allow to a real server where data has been not been sent back to the client, regardless of the SYN/ACK response. Once a real server reaches this number, LocalDirector checks whether other machines bound to the virtual server are also at 80 percent of their threshold capacity (based on the DataIn value). If the other machines are close to reaching this value, LocalDirector assumes the site is busy and does not fail the server.

If the other machines are not at this capacity, LocalDirector fails the real server and sends the following syslog/SNMP message:

Real machine 'x' Failed Application

The show real command indicates the number of unanswered connections for each real server, and the show data command indicates the value set with the data command.

Examples

localdirector(config)# show real
Real Machines:

                                                   No Answer TCP Reset DataIn
                  Machine  Connect   State  Thresh Reassigns Reassigns  Conns
      192.168.1.1:0:0:tcp       0     OOS       8         0         0      0
localdirector(config)# show data
          Real Machine(s)               DataIn
      192.168.1.1:0:0:tcp                   50
localdirector(config)# data 192.168.1.1:0:0:tcp 30
localdirector(config)# show data
          Real Machine(s)               DataIn
      192.168.1.1:0:0:tcp                   30

Related Commands

show data

default

To set new LocalDirector command defaults, use the default command.

default command value

Syntax Description

command

Command for which a new value is being set.

value

New default value for the command.


Defaults

No default behavior or values.

Command Modes

Configuration

Usage Guidelines

You can set new default values for some LocalDirector commands. Once a new value is set, it is in effect until set again with the default command. Table 5-3 lists commands that can be changed and the initial default values:

Table 5-3 Commands with Default Values That Can Be Changed

Command
Default Value

autounfail

on

color

0 (off)

data

0 (off)

maxconns

0 (unlimited)

predictor

leastconns

reassign

3

redirection

directed, local

retry

1 minute

sticky

0 (off)

synguard

0 (off)

threshold

8

timeout

120 minutes

weight

1


Examples

localdirector(config)# default sticky 10
localdirector(config)# virtual 10.10.10.10:80:0:tcp
localdirector(config)# show sticky
virtual                             sticky
10.10.10.10:80:0:tcp                  10

Related Commands

show default

delay

To keep connections in LocalDirector memory after a TCP ending sequence, use the delay command. Use the no delay command to remove a delay value.

delay virtual_id

no delay virtual_id

Syntax Description

virtual_id

Virtual server IP address or name, port number, bind-id, and protocol.


Defaults

No default behavior or values.

Command Modes

Configuration

Usage Guidelines

The delay command is used to put connections into a "pending deletion" state instead of removing them immediately when a TCP ending sequence is received. If the delay command is set for a virtual server, the connection remains in memory for approximately 5 minutes.

If any data arrives for the connection, it is put back in an "active" state. If any other packet comes across for the connection, the packet passes through the virtual server, but the connection is not considered active.

Use this command only when responses to and from clients are often dropped, especially during the closing of TCP connections. For example, there is a known bug with the Trumpet WinSock stack running on Windows 3.11 in which HTTP GET requests are sent out of order, and this causes LocalDirector to drop the connection even though it has not been completed.

Examples

localdirector(config)# virtual 10.10.10.1
localdirector(config)# delay 10.10.10.1
localdirector(config)# show delay
       Virtual Machine(s)             Deletion
       10.10.10.1:0:0:tcp             delayed
     192.168.1.99:0:0:tcp              normal
localdirector(config)#

Related Commands

show delay

direct-ip

To create a virtual server and a real server with the same IP address, and establish a one-to-one binding between the virtual and the real server in LocalDirector, use the direct_ip command. Use dip for the abbreviation of the direct-ip command.

Use the no direct-ip command to remove the one-to-one binding between the virtual and the real server in LocalDirector.

direct-ip virtual_ip[:[port]:[bind-id]:[protocol]] real-ip[:[port]:[bind-id]:[protocol]] [service-state]

no direct-ip virtual_ip[:[port]:[bind-id]:[protocol]] real-ip[:[port]:[bind-id]:[protocol]] [service-state]

Syntax Description

virtual_ip

Virtual server IP address to bind to; includes the virtual server IP address or name, port number, bind-id, and protocol.

Note An error message appears if you try to use the direct-ip command with a virtual server that has been associated with a content rule_name with the virtual command.

 

:port

Port number.

:bind-id

(Optional) Used to bind the same ip:port:protocol to multiple virtual servers. Use a colon as a delimiter between the bind-id and the port number. When you specify a bind-id when you define a real server, you can only specify a value of 0.

protocol

Must be tcp.

real-ip

Real server IP address to bind to; includes the real server IP address or name, port number, bind-id, and protocol.

Note If the real_ip argument is not included, then the real and the virtual servers have the same IP address

 

service state

(Optional) In service (is) or out of service (oos).


Defaults

No default behavior or values.

Command Modes

Configuration

Usage Guidelines

You cannot bind multiple real servers to direct IP servers (DIPs). Once you create and establish the one-to-one bind between the virtual and the real server using the same IP address with the direct-ip command, the bind condition remains in effect until you use the no direct-ip command. Do not use the no bind command to remove the one-to-one bind established with the direct-ip command. Use the no direct-ip command instead.

Examples

localdirector(config)# direct-ip 1.1.1.10:80:0:tcp is 
localdirector(config)

disable

To exit privileged mode and return to unprivileged mode, use the disable command.

disable

Syntax Description

This command has no keywords or arguments.

Defaults

No default behavior or values.

Command Modes

Privileged

Usage Guidelines

The disable command exits privileged mode and returns you to unprivileged mode. Use the enable command to return to privileged mode.

Examples

localdirector# disable
localdirector>

Related Commands

enable

dns-boomerang client

To configure the domain you want the LocalDirector agent to support, use the dns-boomerang client command. To remove a domain you no longer want the LocalDirector agent to support, use the
no dns-boomerang client command. Note that the terms "agent" and "client" mean the same thing.

dns-boomerang client domain-name ip-addr [key key] [dns-ttl dns-ttl value] [ip-ttl ip-ttl value] [port port value]

no dns-boomerang client domain-name ip-addr [key key] [dns-ttl dns-ttl value] [ip-ttl ip-ttl value] [port port value]

Syntax Description

domain-name

Name of the domain you want the LocalDirector agent to support. Domain names can have a maximum of 212 characters.

ip-addr

IP address of the web content server.

key

(Optional) Uses the value specified in the key argument.

key

(Optional) Shared secret keyword used between the Content Router and the LocalDirector agent. The maximum is 63 characters.

dns-ttl

(Optional) Uses the value specified in the dnts-ttl value argument.

dns-ttl value

(Optional) DNS Time to Live (TTL) value in number of seconds
(10-214748637). The default is 300.

ip-ttl

(Optional) Uses the value specified in the ip-ttl value argument.

ip-ttl value

(Optional) Number of hops to live (1-255). The default is 255.

port

(Optional) Uses the value specified in the port value argument.

port value

(Optional) Virtual port number. The default is 0.


Defaults

dns-ttl value: 300

ip-ttl value: 255

port value: 0

Command Modes

Configuration

Usage Guidelines

The dns-ttl and ip-ttl values that you set here override the dns-ttl and ip-ttl values that were previously set on the Content Router.

Examples

localdirector(config)# dns-boomerang client www.cisco.com 10.20.30.40 key
encrypt this
localdirector(config)# dns-boomerang client www.cisco.com 10.20.30.40
dns-ttl 200
localdirector(config)# dns-boomerang client www.cisco.com 10.20.30.40 ip-ttl
7
localdirector(config)# dns-boomerang client www.cisco.com 10.20.30.40 port
80
localdirector(config)#

Related Commands

dns-boomerang enable

no dns-boomerang enable

show dns-boomerang enable

show dns-boomerang counters

clear dns-boomerang counters

dns-boomerang enable

To enable the boomerang software on LocalDirector, use the dns-boomerang enable command. To disable boomerang software on LocalDirector, use the no dns-boomerang enable command.

dns-boomerang enable

no dns-boomerang enable

Syntax Description

This command has no arguments or keywords.

Defaults

No default behavior or values.

Command Modes

Configuration

Usage Guidelines

You can create routing agent domains using the dns-boomerang client command without enabling boomerang on LocalDirector. However, the agent will not respond to incoming boomerang messages from the Content Router until the agent is enabled.

Examples

localdirector (config)# dns-boomerang enable
localdirector (config)# show dns-boomerang enable
Boomerang DNS client is enabled. 
localdirector (config)

Related Commands

clear dns-boomerang counters

no dns-boomerang enable

show dns-boomerang client

show dns-boomerang counters

show dns-boomerang enable

dynamic-feedback

To enable the Dynamic Feedback Protocol (DFP) load manager on LocalDirector to connect to a DFP agent listening for DFP connections on a particular IP address and TCP port combination on a server host, use the dynamic-feedback command. Use the no dynamic-feedback command to disable the connection to a particular IP address and TCP port combination. The command-line abbreviation is dfp.

dynamic-feedback ip_address:port [retry retry] [attempts attempts] [timeout timeout]

no dynamic-feedback ip_address:port [retry retry][attempts attempts] [timeout timeout]

Syntax Description

ip_address

IP address in dotted-decimal notation (x.x.x.x) of the server hosting the DFP agent.

:port

Server TCP port that the DFP agent uses to listen for connections. The port number must be preceded by a colon.

retry

(Optional) Specifies the number of times the LocalDirector DFP manager will try to reopen a connection with the server DFP agent.

retry

(Optional) Number of retries. The retry count is from 0 (for continuous retries) to 65535. The default is 0 retries if a value is not specified.

attempts

(Optional) Specifies a value in seconds to wait between attempts to reconnect.

attempts

(Optional) Time in seconds between attempts to reconnect. The range is between 0 (no timeout) and 65535 (18 hours). The default is 180 seconds if a value is not specified.

timeout

(Optional) Specifies an inactivity timeout for a connection between the LocalDirector DFP manager and the server DFP agent. If the inactivity period exceeds the timeout, the LocalDirector DFP manager closes the connection. The LocalDirector DFP manager will try to reopen the connection as often as specified by the retry parameter.

timeout

(Optional) Timeout value in seconds. The default is 0 seconds (no timeout) if a value is not specified.


Defaults

retry: 0 if a value is not specified

attempts: 180 seconds if a value is not specified

timeout: 0 seconds if a value is not specified

Command Modes

Configuration

Usage Guidelines

The dynamic-feedback command opens a TCP connection between the LocalDirector DFP manager and the DFP agent on a server. The connection is specified by the server IP address and the TCP port.

A DFP agent collects load statistics on a server and returns a load metric to the DFP manager. LocalDirector uses the metric to make load-balancing decisions. The message content is specified
by DFP.

In the normal configuration, each server in the server farm hosts a DFP agent that collects load information from its host. However, it is also possible for a DFP agent on one server to collect load information from the other servers through local connections. This allows the DFP manager to collect the load metrics for all the servers from a single DFP agent.

The connection that is set up by the dynamic-feedback command is not secure. To set up a secure connection, use the dynamic-feedback-pw command.

The keywords attempts and retry specify how to reconnect to the DFP host if the connection times out or becomes disconnected. If the timeout keyword is used to specify a timeout value, the TCP connection is closed between LocalDirector and the DFP server when the inactivity period on the connection exceeds the timeout value.

Examples

The following command specifies that the connection between the host 10.10.10.253 and LocalDirector, over port 8002, will not time out:

localdirector(config)# dynamic-feedback 10.10.10.253:8002
localdirector(config)# show dynamic-feedback
dfp host 10.10.10.253:8002
localdirector(config)# no dynamic-feedback 10.10.10.253:8002

Related Commands

dynamic-feedback-pw

show dynamic-feedback

dynamic-feedback-agent

To enable listening for connection requests from Dynamic Feedback Protocol (DFP) managers, use the dynamic-feedback-agent command. To disable listening for DFP connection requests from DFP managers, use the no dynamic-feedback-agent command.

dynamic-feedback-agent [port]

no dynamic-feedback-agent [port]

Syntax Description

port

(Optional) Specifies the TCP listening port for DFP manager connections. If no port is specified, port 8080 is used.


Defaults

Port 8080 is used as the TCP listening port if no port is specified.

Command Modes

Privileged, configuration

Usage Guidelines

The dynamic-feedback-agent command activates the DFP agent on LocalDirector, which allows the DFP agent to service DFP manager connection requests on the TCP port specified by the optional port parameter. The DFP agent reports a load metric for each virtual server configured on LocalDirector. The DFP agent also reports on the client network bindings configured on LocalDirector. The DFP manager uses this information to enable quality of service (QoS) controls on connection requests sent to the virtual servers supported on LocalDirector.

DFP managers can reside anywhere on the network that has IP access to LocalDirector. For example, a DFP manager on a Cisco Systems DistributedDirector can use the load metrics from the LocalDirector DFP agent to distribute network traffic to virtual servers based on their availability.

The abbreviation dfp can be substituted for dynamic-feedback at the CLI.


Note The no dynamic-feedback-agent command closes all DFP manager connections to LocalDirector.


Examples

The following example does not specify the monitoring port, so port 8080 is used by default.

localdirector(config)# dynamic-feedback-agent
localdirector(config)# show dynamic-feedback-agent
dynamic-feedback-agent 8080 

Related Commands

dynamic-feedback-agent-ip

show dynamic-feedback-agent

dynamic-feedback-agent-ip

To specify Dynamic Feedback Protocol (DFP) manager hosts that can connect to the LocalDirector for DFP communications, use the dynamic-feedback-agent-ip command. To close a host connection to the LocalDirector, use the no dynamic-feedback-agent-ip command.

dynamic-feedback-agent-ip ip_address [password]

no dynamic-feedback-agent-ip ip_address [password]

Syntax Description

ip_address

Identifies the address of the DFP manager host.

password

(Optional) Specifies the password that enables security for the connection.


Defaults

No default behavior or values.

Command Modes

Privileged, configuration

Usage Guidelines

The LocalDirector DFP agent uses the host IP address to identify which DFP managers can connect and request server availability information. You can enter up to 256 IP addresses. LocalDirector can support up to 256 connections at one time.

DFP manager hosts ordinarily initiate and terminate connections. However, you can terminate a connection at the LocalDirector by using the no dynamic-feedback-agent-ip command.

A connection is not secure unless the password option is used. The option provides for MD5 encryption in both directions.

DFP managers can reside anywhere on the network that has IP access to LocalDirector. For example, a DFP manager on a Cisco Systems DistributedDirector can use the load metrics from the LocalDirector DFP agent to distribute network traffic to virtual servers based on their availability.

The abbreviation dfp can be substituted for dynamic-feedback at the CLI.

Examples

localdirector(config)# dynamic-feedback-agent-ip 10.10.10.200
localdirector(config)# show dynamic-feedback-agent-ip
dynamic-feedback-agent-ip 10.10.10.200

Related Commands

dynamic-feedback-agent

show dynamic-feedback-agent-ip

dynamic-feedback-pw

To configure a password for TCP connections between a Dynamic Feedback Protocol (DFP) manager on LocalDirector and a DFP agent on a server, use the dynamic-feedback-pw command. Use the no dynamic-feedback-pw command to disable the password (which also closes the connection).

dynamic-feedback-pw ip_address:port [password password]

no dynamic-feedback-pw ip_address:port [password password]

Syntax Description

ip_address

IP address in dotted-decimal format (x.x.x.x) of the server hosting the DFP agent.

:port

Server TCP port that the DFP agent uses to listen for connections. The port number must be preceded by a colon.

password

(Optional) Specifies that a password be used.

password

(Optional) Password, which can be up to 64 ASCII characters. The password is restricted to the following characters:

A through Z, a through z, 0 to 9, @, #, and $

Any other characters cause an error message to be displayed.


Defaults

No default behavior or values.

Command Modes

Privileged, configuration

Usage Guidelines

The dynamic-feedback-pw command provides an MD5 secure connection between the DFP manager on LocalDirector and the DFP agent on the server. In this secure environment, DFP messages from the server are discarded unless they contain the MD5 code.

DFP allows servers to provide feedback to LocalDirector about their current loads. DFP also allows servers to take themselves in and out of service. This feature presents a security risk if the network security is compromised, because it allows an invader to take servers out of service. The MD5 code restricts this possibility.

The dynamic-feedback-pw command can be issued before or after the dynamic-feedback command. If it is invoked before, the configuration exists but is considered not connected.

The abbreviation dfp can be substituted for dynamic-feedback at the CLI.

Examples

The following example shows the dynamic-feedback-pw command being invoked before the dynamic-feedback command. The results of the show dynamic-feedback command illustrate that the connection has not been initiated.

localdirector(config)# dynamic-feedback-pw 10.10.10.253:8002 password abcdef
localdirector(config)# show dynamic-feedback
dfp host 10.10.10.253:8002 - not connected
localdirector(config)# no dynamic-feedback-pw 10.10.10.253:8002

Related Commands

dynamic-feedback

enable

To enter privileged mode, use the enable command.

enable

Syntax Description

This command has no arguments or keywords.

Defaults

No default behavior or values.

Command Modes

Unprivileged, privileged

Usage Guidelines

The enable command starts privileged mode. LocalDirector prompts you for your privileged-mode password. When you first configure LocalDirector, a password is not required and you can press the Enter key at the prompt. Use the disable command to exit privileged mode.

In the following example, note that the prompt changes from ">" to "#" when you enter privileged mode.

Examples

LocalDirector> enable
Password: #######
LocalDirector# disable
LocalDirector>

Related Commands

disable

enable password

enable password

To set or change a privileged mode password, use the enable password command.

enable password password

Syntax Description

password

A password of up to 16 alphanumeric characters, which is not case sensitive. LocalDirector converts the password to all lowercase.


Defaults

No default behavior or values.

Command Modes

Configuration

Usage Guidelines

The enable password command sets or changes the privileged mode password, for which you are prompted after you enter the enable command.

Examples

LocalDirector(config)# enable password fnord42
LocalDirector(config)#

Related Commands

enable

failover

To enable access to the optional failover feature, use the failover command. Use the no failover command to disable the failover feature.

failover [active]

no failover [active]

Syntax Description

active

(Optional) Makes a LocalDirector the active unit. Use this command to make a standby unit active. Either enter no failover active on the active unit to switch service back to the standby unit, or enter failover active on the standby unit.


Defaults

The default configuration includes the no failover command; however, if the failover cable is present at bootup, it will be detected automatically and failover will be enabled.

Command Modes

Configuration

Usage Guidelines

Failover provides a mechanism for LocalDirector to be redundant by allowing two identical units to have the same functionality. Both LocalDirector units must run the same version of software, and the failover cable must be used to connect the two units. The failover command without an argument indicates that you have connected the failover cable and intend to use a secondary unit to back up the primary LocalDirector. Use the show failover command to verify the status of the connection and to determine which unit is active. Use the replicate command to maintain connection state on a per virtual server basis.


Note Turn off unused interfaces with the shutdown command, or the LocalDirector unit will be seen as failed.


Failover works by passing control to the standby unit should the active unit fail. The changeover between units occurs within 30 seconds of the failure event. The markings on the failover cable let you choose which unit is primary and which is secondary.

Use the failover active command to initiate a failover changeover from the standby unit, or the no failover active command from the active unit to initiate a failover changeover. You can use this feature to force an active unit offline for maintenance.


Note Use identical LocalDirector units as failover pairs. Make sure that the hardware platform and the number and type of interfaces on each unit are the same. Failover works in a switched environment as long as both units are running LocalDirector Version 1.6.3
or later.


Failover only works with the Cisco failover cable. LocalDirector failover does not work with any other vendor's DB-15 to DB-15 cables. Ensure that each end of the LocalDirector cable is connected to a LocalDirector unit.

Because configuration replication is automatic from the active unit to the standby unit, configuration changes should be entered from the active unit only. If your network configuration uses switches with spanning tree, make sure the MAX convergence time is set to less than 30 seconds. On Cisco switches, use the portfast option on the port connected to LocalDirector.

Examples

In this example, the IP address is on the same network as the system IP address, which is 192.168.1.1. The IP address that the secondary LocalDirector uses to communicate with the primary LocalDirector is set to 192.168.1.2.

localdirector(config)# failover ip address 192.168.1.2
localdirector(config)#

Related Commands

failover alias ip address

failover ip address

failover reset

replicate

show failover

shutdown

failover alias ip address

To assign a failover alias IP address, use the failover alias ip address command.

failover alias ip address ip_address

no failover alias ip address ip_address [netmask]

Syntax Description

ip_address

IP address is used by the standby unit to communicate with the active unit.

netmask

(Optional) Subnet mask for the alias IP address.


Defaults

No default behavior or values.

Command Modes

Configuration

Usage Guidelines

Failover provides a mechanism for LocalDirector to be redundant by allowing two identical units to have the same functionality. To take advantage of multiple IP addresses or dispatched mode, or to allow the failover unit to be on a different network from that of the real servers, use the failover alias ip address command to set up an alias on the standby failover unit. A maximum of 256 aliases is allowed.

Examples

In this example, an alias IP address on the secondary LocalDirector is created for the failover environment.

LocalDirector(config)# failover alias ip address 192.168.10.10
LocalDirector(config)#

Related Commands

failover

failover ip address

failover reset

replicate

show failover

shutdown

failover hellotime

To define how many consecutive seconds can pass without receiving a hello packet before LocalDirector reaches a failover state and initiates a backup routine, use the failover hellotime command. Use the
no failover hellotime command to reset the seconds value to 30 seconds.

failover hellotime seconds

no failover hellotime seconds

Syntax Description

seconds

Consecutive seconds that pass without receiving a hello packet before a failover condition initiates a backup routine.


Defaults

The default value is 30 seconds.

Command Modes

Configuration

Usage Guidelines

LocalDirector units in a failover configuration exchange hello packets every 5 seconds across the failover cable and the network interfaces in order to detect communication faults in each other. The failover hellotime command defines how many consecutive seconds can pass without receiving a hello packet before LocalDirector reaches a failover state and initiates a backup routine. The failover state is evaluated in 5-second intervals. For example, if the failover hellotime is 30 seconds, six 5-second intervals must pass without receiving a hello packet before the initiation of a backup routine.

Examples

LocalDirector(config)# failover hellotime 60

Related Commands

failover

failover ip address

failover reset

replicate

show failover

shutdown

failover ip address

To set the failover IP address, use the failover ip address command.

failover ip address ip_address [netmask]

no failover ip address ip_address [netmask]

Syntax Description

ip_address

IP address used by the standby unit to communicate with the active unit. Use this IP address with the ping command to check the status of the standby unit. This address must be on the same network as the system IP address. For example, if the system IP address is 192.168.1.1, set the failover IP address to 192.168.1.2.

netmask

(Optional) Subnet mask for the IP address.


Defaults

No default behavior or values.

Command Modes

Configuration

Usage Guidelines

Failover provides a mechanism for LocalDirector to be redundant by allowing two identical units to have the same functionality. Use the failover ip address command to set the IP address on the standby unit.

Examples

The following output shows that failover is on, and the primary unit state is active:

ld-prim(config)# failover ip address 192.168.89.2
ld-prim(config)# show failover
	Failover On
Cable status: Normal
		This host: Primary - Active
			Active time: 6885 (sec)
			Interface 0 (192.168.89.1): Normal
			Interface 1 (192.168.89.1): Normal
	Other host: Secondary - Standby
			Active time: 0 (sec)
			Interface 0 (192.168.89.2): Normal
			Interface 1 (192.168.89.2): Normal

The following example shows the show failover output if failover has not started monitoring the network interfaces:

ld-prim(config)# show failover
	Failover On
Cable status: Normal
		This host: Primary - Active
			Active time: 6930 (sec)
			Interface 0 (192.168.89.1): Normal (Waiting)
			Interface 1 (192.168.89.1): Normal (Waiting)
		Other host: Secondary - Standby
			Active time: 15 (sec)
			Interface 0 (192.168.89.2): Normal (Waiting)
			Interface 1 (192.168.89.2): Normal (Waiting) 


Note The indication "Waiting" indicates that monitoring of the network interfaces of the other unit has not yet started.


Related Commands

failover

failover alias ip address

failover reset

replicate

show failover

shutdown

failover reset

To take a unit out of the failed state, use the failover reset command.

failover reset

Syntax Description

This command has no arguments or keywords.

Defaults

No default behavior or values.

Command Modes

Configuration

Usage Guidelines

Failover provides a mechanism for LocalDirector to be redundant by allowing two identical units to have the same functionality. To take a unit out of the failed state, power cycle the unit or use the failover reset command. The failover reset command also clears failover timers and counters for the LocalDirector unit. When a failed primary unit is fixed and brought back online, it does not automatically resume as the active unit. This action ensures that active control does not resume on a unit that could immediately enter a failed state again. However, if a failure is due to a lost signal on a network interface card, failover autorecovers when the network is available again.

Related Commands

replicate

failover

failover alias ip address

failover ip address

show failover

shutdown

help

To display help information, use the help command.

help

?

Syntax Description

This command has no arguments or keywords.

Defaults

No default behavior or values.

Command Modes

All

Usage Guidelines

The help or ? command displays help information about all commands. You can view help on an individual command by entering the command name followed by a question mark. The command-line prompt returns with the command syntax, and the command appears on the command line.

Use the pager command to control the display output.

Enter ? at the command prompt to see a list of all of the commands available for the current mode.

Examples

LocalDirector(config)# arp ?
usage: [no] arp <ip> <mac_address> <interface_number> [alias]
LocalDirector(config)# 

Related Commands

pager

hostname

To change the host name in the LocalDirector command-line prompt, use the hostname command.

hostname newname

Syntax Description

newname

New host name for the LocalDirector prompt. This name can be up to 16 alphanumeric characters and is not case sensitive. LocalDirector converts the host name to all lowercase.


Defaults

No default behavior or values.

Command Modes

Configuration

Usage Guidelines

The hostname command changes the host name label on prompts.

Examples

LocalDirector(config)# hostname e-commerce
e-commerce(config)#

in-service

To set the service state for a real or virtual server or URL to in service (IS), use the in-service command. Use is for the abbreviation of the in-service command.

in-service {virtual virtual_id | real real_id | url url_id | dip dip_id} [all]

Syntax Description

virtual

Sets a virtual server service state to in service.

virtual-id

Virtual server IP address or name, port number, bind-id, and protocol of the virtual server that will be put in service.

real

Sets a real server service state to in service.

real-id

IP address or name, port (if a port-bound server), bind-id, and protocol of the real server that will be put in service.

url

Sets the server behind the URL to an in-service state.

url_id

ID for the uniform resource locator of the real server as defined by the url command.

dip

Sets a direct IP pair (DIP) service state to in service.

dip_id

IP address or name, port (if a portbound server), bind-id, and protocol of the DIP to be put in service.

all

(Optional) Sets the service state for all virtual servers or all real servers with the same IP address to in service. You do not need to specify port numbers and bind-id's.


Defaults

No default behavior or values.

Command Modes

Configuration

Usage Guidelines

The in-service (or is) command indicates that the virtual server, real server, or URL is ready to accept connections.

When you run the is command on multiple port-bound real servers with the same IP address, all servers with the same IP address will have their service state set.

Examples

In the following example, the is command is used with the all keyword to put all ports of real server 192.168.1.1 in service. This puts all ports of the real server (both default and port-bound) in service with just one command.

Server www.domain.com is put in service by using the name of the server for server_id. Because no port is specified, only the default ports are put in service.

When port-bound server 192.168.1.3:80 is put in service, the remaining ports (both default and port-bound) are left out of service.

LocalDirector(config)# show real
Real Machines:
                                          No Answer TCP Reset DataIn
Machine           Connect   State  Thresh Reassigns Reassigns  Conn 192.168.1.3:0:0:tcp        
0     OOS       8         0         0      0
192.168.1.3:21:0:tcp       0     OOS       8         0         0      0
192.168.1.3:80:0:tcp       0     OOS       8         0         0      0
www.domain.com:0:0:tcp     0     OOS       8         0         0      0
www.domain.com:21:0:tcp    0     OOS       8         0         0      0
www.domain.com:80:0:tcp    0     OOS       8         0         0      0
192.168.1.1:0:0:tcp        0     OOS       8         0         0      0
192.168.1.1:21:0:tcp       0     OOS       8         0         0      0
192.168.1.1:80:0:tcp       0     OOS       8         0         0      0
LocalDirector(config)# is real 192.168.1.1 all
LocalDirector(config)# is real www.domain.com
LocalDirector(config)# is real 192.168.1.3:80:tcp
LocalDirector(config)# show real
Real Machines:
                                              No Answer TCP Reset DataIn
             Machine  Connect   State  Thresh Reassigns Reassigns  Conns
192.168.1.3:0:0:tcp       0     OOS       8         0         0      0
192.168.1.3:21:0:tcp      0     OOS       8         0         0      0
192.168.1.3:80:0:tcp      0      IS       8         0         0      0
www.domain.com:0:0:tcp    0      IS       8         0         0      0
www.domain.com:21:0:tcp   0     OOS       8         0         0      0
www.domain.com:80:0:tcp   0     OOS       8         0         0      0
192.168.1.1:0:0:tcp       0      IS       8         0         0      0
192.168.1.1:21:0:tcp      0      IS       8         0         0      0
192.168.1.1:80:0:tcp      0      IS       8         0         0      0
LocalDirector(config)#

interface ethernet

To configure network interfaces, use the interface ethernet command. To disable interfaces, use the shutdown ethernet command.

interface ethernet interface_number {10baset | 100basetx | 100full | 1000basesx | 1000full
| auto}

Syntax Description

interface_number

Interface number.

10bset

Sets 10-Mbps Ethernet and half-duplex communication.

100basetx

Sets 100-Mbps Ethernet and half-duplex communication.

100full

Sets 100-Mbps Ethernet and full-duplex communication.

1000basesx

Sets Gigabit Ethernet and half-duplex communication.

1000ful

Sets Gigabit Ethernet and full-duplex communication.

auto

Automatically determines networking speed and sets full-duplex communication, if available. This is the recommended full-duplex Ethernet keyword, but the network interface must support autodetection. The RNS four-port adapter cards do not support this keyword, but the single-port and the Intel four-port Ethernet adapter cards do. Check the type of card you have with the show interface command. An Intel card displays the information "Hardware is i82557" and the RNS card displays "Hardware is rns23x0."


Defaults

No default behavior or values.

Command Modes

Configuration

Usage Guidelines

The interface ethernet command configures the Ethernet interfaces for speed and duplex setting. Use the show interface command to view information about the interface.

To configure full-duplex Ethernet, the auto keyword is recommended, but your network interface must support autodetection. (The RNS four-port adapter cards do not support the auto keyword.) You can set the Ethernet argument to accept full duplex with the 100full keyword if the network accepts full duplex and 100-Mbps Ethernet.


Note In releases prior to Version 2.2.1, the no interface command was used to disable and enable access to an interface. This command is no longer used to enable and disable an interface. Use the shutdown ethernet command instead.



Note If a crossover cable is used to connect LocalDirector to a Cisco 7500 series router, use the 100full keyword. Use the auto keyword for the four-port Ethernet interfaces on LocalDirector 430.


Examples

localdirector(config)# show interface
ethernet 0 is down, line protocol is down
  Hardware is rns23x0 ethernet, address is 0000.bc11.4c68
  MTU 1500 bytes, BW 10000 Kbit half duplex
        0 packets input, 0 bytes, 0 no buffer
        Received 0 broadcasts, 0 runts, 0 giants
        0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
        0 packets output, 0 bytes, 0 underruns
ethernet 1 is down, line protocol is down
Hardware is rns23x0 ethernet, address is 0000.bc11.4c69
  MTU 1500 bytes, BW 10000 Kbit half duplex
        0 packets input, 0 bytes, 0 no buffer
        Received 0 broadcasts, 0 runts, 0 giants
        0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
        0 packets output, 0 bytes, 0 underruns
ethernet 2 is up, line protocol is down
  Hardware is rns23x0 ethernet, address is 0000.bc11.4c6a
  MTU 1500 bytes, BW 100000 Kbit half duplex
        0 packets input, 0 bytes, 0 no buffer
        Received 0 broadcasts, 0 runts, 0 giants
        0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
        0 packets output, 0 bytes, 0 underruns
ethernet 3 is up, line protocol is down
  Hardware is rns23x0 ethernet, address is 0000.bc11.4c6b
  MTU 1500 bytes, BW 100000 Kbit half duplex
        0 packets input, 0 bytes, 0 no buffer
        Received 0 broadcasts, 0 runts, 0 giants
        0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
        0 packets output, 0 bytes, 0 underruns
localdirector(config)# interface ethernet 0 100full
localdirector(config)# interface ethernet 1 auto
WARNING: setting rns23x0 to autosense mode which
         is incompatible with autonegotiating devices
localdirector(config)# show interface
ethernet 0 is down, line protocol is down
  Hardware is rns23x0 ethernet, address is 0000.bc11.4c68
  MTU 1500 bytes, BW 100000 Kbit full duplex
        0 packets input, 0 bytes, 0 no buffer
        Received 0 broadcasts, 0 runts, 0 giants
        0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
        0 packets output, 0 bytes, 0 underruns
ethernet 1 is down, line protocol is down
  Hardware is rns23x0 ethernet, address is 0000.bc11.4c69
  MTU 1500 bytes, BW 10000 Kbit half duplex
        0 packets input, 0 bytes, 0 no buffer
        Received 0 broadcasts, 0 runts, 0 giants
        0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
        0 packets output, 0 bytes, 0 underruns
ethernet 2 is up, line protocol is down
  Hardware is rns23x0 ethernet, address is 0000.bc11.4c6a
  MTU 1500 bytes, BW 100000 Kbit half duplex
        0 packets input, 0 bytes, 0 no buffer
        Received 0 broadcasts, 0 runts, 0 giants
        0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
        0 packets output, 0 bytes, 0 underruns

localdirector(config)#

Related Commands

show interface

shutdown

ip address

To assign the system IP address for LocalDirector, use the ip address command.

ip address ip [subnet_mask]

Syntax Description

ip

System IP address of LocalDirector.

subnet_mask

(Optional) Subnet mask of the LocalDirector network.


Defaults

No default behavior or values.

Command Modes

Configuration

Usage Guidelines

The ip address command assigns an IP address to LocalDirector. Use the show ip address command to view the address.

In the following example, the system IP address is 192.168.1.1, and the failover IP address is 192.168.1.2. The current IP address of 192.168.1.2 indicates that this is the standby unit for failover. If the current IP address is the system IP address, the unit is active. If the current IP address is the failover IP address, the unit is standby.


Note You cannot use the Cisco IOS traceroute command with the LocalDirector IP address. The traceroute command can only be used with virtual IP addresses.


Examples

LocalDirector(config)# ip address 192.168.1.1 255.255.255.0
LocalDirector(config)# failover ip address 192.168.1.2
LocalDirector(config)# show ip address
System IP 192.168.1.1, system subnet 255.255.255.0
Current IP 192.168.1.2
LocalDirector(config)#

Related Commands

failover

show ip address

kill

To terminate a Telnet session, use the kill command.

kill id

Syntax Description

id

Telnet session ID.


Defaults

No default behavior or values.

Command Modes

Privileged, configuration

Usage Guidelines

The kill command terminates a Telnet session. Use the who command or the show who command to view the Telnet session ID value. When you kill a Telnet session, LocalDirector lets any active commands terminate and then drops the connection without warning to the user.

Examples

LocalDirector(config)# show who
2: From 192.168.2.2
1: From 192.168.1.3
0: On console 
LocalDirector(config)# kill 2
LocalDirector(config)# who
1: From 192.168.1.3
0: On console 

Related Commands

telnet

show who

who

link

To create an association between a URL and a virtual server, use the link command. To remove an association between a URL and a virtual server, use the no link command.

link url_id {virtual_id | dip_id}

no link url_id {virtual_id | dip_id}

Syntax Description

url_id

ID for the Uniform Resource Locator (URL) of the virtual server.

virtual_id

Virtual server ID to bind to; includes the virtual server IP address or name, port number, bind-id, and protocol. The URL inherits this virtual server's weight or state attributes.

dip_id

IP address created with the dip command for the one-to-one binding between the virtual server and the real server.


Defaults

No default behavior or values.

Command Modes

Privileged, configuration

Usage Guidelines

The URL inherits all of the connection counters from the virtual server as a result of the link command. If you have defined leastconns (fewest connections) (with the predictor command) as the load-balancing method, the URL inherits all the connection counters in the virtual server. LocalDirector assigns new connections to the physical server that has the least number of current connections. This feature ensures continued effective load balancing.


Note It is not necessary to use the link command for HTTP redirection to work properly. However, if the link command is not used, LocalDirector could redirect clients to a failed virtual or real server created with the dip command.



Note If you do not use the link command, use the predictor command with either roundrobin or loaded load balancing type for the virtual server.


Examples

localdirector(config)# link coyote 1.1.1.10:80:0:tcp
localdirector(config)

maxconns

To set the maximum number of connections that LocalDirector sends to a real server, use the maxconns command. To remove a maxconns value, use the no maxconns command.

maxconns real_id | virtual_id number

no maxconns real_id | virtual_id number

Syntax Description

real_id

IP address or name, port (if a port-bound server), bind-id, and protocol of the real server.

virtual_id

Virtual server IP address or name, port number, bind-id, and protocol.


Note You must first bind this virtual server to a real server. The maxconns command action applies to all real servers bound to this virtual server.


 

number

Maximum number of connections allowed for the server, or "unlimited" if there is no limit.


Defaults

The default value for the maxconns command is 0, or unlimited connections.

Command Modes

Configuration

Usage Guidelines

You can set the maximum number of connections that a real server accepts to avoid overloading the server. If the server reaches the maximum connection value, or if the virtual server is failed or out of service, LocalDirector responds with a TCP RST packet for all new connections to that server.

When a virtual_id is specified, all real servers represented by that virtual server are affected by this command. When all real servers represented by the virtual ID reach the maximum number of connections, the following message appears:

virtual machine...at capacity

No other connections are sent to this virtual server until the real servers process their connections.

Examples

localdirector(config)# show maxconns
          Real Machine(s)                Limit
      192.168.1.1:0:0:tcp            unlimited
      192.168.1.2:0:0:tcp            unlimited
localdirector(config)# maxconns 192.168.1.1 500
localdirector(config)# show maxconns
          Real Machine(s)                Limit
      192.168.1.1:0:0:tcp                  500
      192.168.1.2:0:0:tcp            unlimited
localdirector(config)#

Related Commands

show maxconns

mtu

To specify the maximum transmission unit (MTU) value for the specified network interface, use the mtu command.

mtu interface_number bytes

Syntax Description

interface_number

Interface number.

bytes

MTU for the interface (64-65535).


Defaults

For Ethernet interfaces, the default MTU should be 1500 bytes in a block.

Command Modes

Privileged, configuration

Usage Guidelines

The value for the mtu command depends on the type of network interface specified in the interface command. The minimum value for bytes is 64 and the maximum is 65535 bytes.

Examples

LocalDirector(config)# show mtu
    mtu 0 1500
    mtu 1 1500
LocalDirector(config)# mtu 0 4352
LocalDirector(config)# show mtu
    mtu 0 4352
    mtu 1 1500

Related Commands

interface

show mtu

multiring

To enable the Routing Information Field (RIF) for FDDI interfaces, use the multiring command. Use the no multiring command to disable the RIF.

multiring [all]

no multiring [all]

Syntax Description

all

(Optional) Enables multiring for all frames.


Defaults

Enabled.

Command Modes

Configuration

Usage Guidelines

The multiring command enables an interface's ability to collect and use source-route information (RIF) for routable protocols. The all keyword enables the multiring for all frames.

In FDDI (and Token Ring), if the upper bit of the source MAC address is set, LocalDirector expects a RIF field to be present in the MAC header. If this field is not present, the packet will be processed incorrectly. Some systems, for example DECnet, set this bit even though no RIF field is present. If source-route bridging is not being used in your network, disable multiring support with the no multiring command on LocalDirector and it will ignore this bit.


Note If using DECnet in a non-FDDI environment, use the no multiring all command.


Examples

LocalDirector (config) # multiring

Related Commands

show multiring

name

To associate a name with an IP address, use the name command. To remove an assigned name, use the no name command.

name ip name

no name ip name

Syntax Description

ip

IP address of the virtual server or real server being named. This does not include port numbers associated with port-bound servers

name

Name assigned to the IP address. All names must be less than 32 charaters in length.


Defaults

No default behavior or values.

Command Modes

Configuration

Usage Guidelines

Use the name command to identify a virtual or real server by a text name. Using a name makes it easier to change the LocalDirector configuration because you can refer to real and virtual servers by name rather than IP address; however, the port number and bind-id must be included with the name for port-bound servers and virtual servers with bind-id's. The name command can be used before or after a server is defined.

The name command is optional, and it is not related to DNS. It provides a means of making LocalDirector servers easier to configure, and the names associated with the configuration need not be synchronized with DNS.

Examples

In the example that follows, the name command identifies the IP address 192.168.1.1 as "v1." The address is then defined as a virtual server with the virtual command. These commands create a virtual server with a default port of 0 and a bind-id of 0.

ld(config)# name 192.168.1.1 v1
ld(config)# virtual v1

Two more virtual servers are created using the same name, and they are bound to port 80 with bind-id's of :1 and :2.

ld(config)# virtual v1:80:1
ld(config)# virtual v1:80:2

A virtual server is created with an IP address of 192.168.1.2 that is bound to port 443 and has a bind-id of :1. The name command is then used to identify IP address 192.168.1.2 as "v2" after the virtual server is defined.

ld(config)# virtual 192.168.1.2:443:1
ld(config)# name 192.168.1.2 v2
ld(config)# show virtual
Virtual Machines:
        Machine     State  Connect   Sticky    Predictor    Slowstart
        v1:80:2:tcp   OOS  0         0         leastconns   roundrobin*
        v1:80:1:tc    OOS  0         0         leastconns   roundrobin*
        v1:0:0:tcp    OOS  0         0         leastconns   roundrobin*
        v2:443:1:tcp  OOS  0         0         leastconns   roundrobin*

The name "v1" is used as the virtual_id with the is command and the all keyword to put all virtual servers with IP address 192.168.1.1 in service.

ld(config)# is virtual v1 all
ld(config)# show virtual
Virtual Machines:
        Machine    State  Connect   Sticky    Predictor   Slowstart
        v1:80:2:tcp   IS  0         0         leastconns  roundrobin*
        v1:80:1:tcp   IS  0         0         leastconns  roundrobin*
        v1:0:0:tcp    IS  0         O         leastconns  roundrobin*
        v2:443:1:tcp OOS  0         0         leastconns  roundrobin*

The name "v2" is used to identify a virtual server bound to port 80 with a bind-id of :1.

ld(config)# virtual v2:80:1
ld(config)# show virtual
Virtual Machines:
        Machine     State  Connect   Sticky    Predictor   Slowstart
        v1:80:2:tcp    IS  0         0         leastconns  roundrobin*
        v1:80:1:tcp    IS  0         0         leastconns  roundrobin*
        v1:0:0:tcp     IS  0         0         leastconns  roundrobin*
        v2:443:1:tcp  OOS  0         0         leastconns  roundrobin*
        v2:80:1:tcp   OOS  0         0         leastconns  roundrobin*
ld(config)#

Related Commands

show name

names

To determine whether IP addresses or server names appear in screen output, use the names command. Use the no names command to disable the display of names in screen output.

names

no names

Syntax Description

This command has no keywords or arguments.

Defaults

No default behavior or values.

Command Modes

Privileged, configuration

Usage Guidelines

You can use either the server name or IP address to configure real and virtual servers regardless of whether the names command is on or off. The status of the names command does not affect the
write terminal and show configuration commands. Use the show names command to check the status of names.

Examples

LocalDirector(config)# show names
names are on
LocalDirector(config)# show real
Real Machines:
                                              No Answer   TCP Reset    DataIn
   Machine     Connect  State  Thresh  Reassigns Reassigns  Conns
   server1:0:0:tcp       0     IS       8          0              0      0
   server2:0:0:tcp       0     IS       8          0              0      0
LocalDirector(config)# no names
LocalDirector(config)# show real
Real Machines:
                                             No Answer   TCP Reset    DataIn
   Machine    Connect  State  Thresh  Reassigns Reassigns  Conns
192.168.0.1:0:0:tcp     0     IS       8           0         0          0
192.168.0.2:0:0:tcp     0     IS       8           0         0          0
LocalDirector(config)# show names
names are off
LocalDirector(config)#

Related Commands

show names

out-of-service

To set the service state for a virtual server, real server, direct IP server (DIP), or server behind a URL to out of service (oos), use the out-of-service command, which can be abbreviated as oos.

out-of-service {virtual virtual_id} | {real real_id} | {url url_id | dip dip_id}
[
oos | maintenance | sticky | failed] [all]

Syntax Description

virtual

Sets the service state for a virtual server to out of service.

virtual_id

Virtual server IP address or name, port number, bind-id, and protocol.

real

Sets the service state for a real server to out of service.

real_id

IP address or name, port (if a port-bound server), bind-id, and protocol of a real server. Setting the oos command with just an IP number causes an oos all to perform.

url

Sets the server behind the URL to an out-of-service state.

url_id

ID for the Uniform Resource Locator (URL) of the real server as defined by the url command.

dip

Sets a DIP service state to out-of-service.

dip_id

IP address or name, port (if a port-bound server), bind-id, and protocol of the DIP to be put out-of-service.

oos

(Optional) Default state; no new connections are sent to the server. Connections are cleared when the server is put back in service.

maintenance

(Optional) Similar to oos, but connections to the server are not cleared when the server is put back in service.

sticky

(Optional) Same as maintenance, but only clients with sticky associations continue to receive those connections.

failed

(Optional) State in which the server is declared failed by an external source (for example, another device notifies LocalDirector that an application is down). For real machines, the retry function is disabled. For virtual servers, no new connections are accepted. Once the real or virtual server is put back in service, all connections are cleared.

all

(Optional) Sets the service state for all virtual servers or all real servers with the same IP address to out of service. You do not need to specify port numbers, bind-id's, and protocols. You can substitute :all:all:all for all port numbers, bind-id's, or protocols. Setting the oos command with just an IP number causes an oos all to perform.


Defaults

The default is 0 for all ports, and the default bind-id is 0.

Command Modes

Configuration

Usage Guidelines

When you set the service state for a real server to out of service, LocalDirector does not assign new connections to it, but lets old connections continue to run until they have been completed. An out-of-service real server can still be accessed by clients specifying its actual IP address.


Note If you issue the out-of-service command for a url and then reload LocalDirector, the update to the url through the out-of-service command will be lost. When rebooting Local Director, the status of a url depends on the status of the direct IP address that it is linked to and not on the status last given by the out-of-service command.


Use the show real command to watch the status of open connections; when all connections appear as OOS, you can power down the server or reconfigure it as required.

Examples

In the following example, the oos command is used with the all keyword to take all ports of real server 192.168.1.1 out of service with just one command.

Server www.domain.com is placed out of service by using the name of the server for real_id or virtual_id. Because no port is specified, only the default ports are taken out of service.

When port-bound server 192.168.1.3:80 is placed out of service, the remaining ports (both default and port-bound) are left in service.

LocalDirector(config)# show real
Real Machines:
                                                   No Answer   TCP Reset  DataIn
    Machine        Connect   State  Thresh Reassigns Reassigns  Conns
  192.168.1.3:0:0:tcp       0         IS       8         0         0        0
  192.168.1.3:21:0:tcp      0         IS       8         0         0        0
  192.168.1.3:80:0:tcp      0         IS       8         0         0        0
www.domain.com:0:0:tcp      0         IS       8         0         0        0
www.domain.com:21:0:tcp     0         IS       8         0         0        0
www.domain.com:80:0:tcp     0         IS       8         0         0        0
   192.168.1.1:0:0:tcp      0         IS       8         0         0        0
   192.168.1.1:21:0:tcp     0         IS       8         0         0        0
   192.168.1.1:80:0:tcp     0         IS       8         0         0        0
LocalDirector(config)# oos real 192.168.1.1 all
LocalDirector(config)# oos real www.domain.com
LocalDirector(config)# oos real 192.168.1.3:80
LocalDirector(config)# show real
Real Machines:
                                              No Answer   TCP Reset  DataIn
    Machine        Connect   State      Thresh Reassigns  Reassigns  Conns
  192.168.1.3:0:0:tcp      0      IS       8         0         0      0
  192.168.1.3:21:0:tcp     0      IS       8         0         0      0
  192.168.1.3:80:0:tcp     0     OOS       8         0         0      0
www.domain.com:0:0:tcp     0     OOS       8         0         0      0
www.domain.com:21:0:tcp    0      IS       8         0         0      0
www.domain.com:80:0:tcp    0      IS       8         0         0      0
   192.168.1.1:0:0:tcp     0     OOS       8         0         0      0
   192.168.1.1:21:0:tcp    0     OOS       8         0         0      0
   192.168.1.1:80:0:tcp    0     OOS       8         0         0      0
LocalDirector(config)#

Related Commands

in-service (is)

show real

show virtual

pager

To control display output, use the pager command. Use the no pager command to remove paging control.

pager

no pager

Syntax Description

This command has no keywords or arguments.

Defaults

The pager command is on by default.

Command Modes

Unprivileged, privileged, and configuration

Usage Guidelines

If the pager feature is on, by default, one screen of output is displayed at a time. Press the Spacebar to display the next page of information, and press Enter to display the next line. Press the Q key to stop the output and return to the system prompt.

Use the show pager command to see if the pager option is on or off.


Note Changes for the default pager output are valid during the current login session. When you log out, the pager output resets to the default.


Examples

LocalDirector(config)# show pager
pager is off
LocalDirector(config)# pager
LocalDirector(config)# show pager
pager is on
LocalDirector(config)#

Related Commands

pager lines

show pager

pager lines

To set the number of lines in the pager display output, use the pager lines command.

pager lines number

Syntax Description

number

Number of lines to display.


Defaults

No default behavior or values.

Command Modes

Unprivileged, privileged, and configuration

Usage Guidelines

If the pager option is on, by default, one screen of output is displayed at a time. Use the pager lines command to change the number of lines that appear per screen.

Examples

LocalDirector(config)# show pager
pager is off
LocalDirector(config)# pager lines 20
turn pager on first
LocalDirector(config)# pager
LocalDirector(config)# pager lines 20
LocalDirector(config)# show pager
pager is on

Related Commands

pager

show pager

show pager lines

password

To modify a Telnet login password, use the password command.

password password

Syntax Description

password

Password of up to 16 alphanumeric characters, which is not case sensitive. LocalDirector converts the password to all lowercase and stores it in the configurations as MD5 encrypted text.


Defaults

The default password is cisco.

Command Modes

Configuration

Usage Guidelines

The password command sets a password for Telnet access. It should be changed from the default. The Telnet password is stored in the configuration as MD5 encrypted text for enhanced security.

Examples

LocalDirector(config)# show password
password dfeaf10390e560aea745ccba53e044ed encrypted
LocalDirector(config)# password l0cald1rect0r
LocalDirector(config)# show password
password 4a1ca4298a78fb276bddfba9fcc7bd81 encrypted
LocalDirector(config)# password cisco
LocalDirector(config)# show password
password dfeaf10390e560aea745ccba53e044ed encrypted
LocalDirector(config)#

Related Commands

enable password

show password

ping

To send a ping request message, use the ping command.

ping ip_address

Syntax Description

ip_address

IP address of a host on the network.


Defaults

No default behavior or values.

Command Modes

Privileged, configuration

Usage Guidelines

The ping command determines whether LocalDirector has connectivity or whether a host is available on the network. The command output shows whether the response was received; that is, that the host exists on the network. If the host is not responding, ping displays this message:

no response received

Use the show interface command to ensure that LocalDirector is connected to the network and has connectivity.

Examples

In the following example, three attempts reached the specified address:

LocalDirector(config)# ping 192.168.42.54
192.168.42.54 response received - 10ms
192.168.42.54 response received - 10ms
192.168.42.54 response received - 10ms
LocalDirector(config)#

Related Commands

show interface

ping-allow

To turn on the ability to ping a virtual address, use the ping-allow command. Use the no ping-allow command to turn off the ability to ping a virtual address.

ping-allow interface_number

no ping-allow interface_number

Syntax Description

interface_number

Interface number of the virtual address.


Defaults

The default is to not allow a virtual address to be pinged.

Command Modes

Configuration

Usage Guidelines

By default, virtual addresses cannot be pinged, which helps protect virtual addresses from an Internet Control Message Protocol (ICMP) echo flood.

Use the ping-allow command to enable a LocalDirector virtual address to respond to a ping request.

Examples

The following example allows a virtual address to be pinged from interface 0:

LocalDirector(config)# ping-allow 0
LocalDirector(config)#

Related Commands

show ping allow

predictor

To choose the type of load balancing for each virtual server, use the predictor command.

predictor virtual_id fastest | roundrobin | leastconns | loaded | weighted [roundrobin | none]

Syntax Description

virtual_id

Virtual server IP address or name, port number, bind-id, and protocol.

fastest

Assigns new connections to the physical server with the fastest predicted response time.

roundrobin

Rotates through the list of physical servers bound to the virtual server, assigning connections to the next server.

leastconns

Assigns new connections to the physical server with the fewest current connections. This is the default.

loaded

Assigns a weighted portion of connections to a server before moving to the next. Values are set with the weight command.

weighted

Assigns new connections based on values set with the weight command. The default weight for each server is 1.

roundrobin

(Optional) Enables the round-robin slowstart for the virtual server. This is the default.

none

(Optional) Disables slowstart for the virtual server.


Defaults

leastconns: default load-balancing mode is round-robin slowstart

weighted: 1

Command Modes

Configuration

Usage Guidelines

Each virtual server can have a different predictor option. The show virtual command places an asterisk (*) next to the active predictor, indicating whether the virtual server is using the selected predictor value, or is in slowstart mode.

The slowstart option is available for the leastconns or weighted arguments. When slowstart is enabled, LocalDirector rotates through the servers until the number of connections reaches a predetermined level, which avoids overloading a server with too many requests when it is brought in service. The slowstart option is enabled by default.

Fastest Keyword

The fastest keyword directs the network connection to the server with the fastest response rate, although it does not perform consistently in varying server configurations. web server performance, in particular, does not follow a linear progression of response time to number of connections. Web servers seem to respond flatly up to a point, and then at a certain load there is a sharp, dramatic increase in the response time. In these situations, the fastest keyword will tend to overload a particular server before moving on to another.

Roundrobin Keyword

The roundrobin keyword directs the network connection to the next server, and treats all servers as equals, regardless of the number of connections or response time. Although the LocalDirector round-robin predictor appears similar to a DNS round-robin, it is superior because no propagation delay or caching hinders the algorithm. Also, LocalDirector can determine when a server is not responding, and avoid sending connections to that server.

LeastConns Keyword

The leastconns keyword directs network connections to the server with the fewest connections. Although it may not be intuitively obvious that the leastconns predictor would provide effective load balancing, in fact it is quite successful. At web sites where there is a collection of servers with similar performance, the leastconns predictor is effective in smoothing distribution when a server becomes bogged down. In sites where there are large differences in the capacity of various servers, the leastconns predictor is also very effective. In maintaining the same number of connections to all servers, those servers that are capable of processing (and thus terminating) connections the fastest will receive more connections over time. A server deemed to be twice as powerful as another server receives about twice as many connections per second.

Loaded Keyword

Use the loaded keyword to give each server a weighted number of connections in a row (round-robin style) before proceeding to the next server on the list. For example:

Server 1 weight 2

Server 2 weight 4

Server 3 weight 1

Server 1 will receive two connections, then Server 2 will receive four connections, and then Server 3 will receive one connection, and so on.

Weighted Keyword

The weighted keyword allows you to assign a performance weight to each server. Weighted load balancing is similar to the function of the leastconns keyword, but servers with a higher weight value receive a larger percentage of connections at any one time. LocalDirector administrators can assign a weight to each real server, and LocalDirector uses this weight to determine the percentage of the current number of connections to give each server. The default weight is 1.

For example, in a configuration with five servers, the percentage of connections is calculated as follows:

Server Number
Number of Connections

Weight of server 1

7

Weight of server 2

8

Weight of server 3

2

Weight of server 4

2

Weight of server 5

5

Total weight of all servers

24


This distribution results in server1 getting 7/24 of the current number of connections, server2 getting 8/24, server3 getting 2/24, and so on. If a new server, server6, is added with a weight of 10, it will get 10/34, and so on.

The weighted predictor gives new connections to the real server that is in most need of a connection, based on how many connections the virtual server and real machines bound to it have at that moment.

For example:

Virtual server 1.1.1.1 has 50 connections and is bound to real servers 1.1.1.2, 1.1.1.3, and 1.1.1.4.

real server 1.1.1.2 has 20 connections with a weight of 3

real server 1.1.1.3 has 10 connections with a weight of 2

real server 1.1.1.4 has 15 connections with a weight of 4

Based on weights, the load should be distributed as follows:

real server 1.1.1.2 gets 3/9 of connections, which is 33 percent

real server 1.1.1.3 gets 2/9 of connections, which is 22 percent

real server 1.1.1.4 gets 4/9 of connections, which is 44 percent

The actual percentage of connections to the real servers is as follows:

real server 1.1.1.2 has 20/50 connections, or 40 percent

real server 1.1.1.3 has 10/50 connections, or 20 percent

real server 1.1.1.4 has 15/50 connections, or 30 percent

Thus, real server 1.1.1.4 will receive connections to bring it closer to having 44 percent of the connections at the time.


Note The weight command is used to set the weight values for the real servers, and the predictor command is used to set load balancing to the weighted option.


Examples

LocalDirector(config)# show virtual
Machines:

Machine              Mode             State Connect   Sticky Predictor   Slowstart
10.10.10.1:0:0:tcp   directed      local OOS      0         least conns   roundrobin*
192.168.1.99:0:0:tcp directed      local OOS      0         least conns   roundrobin*
LocalDirector(config) 0# predictor www.domain.com weighted none
LocalDirector(config) 1# show virtual
Virtual Machines:
Machine               Mode            State Connect   Sticky Predictor   Slowstart
domain.com:0:0:0:tcp directed      local OOS     0         weighted*    none
LocalDirector(config)#

Related Commands

show predictor

show virtual

weight

probe

To create a probe type (HTTP or DNS) for a real or a virtual machine and set the probing interval, use the probe command. To remove a probe type, use the no probe command.

probe {real | virtual}{real_id | virtual_id} probe_type number_of_intervals

no probe {real | virtual}{real_id | virtual_id} probe_type number_of_intervals

Syntax Description

real

Specifies that a real machine will be probed.

virtual

Specifies that a virtual machine will be probed.

real_id

ID of the real machine to be probed (the machine's IP address or name, and optional port number).

virtual_id

ID of the virtual machine to be probed (the machine's IP address or name, and optional port number).

probe_type

Type of probe (HTTP or DNS).

number_of_intervals

Time interval between probes. The intervals are set at 10 seconds. The given interval number is multiplied by a factor of 10 in order to obtain the actual number of seconds between probes. For example, an interval of 2 means that probes are sent every 20 seconds. Note that the minimum value is 0 and the maximum value is 99. However, if you enter a value of 0, probing is disabled.


Defaults

The default for the time interval between probes is 10 seconds.

Command Modes

Configuration

Usage Guidelines

To override a virtual probe on a particular real machine, define a probe for that real machine. To disable probing on a particular real server, define the number_of_intervals as 0 for that real server.

Examples

LocalDirector(config)# probe virtual 10.10.10.1:80:0:tcp http 3
LocalDirector(config)# probe real 10.10.10.11:80:0:tcp http 0

Related Commands

clear probehttp

probeconfig

probehttp

no probeconfig

show probe

show probeconfig

show probehttp

probeconfig

To enable or begin probing, use the probeconfig command. To disable or stop probing, use the
no probeconfig command.

probeconfig probe_type threshold

no probeconfig probe_type

Syntax Description

probe_type

Probe (HTTP or DNS).

threshold

Maximum number of probe failures that can occur before the real machine fails. The threshold can be a minimum of 1 or a maximum of 99.


Defaults

No default behavior or values.

Command Modes

Configuration

Usage Guidelines

You must use the probe and probehttp commands to configure probes before you can initiate probing using the probeconfig command.

Examples

localdirector(config)# probeconfig http 8
localdirector(config)#

Related Commands

clear probehttp

probe

probehttp

no probe

show probe

show probeconfig

show probehttp

probedns nodename

To configure the name of the node to be used in DNS query request packets generated by LocalDirector, use the probedns nodename command.

probedns nodename node_name

no probedns nodename node_name

Syntax Description

node_name

Must be a fully qualified domain name, such as ld-pri.cisco.com, for LocalDirector to correctly issue the DNS query to the DNS servers. If the DNS server receives a query for this parameter, then the DNS server responds with no error codes and one or more DNS answer records. This parameter must be configured on all DNS servers that will be probed by this LocalDirector.


Defaults

No default behavior or values.

Command Modes

Configuration

Usage Guidelines

The clear configuration command does not remove any settings configured with the probedns nodename command.

Examples

localdirector(config)# probedns nodename server1.com
localdirector(config)#

probehttp

To set up a customized HTTP probe configuration on a real or virtual machine, use the probehttp command. To clear a customized HTTP probe configuration and reset the default values, use the
clear probehttp command.

probehttp {real | virtual} mach_id [file filename_path] [expected return_code]
[
request {HEAD | GET}]

clear probehttp {real | virtual} mach_id [file filename_path] [expected return_code]
[
request {HEAD | GET}]

Syntax Description

real

Indicates that the mach_id is a real machine.

virtual

Indicates that the mach_id is a virtual machine.

mach_id

(Optional) ID that is the IP address or name, and optional port number of the machine associated with this probe.

file

(Optional) Sets name of file to probe.

filename_path

Filename. The default is "/".

expected

(Optional) Sets return code.

return_code

Expected return code. The default is 200.

request

(Optional) Sets type of request to send.

HEAD

HTTP HEAD request. This is the default.

GET

HTTP GET request.


Defaults

file: /

expected: 200

request: HEAD

Command Modes

Configuration

Usage Guidelines

You must first set up a probe using the probe command before you configure a probe using the probehttp command. Use the probehttp command to set up nondefault configuration values for filename, expected return code, or request type. Use the clear probehttp command to clear customized HTTP probe configuration values and restore the default values.


Note The probehttp command cannot probe the SSL server.


Examples

localdirector(config)# probehttp virtual 10.10.10.1 file /index.html expected 404 request 
GET
localdirector(config)# probehttp virtual 10.10.10.1 file /index.html request GET
localdirector(config)# probehttp virtual 10.10.10.1 expected 404 request GET
localdirector(config)# probehttp virtual 10.10.10.1 file /index.html
localdirector(config)# probehttp virtual 10.10.10.1 request GET
localdirector(config)

Related Commands

probe

probeconfig

no probe

no probeconfig

show probe

show probeconfig

show probehttp

real

To define a real server, use the real command. Use the no real command to remove a real server from LocalDirector.

real real_ip | real_name[:[port]:[bind-id]:[protocol]] [service-state]

no real real_ip | real_name[:[port]:[bind-id]:[protocol]] [service-state]

Syntax Description

real_ip

IP address of a real server.

real_name

Name of a real server.

:port

(Optional) Port to use for traffic to run on the real server. Use a colon as a delimiter between the IP address and the port number. If you do not identify a specific port, all traffic is allowed to pass to the server and the port is labeled "default." Zero is the same as default. Servers with a port specified are called "port-bound" servers.

:bind-id

(Optional) Used to bind the same real_ip:port:protocol to multiple virtual servers. Use a colon as a delimiter between the bind-id and the port number. If you do not specify a bind-id when defining a real server, the default is :0.

:protocol

(Optional) Protocol to use. Specify either tcp or udp. Use a colon as a delimiter between the port number and protocol. The default protocol is tcp.

service-state

(Optional) In service (is) or out of service (oos). The default is oos.


Defaults

:port: 0

:bind-id: 0

:protocol: tcp

service-state: oos (out of service)

Command Modes

Configuration

Usage Guidelines

Real servers are actual host machines with unique IP addresses that provide IP services to the network. Real servers can still be accessed using their actual IP address.

Use the show real command to check the service state of real servers. Possible service states are:

In service (IS). The server is online and accepting connections.

Out of service (OOS). The out-of-service command is used to take the server out of service, and connections are not sent to it through the virtual server. Connections addressed to the actual IP address of the server are bridged by LocalDirector.

Failed. The server has not responded to the number of connections set by the threshold command or has responded with the same number of TCP RSTs.

Testing. After the time set by the retry command has passed, LocalDirector puts a failed real server into testing mode, in which it gets one live connection from a virtual server. If the real server does not respond or responds with a TCP RST, then it goes back to a failed state and generates a syslog message. If the server responds to the connection, then its state is changed to in service. Note that LocalDirector does not generate any traffic to test the real server. Instead, a live connection is sent to the server in a testing state. If the real server is failed and there is no traffic to the virtual server or virtual servers to which it is bound, it stays in testing mode.

Examples

Although a space can be used as a delimiter for port-bound servers, a colon is preferred. Note that the port is 0 by default, and the is (in service) command is used to put the port 80 server in service when it is defined.

ld(config)# real 192.168.1.1
ld(config)# real 192.168.1.1:80:tcp is
ld(config)# real 192.168.1.1 23
ld(config)# show real
Real Machines:
                                               No Answer   TCP Reset  DataIn
    Machine        Connect     State    Thresh Reassigns   Reassigns  Conns
192.168.1.1:23:0:tcp       0     OOS       8         0         0      0
192.168.1.1:80:0:tcp       0      IS       8         0         0      0
192.168.1.1:0:0:tcp        0     OOS       8         0         0      0

The show real command provides the information shown in Table 5-4.

Table 5-4 show real Command Field Descriptions

Column Heading
Description

Machine

IP address or name of the server, port (if a port-bound server), bind_id, and protocol.

Connect

Current number of connections to the server. This does not include direct connections to the server that are bridged by LocalDirector.

State

IS (in service), OOS (out of service), failed, or testing.

Thresh

Threshold value for reassignments before server is marked as failed.

No Answer Reassigns

Number of connections that are not answered by a real server.

TCP Reset Reassigns

Number of connections that are reassigned because a real server responded with an RST packet on a new connection.

DataIn Conns

Number of connections in which clients have requested data but have not received it.


Related Commands

show real

reassign

To set the number of retries to a real server before the connection is reassigned to another server, use the reassign command.

reassign real_id | virtual_id val

Syntax Description

real_id

IP address or name, port (if a port-bound server), bind-id, and protocol of a real server.

virtual_id

Virtual server IP address or name, port number, bind-id, and protocol.


Note You must first bind this virtual server to a real server. The reassign command action applies to all real servers bound to this virtual server.


 

val

Number of retries allowed. This value can be a number from 1 to 4. The default is 3.


Defaults

The default is three retries.

Command Modes

Configuration

Usage Guidelines

LocalDirector counts the number of TCP SYN packets per connection. When the number of allowable retries is exceeded, LocalDirector reassigns the next TCP SYN packet for the connection to another real server.


Note If a real server returns a TCP RST, LocalDirector reassigns the connection to another real server on the next TCP SYN from the client.


When a virtual_id is specified, all real servers represented by that virtual server are affected by
this command.

Examples

localdirector(config)# show reassign
          Real Machine(s)             Reassign
      192.168.1.1:0:0:tcp                    3
      192.168.1.2:0:0:tcp                    3
localdirector(config)# reassign 192.168.1.1 4
localdirector(config)# show reassign
          Real Machine(s)             Reassign
      192.168.1.1:0:0:tcp                    4
      192.168.1.2:0:0:tcp                    3
localdirector(config)#

Related Commands

show reassign

redirection

To set the type of load-balancing redirection for the virtual server, use the redirection command.

redirection virtual_id {directed | dispatched}[local | assisted]

Syntax Description

virtual_id

IP address or name, port (if a port-bound server), bind-id, and protocol of a virtual server.

directed

Uses Network Address Translation (NAT) to pass packets to the real server. (NAT replaces the virtual IP address with the IP address of the real server.)

dispatched

Places the MAC address of the real server in a packet for redirection. The real server has an alias IP address that matches the virtual IP address on LocalDirector.

local

(Optional) Uses LocalDirector style of architecture; that is, the style used since Version 1.0.

assisted

(Optional) Enables Accelerated Server Load Balancing (ASLB) when LocalDirector is connected to a Catalyst 6000 family switch. Only SYN, FIN, RST, and fragmented packets are forwarded to LocalDirector by the switch. All other packets in the flow are Layer 3-switched to and from the real server or real servers.

Note Traffic containing data packets is transparently passed by LocalDirector with the ASLB feature, and no DataIn counters are incremented. The data command is used to limit the number of connections to a real server that is not sending data. LocalDirector can fail a real server based on DataIn counters. You cannot use the data command to fail real servers that are not sending data packets with an ASLB configuration.

 


Defaults

By default, LocalDirector uses directed mode.

Command Modes

Configuration

Usage Guidelines

The redirection command allows you to change the way packets pass through LocalDirector.

Directed mode uses NAT to translate the IP headers in packets. NAT, supported in LocalDirector since Version 1.0, provides quick setup with no network address changes, reducing system administration time.

Using NAT may not always be the best solution, however. Some protocols embed the IP address within the payload, causing a problem when a packet is encrypted. Additionally, searching though an entire payload for an IP address is processor-intensive and time-consuming. In these cases, performance can be increased using dispatched mode.

Dispatched mode increases traffic throughput, but requires an additional setup of assigning an alias IP address on a real server that matches the virtual IP address on LocalDirector. Dispatched mode should be used for UDP and TCP when the IP address information needs to remain unchanged.


Note Traffic containing data packets is transparently passed by LocalDirector with the ASLB feature, and no DataIn counters are incremented. The data command is used to limit the number of connections to a real server that is not sending data packets. LocalDirector can fail a real server based on DataIn counters. You cannot use the data command to fail real servers that are not sending data packets with an ASLB configuration.



Note To remove a redirection configuration, use the redirection virtual_id directed command.


Examples

ld(config)# redirection 192.168.201.55.80 dispatch assisted

Related Commands

show redirection

virtual

reload

To reboot and reload the configuration, use the reload command.

reload

Syntax Description

This command has no arguments or keywords.

Defaults

No default behavior or values.

Command Modes

Privileged

Usage Guidelines

The reload command reboots LocalDirector and reloads the configuration from Flash memory.

Before starting, you are prompted for confirmation with this message:

Proceed with reload?
Press y or the Enter key to continue with the reboot.

Examples

LocalDirector# reload
Proceed with reload?  [confirm]

Rebooting...

replicate

To enable stateful failover, use the replicate command. Use the no replicate command to disable stateful failover on a virtual server.

replicate interface interface_number

no replicate interface interface_number

Syntax Description

interface

Specifies an interface for sending replication data.

interface_number

Interface number through which the active LocalDirector unit sends connection replication data to the standby unit. The default is interface 0.


Defaults

The default interface number is 0.

Defaults

Configuration

Usage Guidelines

Connection replication is a property of the virtual server, and it is set and cleared with the replicate command. With this command, all established connections are replicated to the standby unit. In the event of a LocalDirector failure (with failover configured), the standby unit has information for current connections, and keeps connections to the virtual server alive.

Replication can be set on a per virtual server basis, which means you can turn it on for 3270 tra