SLB-Switch(config-if)# standby [ group-number] priority priority
SLB-Switch(config-if)# standby [ group-number] timers hellotime holdtime
SLB-Switch(config-if)# standby [ group-number] track type-number [ interface-priority]
SLB-Switch(config-if)# standby [ group-number] name name
SLB-Switch(config-if)# standby [ group-number] authentication string
SLB-Switch(config-if)# standby 100 ip 172.20.100.10
SLB-Switch(config-if)# standby 100 priority 110
SLB-Switch(config-if)# standby 100 preempt
SLB-Switch(config-if)# standby 100 timers 5 15
SLB-Switch(config-if)# standby 100 name Web_group1
SLB-Switch(config-if)# standby 100 authentication Secret
SLB-Switch(config-if)# exit
SLB-Switch#
The following is the configuration for Switch A (active):
hostname Switch A
!
ip slb serverfarm ServerGroup1
real 172.20.100.3
inservice
real 172.20.100.4
inservice
!
ip slb serverfarm ServerGroup2
real 172.20.200.3
inservice
real 172.20.200.4
inservice
!
ip slb vserver VS1
virtual 10.10.10.12 tcp 23
serverfarm ServerGroup1
in-service standby Web_Group1
!
ip slb vserver VS2
virtual 10.10.10.18 tcp 23
serverfarm ServerGroup2
in-service standby Web_Group2
!
ip routing
router rip
network 172.20.0.0
!
interface vlan100
ip address 172.20.100.1 255.255.255.0
standby 100 ip 172.20.100.10
standby 100 priority 110
standby 100 preempt
standby 100 timers 5 15
standby 100 name Web_Group1
standby 100 authentication Secret
!
interface vlan200
ip address 172.20.200.1 255.255.255.0
standby 200 ip 172.20.200.10
standby 200 priority 110
standby 200 preempt
standby 200 timers 5 15
standby 200 name Web_Group2
standby 200 authentication Covert
!
The following is the configuration for Switch B (standby):
hostname Switch B
!
ip slb serverfarm ServerGroup1
real 172.20.100.3
inservice
real 172.20.100.4
inservice
!
ip slb serverfarm ServerGroup2
real 172.20.200.3
inservice
real 172.20.200.4
inservice
!
ip slb vserver VS1
virtual 10.10.10.12 tcp 23
serverfarm ServerGroup1
in-service standby Web_Group1
!
ip slb vserver VS2
virtual 10.10.10.18 tcp 23
serverfarm ServerGroup2
in-service standby Web_Group2
!
ip routing
router rip
network 172.20.0.0
!
interface vlan100
ip address 172.20.100.2 255.255.255.0
standby 100 ip 172.20.100.10
standby 100 preempt
standby 100 timers 5 15
standby 100 name Web_Group1
standby 100 authentication Secret
!
interface vlan200
ip address 172.20.200.2 255.255.255.0
standby 200 ip 172.20.200.10
standby 200 preempt
standby 200 timers 5 15
standby 200 name Web_Group2
standby 200 authentication Covert