Configuring Server Load Balancing

IOS SLB Configuration Task List

Step 7 Customize group attributes. See the “Customizing Group Attributes” section earlier in this chapter.

Step 8 Verify the IOS SLB HSRP configuration. See the “Verifying the IOS SLB Stateless Backup Configuration” section earlier in this chapter.

A sample stateless backup configuration is shown in the “IOS SLB Stateless Backup Configuration Example” section.

Enabling HSRP

To enable HSRP on an IOS SLB interface, enable the protocol, then customize it for the interface. Use the following command in interface configuration mode:

Command

Purpose

 

 

Router(config-if)# standby [group-number] ip [ip-address

Enables HSRP.

[secondary]]

 

 

 

Customizing Group Attributes

To customize Hot Standby group attributes, use the following commands in interface configuration mode as needed:

Command

Purpose

 

 

Router(config-if)# standby [group-number] authentication

Selects an authentication string to be carried in all

string

HSRP messages.

 

 

Router(config-if)# standby [group-number] name group-name

Specifies an HSRP group name with which to

 

associate an IOS SLB interface.

 

 

Router(config-if)# standby [group-number] preempt

Specifies that if the local router has priority over

 

the current active router, the local router should

 

attempt to take its place as the active router.

 

 

Router(config-if)# standby [group-number] priority priority

Sets the Hot Standby priority used to choose the

 

active router.

 

 

Router(config-if)# standby [group-number] timers hellotime

Configures the time between hello packets and the

holdtime

hold time before other routers declare the active

 

router to be down.

 

 

Router(config-if)#standby [group-number]track type-number

Configures the interface to track other interfaces,

[interface-priority]

so that if one of the other interfaces goes down the

 

Hot Standby priority for the device is lowered.

 

 

Verifying the IOS SLB Stateless Backup Configuration

To verify that stateless backup has been configured and is operating correctly, use the following show ip slb vservers EXEC commands to display information about the IOS SLB virtual server status:

Router# show ip slb vservers

slb vservers prot virtualstate conns

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

Cisco IOS IP Configuration Guide

IPC-147

Page 193
Image 193
Cisco Systems 78-11741-02 Customizing Group Attributes, Verifying the IOS SLB Stateless Backup Configuration, IPC-147