virtual-service (Traffic Load Balancer)
Syntax
virtual-service virtual-service-name { address virtual-ip–address; group group-name; load-balance-method { hash { hash-key method; } random; } mode ( layer2-direct-server-return | direct-server-return | translated ); <routing-instance routing-instance-name>; <routing-metric route-metric>; server-interface server-interface; service service-name { protocol (udp | tcp); server-listening-port port; virtual-port virtual-port; } }
Hierarchy Level
[edit services traffic-load-balance instance instance-name]
Description
Configure a TLB virtual service.
Options
address virtual-ip-address | Address of the virtual service. |
||||||
group group-name | Server group for the virtual service. |
||||||
load-balance method hash hash-key method | Use a combination of these hash-key methods for the session distribution API:
|
||||||
load-balance-method random | Use randomizing algorithm for session distribution. |
||||||
mode ( layer2-direct-server-return | direct-server-return | translated ) | Traffic load balancer mode of operation:
|
||||||
route-metric | (Optional) Route metric
|
||||||
routing-instance-name | (Optional) Routing instance for the virtual service.
Default is |
||||||
server-interface server-interface | (Optional) The server-interface specified under the virtual-service, will be used instead of the values provided under the instance level. |
||||||
service service-name | Translated mode details. Packets destined to this virtual ip-address + virtual-port + protocol will be load balanced to the appropriate server. The destination IP address and port are replaced by the real services IP address and the server-listening-port (configured here).
|
||||||
virtual-ip–address | Local address for the virtual service. |
||||||
virtual-service-name | Identifier for the virtual service. |
Required Privilege Level
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Release 16.1.
Support added in Junos OS Release 19.3R2 for Next Gen Services on MX Series routers MX240, MX480 and MX960 with the MX-SPC3 services card.