- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
02-Global load balancing commands | 388.90 KB |
Global load balancing commands
bandwidth busy-protection (global virtual server pool view)
bandwidth weight (global dynamic proximity view)
cost weight (global dynamic proximity view)
data-center server virtual-server
display loadbalance data-center
display loadbalance data-center link statistics
display loadbalance default-syncgroup member
display loadbalance global-dns-listener
display loadbalance global-dns-listener statistics
display loadbalance global-dns-map
display loadbalance global-dns-map statistics
display loadbalance global-isp
display loadbalance global-proximity
display loadbalance global-region
display loadbalance global-reverse-zone
display loadbalance global-topology
display loadbalance global-virtual-server-pool
display loadbalance global-virtual-server-pool probe
display loadbalance global-zone
domain-name (global DNS mapping view)
fallback (global DNS listener view)
global-virtual-server-pool (global DNS mapping view)
ip address (global DNS listener view)
ip address (synchronization group member view)
ip mask (global dynamic proximity view)
link (global virtual server view/global virtual IP address view)
loadbalance default-syncgroup member
loadbalance default-syncgroup sync
loadbalance global-dns-listener
loadbalance global-reverse-zone
loadbalance global-topology region
loadbalance global-virtual-server-pool
match default probe (global dynamic proximity view)
max-number (global dynamic proximity view)
port (synchronization group member view)
predictor (global DNS mapping view)
predictor (global virtual server pool view)
probe (global virtual server view/global virtual IP address view)
probe (global virtual server pool view)
record (global DNS forward zone)
record ptr (global DNS reverse zone)
reset loadbalance global-dns-listener statistics
reset loadbalance global-dns-map statistics
reset loadbalance global-proximity
rtt weight (global dynamic proximity view)
service enable (data center view)
service enable (global DNS listener view)
service enable (global DNS mapping view)
service enable (SLB device view)
service enable (synchronization group member view)
success-criteria (global virtual server view/global virtual IP address view)
success-criteria (global virtual server pool view)
sync-interval (SLB device view)
timeout (global dynamic proximity view)
ttl (global DNS forward zone view/global DNS reverse zone view)
Global load balancing commands
authentication-key
Use authentication-key to configure the authentication key used for communication between synchronization group members.
Use undo authentication-key to restore the default.
Syntax
authentication-key { cipher | simple } string
undo authentication-key
Default
The authentication key is not configured for communication between synchronization group members.
Views
Local synchronization group member view
Predefined user roles
network-admin
context-admin
Parameters
cipher: Specifies an authentication key in encrypted form.
simple: Specifies an authentication key in plaintext form. For security purposes, the authentication key specified in plaintext form will be stored in encrypted form.
string: Specifies the authentication key. Its encrypted form is a case-sensitive string of 1 to 53 characters. Its plaintext form is a case-sensitive string of 1 to 16 characters.
Usage guidelines
An authentication key is used for establishing a TCP connection between the local and remote synchronization group members. After the connection is established, the authentication key is used to encrypt packets.
A TCP connection can be established only if the authentication keys are the same on the local and remote synchronization group members.
Examples
# On the local synchronization group member named dev1, configure the plaintext-form authentication key admin used for communication with the remote synchronization group member.
<Sysname> system-view
[Sysname] loadbalance default-syncgroup member dev1 type local
[Sysname-lb-defaultsgmember-local-dev1] authentication-key simple admin
bandwidth busy-protection (global virtual server pool view)
Use bandwidth busy-protection enable to enable the link protection feature for a global virtual server pool.
Use undo bandwidth busy-protection enable to disable the link protection feature for a global virtual server pool.
Syntax
bandwidth busy-protection enable
undo bandwidth busy-protection enable
Default
The link protection feature is disabled for a global virtual server pool.
Views
Global virtual server pool view
Predefined user roles
network-admin
context-admin
Usage guidelines
This feature enables a global virtual server pool to select a virtual IP address or virtual server based on the bandwidth ratio of the associated link. If the bandwidth ratio of a link is exceeded, the virtual IP address or virtual server is not selected.
Examples
# Enable the link protection feature for the global virtual server pool gl-pool.
<Sysname> system-view
[Sysname] loadbalance global-virtual-server-pool gl-pool
[Sysname-lb-gvspool-gl-pool] bandwidth busy-protection enable
Related commands
bandwidth busy-rate (link view)
display loadbalance global-virtual-server-pool
bandwidth busy-rate
Use bandwidth busy-rate to set the bandwidth ratio for a link.
Use undo bandwidth busy-rate to restore the default.
Syntax
bandwidth [ inbound | outbound ] busy-rate busy-rate-number [ recovery recovery-rate-number ]
undo bandwidth [ inbound | outbound ] busy-rate
Default
The bandwidth ratio is 70.
Views
Link view
Predefined user roles
network-admin
context-admin
Parameters
inbound: Specifies the inbound bandwidth ratio.
outbound: Specifies the outbound bandwidth ratio.
busy-rate-number: Specifies bandwidth ratio in the range of 1 to 100.
recovery recovery-rate-number: Specifies bandwidth recovery ratio in the range of 1 to 100. By default, if the bandwidth ratio is greater than 10, the bandwidth recovery ratio equals the bandwidth ratio minus 10; if the bandwidth ratio is smaller than or equal to 10, the bandwidth recovery ratio equals the bandwidth ratio.
Usage guidelines
If the bandwidth of a link exceeds the maximum expected bandwidth multiplied by the bandwidth ratio, the link is busy and will not be selected. If the bandwidth of the link drops below the maximum expected bandwidth multiplied by the bandwidth recovery ratio, the link participates in scheduling again.
If you do not specify the inbound or outbound keyword, this command sets the total bandwidth ratio.
The bandwidth ratio equals the current bandwidth divided by the maximum bandwidth of the link. If the maximum bandwidth is not limited, the supported maximum bandwidth is used for calculating the bandwidth ratio.
The bandwidth recovery ratio must be smaller than or equal to the bandwidth ratio of a link.
This command takes effect only on new sessions and does not take effect on existing sessions.
Examples
# Set the total bandwidth ratio and bandwidth recovery ratio for the link lk1 to 90 and 85.
<Sysname> system-view
[Sysname] loadbalance link lk1
[Sysname-lb-link-link1] bandwidth busy-rate 90 recovery 85
Related commands
display loadbalance link
max-bandwidth
bandwidth weight (global dynamic proximity view)
Use bandwidth weight to set the bandwidth weight for global dynamic proximity calculation.
Use undo bandwidth weight to restore the default.
Syntax
bandwidth { inbound | outbound } weight bandwidth-weight
undo bandwidth { inbound | outbound } weight
Default
The inbound or outbound bandwidth weight for global dynamic proximity calculation is 100.
Views
Global dynamic proximity view
Predefined user roles
network-admin
context-admin
Parameters
inbound: Specifies the inbound bandwidth weight.
outbound: Specifies the outbound bandwidth weight.
bandwidth-weight: Specifies the bandwidth weight for global dynamic proximity calculation, in the range of 0 to 255. A larger value indicates a higher bandwidth weight.
Examples
# Set the inbound bandwidth weight for global dynamic proximity calculation to 200.
<Sysname> system-view
[Sysname] loadbalance global-proximity
[Sysname-glb-proximity] bandwidth inbound weight 200
# Set the outbound bandwidth weight for global dynamic proximity calculation to 200.
[Sysname] loadbalance global-proximity
[Sysname-glb-proximity] bandwidth outbound weight 200
Related commands
display loadbalance global-proximity
cost weight (global dynamic proximity view)
Use cost weight to set the cost weight for global dynamic proximity calculation.
Use undo cost weight to restore the default.
Syntax
cost weight cost-weight
undo cost weight
Default
The cost weight for global dynamic proximity calculation is 100.
Views
Global dynamic proximity view
Predefined user roles
network-admin
context-admin
Parameters
cost-weight: Specifies the cost weight for global dynamic proximity calculation, in the range of 0 to 255. A larger value indicates a higher cost weight.
Examples
# Set the cost weight for global dynamic proximity calculation to 200.
<Sysname> system-view
[Sysname] loadbalance global-proximity
[Sysname-glb-proximity] cost weight 200
display loadbalance global-proximity
data-center server virtual-ip
Use data-center server virtual-ip to add a virtual IP address to the global virtual server pool and enter global virtual IP address view, or enter the view of an existing global virtual IP address.
Use undo data-center server virtual-ip to delete a virtual IP address from the global virtual server pool.
Syntax
data-center data-center-name server server-name virtual-ip virtual-ip-address
undo data-center data-center-name server server-name virtual-ip virtual-ip-address
Default
No virtual IP address is added to the global virtual server pool.
Views
Global virtual server pool view
Predefined user roles
network-admin
context-admin
Parameters
data-center data-center-name: Specifies a data center by its name, a case-insensitive string of 1 to 63 characters.
server server-name: Specifies a server load balancing (SLB) device by its name, a case-insensitive string of 1 to 63 characters.
virtual-ip virtual-ip-address: Specifies a virtual IPv4 address, which cannot be a loopback address, multicast address, broadcast address, or an address in the format of 0.X.X.X.
Usage guidelines
The SLB device to which the virtual IP address belongs can only be the local SLB device named localhost.
Examples
# Add virtual IP address 1.2.3.4 to the global virtual server pool gl-pool and enter global virtual IP address view.
<Sysname> system-view
[Sysname] loadbalance global-virtual-server-pool gl-pool
[Sysname-lb-gvspool-gl-pool] data-center dc1 server localhost virtual-ip 1.2.3.4
[Sysname-lb-gvspool-gl-pool-#dc1-#localhost-#vip-1.2.3.4]
Related commands
display loadbalance global-virtual-server-pool
data-center server virtual-server
Use data-center server virtual-server to add a virtual server to the global virtual server pool and enter global virtual server view, or enter the view of an existing global virtual server.
Use undo data-center server virtual-server to delete a virtual server from the global virtual server pool.
Syntax
data-center data-center-name server server-name virtual-server virtual-server-name
undo data-center data-center-name server server-name virtual-server virtual-server-name
Default
No virtual server is added to the global virtual server pool.
Views
Global virtual server pool view
Predefined user roles
network-admin
context-admin
Parameters
data-center data-center-name: Specifies a data center by its name, a case-insensitive string of 1 to 63 characters.
server server-name: Specifies an SLB device by its name, a case-insensitive string of 1 to 63 characters.
virtual-server virtual-server-name: Specifies a virtual server by its name, a case-insensitive string of 1 to 63 characters.
Examples
# Add virtual server vs1 to the global virtual server pool gl-pool and enter global virtual server view.
<Sysname> system-view
[Sysname] loadbalance global-virtual-server-pool gl-pool
[Sysname-lb-gvspool-gl-pool] data-center dc1 server slb1 virtual-server vs1
[Sysname-lb-gvspool-gl-pool-#dc1-#slb1-#vs-vs1]
Related commands
display loadbalance global-virtual-server-pool
description
Use description to configure a description.
Use undo description to restore the default.
Syntax
description text
undo description
Default
No description is configured.
Views
Data center view
Predefined user roles
network-admin
context-admin
Parameters
text: Specifies a description, a case-sensitive string of 1 to 127 characters.
Examples
# Configure the description beijing for the data center dc1.
[Sysname] loadbalance data-center dc1
[Sysname-lb-dc-dc1] description beijing
Related commands
display loadbalance data-center
display loadbalance data-center
Use display loadbalance data-center to display data center information.
Syntax
display loadbalance data-center [ name data-center-name ] [ brief ]
Views
Any view
Predefined user roles
network-admin
network-operator
context-admin
context-operator
Parameters
name data-center-name: Specifies a data center by its name, a case-insensitive string of 1 to 63 characters.
brief: Displays brief data center information. If you do not specify this keyword, the command displays detailed data center information.
Usage guidelines
If you do not specify any parameters, the command displays information about all data centers.
Examples
# Display information about all data centers.
<Sysname> display loadbalance data-center
Data center: dc1
Description: beijing
Service state: Enabled
Online state: Online
Local server: localhost
Service state: Enabled
Online state: Online
Virtual server list: vs1
vs2
Server: slb1
Service state: Enabled
Interval: 10s
Username: abc
Port: 161
IPv4 address list: 1.1.1.2
2.1.1.1
Online state: Online
Virtual server list: vs11
vs22
Link list: lk1
lk2
# Display brief information about all data centers.
<Sysname> display loadbalance data-center brief
Data center Online state Servers Links
dc1 Online 3 1
dc2 Online 2 1
Table 1 Command output
Field |
Description |
Data center |
Data center name. |
Description |
Description for the data center. |
Service state |
Data center/SLB device state: · Enabled. · Disabled. |
Online state |
Data center/SLB device online state: · Online. · Offline. |
Local server |
Local SLB device localhost. |
Server |
Name of the SLB device. |
Virtual server list |
Virtual server list of the SLB device. |
Interval |
Interval for communication between the GLB device and the SLB device, in seconds. |
Username |
Username used for communication between the GLB device and SLB device. |
IPv4 address list |
IPv4 addresses used for communication between the GLB device and SLB device. |
Port |
Port number used for communication between the GLB device and SLB device. |
Link list |
Outbound link list of the data center. |
Servers |
Number of SLB devices of the data center. |
Links |
Number of outbound links of the data center. |
display loadbalance data-center link statistics
Use display loadbalance data-center link statistics to display outbound link statistics for a data center.
Syntax
display loadbalance data-center link statistics [ name data-center-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
context-admin
context-operator
Parameters
name data-center-name: Specifies a data center by its name, a case-insensitive string of 1 to 63 characters.
Usage guidelines
If you do not specify any parameters, the command displays outbound link statistics for all data centers.
Examples
# Display outbound link statistics for all data centers.
<Sysname> display loadbalance data-center link statistics
Data center: dc1
Link: lk1
Input rate: 1524 bytes/s
Output rate: 90 bytes/s
Data center: dc2
Link: lk2
Input rate: 0 bytes/s
Output rate: 0 bytes/s
Table 2 Command output
Field |
Description |
Data center |
Data center name. |
Link |
Name of the outbound link. |
Input rate |
Inbound rate in Bps. |
Output rate |
Outbound rate in Bps. |
display loadbalance default-syncgroup member
Use display loadbalance default-syncgroup member to display default synchronization group member information.
Syntax
display loadbalance default-syncgroup member [ name member-name | type { local | remote } ]
Views
Any view
Predefined user roles
network-admin
network-operator
context-admin
context-operator
Parameters
name member-name: Specifies a default synchronization group member by its name, a case-insensitive string of 1 to 63 characters.
type { local | remote }: Specifies the default synchronization group member type, local or remote.
Usage guidelines
If you do not specify any parameters, the command displays information about all default synchronization group members.
Examples
# Display information about all default synchronization group members.
<Sysname> display loadbalance default-syncgroup member
Synchronization group member: dev1
Service state: Enabled
Role: Master
Type: Local
Port: 3936
IPv4 address list: 1.1.1.2
2.1.1.1
Probe interval: 30
Probe retries: 5 Online state: Online
Synchronization group member: dev2
Role: Standby
Type: Remote
Connection state: Established Port: 3936
IPv4 address list: 1.1.1.5
Online state: Offline
Table 3 Command output
Field |
Description |
Synchronization group member |
Default synchronization group member name. |
Service state |
Communication capability of the default synchronization group member: · Enabled. · Disabled. |
Probe interval |
Probe interval in seconds (supported only by local synchronization group members). |
Probe retries |
Retry times after probe failure. |
Role |
Synchronization group member role: · Master. · Standby. |
Connection state |
Connection state (supported only by remote synchronization group members): · Disabled. · Connecting. · Listening. · Established. |
Type |
Synchronization group member type: · Local. · Remote. |
IPv4 address list |
IPv4 addresses used for communication of the synchronization group member. |
Port |
Port number used for communication of the synchronization group member. |
Online state |
Online state of the synchronization group member: · Online. · Offline. |
display loadbalance global-dns-listener
Use display loadbalance global-dns-listener to display global DNS listener information.
Syntax
display loadbalance global-dns-listener [ name dns-listener-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
context-admin
context-operator
Parameters
name listener-name: Specifies a global DNS listener by its name, a case-insensitive string of 1 to 63 characters. If you do not specify this option, the command displays information about all global DNS listeners.
Examples
# Display information about the global DNS listener gl-listener.
<Sysname> display loadbalance global-dns-listener name gl-listener
Global DNS listener: gl-listener
Service state: Enabled
IPv4 address: 1.1.1.2
Port: 53
Fallback: Reject
Table 4 Command output
Field |
Description |
Global DNS listener |
Global DNS listener name. |
Service state |
Global DNS listener state: · Enabled. · Disabled. |
IPv4 address |
IPv4 address of the global DNS listener. |
Port |
Port number of the global DNS listener. |
Fallback |
Action to take upon DNS mapping search failure: · No-response—Does not respond. · Reject—Sends a DNS reject packet. |
display loadbalance global-dns-listener statistics
Use display loadbalance global-dns-listener statistics to display global DNS listener statistics.
Syntax
In standalone mode:
display loadbalance global-dns-listener statistics [ name dns-listener-name ] [ slot slot-number ]
In IRF mode:
display loadbalance global-dns-listener statistics [ name dns-listener-name ] [ chassis chassis-number slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
context-admin
context-operator
Parameters
name dns-listener-name: Specifies a global DNS listener by its name, a case-insensitive string of 1 to 63 characters. If you do not specify this option, the command displays statistics for all global DNS listeners.
slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays global DNS listener statistics for all cards. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command displays global DNS listener statistics for all cards. (In IRF mode.)
Examples
# Display statistics for all global DNS listeners.
<Sysname> display loadbalance global-dns-listener statistics
Global DNS listener: gl-listener
Received requests: 100
Received valid requests: 70
Unresponded requests: 10
Rejected requests: 20
------------------------------------------------
RCVR - Received requests, RVR - Received valid requests,
UR - Unresponded requests, RJTR - Rejected requests
Type RCVR RVR UR RJTR
A 50 50 0 0
AAAA 0 0 0 0
CNAME 10 5 5 0
MX 20 5 5 10
NS 10 5 0 5
PTR 10 5 0 5
SOA 0 0 0 0
Table 5 Command output
Field |
Description |
Global DNS listener |
Global DNS listener name. |
Received requests |
Number of DNS requests received by the global DNS listener. |
Received valid requests |
Number of valid DNS requests received by the global DNS listener. |
Unresponded requests |
Number of DNS requests not responded by the global DNS listener. |
Rejected requests |
Number of DNS requests rejected by the global DNS listener. |
Type |
DNS request type: · MX—Mail exchanger. · CNAME—Canonical name. · NS—Name server. · SOA—Start of authority. · PTR—Pointer. · A—IPv4 host address. · AAAA—IPv6 host address. |
display loadbalance global-dns-map
Use display loadbalance dns-map to display global DNS mapping information.
Syntax
display loadbalance global-dns-map [ name dns-map-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
context-admin
context-operator
Parameters
name dns-map-name: Specifies a global DNS mapping by its name, a case-insensitive string of 1 to 63 characters. If you do not specify this option, the command displays information about all global DNS mappings.
Examples
# Display information about the global DNS mapping gl-map.
<Sysname> display loadbalance global-dns-map name gl-map
Global DNS mapping: gl-map
Service state: Enabled
TTL: 3600s
Predictor:
Preferred: Round robin
Alternate: --
Fallback: --
Domain name list: www.aaa.domain.com
Global virtual server pool list:
Name Weight
pool1 3
pool2 2
Table 6 Command output
Field |
Description |
Global DNS mapping |
Global DNS mapping name. |
Service state |
Global DNS mapping state: · Enabled. · Disabled. |
TTL |
TTL, in seconds, to cache DNS records for DNS responses. |
Predictor |
Scheduling algorithms used by the global DNS mapping: · Preferred—Preferred predictor: ¡ proximity—Dynamic proximity algorithm. ¡ random—Random algorithm. ¡ round-robin—Weighted round robin algorithm. ¡ topology—Static proximity algorithm. · Alternate—Alternative predictor. ¡ proximity—Dynamic proximity algorithm. ¡ random—Random algorithm. ¡ round-robin—Weighted round robin algorithm. ¡ topology—Static proximity algorithm. · Fallback—Backup predictor. ¡ proximity—Dynamic proximity algorithm. ¡ random—Random algorithm. ¡ round-robin—Weighted round robin algorithm. ¡ topology—Static proximity algorithm. |
Type |
Object type for the global DNS mapping: · Local—Locally configured. · Remote—Learned through data synchronization. |
Domain name list |
Domain name list of the global DNS mapping. |
Global virtual server pool list |
Global virtual server pool used by the global DNS mapping. |
Name |
Name of the global virtual server pool. |
Weight |
Weight of the global virtual server pool. |
display loadbalance global-dns-map statistics
Use display loadbalance global-dns-map statistics to display global DNS mapping statistics.
Syntax
In standalone mode:
display loadbalance global-dns-map statistics [ name dns-map-name ] [ slot slot-number ]
In IRF mode:
display loadbalance global-dns-map statistics [ name dns-map-name ] [ chassis chassis-number slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
context-admin
context-operator
Parameters
name dns-map-name: Specifies a global DNS mapping by its name, a case-insensitive string of 1 to 63 characters. If you do not specify this option, the command displays statistics for all global DNS mappings.
slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays global DNS mapping statistics for all cards. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command displays global DNS mapping statistics for all cards. (In IRF mode.)
Examples
# Display statistics for the global DNS mapping gl-map.
<Sysname> display loadbalance global-dns-map statistics name gl-map
Global DNS mapping: gl-map
Matched DNS requests: 100
Table 7 Command output
Field |
Description |
Global DNS mapping |
Global DNS mapping name. |
Matched DNS requests |
Number of DNS requests matching the global DNS mapping. |
display loadbalance global-isp
Use display loadbalance global-isp to display global ISP information.
Syntax
display loadbalance global-isp [ ip ipv4-address | name isp-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
context-admin
context-operator
Parameters
ip ipv4-address: Specifies a global ISP by its IPv4 address.
name isp-name: Specifies a global ISP by its name, a case-insensitive string of 1 to 63 characters.
Usage guidelines
If you do not specify any parameters, the command displays information about all global ISPs.
Examples
# Display information about all global ISPs.
[Sysname] display loadbalance global-isp
(*) - User-defined object
Global ISP: chinatel
IPv4 address/Mask length: --
Global ISP: gl-isp(*)
IPv4 address/Mask length:
1.2.3.0/32(*) 1.2.3.4/32 3.3.3.6/32(*)
192.168.6.131/32(*) 192.168.195.189/32(*)
# Display information about the global ISP named gl-isp.
[Sysname] display loadbalance global-isp name gl-isp
(*) - User-defined object
Global ISP: gl-isp(*)
IPv4 address/Mask length:
1.2.3.0/32(*) 1.2.3.4/32(*) 3.3.3.6/32(*)
192.168.6.131/32(*) 192.168.195.189/32(*)
# Display information about the global ISP corresponding to the IPv4 address 1.2.3.0.
[Sysname] display loadbalance global-isp ip 1.2.3.0
ISP name Source IPv4 address/Mask length
gl-isp user-set 1.2.3.0/28
gl-isp user-set 1.2.3.0/29
gl-isp user-set 1.2.3.0/30
gl-isp file-load 1.2.3.0/31
gl-isp file-load & user-set 1.2.3.0/32
Table 8 Command output
Field |
Description |
(*) - User-defined object |
(*) indicates that the global ISP information is manually configured. If the global ISP information is also imported from a file, (*) is not displayed. |
Global ISP |
Global ISP name. |
IPv4 address/Mask length |
IPv4 address and mask length of the global ISP. |
ISP name |
Global ISP name. |
Source of the global ISP: · user-set—Manually configured. · file-load—Imported from a file. · file-load & user-set—Manually configured and imported from a file. |
display loadbalance global-proximity
Use display loadbalance global-proximity to display global dynamic proximity entry information.
Syntax
In standalone mode:
display loadbalance global-proximity ip [ ipv4-address ] [ slot slot-number ]
In IRF mode:
display loadbalance global-proximity ip [ ipv4-address ] [ chassis chassis-number slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
context-admin
context-operator
Parameters
ipv4-address: Displays detailed information about the global dynamic proximity entry corresponding to the specified IPv4 address. If you do not specify this argument, the command displays brief information about all IPv4 global dynamic proximity entries.
slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays global dynamic proximity information for all cards. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command displays global dynamic proximity information for all cards. (In IRF mode.)
Examples
# Display brief information about all global dynamic proximity entries.
[Sysname] display loadbalance global-proximity ip
IPv4 address/Mask length Timeout Data center Best link
------------------------------------------------------------------
1.2.3.0/24 59 dc1 link1
1.2.15.0/24 58 dc2 link2
# Display detailed information about the global dynamic proximity entry corresponding to the IP address 1.2.3.1.
<Sysname> system-view
[Sysname] display loadbalance global-proximity ip 1.2.3.1
IPv4 address/Mask length: 1.2.3.0/24
Timeout: 40
Link Name Data center
link1 dc1
link2 dc2
Table 9 Command output
Field |
Description |
IPv4 address/Mask length |
IPv4 address and mask length of the global dynamic proximity entry. |
Timeout |
Remaining time of the global dynamic proximity entry, in seconds. |
Best link |
Optimal link for the global dynamic proximity entry. |
Link Name |
Name of the link. |
Data center |
Data center to which the link belongs. |
display loadbalance global-region
Use display loadbalance global-region to display global region information.
Syntax
display loadbalance global-region [ name region-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
context-admin
context-operator
Parameters
name region-name: Specifies a global region by its name, a case-insensitive string of 1 to 63 characters. If you do not specify this option, the command displays all global region information.
Examples
# Display all global region information.
<Sysname> display loadbalance global-region
Global region name: reg
Global ISP list: isp1
isp2
Table 10 Command output
Field |
Description |
Global region name |
Name of the global region. |
Global ISP list |
List of global ISPs. |
display loadbalance global-reverse-zone
Use display loadbalance global-reverse-zone to display global DNS reverse zone information.
Syntax
display loadbalance global-reverse-zone ip [ ipv4-address mask-length ]
Views
Any view
Predefined user roles
network-admin
network-operator
context-admin
context-operator
Parameters
ip: Displays IPv4 global DNS reverse zone information.
ipv4-address mask-length: Specifies an IPv4 address and the mask length. The mask length is in the range of 0 to 32. If you do not specify this argument, the command displays all IPv4 global DNS reverse zone information.
Examples
# Display all IPv4 global DNS reverse zone information.
<Sysname> display loadbalance global-reverse-zone ip
Global reverse zone: 10.1.1.0/24
TTL: 60s
Record list:
Type RDATA
PTR 1.1.1.2 a.mail.h3c.com
PTR 1.1.1.3 b.mail.h3c.com
Table 11 Command output
Field |
Description |
Global reverse zone |
IPv4 address and mask length of the global DNS reverse zone. |
TTL |
TTL of the resource record, in seconds. |
Record list |
List of resource records. |
Type |
Resource record type (only PTR is supported in the current software version). |
RDATA |
Resource data. |
display loadbalance global-topology
Use display loadbalance global-region to display global static proximity policy information.
Syntax
display loadbalance global-topology { virtual-server-pool | ip } [ region region-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
context-admin
context-operator
Parameters
virtual-server-pool: Displays information about the global static proximity policies with the global virtual server pool matching the global region.
ip: Displays information about the global static proximity policies with the IP network segment matching the global region.
region region-name: Specifies a global region by its name, a case-insensitive string of 1 to 63 characters. If you do not specify this option, the command displays information about global static proximity policies for all global regions.
Examples
# Display information about the global static proximity policies with the global virtual server pool matching the global region.
<Sysname> display loadbalance global-topology virtual-server-pool
Global region: reg
Virtual server pool: gvsp1
Weight: 100
# Display information about the global static proximity policies with the IP network segment matching the global region.
<Sysname> display loadbalance global-topology ip
Global region: reg
IPv4 address: 1.2.3.0
IPv4 mask: 24
Weight: 100
Table 12 Command output
Field |
Description |
Global region |
Name of the global region. |
Virtual server pool |
Global virtual server pool associated with the global region. |
IPv4 address |
Virtual IP address associated with the global region. |
IPv4 mask |
Mask of the virtual IP address. |
Weight |
Weight of the global static proximity policy. |
display loadbalance global-virtual-server-pool
Use display loadbalance global-virtual-server-pool to display virtual server pool information.
Syntax
display loadbalance global-virtual-server-pool [ brief | name pool-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
context-admin
context-operator
Parameters
brief: Displays brief information about all global virtual server pools. If you do not specify this keyword, the command displays detailed information about all global virtual server pools.
name pool-name: Specifies a global virtual server pool by its name, a case-insensitive string of 1 to 63 characters. If you do not specify this option, the command displays information about all global virtual server pools.
Examples
# Display brief information about all global virtual server pools.
<Sysname> display loadbalance global-virtual-server-pool brief
Predictor: RR - Round robin, RD - Random, TOP - Topology,
RO - Proximity, FA - First available
VSpool Pre Alt Fbk Total Active
vsp PRO -- -- 3 3
vsp0 RR -- -- 0 0
vsp1 RR -- -- 3 3
Table 13 Command output
Field |
Description |
Predictor |
Scheduling algorithm used by the global virtual server pool: · RR—Weighted round robin algorithm. · RD—Random algorithm. · TOP—Static proximity algorithm. · PRO—Dynamic proximity algorithm. · FA—First available algorithm. |
VSpool |
Global virtual server pool name. |
Preferred scheduling algorithm of the global virtual server pool. |
|
Alt |
Alternative scheduling algorithm of the global virtual server pool. |
Fbk |
Backup scheduling algorithm of the global virtual server pool. |
Total |
Total number of virtual servers and virtual IP addresses. |
Active |
Number of active virtual servers and virtual IP addresses. |
# Display detailed information about the global virtual server pool gl-pool.
<Sysname> display loadbalance global-virtual-server-pool name gl-pool
Global virtual server pool: gl-pool
Predictor:
Preferred: proximity
Alternate: --
Fallback: --
Bandwidth busy-protection: Disabled
Total virtual servers: 3
Active virtual servers: 3
Data center: dc1
Server: slb1
Virtual server list:
Name State Address Port Weight Link
vs1 Active 192.168.1.1 0 150 ct_link1
vs2 Active 192.167.1.2 0 120 ct_link2
vs3 Active 192.169.1.3 0 80 cnc_link
Virtual IP list:
Address State Weight Link
192.168.1.1 Active 150 ct_link1
192.167.1.2 Active 120 ct_link2
192.169.1.3 Active 80 cnc_link
Data center: dc1
Server: slb2
Virtual server list:
Name State Address Port Weight Link
vs1 Active 192.168.1.1 0 150 ct_link1
vs2 Active 192.167.1.2 0 120 ct_link2
vs3 Active 192.169.1.3 0 80 cnc_link
Virtual IP list:
Address State Weight Link
192.168.1.1 Active 150 ct_link1
192.167.1.2 Active 120 ct_link2
192.169.1.3 Active 80 cnc_link
Probe information:
Probe success criteria: All
Probe method
P1
P2
Table 14 Command output
Field |
Description |
Global virtual server pool |
Global virtual server pool name. |
Predictor |
Scheduling algorithms used by the global virtual server pool: · Preferred—Preferred predictor: ¡ PRO—Dynamic proximity algorithm. ¡ RD—Random algorithm. ¡ RR—Weighted round robin algorithm. ¡ TOP—Static proximity algorithm. ¡ FA—First available algorithm. · Alternate—Alternative predictor. ¡ PRO—Dynamic proximity algorithm. ¡ RD—Random algorithm. ¡ RR—Weighted round robin algorithm. ¡ TOP—Static proximity algorithm. ¡ FA—First available algorithm. · Fallback—Backup predictor. ¡ PRO—Dynamic proximity algorithm. ¡ RD—Random algorithm. ¡ RR—Weighted round robin algorithm. ¡ TOP—Static proximity algorithm. ¡ FA—First available algorithm. |
Bandwidth busy-protection |
Link protection feature state for the global virtual server pool: · Disabled. · Enabled. |
Total virtual servers |
Total number of virtual servers and virtual IP addresses. |
Active virtual servers |
Number of active virtual servers and virtual IP addresses. |
Data center |
Data center name. |
Server |
Name of the SLB device. |
Virtual server list |
List of virtual servers. |
Virtual IP list |
List of virtual IP addresses. |
Name |
Name of the virtual server. |
State |
Virtual server state: · Active—The virtual server is available. · Inactive—The virtual server is unavailable, because it has incomplete configuration or is not able to provide services correctly. |
Address |
IP address of the virtual server. |
Port |
Port number of the virtual server. |
Weight |
Weight of the virtual server. |
Link |
Link used by the virtual server. |
Probe information |
Detailed health monitoring information for the virtual server. |
Probe success criteria |
Health monitoring success criteria for the virtual server: · All—Health monitoring succeeds only when all the specified health monitoring methods succeed. · At-least—Health monitoring succeeds when a specified minimum number of health monitoring methods succeed. |
Probe method |
Name of the NQA template used by the health monitoring method. |
display loadbalance global-virtual-server-pool probe
Use display loadbalance global-virtual-server-pool probe to display health monitoring information for a virtual server or virtual IP address.
Syntax
display loadbalance global-virtual-server-pool probe [ name pool-name ] [ data-center data-center-name ] [ server server-name ] [ virtual-server virtual-server-name | virtual-ip virtual-ip-address ]
Views
Any view
Predefined user roles
network-admin
network-operator
context-admin
context-operator
Parameters
name pool-name: Specifies a global virtual server pool by its name, a case-insensitive string of 1 to 63 characters. If you do not specify this option, the command displays health monitoring information for the virtual servers or virtual IP addresses of all global virtual server pools.
data-center data-center-name: Specifies a data center by its name, a case-insensitive string of 1 to 63 characters.
server server-name: Specifies an SLB device by its name, a case-insensitive string of 1 to 63 characters.
virtual-server virtual-server-name: Specifies a virtual server by its name, a case-insensitive string of 1 to 63 characters.
virtual-ip virtual-ip-address: Specifies a virtual IP address, which cannot be a loopback address, multicast address, broadcast address, or an address in the format of 0.X.X.X.
Examples
# Display health monitoring information for the virtual servers or virtual IP addresses of all global virtual server pools.
<Sysname> display loadbalance global-virtual-server-pool probe
Global virtual server pool: gl-pool
Data center: dc1
Server: localhost
virtual server: vs1
Probe information:
Probe success criteria: All
Probe method State
icmp Failed
virtual server: vs2
Data center: dc1
Server: localhost
Probe information:
Probe success criteria: All
Probe method State
icmp Failed
Data center: dc2
Server: localhost
Virtual IP: 1.2.3.4
Probe information:
Probe success criteria: All
Probe method State
icmp Failed
Table 15 Command output
Field |
Description |
Global virtual server pool |
Global virtual server pool name. |
Virtual server |
Name of the virtual server. |
Data center |
Name of the data center to which the virtual server or virtual IP address belongs. |
Server |
Name of the SLB device to which the virtual server or virtual IP address belongs. |
Virtual IP |
Virtual IP address. |
Probe success criteria |
Health monitoring success criteria. |
Probe method |
Name of the NQA template used by the health monitoring method. |
State |
State of the health monitoring method: · Failed—Health monitoring has failed. · In progress—Health monitoring is in progress. · Invalid—Health monitoring is unavailable (because the configuration of the NQA template is not complete), or the virtual server or virtual IP address is unavailable. · Successful—Health monitoring has succeeded. |
display loadbalance global-zone
Use display loadbalance global-zone to display global DNS forward zone information.
Syntax
display loadbalance global-zone [ name domain-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
context-admin
context-operator
Parameters
name domain-name: Specifies a domain name. It is a dot-separated, case-insensitive string that can include letters, digits, hyphens (-), underscores (_), and dots (.). The domain name can include a maximum of 253 characters, and each separated string includes no more than 63 characters. If you do not specify a domain name, this command displays global DNS forward zone information for all domain names.
Examples
# Display all global DNS forward zone information.
<Sysname> display loadbalance global-zone
Global zone: abc.com
TTL: 3600s
SOA:
Primary name server: ns1.abc.com
Responsible mail: root.ns1.abc.com
Serial: 11812
Retry: 14400s
Expire: 604800s
Min TTL: 86400s
Record list:
Type RDATA
NS ns1.abc.com
NS ns2.abc.com
NS a.abc.com ns2.abc.com
MX a.mail.abc.com 10
MX b.mail.abc.com 20
CNAME a.test.abc.com abc1.abc.com
CNMAE b.test.abc.com abc2.abc.com
Table 16 Command output
Field |
Description |
Global zone |
Domain name of the global DNS forward zone. |
TTL |
TTL of the resource record in the global DNS forward zone, in seconds. |
SOA |
Start of Authority (SOA) information. |
Primary name server |
Host name for the primary DNS server. |
Responsible mail |
Email address of the domain administrator. |
Serial |
Domain serial number. |
Retry |
Retry interval in seconds. |
Expire |
Expiration time in seconds. |
Min TTL |
Minimum TTL in seconds. |
Record list |
List of resource records. |
Type |
Resource record type: · MX—Mail exchange record. · CNAME—Canonical name record. · NS—Name server record. |
RDATA |
Resource data. |
display loadbalance link
Use display loadbalance link to display link information.
Syntax
display loadbalance link [ brief | name link-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
context-admin
context-operator
Parameters
brief: Displays brief information about all links. If you do not specify this keyword, the command displays detailed link information.
name link-name: Displays detailed information about the specified link. The link-name argument specifies a link name, a case-insensitive string of 1 to 63 characters.
Usage guidelines
If you do not specify any parameters, the command displays detailed information about all links.
Examples
# Display brief information about all links.
<Sysname> display loadbalance link brief
Link Router IP/Interface State VPN instance Link group
Lk1 192.168.1.1 Busy -- --
Lk2 192.168.2.1 Active -- --
Lk3 Dialer0 Inactive -- --
# Display detailed information about the link lk.
<Sysname> display loadbalance link name lk
Link: lk
Description: lk
State: Busy
VPN instance:
Inherit VPN: Enabled
Router IP: 1.2.3.4
Router IPv6: --
Link-group:
Weight: 100
Priority: 4
Cost: 0
Slow-shutdown: Disabled
Connection limit: --
Rate limit:
Connections: --
Bandwidth: --
Inbound bandwidth: --
Outbound bandwidth: --
Bandwidth busy:
Max bandwidth: --
Max inbound bandwidth: --
Max outbound bandwidth: --
Busy rate: 70
Inbound busy rate: 70
Outbound busy rate: 60
Busy recovery rate: 60
Inbound busy recovery rate: 60
Outbound busy recovery rate: 60
Probe information:
Probe success criteria: All
Probe method State
Table 17 Command output
Field |
Description |
Link |
Link name. |
Router IP/Interface |
Gateway IP address or outgoing interface of the link. |
State |
Link state: · Active—The link is available. · Busy—The link is busy. · Inactive—The link is unavailable, because the configuration is not complete, the link is not referenced, or the virtual server is not enabled. · Probe-failed—Health monitoring has failed. · Ramp—Ramp-up phase of slow online. · Shutdown—The link is shut down. · Standby—Standby phase of slow online. · Unknown—Health monitoring is not configured. |
VPN instance |
VPN instance of the link. · Config—Manually configured. · Inherit—Inherited. |
Link group |
Link group to which the link belongs. |
Description |
Description for the link. |
Inherit VPN |
State of VPN instance inheritance: Enabled or Disabled. |
IPv4 address state |
IPv4 address state of the link: · Active—An available IPv4 address is obtained through the outgoing interface of the link. · Inactive—No available IPv4 address is obtained through the outgoing interface of the link. This field is displayed only if an outgoing interface is specified for the link. |
IPv6 address state |
IPv6 address state of the link: · Active—An available IPv6 address is obtained through the outgoing interface of the link. · Inactive—No available IPv6 address is obtained through the outgoing interface of the link. This field is displayed only if an outgoing interface is specified for the link. |
Router IP |
Gateway IPv4 address of the link. |
Router IPv6 |
Gateway IPv6 address of the link. |
Weight |
Weight of the link. |
Priority |
Priority of the link in the link group. |
Cost |
Cost for proximity calculation. |
Slow shutdown |
Slow offline state of the link: · Disabled. · Enabled. |
Connection limit |
Maximum number of connections for LB link. |
Connection rate limit |
Maximum number of connections per second for the link. |
Rate limit |
Rate limit of the link. |
Connections |
Maximum number of connections per second for the link. |
Bandwidth |
Maximum bandwidth for the link in KBps. |
Inbound bandwidth |
Maximum inbound bandwidth for the link in KBps. |
Outbound bandwidth |
Maximum outbound bandwidth for the link in KBps. |
Bandwidth busy |
Bandwidth ratio. |
Max bandwidth |
Maximum expected bandwidth for the link in KBps. |
Max inbound bandwidth |
Maximum inbound expected bandwidth for the link in KBps. |
Max outbound bandwidth |
Maximum outbound expected bandwidth for the link in KBps. |
Busy rate |
Bandwidth ratio for the link. |
Inbound busy rate |
Inbound bandwidth ratio for the link. |
Outbound busy rate |
Outbound bandwidth ratio for the link. |
Busy recovery rate |
Bandwidth recovery ratio for the link. |
Inbound busy recovery rate |
Inbound bandwidth recovery ratio for the link. |
Outbound busy recovery rate |
Outbound bandwidth recovery ratio for the link. |
Probe information |
Detailed health monitoring information for the link. |
Probe success criteria |
Health monitoring success criteria for the link: · All—Health monitoring succeeds only when all the specified health monitoring methods succeed. · At-least—Health monitoring succeeds when a specified minimum number of health monitoring methods succeed. |
Probe method |
Name of the NQA template used by the health monitoring method. |
State |
State of the health monitoring method: · Failed—Health monitoring has failed. · In progress—Health monitoring is in progress. · Invalid—Health monitoring is unavailable (because the configuration of the NQA template is not complete), or the link is unavailable. · Succeeded—Health monitoring has succeeded. |
domain-name (global DNS mapping view)
Use domain-name to specify a domain name for a global DNS mapping.
Use undo domain-name to delete a domain name from a global DNS mapping.
Syntax
domain-name domain-name
undo domain-name domain-name
Default
No domain name is specified for a global DNS mapping.
Views
Global DNS mapping view
Predefined user roles
network-admin
context-admin
Parameters
domain-name: Specifies a domain name, a case-insensitive string of 1 to 253 characters.
Usage guidelines
The domain name specified in this command is used for resolution for the requesting DNS client. You can specify multiple domain names for a global DNS mapping.
Examples
# Specify domain name www.aaa.domain.com for the global DNS mapping gl-map.
<Sysname> system-view
[Sysname] loadbalance global-dns-map gl-map
[Sysname-lb-gdm-gl-map] domain-name www.aaa.domain.com
display loadbalance global-dns-map
expire
Use expire to set the expiration time for SOA resource records.
Use undo expire to restore the default.
Syntax
expire expire-time
undo expire
Default
The expiration time is 86400 seconds.
Views
SOA view
Predefined user roles
network-admin
context-admin
Parameters
expire-time: Specifies the expiration time in the range of 500 to 4294967295 seconds.
Usage guidelines
The expiration time for SOA resource records is the amount of time that the secondary DNS server can work after it loses contact with the primary DNS server.
Examples
# Set the expiration time for SOA resource records to 7 days for global DNS forward zone abc.com.
<Sysname> system-view
[Sysname] loadbalance global-zone abc.com
[Sysname-lb-gzone-abc.com] soa
[Sysname-lb-gzone-abc.com-soa] expire 604800
Related commands
display loadbalance global-zone
fallback (global DNS listener view)
Use fallback to specify a processing method for DNS mapping search failure.
Use undo fallback to restore the default.
Syntax
fallback { no-response | reject }
undo fallback
Default
A global DNS listener sends a DNS reject packet for DNS mapping search failure.
Views
Global DNS listener view
Predefined user roles
network-admin
context-admin
Parameters
no-response: Does not respond to DNS requests.
reject: Sends a DNS reject packet.
Examples
# Specify the processing method for DNS mapping search failure as no-response.
<Sysname> system-view
[Sysname] loadbalance global-dns-listener gl-listener
[Sysname-lb-gdl-gl-listener] fallback no-response
Related commands
display loadbalance global-dns-listener
global-isp
Use global-isp to add a global ISP to a global region.
Use undo global-isp to delete a global ISP from a global region.
Syntax
global-isp isp-name
undo global-isp isp-name
Default
No global ISPs are added.
Views
Global region view
Predefined user roles
network-admin
context-admin
Parameters
isp-name: Specifies a global ISP by its name, a case-insensitive string of 1 to 63 characters.
Usage guidelines
This command helps divide regions based on ISP types.
Examples
# Add the global ISP gl-isp to the global region gl-region.
<Sysname> system-view
[Sysname] loadbalance global-region gl-region
[Sysname-lb-gregion-gl-region] global-isp gl-isp
Related commands
display loadbalance global-region
global-virtual-server-pool (global DNS mapping view)
Use global-virtual-server-pool to specify a global virtual server pool for a global DNS mapping.
Use undo global-virtual-server-pool to restore the default.
Syntax
global-virtual-server-pool pool-name [ weight weight-value ]
undo global-virtual-server-pool pool-name
Default
No global virtual server pool is specified for a global DNS mapping.
Views
Global DNS mapping view
Predefined user roles
network-admin
context-admin
Parameters
pool-name: Specifies the global virtual server pool name, a case-insensitive string of 1 to 63 characters.
weight weight-value: Specifies the weight for the global virtual server pool, in the range of 1 to 255. The default value is 100.
Usage guidelines
You can configure multiple global virtual server pools for a global DNS mapping. The GLB device selects an appropriate global virtual server pool for the requesting DNS client based on the specified scheduling algorithm.
For the weighted round robin algorithm, the higher the weight, the more likely the global virtual server pool is scheduled.
Examples
# Specify the global virtual server pool pool1 for the global DNS mapping gl-map.
<Sysname> system-view
[Sysname] loadbalance global-dns-map gl-map
[Sysname-lb-gdm-gl-map] global-virtual-server-pool pool1
Related commands
display loadbalance global-dns-map
ip address (global DNS listener view)
Use ip address to specify an IPv4 address and a port number for a global DNS listener.
Use undo ip address to restore the default.
Syntax
ip address ipv4-address [ port port-number ]
undo ip address
Default
No IPv4 address is specified for a global DNS listener. The default port number is 53.
Views
Global DNS listener view
Predefined user roles
network-admin
context-admin
Parameters
ipv4-address: Specifies an IPv4 address, which cannot be a loopback address, multicast address, broadcast address, or an address in the format of 0.X.X.X.
port port-number: Specifies a port number in the range of 0 to 65535. The default port number is 53.
Usage guidelines
You can specify only one IPv4 address for a global DNS listener. If you execute this command multiple times, the most recent configuration takes effect. A global DNS listener without an IPv4 address configured does not process IPv4 DNS requests.
To ensure correct operation of global load balancing when server load balancing is also enabled, do not specify the virtual server's IP address as the global DNS listener's IP address.
The global DNS listener's IP address must be the IP address of the local device.
Examples
# Specify the IPv4 address for the global DNS listener gl-listener as 1.2.3.4.
<Sysname> system-view
[Sysname] loadbalance global-dns-listener gl-listener
[Sysname-lb-gdl-gl-listener] ip address 1.1.1.1
Related commands
display loadbalance global-dns-listener
ip address (global ISP view)
Use ip address to configure an IPv4 address for a global ISP.
Use undo ip address to restore the default.
Syntax
ip address ipv4-address { mask-length | mask }
undo ip address ipv4-address { mask-length | mask }
Default
No IPv4 address is configured for a global ISP.
Views
Global ISP view
Predefined user roles
network-admin
context-admin
Parameters
ipv4-address: Specifies an IPv4 address.
mask-length: Specifies the mask length for the IPv4 address, in the range of 1 to 32.
mask: Specifies the mask for the IPv4 address.
Usage guidelines
You cannot delete the imported ISP's IPv4 address by using the undo form of the command. If the manually configured and imported ISP information overlaps, you can delete the manually configured ISP information.
Examples
# Configure the IPv4 address for the global ISP gl-isp as 1.1.1.1/24.
<Sysname> system-view
[Sysname] loadbalance global-isp gl-isp
[Sysname-glbisp-gl-isp] ip address 1.1.1.1 24
Related commands
display loadbalance global-isp
ip address (SLB device view)
Use ip address to configure an IPv4 address for an SLB device.
Use undo ip address to delete the IPv4 address of the SLB device.
Syntax
ip address ipv4-address
undo ip address ipv4-address
Default
No IPv4 address is configured for an SLB device.
Views
SLB device view
Predefined user roles
network-admin
context-admin
Parameters
ipv4-address: Specifies an IPv4 address, which cannot be a loopback address, multicast address, broadcast address, or an address in the format of 0.X.X.X.
Usage guidelines
Use this command to specify the IPv4 address for the SLB device to establish a connection to the global load balancing (GLB) device.
You can configure multiple IPv4 addresses for an SLB device.
If a connection is established, the SLB device no longer makes connection attempts. If the connection is terminated, the SLB device selects an available IPv4 address to establish connection to the GLB device.
Examples
# Configure the IPv4 address for the SLB device slb1 as 1.2.3.4.
<Sysname> system-view
[Sysname] loadbalance data-center dc1
[Sysname-lb-dc-dc1] server slb1
[Sysname-lb-dc-dc1-#slb1] ip address 1.2.3.4
Related commands
display loadbalance data-center
ip address (synchronization group member view)
Use ip address to configure an IPv4 address for a synchronization group member.
Use undo ip address to delete the IPv4 address of the synchronization group member.
Syntax
ip address ipv4-address
undo ip address ipv4-address
Default
No IPv4 address is configured for a synchronization group member.
Views
Synchronization group member view
Predefined user roles
network-admin
context-admin
Parameters
ipv4-address: Specifies an IPv4 address, which cannot be a loopback address, multicast address, broadcast address, or an address in the format of 0.X.X.X.
Usage guidelines
You can configure multiple IPv4 addresses for a synchronization group member.
As a best practice, do not modify the IPv4 address when the connection is already established between the local and remote synchronization group members. Such an operation might terminate the connection.
Examples
# Configure the IPv4 address for the local synchronization group member dev1 as 1.2.3.4.
<Sysname> system-view
[Sysname] loadbalance default-syncgroup member dev1 type local
[Sysname-lb-defaultsgmember-local-dev1] ip address 1.2.3.4
Related commands
display loadbalance default-syncgroup member
ip mask (global dynamic proximity view)
Use ip mask to set the mask length for global dynamic proximity entries.
Use undo ip mask to restore the default.
Syntax
ip mask { ip-mask-length | ip-mask }
undo ip mask
Default
The mask length for global dynamic proximity entries is 24.
Views
Global dynamic proximity view
Predefined user roles
network-admin
context-admin
Parameters
ip-mask-length: Specifies the mask length for global dynamic proximity entries, in the range of 0 to 32. A value of 0 indicates the natural mask.
ip-mask: Specifies the mask for global dynamic proximity entries.
Examples
# Set the mask length for global dynamic proximity entries to 28.
<Sysname> system-view
[Sysname] loadbalance global-proximity
[Sysname-glb-proximity] ip mask 28
Related commands
display loadbalance global-proximity
link (data center view)
Use link to specify an outbound link for a data center.
Use undo link to restore the default.
Syntax
link link-name
undo link
Default
No outbound link is configured for a data center.
Views
Data center view
Predefined user roles
network-admin
context-admin
Parameters
link-name: Specifies an outbound link by its name, a case-insensitive string of 1 to 63 characters.
Usage guidelines
An outbound link corresponds to the physical outbound link of a data center. Typically, a data center with multiple ISPs requires configuring multiple outbound links.
Examples
# Specify outbound link lk1 for data center dc1.
<Sysname> system-view
[Sysname] loadbalance data-center dc1
[Sysname-lb-dc-dc1] link lk1
Related commands
display loadbalance data-center
link (global virtual server view/global virtual IP address view)
Use link to associate a link with a global virtual server or global virtual IP address.
Use undo link to restore the default.
Syntax
link link-name
undo link
Default
No link is associated with a global virtual server or global virtual IP address.
Views
Global virtual server view
Global virtual IP address view
Predefined user roles
network-admin
context-admin
Parameters
link-name: Specifies a link by its name, a case-insensitive string of 1 to 63 characters.
Usage guidelines
A link corresponds to the physical link to the external network. The global virtual server or global virtual IP address uses the associated link to provide services to the external network.
If no link is specified or the specified link is deleted, the system automatically selects the link closest to the network segment to associate with the virtual IP address or virtual server.
A manually specified link overwrites an automatically selected link.
Examples
# Associate link lk1 with global virtual IP address 1.2.3.4.
<Sysname> system-view
[Sysname] loadbalance global-virtual-server-pool gl-pool
[Sysname-lb-gvspool-gl-pool] data-center dc1 server localhost virtual-ip 1.2.3.4
[Sysname-lb-gvspool-gl-pool-#dc1-#localhost -#vip-1.2.3.4] link lk1
Related commands
display loadbalance global-virtual-server-pool
loadbalance data-center
Use loadbalance data-center to create a data center and enter its view, or enter the view of an existing data center.
Use undo loadbalance data-center to delete the specified data center.
Syntax
loadbalance data-center data-center-name
undo loadbalance data-center data-center-name
Default
No data centers exist.
Views
System view
Predefined user roles
network-admin
context-admin
Parameters
data-center-name: Specifies a data center by its name, a case-insensitive string of 1 to 63 characters.
Examples
# Create the data center dc1, and enter data center view.
<Sysname> system-view
[Sysname] loadbalance data-center dc1
[Sysname-lb-dc-dc1]
Related commands
display loadbalance data-center
loadbalance default-syncgroup member
Use loadbalance default-syncgroup member to create a default synchronization group member and enter its view, or enter the view of an existing default synchronization group member.
Use undo loadbalance default-syncgroup member to delete the specified default synchronization group member.
Syntax
loadbalance default-syncgroup member member-name [ type { local | remote } ]
undo loadbalance default-syncgroup member member-name
Default
No default synchronization group members exist.
Views
System view
Predefined user roles
network-admin
context-admin
Parameters
member-name: Specifies a default synchronization group member by its name, a case-insensitive string of 1 to 63 characters.
type { local | remote }: Specifies the default synchronization group member type, local or remote.
Usage guidelines
The device supports creating one local default synchronization group member and multiple remote default synchronization group members. Currently, all synchronization group members belong to the default synchronization group.
When you create a default synchronization group member, you must specify the default synchronization group member type. You can enter an existing default synchronization group member view without entering the type of the default synchronization group member.
Examples
# Create local default synchronization group member dev1, and enter default synchronization group member view.
<Sysname> system-view
[Sysname] loadbalance default-syncgroup member dev1 type local
[Sysname-lb-defaultsgmember-local-dev1]
# Create remote default synchronization group member dev2, and enter default synchronization group member view.
<Sysname> system-view
[Sysname] loadbalance default-syncgroup member dev2 type remote
[Sysname-lb-defaultsgmember-remote-dev2]
loadbalance default-syncgroup sync
Use loadbalance default-syncgroup sync to enable data synchronization among default synchronization group members.
Syntax
loadbalance default-syncgroup { sync { config | proximity | run } | sync-all { config | proximity } }
Views
System view
Predefined user roles
network-admin
context-admin
Parameters
sync: Specifies local data synchronization.
sync-all: Specifies global data synchronization.
config: Specifies configuration data synchronization.
proximity: Specifies dynamic proximity data synchronization.
run: Specifies running data (excluding dynamic proximity data) synchronization.
Usage guidelines
Configure this command to synchronize data among default synchronization group members.
The device supports two synchronization methods: sync and sync-all. For the master device, the two synchronization methods have the same effect, namely, synchronizing the master's data to all standby devices in the default synchronization group. For a standby device, sync synchronizes its data to the master device, and sync-all notifies the master to synchronize data on the master to all standby devices.
For the configuration to take effect, configure this command after the master device has been elected.
Examples
# Enable data synchronization among default synchronization group members.
<Sysname> system-view
[Sysname] loadbalance default-syncgroup sync config
loadbalance global-dns-listener
Use loadbalance global-dns-listener to create a global DNS listener and enter its view, or enter the view of an existing global DNS listener.
Use undo loadbalance global-dns-listener to delete a global DNS listener.
Syntax
loadbalance global-dns-listener dns-listener-name
undo loadbalance global-dns-listener dns-listener-name
Default
No global DNS listeners exist.
Views
System view
Predefined user roles
network-admin
context-admin
Parameters
dns-listener-name: Specifies the global DNS listener name, a case-insensitive string of 1 to 63 characters.
Usage guidelines
A global DNS listener listens for DNS requests on the GLB device.
Examples
# Create the global DNS listener gl-listener, and enter global DNS listener view.
<Sysname> system-view
[Sysname] loadbalance global-dns-listener gl-listener
[Sysname-lb-gdl-gl-listener]
Related commands
display loadbalance global-dns-listener
loadbalance global-dns-map
Use loadbalance global-dns-map to create a global DNS mapping and enter its view, or enter the view of an existing global DNS mapping.
Use undo loadbalance global-dns-map to delete a global DNS mapping.
Syntax
loadbalance global-dns-map dns-map-name
undo loadbalance global-dns-map dns-map-name
Default
No global DNS mappings exist.
Views
System view
Predefined user roles
network-admin
context-admin
Parameters
dns-map-name: Specifies the global DNS mapping name, a case-insensitive string of 1 to 63 characters.
Examples
# Create the global DNS mapping gl-map, and enter global DNS mapping view.
<Sysname> system-view
[Sysname] loadbalance global-dns-map gl-map
[Sysname-lb-gdm-gl-map]
Related commands
display loadbalance global-dns-map
loadbalance global-isp file
Use loadbalance global-isp file to import a global ISP file.
Use undo loadbalance global-isp file to delete a global ISP file.
Syntax
loadbalance global-isp file isp-file-name
undo loadbalance global-isp file
Default
The global ISP file is not imported.
Views
System view
Predefined user roles
network-admin
context-admin
Parameters
isp-file-name: Specifies the global ISP file name, a case-insensitive string of 1 to 255 characters.
Usage guidelines
The system keeps the imported information intact when detecting the following problems:
· The file does not exist.
· The file name is invalid.
· File decryption occurs.
If the system quits the import operation because of IP address parsing failure, the system performs the following operations:
· Clears the most recently imported information.
· Saves the information imported this time.
You cannot delete the imported global ISP or its IP address. If the manually configured and imported ISP information overlaps, you can delete the manually configured ISP information.
To perform an active/standby MPU switchover, make sure the standby MPU has the same ISP file as the active MPU.
If you execute this command multiple times, the most recent configuration takes effect.
Examples
# Import the global ISP file gl-isp.
<Sysname> system-view
[Sysname] loadbalance global-isp file gl-isp
Related commands
display loadbalance global-isp
loadbalance global-isp name
Use loadbalance global-isp name to create a global ISP and enter its view, or enter the view of an existing global ISP.
Use undo loadbalance global-isp name to delete the specified global ISP.
Syntax
loadbalance global-isp name isp-name
undo loadbalance global-isp name isp-name
Default
No global ISPs exist.
Views
System view
Predefined user roles
network-admin
context-admin
Parameters
isp-name: Specifies the global ISP name, a case-insensitive string of 1 to 63 characters.
Usage guidelines
You cannot use the undo form of the command to delete a global ISP with imported ISP files.
Examples
# Create global ISP gl-isp, and enter global ISP view.
<Sysname> system-view
[Sysname] loadbalance global-isp name gl-isp
[Sysname-lb-gisp-gl-isp]
Related commands
display loadbalance global-isp
loadbalance global-proximity
Use loadbalance global-proximity to create global dynamic proximity and enter its view, or enter the view of the existing global dynamic proximity.
Use undo loadbalance global-proximity to restore the default.
Syntax
loadbalance global-proximity
undo loadbalance global-proximity
Default
No global dynamic proximity exists.
Views
System view
Predefined user roles
network-admin
context-admin
Usage guidelines
The global dynamic proximity feature needs to be configured on each GLB device. Without the configuration, the device cannot use the proximity-related functions or process proximity data synchronized from other GLB devices.
Examples
# Create and enter global dynamic proximity view.
<Sysname> system-view
[Sysname] loadbalance global-proximity
[Sysname-lb-gproximity]
Related commands
display loadbalance global-proximity
loadbalance global-region
Use loadbalance global-region to create a global region and enter its view, or enter the view of an existing global region.
Use undo loadbalance global-region to delete a global region.
Syntax
loadbalance global-region region-name
undo loadbalance global-region region-name
Default
No global regions exist.
Views
System view
Predefined user roles
network-admin
context-admin
Parameters
region-name: Specifies the global region name, a case-insensitive string of 1 to 63 characters.
Usage guidelines
A global region contains network segments corresponding to different global ISPs.
Examples
# Create the global region gl-region, and enter global region view.
<Sysname> system-view
[Sysname] loadbalance global-region gl-region
[Sysname-lb-gregion-gl-region]
Related commands
display loadbalance global-region
loadbalance global-reverse-zone
Use loadbalance global-reverse-zone to create a global DNS reverse zone and enter its view, or enter the view of an existing global DNS reverse zone.
Use undo loadbalance global-reverse-zone to delete a global DNS reverse zone.
Syntax
loadbalance global-reverse-zone ip ipv4-address mask-length
undo loadbalance global-reverse-zone ip ipv4-address mask-length
Default
No global DNS reverse zones exist.
Views
System view
Predefined user roles
network-admin
context-admin
Parameters
ip ipv4-address mask-length: Specifies an IPv4 address and mask length for the global DNS reverse zone. The value range for the mask-length argument is 0 to 32.
Examples
# Create a global DNS reverse zone with IPv4 address 10.11.2.0/24, and enter global DNS reverse zone view.
<Sysname> system-view
[Sysname] loadbalance global-reverse-zone ip 10.11.2.0 24
[Sysname-lb-grzone-10.11.2.0/24]
Related commands
display loadbalance global-reverse-zone
loadbalance global-topology region
Use loadbalance global-topology region to create a global static proximity policy.
Use undo loadbalance global-topology region to delete a global static proximity policy.
Syntax
loadbalance global-topology region region-name { virtual-server-pool pool-name | ip ip-address { ip-mask-length | ip-mask } } [ priority priority ]
undo loadbalance global-topology region region-name [ virtual-server-pool pool-name | ip ip-address { ip-mask-length | ip-mask } ]
Default
No global static proximity policies exist.
Views
System view
Predefined user roles
network-admin
context-admin
Parameters
region-name: Specifies the region name, a case-insensitive string of 1 to 63 characters.
virtual-server-pool pool-name: Specifies a global virtual server pool by its name, a case-insensitive string of 1 to 63 characters.
ip ipv4-address: Specifies the IPv4 address corresponding to the region.
ip-mask-length: Specifies the mask length for the IPv4 address, in the range of 0 to 32.
ip-mask: Specifies the mask for the IPv4 address.
priority priority: Specifies the priority for the global static proximity policy, in the range of 1 to 255. The default value is 100.
Usage guidelines
If you specify the virtual-server-pool keyword, the global static proximity policy associates the global region where the local DNS server resides with the global virtual server pool. If you specify the ip keyword, the global static proximity policy associates the global region where the local DNS server resides with the virtual server/virtual IP network.
When a DNS request matches multiple global static proximity policies, the global static proximity policy with the highest priority is used.
A global region can correspond to multiple virtual server pools or virtual servers/virtual IP networks.
If you do not specify the virtual-server-pool or ip keyword, the undo form of the command deletes configuration of all global virtual server pools or virtual IP networks corresponding to the global region.
Examples
# Create the global static proximity policy, associating global region gl-reg with global virtual server pool gl-pool.
<Sysname> system-view
[Sysname] loadbalance global-topology region gl-reg virtual-server-pool gl-pool priority 150
# Create the global static proximity policy, associating global region gl-reg with virtual IP network 1.1.1.1/24.
<Sysname> system-view
[Sysname] loadbalance global-topology region gl-reg ip 1.1.1.1 24 priority 150
Related commands
display loadbalance global-topology
loadbalance global-virtual-server-pool
Use loadbalance global-virtual-server-pool to create a global virtual server pool and enter its view, or enter the view of an existing global virtual server pool.
Use undo loadbalance global-virtual-server-pool to delete a global virtual server pool.
Syntax
loadbalance global-virtual-server-pool pool-name
undo loadbalance global-virtual-server-pool pool-name
Default
No global virtual server pools exist.
Views
System view
Predefined user roles
network-admin
context-admin
Parameters
pool-name: Specifies the global virtual server pool name, a case-insensitive string of 1 to 63 characters.
Usage guidelines
You can add virtual servers with similar functions to a global virtual server pool to facilitate management.
The global virtual server pool created in this command can be referenced by the global-virtual-server-pool command in global DNS mapping view.
Examples
# Create the global virtual server pool gl-pool, and enter global virtual server pool view.
<Sysname> system-view
[Sysname] loadbalance global-virtual-server-pool gl-pool
[Sysname-lb-gvspool-gl-pool]
Related commands
display loadbalance global-virtual-server-pool
global-virtual-server-pool (global DNS mapping view)
loadbalance global-zone
Use loadbalance global-zone to create a global DNS forward zone and enter its view, or enter the view of an existing global DNS forward zone.
Use undo loadbalance global-zone to delete a global DNS forward zone.
Syntax
loadbalance global-zone domain-name
undo loadbalance global-zone domain-name
Default
No global DNS forward zones exist.
Views
System view
Predefined user roles
network-admin
context-admin
Parameters
domain-name: Specifies a domain name for the global DNS forward zone, a case-insensitive string of 1 to 253 characters. Each dot-separated part in the domain name can contain a maximum of 63 characters. The domain name can contain letters, digits, hyphens (-), underscores (_), and dots (.).
Examples
# Create a global DNS forward zone with domain name abc.com, and enter global DNS forward zone view.
<Sysname> system-view
[Sysname] loadbalance global-zone abc.com
[Sysname-lb-gzone-abc.com]
Related commands
display loadbalance global-zone
loadbalance link
Use loadbalance link to create a link and enter its view, or enter the view of an existing link.
Use undo loadbalance link to delete a link.
Syntax
loadbalance link link-name
undo loadbalance link link-name
Default
No links exist.
Views
System view
Predefined user roles
network-admin
context-admin
Parameters
link-name: Specifies the link name, a case-insensitive string of 1 to 63 characters.
Usage guidelines
Each physical link connected to the external network corresponds to a link.
Examples
# Create the link lk1, and enter link view.
<Sysname> system-view
[Sysname] loadbalance link lk1
[Sysname-lb-link-lk1]
match default probe (global dynamic proximity view)
Use match default probe to specify the global dynamic proximity probe method.
Use undo match default to restore the default.
Syntax
match default probe template-name
undo match default
Default
The global dynamic proximity probe method is not specified.
Views
Global dynamic proximity view
Predefined user roles
network-admin
context-admin
Parameters
template-name: Specifies an NQA template by its name, a case-insensitive string of 1 to 32 characters.
Examples
# Specify NQA template t1 as the global dynamic proximity probe method.
<Sysname> system-view
[Sysname] loadbalance global-proximity
[Sysname-glb-proximity] match default probe t1
Related commands
display loadbalance global-proximity
max-bandwidth
Use max-bandwidth to set the maximum expected bandwidth of a link.
Use undo max-bandwidth to restore the default.
Syntax
max-bandwidth [ inbound | outbound ] bandwidth-value
undo max-bandwidth [ inbound | outbound ]
Default
The maximum expected bandwidth of a link is not limited.
Views
Link view
Predefined user roles
network-admin
context-admin
Parameters
inbound: Specifies the maximum inbound expected bandwidth.
outbound: Specifies the maximum outbound expected bandwidth.
bandwidth-value: Specifies the maximum expected bandwidth in the range of 0 to 4294967295 in KBps. The value 0 means the bandwidth is not limited.
Usage guidelines
If you do not specify the inbound or outbound keyword, the maximum expected bandwidth equals the inbound expected bandwidth plus the outbound expected bandwidth.
This command takes effect only on new sessions and does not take effect on existing sessions.
Examples
# Set the maximum inbound expected bandwidth of the link lk1 to 1 KBps.
<Sysname> system-view
[Sysname] loadbalance link lk1
[Sysname-lb-link-lk1] max-bandwidth inbound 1
max-number (global dynamic proximity view)
Use max-number to set the maximum number of global dynamic proximity entries.
Use undo max-number to restore the default.
Syntax
max-number number
undo max-number
Default
The maximum number of global dynamic proximity entries is not set.
Views
Global dynamic proximity view
Predefined user roles
network-admin
context-admin
Parameters
number: Specifies the maximum number of global dynamic proximity entries, in the range of 0 to 10000000. The value 0 means that the maximum number of global dynamic proximity entries is not limited.
Examples
# Set the maximum number of global dynamic proximity entries to 100.
<Sysname> system-view
[Sysname] loadbalance global-proximity
[Sysname-glb-proximity] max-number 100
Related commands
display loadbalance global-proximity
member
Use member to specify the virtual server for the local SLB device.
Use undo member to delete the virtual server for the local SLB device.
Syntax
member virtual-server-name
undo member virtual-server-name
Default
No virtual server is specified for the local SLB device.
Views
Local SLB device view
Predefined user roles
network-admin
context-admin
Parameters
virtual-server-name: Specifies a virtual server by its name, a case-insensitive string of 1 to 63 characters.
Usage guidelines
The virtual server name for the local SLB device localhost must be unique among all data centers.
This command applies only to the local SLB device localhost. The virtual servers of non-local SLB devices are automatically learned.
Examples
# Specify the virtual server vs1 for the local SLB device localhost.
<Sysname> system-view
[Sysname] loadbalance data-center dc1
[Sysname-lb-dc-dc1] server localhost
[Sysname-lb-dc-dc1-#localhost] member vs1
Related commands
display loadbalance data-center
min-ttl
Use min-ttl to set the minimum TTL.
Use undo min-ttl to restore the default.
Syntax
min-ttl ttl-value
undo min-ttl
Default
The minimum TTL is 3600 seconds.
Views
SOA view
Predefined user roles
network-admin
context-admin
Parameters
ttl-value: Specifies the minimum TTL in the range of 0 to 4294967295 seconds.
Usage guidelines
The minimum TTL is the amount of time that resource records on the primary DNS server are cached on the secondary DNS server.
Examples
# Set the minimum TTL to one day for global DNS forward zone abc.com.
<Sysname> system-view
[Sysname] loadbalance global-zone abc.com
[Sysname-lb-gzone-abc.com] soa
[Sysname-lb-gzone-abc.com-soa] min-ttl 86400
Related commands
display loadbalance global-zone
password
Use password to configure the communication password for an SLB device.
Use undo password to restore the default.
Syntax
password { cipher | simple } string
undo password
Default
The communication password is not configured for an SLB device.
Views
SLB device view
Predefined user roles
network-admin
context-admin
Parameters
cipher: Specifies a password in encrypted form.
simple: Specifies a password in plaintext form. For security purposes, the password specified in plaintext form will be stored in encrypted form.
string: Specifies the password. Its plaintext form is a case-sensitive string of 1 to 63 characters. Its encrypted form is a case-sensitive string of 1 to 113 characters.
Usage guidelines
Use this command to set the password for establishing a NETCONF connection between the GLB device and SLB device. The connection can be established only if the configured username and password are the same as the local username and password on the SLB device.
Examples
# Configure the communication password admin for the SLB device slb1.
<Sysname> system-view
[Sysname] loadbalance data-center dc1
[Sysname-lb-dc-dc1]server slb1
[Sysname-lb-dc-dc1-#slb1]password admin
port (SLB device view)
Use port to specify the communication port number for an SLB device.
Use undo port to restore the default.
Syntax
port port-number
undo port
Default
The communication port number for an SLB device is 80.
Views
SLB device view
Predefined user roles
network-admin
context-admin
Parameters
port-number: Specifies a port number in the range of 1 to 65535.
Usage guidelines
The GLB device communicates with the SLB device using NETCONF. The connection can be established only if the SLB device's communication port number on the GLB device is the same as the communication port number configured on the SLB device.
This configuration takes effect only when you enable the NAT feature for the server farm.
Examples
# Specify the communication port number 8080 for SLB device slb1.
<Sysname> system-view
[Sysname] loadbalance data-center dc1
[Sysname-lb-dc-dc1]server slb1
[Sysname-lb-dc-dc1-#slb1] port 8080
Related commands
display loadbalance data-center
port (synchronization group member view)
Use port to specify the communication port number for a synchronization group member.
Use undo port to restore the default.
Syntax
port port-number
undo port
Default
The communication port number for a synchronization group member is 3936.
Views
Synchronization group member view
Predefined user roles
network-admin
context-admin
Parameters
port-number: Specifies a port number in the range of 1024 to 65535.
Usage guidelines
After the local member establishes a connection with the remote member, modifying the port number might disconnect the connection. As a best practice, do not modify the port number.
Examples
# Specify communication port number 8080 for synchronization group member dev1.
<Sysname> system-view
[Sysname] loadbalance default-syncgroup member dev1 type local
[Sysname-lb-defaultsgmember-local-dev1] port 8080
Related commands
display loadbalance default-syncgroup member
predictor (global DNS mapping view)
Use predictor to specify a scheduling algorithm for a global DNS mapping.
Use undo predictor to restore the default.
Syntax
predictor { alternate | fallback | preferred } { proximity | random | round-robin | topology }
undo predictor { alternate | fallback | preferred }
Default
The preferred scheduling algorithm for a global DNS mapping is weighted round robin. No alternative or backup scheduling algorithm is specified.
Views
Global DNS mapping view
Predefined user roles
network-admin
context-admin
Parameters
alternate: Specifies the alternative scheduling algorithm.
fallback: Specifies the backup scheduling algorithm.
preferred: Specifies the preferred scheduling algorithm.
proximity: Specifies the dynamic proximity algorithm, which assigns DNS requests to global virtual server pools based on dynamic proximity entries.
random: Specifies the random algorithm, which randomly assigns DNS requests to global virtual server pools.
round-robin: Specifies the weighted round robin algorithm, which assigns DNS requests to global virtual server pools based on the weights of the global virtual server pools. A higher weight indicates more DNS requests will be assigned.
topology: Specifies the static proximity algorithm, which assigns DNS requests to global virtual server pools based on static proximity entries.
Examples
# Specify the scheduling algorithm round-robin for global DNS mapping gl-map.
<Sysname> system-view
[Sysname] loadbalance global-dns-map gl-map
[Sysname-lb-gdm-gl-map] predictor preferred round-robin
Related commands
display loadbalance global-dns-map
predictor (global virtual server pool view)
Use predictor to specify a scheduling algorithm for a global virtual server pool.
Use undo predictor to restore the default.
Syntax
predictor { alternate | fallback | preferred } { first-available | proximity | random | round-robin | topology }
undo predictor { alternate | fallback | preferred }
Default
The preferred scheduling algorithm for a global virtual server pool is weighted round robin. No alternative or backup scheduling algorithm is specified.
Views
Global virtual server pool view
Predefined user roles
network-admin
context-admin
Parameters
alternate: Specifies the alternative scheduling algorithm.
fallback: Specifies the backup scheduling algorithm.
preferred: Specifies the preferred scheduling algorithm.
first-available: Specifies the first available algorithm. This algorithm assigns all subsequent DNS requests to the virtual server to which the first DNS request is assigned. For the first DNS request, the virtual server with the greatest weight value is assigned. If multiple virtual servers with the same greatest weight value exist, a virtual server is randomly selected among them.
proximity: Specifies the dynamic proximity algorithm, which assigns DNS requests to virtual servers based on dynamic proximity entries.
random: Specifies the random algorithm, which randomly assigns DNS requests to virtual servers.
round-robin: Specifies the weighted round robin algorithm, which assigns DNS requests to virtual servers based on the weights of the virtual servers. A higher weight indicates more DNS requests will be assigned.
topology: Specifies the static proximity algorithm, which assigns DNS requests to virtual servers based on static proximity entries.
Examples
# Specify the preferred, backup, and alternative scheduling algorithms for the global virtual server pool gl-pool as topology, proximity, and round-robin.
<Sysname> system-view
[Sysname] loadbalance global-virtual-server-pool gl-pool
[Sysname-lb-gvspool-gl-pool] predictor preferred topology
[Sysname-lb-gvspool-gl-pool] predictor fallback proximity
[Sysname-lb-gvspool-gl-pool] predictor alternate round-robin
Related commands
display loadbalance global-virtual-server-pool
primary-nameserver
Use primary-nameserver to configure the host name for the primary DNS server.
Use undo primary-nameserver to restore the default.
Syntax
primary-nameserver host-name
undo primary-nameserver
Default
No host name is configured for the primary DNS server.
Views
SOA view
Predefined user roles
network-admin
context-admin
Parameters
host-name: Specifies the host name for the primary DNS server, a case-insensitive and dot-separated string of up to 254 characters. The string can contain letters, digits, hyphens (-), underscores (_), and dots (.). Each dot-separated part can have a maximum of 63 characters.
Usage guidelines
The host name of the primary DNS server can be a relative domain name (does not end with a dot) or an absolute domain name (ends with a dot). For an absolute domain name, the host name is not automatically expanded and cannot exceed 254 characters. For a relative domain name, the current domain name is automatically appended to the host name. The host name plus the appended domain name cannot exceed 254 characters.
Examples
# Configure the host name for the primary DNS server as ns1.abc.com for global DNS forward zone abc.com.
<Sysname> system-view
[Sysname] loadbalance global-zone abc.com
[Sysname-lb-gzone-abc.com] soa
[Sysname-lb-gzone-abc.com-soa] primary-nameserver ns1.abc.com
Related commands
display loadbalance global-zone
probe (global virtual server view/global virtual IP address view)
Use probe to specify a health monitoring method for a global virtual server or global virtual IP address.
Use undo probe to restore the default.
Syntax
probe template-name
undo probe template-name
Default
No health monitoring method is specified for a global virtual server or global virtual IP address.
Views
Global virtual server view
Global virtual IP address view
Predefined user roles
network-admin
context-admin
Parameters
template-name: Specifies an NQA template by its name, a case-insensitive string of 1 to 32 characters.
Usage guidelines
Use the nqa template command to create an NQA template to be referenced by the health monitoring method.
You can configure multiple health monitoring methods for a global virtual server or global virtual IP address. By default, health monitoring succeeds only when all the specified health monitoring methods succeed. You can use the success-criteria command to specify the health monitoring success criteria for the global virtual server or global virtual IP address.
The health monitoring method configuration is not synchronized among data centers, and it must be made on each GLB device.
The health monitoring method configuration in global virtual server or global virtual IP address view takes precedence over the configuration in global virtual server pool view.
Examples
# Create the ICMP-type NQA template t4, and specify the health monitoring method for global virtual server vs1 as t4.
<Sysname> system-view
[Sysname] nqa template icmp t4
[Sysname-nqatplt-icmp-t4] quit
[Sysname] loadbalance global-virtual-server-pool gvsp
[Sysname-lb-gvspool-gvsp] data-center dc1 server slb1 virtual-server vs1
[Sysname-lb-gvspool-gvsp-#dc1-#slb1-vs-vs1] probe t4
Related commands
display loadbalance global-virtual-server probe
display loadbalance global-virtual-ip probe
nqa template (Network Management and Monitoring Command Reference)
success-criteria (global virtual server view/global virtual IP address view)
probe (global virtual server pool view)
Use probe to specify a health monitoring method for a global virtual server pool.
Use undo probe to restore the default.
Syntax
probe template-name
undo probe template-name
Default
No health monitoring method is specified for a global virtual server pool.
Views
Global virtual server pool view
Predefined user roles
network-admin
context-admin
Parameters
template-name: Specifies an NQA template by its name, a case-insensitive string of 1 to 32 characters.
Usage guidelines
Use the nqa template command to create an NQA template to be referenced by the health monitoring method.
You can configure multiple health monitoring methods for a global virtual server pool. By default, health monitoring succeeds only when all the specified health monitoring methods succeed. You can use the success-criteria command to specify the health monitoring success criteria for the global virtual server pool.
The health monitoring method configuration is not synchronized among data centers, and it must be made on each GLB device.
Examples
# Create the ICMP-type NQA template t4, and specify the health monitoring method for global virtual server pool gvsp as t4.
<Sysname> system-view
[Sysname] nqa template icmp t4
[Sysname-nqatplt-icmp-t4] quit
[Sysname] loadbalance global-virtual-server-pool gvsp
[Sysname-lb-gvspool-gvsp] probe t4
Related commands
display loadbalance global-virtual-server-pool probe
nqa template (Network Management and Monitoring Command Reference)
success-criteria (global virtual server pool view)
probe (link view)
Use probe to specify a health monitoring method for a link.
Use undo probe to restore the default.
Syntax
probe template-name
undo probe template-name
Default
No health monitoring method is specified for a link.
Views
Link view
Predefined user roles
network-admin
context-admin
Parameters
template-name: Specifies an NQA template by its name, a case-insensitive string of 1 to 32 characters.
Usage guidelines
Use the nqa template command to create an NQA template to be referenced by the health monitoring method.
You can configure multiple health monitoring methods for a link. By default, health monitoring succeeds only when all the specified health monitoring methods succeed. You can use the success-criteria command to specify the health monitoring success criteria for the link.
Examples
# Create the ICMP-type NQA template t4, and specify the health monitoring method for the link lk1 as t4.
<Sysname> system-view
[Sysname] nqa template icmp t4
[Sysname-nqatplt-icmp-t4] quit
[Sysname] loadbalance link lk1
[Sysname-lb-link-lk1] probe t4
Related commands
nqa template (Network Management and Monitoring Command Reference)
success-criteria (link view)
probe-interval
Use probe-interval to specify the interval at which the local synchronization group member sends keepalive packets to the remote synchronization group member.
Use undo probe-interval to restore the default.
Syntax
probe-interval interval
undo probe-interval
Default
The probe interval is 5 seconds.
Views
Local synchronization group member view
Predefined user roles
network-admin
context-admin
Parameters
interval: Specifies the probe interval in the range of 1 to 259200 seconds.
Usage guidelines
Suppose the local synchronization group member A sends keepalive packets at the specified interval to the remote synchronization group member B after establishing a connection with it. If B does not receive keepalive packets within n+1 intervals, it determines that A is unavailable (n is the keepalive retries configured in the probe-retries command on the remote synchronization group member B).
Examples
# Configure the probe interval as 60 seconds for local synchronization group member dev1.
<Sysname> system-view
[Sysname] loadbalance default-syncgroup member dev1 type local
[Sysname-lb-defaultsgmember-local-dev1] probe-interval 60
Related commands
display loadbalance default-syncgroup member
probe-retries
probe-retries
Use probe-retries to specify the number of keepalive retries for the synchronization group member.
Use undo probe-retries to restore the default.
Syntax
probe-retries times
undo probe-retries
Default
The number of keepalive retries is 5.
Views
Local synchronization group member view
Predefined user roles
network-admin
context-admin
Parameters
interval: Specifies the maximum number of keepalive retries in the range of 1 to 10.
Usage guidelines
Suppose the local synchronization group member A sends keepalive packets at the specified interval (configured in the probe-interval command) to the remote synchronization group member B after establishing a connection with it. If B does not receive keepalive packets when the maximum number of keepalive retries is reached, it determines that A is unavailable.
Examples
# Configure the number of keepalive retries as 3 for local synchronization group member dev1.
<Sysname> system-view
[Sysname] loadbalance default-syncgroup member dev1 type local
[Sysname-lb-defaultsgmember-local-dev1] probe-retries 3
Related commands
display loadbalance default-syncgroup member
probe-interval
record (global DNS forward zone)
Use record to configure a resource record of the specified type.
Use undo record to delete a resource record of the specified type.
Syntax
record { cname alias alias-name canonical canonical-name | mx [ host hostname ] exchanger exchanger-name preference preference | ns [ sub subname ] authority ns-name }
undo record { cname alias alias-name canonical canonical-name | mx [ host hostname ] exchanger exchanger-name | ns [ sub subname ] authority ns-name }
Default
No resource records exist.
Views
Global DNS forward zone view
Predefined user roles
network-admin
context-admin
Parameters
cname: Configures a canonical name (CNAME) resource record.
alias alias-name: Specifies an alias for a host name, a case-insensitive, dot-separated string that contains a maximum of 254 characters. The string can contain letters, digits, hyphens (-), underscores (_), and dots (.). Each dot-separated part can have a maximum of 63 characters.
canonical canonical-name: Specifies the host name, a case-insensitive, dot-separated string that contains a maximum 254 characters. The string can contain letters, digits, hyphens (-), underscores (_), and dots (.). Each dot-separated part can have a maximum of 63 characters.
mx: Configures a mail exchanger (MX) resource record.
host hostname: Specifies the host name for the MX resource record, a case-insensitive, dot-separated string that contains a maximum 254 characters. The string can contain letters, digits, hyphens (-), underscores (_), and dots (.). Each dot-separated part can have a maximum of 63 characters.
exchanger exchanger-name: Specifies the host name of the mail server, a case-insensitive, dot-separated string that contains a maximum 254 characters. The string can contain letters, digits, hyphens (-), underscores (_), and dots (.). Each dot-separated part can have a maximum of 63 characters.
preference preference: Specifies the preference for the MX resource record, in the range of 0 to 65535. The smaller the value, the higher the priority.
ns: Configure a name server (NS) resource record.
sub subname: Specifies a subname for the global DNS forward zone, a case-insensitive, dot-separated string of 1 to 254 characters for. The string can contain letters, digits, hyphens (-), underscores (_), and dots (.). Each dot-separated part can have a maximum of 63 characters.
authority ns-name: Specifies the host name of the authoritative DNS server, a case-insensitive, dot-separated string that contains a maximum of 254 characters. The string can contain letters, digits, hyphens (-), underscores (_), and dots (.). Each dot-separated part can have a maximum of 63 characters.
Usage guidelines
The host name specified in a resource record can be a relative domain name (does not end with a dot) or an absolute domain name (ends with a dot). For an absolute domain name, the host name is not automatically expanded and cannot exceed 254 characters. For a relative domain name, the current domain name is automatically appended to the host name. The relative domain name plus the appended domain name cannot exceed 254 characters.
You can configure multiple resource records for a global DNS forward zone.
Examples
# Configure an MX resource record for global DNS forward zone abc.com: Specify the host name of the mail server as mail.abc.com and the preference for the resource record as 10.
<Sysname> system-view
[Sysname] loadbalance global-zone abc.com
[Sysname-lb-gzone-abc.com] record mx exchanger mail.abc.com preference 10
# Configure a CNAME resource record for global DNS forward zone abc.com: Specify alias test.abc.com for host name aaa.abc.com.
<Sysname> system-view
[Sysname] loadbalance global-zone abc.com
[Sysname-lb-gzone-abc.com] record cname alias test.abc.com canonical aaa.abc.com
# Configure an NS resource record for global DNS forward zone abc.com: Specify the host name of the authoritative DNS server as ns1.abc.com.
<Sysname> system-view
[Sysname] loadbalance global-zone abc.com
[Sysname-lb-gzone-abc.com] record ns authority ns1.abc.com
Related commands
display loadbalance global-zone
record ptr (global DNS reverse zone)
Use record ptr to configure a pointer record (PTR) resource record.
Use undo record ptr to delete a PTR resource record.
Syntax
record ptr ip ipv4-address domain-name
undo record ptr ip ipv4-address domain-name
Default
No PTR resource records exist.
Views
Global DNS reverse zone view
Predefined user roles
network-admin
context-admin
Parameters
ip ipv4-address: Specifies an IPv4 address.
domain-name: Specifies a domain name, a case-insensitive, dot-separated string that contains a maximum of 253 characters. The string can contain letters, digits, hyphens (-), underscores (_), and dots (.). Each dot-separated part can have a maximum of 63 characters.
ttl ttl-value: Specifies the TTL for resource records, in the range of 0 to 4294967295 seconds. The default is 3600.
Usage guidelines
You can configure PTR resource records for IP addresses that require reverse DNS resolution.
The IP address specified in a PTR resource record must be within the IP address range of the DNS reverse zone.
You can configure multiple PTR resource records for a global DNS reverse zone.
Examples
# Configure a PTR resource record for the global DNS reverse zone with IPv4 address 10.1.1.0/24.
<Sysname> system-view
[Sysname] loadbalance global-reverse-zone ip 10.1.1.0 24
[Sysname-lb-grzone-10.1.1.0/24] record ptr ip 10.1.1.1 mail.h3c.com
Related commands
display loadbalance global-reverse-zone
refresh
Use refresh to set the refresh interval.
Use undo refresh to restore the default.
Syntax
refresh refresh-interval
undo refresh
Default
The refresh interval is 3600 seconds.
Views
SOA view
Predefined user roles
network-admin
context-admin
Parameters
refresh-interval: Specifies the refresh interval in the range of 300 to 2419200 seconds.
Usage guidelines
The secondary DNS server obtains SOA resource records from the primary DNS server at the refresh interval. After obtaining SOA resource records, the secondary DNS server compares them with the local SOA resource records.
Examples
# Set the refresh interval to 4 hours for global DNS forward zone abc.com.
<Sysname> system-view
[Sysname] loadbalance global-zone abc.com
[Sysname-lb-gzone-abc.com] soa
[Sysname-lb-gzone-abc.com-soa] refresh 14400
Related commands
display loadbalance global-zone
reset loadbalance global-dns-listener statistics
Use reset loadbalance global-dns-listener statistics to clear global DNS listener statistics.
Syntax
reset loadbalance global-dns-listener statistics [ dns-listener-name ]
Views
User view
Predefined user roles
network-admin
context-admin
Parameters
dns-listener-name: Specifies a global DNS listener by its name, a case-insensitive string of 1 to 63 characters. If you do not specify this argument, the command clears statistics for all global DNS listeners.
Examples
# Clear statistics for the global DNS listener gl-listener.
<Sysname> reset loadbalance global-dns-listener statistics gl-listener
# Clear statistics for all global DNS listeners.
<Sysname> reset loadbalance global-dns-listener statistics
Related commands
display loadbalance global-dns-listener statistics
reset loadbalance global-dns-map statistics
Use reset loadbalance global-dns-map statistics to clear global DNS mapping statistics.
Syntax
reset loadbalance global-dns-map statistics [ dns-map-name ]
Views
User view
Predefined user roles
network-admin
context-admin
Parameters
dns-map-name: Specifies a global DNS mapping by its name, a case-insensitive string of 1 to 63 characters. If you do not specify this argument, the command clears statistics for all global DNS mappings.
Examples
# Clear statistics for the global DNS mapping gl-map.
<Sysname> reset loadbalance global-dns-map statistics gl-map
# Clear statistics for all global DNS mappings.
<Sysname> reset loadbalance global-dns-map statistics
Related commands
display loadbalance global-dns-map statistics
reset loadbalance global-proximity
Use reset loadbalance global-proximity to clear global dynamic proximity entry information.
Syntax
reset loadbalance global-proximity ip [ ipv4-address ]
Views
User view
Predefined user roles
network-admin
context-admin
Parameters
ipv4-address: Clears the specified global dynamic proximity entry information. If you do not specify the ipv4-address argument, this command clears information about all global dynamic proximity entries.
Examples
# Clear information about the global dynamic proximity entry corresponding to the IPv4 address 1.1.1.1.
<Sysname> reset loadbalance global-proximity ip 1.1.1.1
responsible-mail
Use responsible-mail to specify the email address of the administrator.
Use undo responsible-mail to restore the default.
Syntax
responsible-mail mail-address
undo responsible-mail
Default
No administrator's email address is specified.
Views
SOA view
Predefined user roles
network-admin
context-admin
Parameters
mail-address: Specifies the administrator's email address, a case-insensitive, dot-separated string that contains a maximum of 254 characters. The string can contain letters, digits, hyphens (-), underscores (_), and dots (.). Each dot-separated part can have a maximum of 63 characters.
Usage guidelines
The email address of the administrator can be a relative domain name (does not end with a dot) or an absolute domain name (ends with a dot). For an absolute domain name, the email address is not automatically expanded and cannot exceed 254 characters. For a relative domain name, the current domain name is automatically appended to the email address. The email address plus the appended domain name cannot exceed 254 characters.
Examples
# Specify the administrator's email address root.ns1.abc.com for global DNS forward zone abc.com.
<Sysname> system-view
[Sysname] loadbalance global-zone abc.com
[Sysname-lb-gzone-abc.com] soa
[Sysname-lb-gzone-abc.com-soa] responsible-mail root.ns1.abc.com
Related commands
display loadbalance global-zone
retry
Use retry to set the retry interval.
Use undo retry to restore the default.
Syntax
retry retry-interval
undo retry
Default
The retry interval is 600 seconds.
Views
SOA view
Predefined user roles
network-admin
context-admin
Parameters
retry-interval: Specifies the retry interval in the range of 500 to 1209600 seconds.
Usage guidelines
The retry interval is the amount of time that the secondary DNS server waits after it fails to copy a global DNS forward zone.
Examples
# Set the retry interval to 30 minutes for global DNS forward zone abc.com.
<Sysname> system-view
[Sysname] loadbalance global-zone abc.com
[Sysname-lb-gzone-abc.com] soa
[Sysname-lb-gzone-abc.com-soa] retry 1800
Related commands
display loadbalance global-zone
router ip
Use router ip to specify the outbound next hop for a link.
Use undo router ip to restore the default.
Syntax
router ip ipv4-address
undo router ip
Default
The outbound next hop is not specified for a link.
Views
Link view
Predefined user roles
network-admin
context-admin
Parameters
ipv4-address: Specifies an IPv4 address, which cannot be a loopback address, multicast address, broadcast address, or an address in the format of 0.X.X.X.
Usage guidelines
You can specify only one outbound next hop for a link.
Examples
# Specify the outbound next hop as 1.2.3.4 for the link lk1.
<Sysname> system-view
[Sysname] loadbalance link lk1
[Sysname-lb-link-lk1] router ip 1.2.3.4
rtt weight (global dynamic proximity view)
Use rtt weight to set the network delay weight for global dynamic proximity calculation.
Use undo rtt weight to restore the default.
Syntax
rtt weight rtt-weight
undo rtt weight
Default
The network delay weight for global dynamic proximity calculation is 100.
Views
Global dynamic proximity view
Predefined user roles
network-admin
context-admin
Parameters
rtt-weight: Specifies the network delay weight for global dynamic proximity calculation, in the range of 0 to 255. A larger value indicates a higher weight.
Examples
# Set the network delay weight to 200 for global dynamic proximity calculation.
<Sysname> system-view
[Sysname] loadbalance global-proximity
[Sysname-glb-proximity] rtt weight 200
Related commands
display loadbalance global-proximity
serial
Use serial to configure the serial number for the global DNS forward zone.
Use undo serial to restore the default.
Syntax
serial number
undo serial
Default
The serial number for the global DNS forward zone is 1.
Views
SOA view
Predefined user roles
network-admin
context-admin
Parameters
number: Specifies the serial number in the range of 1 to 4294967295.
Usage guidelines
The greater the serial number, the newer the global DNS forward zone is configured.
The secondary DNS server periodically queries the serial numbers of global DNS forward zones on the primary DNS server and compares them with local serial numbers.
Examples
# Configure serial number 123 for the global DNS forward zone abc.com.
<Sysname> system-view
[Sysname] loadbalance global-zone abc.com
[Sysname-lb-gzone-abc.com] soa
[Sysname-lb-gzone-abc.com-soa] serial 123
Related commands
display loadbalance global-zone
server
Use server to create an SLB device for the data center and enter SLB device view, or enter the view of an existing SLB device.
Use undo server to delete the specified SLB device.
Syntax
server server-name
undo server server-name
Default
When a data center is created, the system automatically creates an SLB device named localhost.
Views
Data center view
Predefined user roles
network-admin
context-admin
Parameters
server-name: Specifies an SLB device by its name, a case-insensitive string of 1 to 63 characters.
Usage guidelines
The default SLB device localhost represents the local host that does not require IP address and username configuration.
Examples
# Create SLB device slb1 for data center dc1, and enter SLB device view.
<Sysname> system-view
[Sysname] loadbalance data-center dc1
[Sysname-lb-dc-dc1] server slb1
[Sysname-lb-dc-dc1-#slb1]
service enable (data center view)
Use service enable to enable the GLB service for a data center.
Use undo service enable to disable the GLB service for the data center.
Syntax
service enable
undo service enable
Default
The GLB service is disabled for the data center.
Views
Data center view
Predefined user roles
network-admin
context-admin
Usage guidelines
If the GLB service is disabled for a data center, all SLB devices and virtual servers of the data center are unavailable.
Examples
# Enable the GLB service for data center dc1.
<Sysname> system-view
[Sysname] loadbalance data-center dc1
[Sysname-lb-dc-dc1] service enable
Related commands
display loadbalance data-center
service enable (global DNS listener view)
Use service enable to enable the global DNS listener feature.
Use undo service enable to disable the global DNS listener feature.
Syntax
service enable
undo service enable
Default
The global DNS listener feature is disabled.
Views
Global DNS listener view
Predefined user roles
network-admin
context-admin
Examples
# Enable the global DNS listener feature for the global DNS listener gl-listener.
<Sysname> system-view
[Sysname] loadbalance global-dns-listener gl-listener
[Sysname-lb-gdl-gl-listener] service enable
Related commands
display loadbalance global-dns-listener
service enable (global DNS mapping view)
Use service enable to enable the global DNS mapping feature.
Use undo service enable to disable the global DNS mapping feature.
Syntax
service enable
undo service enable
Default
The global DNS mapping feature is disabled.
Views
Global DNS mapping view
Predefined user roles
network-admin
context-admin
Examples
# Enable the global DNS mapping feature for the global DNS mapping gl-map.
<Sysname> system-view
[Sysname] loadbalance global-dns-map gl-map
[Sysname-lb-gdm-gl-map] service enable
Related commands
display loadbalance global-dns-map
service enable (SLB device view)
Use service enable to enable an SLB device.
Use undo service enable to disable an SLB device.
Syntax
service enable
undo service enable
Default
An SLB device is disabled.
Views
SLB device view
Predefined user roles
network-admin
context-admin
Usage guidelines
If an SLB device is disabled, the virtual servers of the SLB device are unavailable.
Examples
# Enable the SLB device slb1.
<Sysname> system-view
[Sysname] loadbalance data-center dc1
[Sysname-lb-dc-dc1] server slb1
[Sysname-lb-dc-dc1-#slb1] service enable
Related commands
display loadbalance data-center
service enable (synchronization group member view)
Use service enable to enable communication capability for a synchronization group member.
Use undo service enable to disable communication capability for the synchronization group member.
Syntax
service enable
undo service enable
Default
The communication capability is disabled for a synchronization group member.
Views
Local synchronization group member view
Predefined user roles
network-admin
context-admin
Usage guidelines
A local synchronization group member can establish a TCP connection with a remote synchronization group member only if member communication capability is enabled.
After the member communication capability is enabled, the synchronization group members establish a TCP connection to synchronize the following GLB configuration and running data:
· Data center.
· SLB device.
· DNS resource records.
· Global virtual server pool.
· Global DNS mapping.
· Global region.
· Global ISP.
· Global static proximity (in global DNS mapping and global virtual server pool).
· Virtual server.
· Link.
· Proximity probe results.
Examples
# Enable communication capability for local synchronization group member dev1.
<Sysname> system-view
[Sysname] loadbalance default-syncgroup member dev1 type local
[Sysname-lb-defaultsgmember-local-dev1] service enable
Related commands
display loadbalance default-syncgroup member
soa
Use soa to create an SOA resource record and enter SOA view, or enter the view of an existing SOA resource record.
Use undo soa to delete the SOA resource record and all its setting.
Syntax
soa
undo soa
Default
No SOA resource record exists.
Views
Global DNS forward zone view
Predefined user roles
network-admin
context-admin
Examples
# Create an SOA resource record for global DNS forward zone abc.com and enter SOA view.
<Sysname> system-view
[Sysname] loadbalance global-zone abc.com
[Sysname-lb-gzone-abc.com] soa
[Sysname-lb-gzone-abc.com-soa]
Related commands
display loadbalance global-zone
success-criteria (global virtual server view/global virtual IP address view)
Use success-criteria to specify the health monitoring success criteria for a global virtual server or global virtual IP address.
Use undo success-criteria to restore the default.
Syntax
success-criteria { all | at-least min-number }
undo success-criteria
Default
Health monitoring succeeds only when all the specified health monitoring methods succeed.
Views
Global virtual server view
Global virtual IP address view
Predefined user roles
network-admin
context-admin
Parameters
all: Specifies the health monitoring success criteria as all successful health monitoring methods.
at-least min-number: Specifies the health monitoring success criteria as the specified minimum number of successful health monitoring methods, in the range of 1 to 4294967295.
Usage guidelines
If the min-number setting exceeds the number of existing health monitoring methods on the device, the number of existing health monitoring methods applies.
Examples
# Configure the health monitoring success criteria for the global virtual server vs1 as a minimum number of two successful health monitoring methods.
<Sysname> system-view
[Sysname] loadbalance global-virtual-server-pool gvsp
[Sysname-lb-gvspool-gvsp] data-center dc1 server slb1 virtual-server vs1
[Sysname-lb-gvspool-gvsp-#dc1-#slb1-vs-vs1] success-criteria at-least 2
Related commands
display loadbalance global-virtual-server-pool probe
probe (global virtual server view/global virtual IP address view)
success-criteria (global virtual server pool view)
Use success-criteria to specify the health monitoring success criteria for a global virtual server pool.
Use undo success-criteria to restore the default.
Syntax
success-criteria { all | at-least min-number }
undo success-criteria
Default
Health monitoring succeeds only when all the specified health monitoring methods succeed.
Views
Global virtual server pool view
Predefined user roles
network-admin
context-admin
Parameters
all: Specifies the health monitoring success criteria as all successful health monitoring methods.
at-least min-number: Specifies the health monitoring success criteria as the specified minimum number of successful health monitoring methods, in the range of 1 to 4294967295.
Usage guidelines
If the min-number setting exceeds the number of existing health monitoring methods on the device, the number of existing health monitoring methods applies.
Examples
# Configure the health monitoring success criteria for the global virtual server pool gvsp as a minimum number of two successful health monitoring methods.
<Sysname> system-view
[Sysname] loadbalance global-virtual-server-pool gvsp
[Sysname- lb-gvspool-gvsp] success-criteria at-least 2
Related commands
display loadbalance global-virtual-server-pool probe
probe (global virtual server pool view)
success-criteria (link view)
Use success-criteria to specify the health monitoring success criteria for a link.
Use undo success-criteria to restore the default.
Syntax
success-criteria { all | at-least min-number }
undo success-criteria
Default
Health monitoring succeeds only when all the specified health monitoring methods succeed.
Views
Link view
Predefined user roles
network-admin
context-admin
Parameters
all: Specifies the health monitoring success criteria as all successful health monitoring methods.
at-least min-number: Specifies the health monitoring success criteria as the specified minimum number of successful health monitoring methods, in the range of 1 to 4294967295.
Usage guidelines
If the min-number setting exceeds the number of existing health monitoring methods on the device, the number of existing health monitoring methods applies.
Examples
# Configure the health monitoring success criteria for the link lk1 as a minimum number of two successful health monitoring methods.
<Sysname> system-view
[Sysname] loadbalance link lk1
[Sysname-lb-link-lk1] success-criteria at-least 2
Related commands
probe (link view)
sync-interval (SLB device view)
Use sync-interval to specify the communication interval for the SLB device.
Use undo sync-interval to restore the default.
Syntax
sync-interval interval
undo sync-interval
Default
The communication interval for the SLB device is 10 seconds.
Views
SLB device view
Predefined user roles
network-admin
context-admin
Parameters
interval: Specifies the communication interval in the range of 5 to 2419200 seconds.
Usage guidelines
Use this command to specify the interval at which the GLB device obtains the configuration and statistics of the virtual server from the SLB device.
Examples
# Specify the communication interval for the SLB device slb1 as 60 seconds.
<Sysname> system-view
[Sysname] loadbalance data-center dc1
[Sysname-lb-dc-dc1] server slb1
[Sysname-lb-dc-dc1-#slb1] sync-interval 60
Related commands
display loadbalance data-center
timeout (global dynamic proximity view)
Use timeout to set the timeout timer for global dynamic proximity entries.
Use undo timeout to restore the default.
Syntax
timeout timeout-value
undo timeout
Default
The timeout timer for global dynamic proximity entries is 60 seconds.
Views
Global dynamic proximity view
Predefined user roles
network-admin
context-admin
Parameters
timeout-value: Specifies the timeout timer in the range of 60 to 3600 seconds.
Examples
# Set the timeout timer for global dynamic proximity entries to 80 seconds.
<Sysname> system-view
[Sysname] loadbalance global-proximity
[Sysname-glb-proximity] timeout 80
display loadbalance global-proximity
ttl (global DNS mapping view)
Use ttl to set the TTL for DNS records.
Use undo ttl to restore the default.
Syntax
ttl ttl-value
undo ttl
Default
The TTL for DNS records is 3600 seconds.
Views
Global DNS mapping view
Predefined user roles
network-admin
context-admin
Parameters
ttl-value: Specifies the TTL value in the range of 0 to 4294967295 seconds.
Usage guidelines
Use this command to set a proper TTL to cache DNS records for DNS responses.
· For the DNS client to get the updated DNS record when the global virtual server pool or global virtual server configuration changes, set a smaller TTL value, for example, 60 seconds.
· For stable, fast domain name resolution when the network is stable, set a larger TTL value, for example, 86400 seconds.
Examples
# Set the TTL for DNS records to 4000 seconds for the global DNS mapping gl-map.
<Sysname> system-view
[Sysname] loadbalance global-dns-map gl-map
[Sysname-lb-gdm-gl-map] ttl 4000
Related commands
display loadbalance global-dns-map
ttl (global DNS forward zone view/global DNS reverse zone view)
Use ttl to set the TTL for resource records.
Use undo ttl to restore the default.
Syntax
ttl ttl-value
undo ttl
Default
The TTL for resource records is 3600 seconds.
Views
Global DNS forward zone view
Global DNS reverse zone view
Predefined user roles
network-admin
context-admin
Parameters
ttl-value: Specifies the TTL value in the range of 0 to 4294967295 seconds.
Examples
# Set the TTL for resource records to one day for the global DNS reverse zone with IPv4 address 10.1.1.0/24.
<Sysname> system-view
[Sysname] loadbalance global-reverse-zone ip 10.1.1.0 24
[Sysname-lb-grzone-10.1.1.0/24] ttl 86400
Related commands
display loadbalance global-reverse-zone
display loadbalance global-zone
ttl weight (global dynamic proximity view)
Use ttl weight to set the TTL weight for global dynamic proximity calculation.
Use undo ttl weight to restore the default.
Syntax
ttl weight ttl-weight
undo ttl weight
Default
The TTL weight for global dynamic proximity calculation is 100.
Views
Global dynamic proximity view
Predefined user roles
network-admin
context-admin
Parameters
ttl-weight: Specifies the TTL weight for global dynamic proximity calculation, in the range of 0 to 255. A larger value indicates a higher weight.
Examples
# Set the TTL weight for global dynamic proximity calculation to 200.
<Sysname> system-view
[Sysname] loadbalance global-proximity
[Sysname-glb-proximity] ttl weight 200
Related commands
display loadbalance global-proximity
user
Use user to configure the communication username for an SLB device.
Use undo user to restore the default.
Syntax
user username
undo user
Default
The communication username is not configured for an SLB device.
Views
SLB device view
Predefined user roles
network-admin
context-admin
Parameters
username: Specifies the username, a case-sensitive string of 1 to 55 characters.
Usage guidelines
Use this command to set the username for establishing a NETCONF connection between the GLB device and SLB device. The connection can be established only if the configured username is the same as the local username on the SLB device.
Examples
# Configure the communication username admin for the SLB device slb1.
<Sysname> system-view
[Sysname] loadbalance data-center dc1
[Sysname-lb-dc-dc1] server slb1
[Sysname-lb-dc-dc1-#slb1] user admin
Related commands
display loadbalance data-center
weight
Use weight to set the weight of a global virtual server or global virtual IP address.
Use undo weight to restore the default.
Syntax
weight weight-value
undo weight
Default
The weight of a global virtual server or global virtual IP address is 100.
Views
Global virtual server view
Global virtual IP address view
Predefined user roles
network-admin
context-admin
Parameters
weight-value: Specifies the weight in the range of 1 to 255.
Usage guidelines
The weight configured in this command is used in the weighted round-robin algorithm. A higher weight indicates more requests will be assigned.
Examples
# Set the weight of the global virtual IP address 1.2.3.4 to 150.
<Sysname> system-view
[Sysname] loadbalance global-virtual-server-pool gl-pool
[Sysname-lb-gvspool-gl-pool] data-center dc1 server localhost virtual-ip 1.2.3.4
[Sysname-lb-gvspool-gl-pool-#dc1-#localhost-vip-1.2.3.4] weight 150
Related commands
display loadbalance global-virtual-server-pool