virtual-range

Use this command to configure a range of virtual server IPv4 or IPv6 addresses.

Syntax

virtual-range start-address end-address {tcp | udp} port [service service-name] [all-vrfs]

Parameters

start-address
end-address Specifies a start and an end IP address that defines a range of virtual servers.
tcp | udp Specifies TCP or UDP as the protocol used by the virtual server.
port Specifies a TCP or UDP port number (0 through 65535) or port name to be used by this virtual server. Specifying 0 indicates all ports can be used by this virtual server, and should be used only with SIP sticky session persistence configuration.

The following port name keywords may be used:

ftp — File Transfer Protocol, port 21 (IPv4 only)

telnet — Telnet, port 23

www — World Wide Web, port 80

all — All protocol ports

service service-name (Optional) Specifies the service to be accessed through this virtual server IP address. When TCP has been specified as the protocol, service-name should be ftp. When UDP has been specified as the protocol, service name should be tftp.
all-vrfs (Optional) Specifies that this VRF will handle SLB services for all VRFs for this router.

Defaults

  • If service service-name is not specified, ftp is the service when TCP is the specified protocol; tftp is the service when UDP is the specified protocol.
  • If all-vrfs is not specified, this VRF does not handle SLB services for other VRFs in this router.

Mode

Configuration command, SLB Virtual Server Configuration mode.

Usage

Use this command to configure a virtual IP address range, IP protocol, and UDP/TCP Port. Optionally specify a service type if the configured port is not the service‘s default.

Use the all-vrfs parameter to configure this VRF router to handle SLB services for all VRFs on this system.

Example

This example shows how to set the an IP address range and TCP port for the “virtual-http” virtual server:

System(rw-config)->ip slb vserver virtual-http
System(rw-config-slb-vserver)->serverfarm myproductHTTP
System(rw-config-slb-vserver)->virtual-range 10.1.4.5 10.1.4.10 tcp www

This example shows how to set the an IPv6 address range and UDP port for the “virtual-http66” virtual server and for this virtual server to handle SLB services for all VRFs on this router:

System(rw-config)->ipv6 slb vserver virtual-http66
System(rw-config-slb-vserver)->serverfarm myproductHTTP66
System(rw-config-slb-vserver)->virtual-range 2001:11ac:fd34::5 2001:11ac:fd34::10 udp tftp all-vrfs

This example shows how to set the IP address range from 10.21.141.100 through 10.21.141.105 and TCP port for the “WWW” virtual server, and for this virtual server to to handle SLB services for all VRFs on this router:

System(su)->router Services
System(su-Services)->configure
System(su-Services-config)->ip slb vserver WWW
System(su-Services-config-slb-vserver)->virtual 10.21.141.100 10.21.141.105 tcp www all-vrfs