CLI Reference VSU Configuration Commands
switch sw_id priority
Configure the priority of a switch in VSU. The no form of this command is used to restore the default
value.
switch sw_id priority priority_num
Indicates the ID of the switch that needs to be configured with a
priority.
Indicates the priority of the corresponding switch. The value range is
1-255.
priority_num: The default priority number is 100.
config-vs-domain configuration mode
This bigger the number is, the higher the priority is. Select the device that has the highest priority as
the master device.
This command can be executed in both the VSU and standalone modes. The configuration becomes
valid only after the device restarts.
This command cannot modify sw_id. In the standalone mode, if sw_id is set to 1, running the switch
2 priority 200 command does not work. You can first use switch 2 to modify sw_id to 2 and then run
the switch 2 priority 200 command. In the VSU mode, sw_id indicates the ID of the currently running
switch. If the ID does not exist, the configuration does not become valid.
#Configure the priority of Switch 1 to 200 in the standalone mode.
Ruijie(config)# switch virtual domain 1
Ruijie(config-vs-domain)# switch 1 priority 200
Ruijie(config-vs-domain)# exit
# Modify the priority of Switch 1 to 200 and restore the default value of the priority of Switch 2 in the
VSU mode.
Ruijie(config)# switch virtual domain 1
Ruijie(config-vs-domain)# switch 1 priority 200
Ruijie(config-vs-domain)# no switch 2 priority
Ruijie(config-vs-domain)# exit
Show the domain ID, the ID and role of each