|
Table Of Contents
W Commands
This chapter describes the Cisco NX-OS unicast routing commands that begin with the letter W.
weighting
To specify the initial weighting value of the Gateway Load Balancing Protocol (GLBP) gateway, use the weighting command. To restore the default values, use the no form of this command.
weighting maximum [lower lower] [upper upper]
no weighting maximum [lower lower] [upper upper]
Syntax Description
Defaults
The default gateway weighting value is 100 and the default lower weighting value is 1.
Command Modes
GLBP configuration
Supported User RolesNetwork Administrator
VDC AdministratorCommand History
Usage Guidelines
The weighting value of a virtual gateway is a measure of the forwarding capacity of the gateway. If a tracked interface on the router fails, the weighting value of the router may fall from the maximum value to below the lower threshold, causing the gateway to give up its role as a virtual forwarder. When the weighting value of the gateway rises above the upper threshold, the gateway can resume its active virtual forwarder role.
Use the glbp weighting track and track commands to track an interface. If the interface goes down, GLBP reduces the weighting for the gateway by the specified value.
This command does not require a license.
Examples
This example shows how to set the weighting of the gateway for GLBP group 10:
switch(config)# interface ethernet 1/1
switch(config-if)# glbp 10
switch(config-glbp)# weighting 110 lower 95 upper 105
Related Commands
weighting track
To specify a tracking object where the Gateway Load Balancing Protocol (GLBP) weighting changes based on the availability of the object being tracked, use the weighting track command. To remove the tracking, use the no form of this command.
weighting track object-number [decrement value]
no weighting track object-number [decrement value]
Syntax Description
Defaults
The default decrement value is 10.
Command Modes
GLBP configuration
Supported User RolesNetwork Administrator
VDC AdministratorCommand History
Usage Guidelines
The weighting track command ties the weighting of the GLBP gateway to the availability of its interfaces. This command is useful for tracking interfaces that are not configured for GLBP; for instance, you can track the interface that connects the gateway to the IP network.
When a tracked interface goes down, the GLBP gateway weighting decreases by the configured decrement value. For each GLBP group, you can track a separate list of interfaces.
When the tracked interface comes back up, GLBP increments the weighting by the same amount.
When multiple tracked interfaces are down, the configured weighting decrements are cumulative.
Use the track command to configure each interface that you want to track.
This command does not require a license.
Examples
This example shows that ethernet interface 1/1 tracks two interfaces represented by the numbers 1 and 2. If interface 1 goes down, the GLBP gateway weighting decreases by the default value of 10. If interface 2 goes down, the GLBP gateway weighting decreases by 5.
switch(config)# interface fastethernet 0/0
switch(config-if)# glbp 10
switch(config-glbp)# weighting track 1
switch(config-glbp)# weighting track 2 decrement 5
Related Commands
Command Descriptionglbp
Enters GLBP configuration mode and creates a GLBP group.
weighting
Specifies the initial weighting value of a GLBP gateway.
track
Configures an interface to be tracked.
wide-metric-only
To advertise wide metric links only, use the wide-metric-only configuration mode command. To remove the restriction, use the no form of this command.
wide-metric-only
no wide-metric-only
Syntax Description
This command has no arguments or keywords.
Command Default
None
Command Modes
Router configuration
VRF configurationSupported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
Metric values are assigned to a link and are used to calculate the path cost from the links to the destination points. The metric styles are as follows:
•Wide metrics—Metric value ranges from 1 to 16777214.
•Narrow metrics—Metric value ranges from 1 to 63.
The wide-metric-only command advertises only the links that are assigned a wide metric value.
Examples
The following command shows how to advertise only wide metric links:
switch(config)# router isis 100switch(config-router)# vrf managementswitch(config-router-vrf)# wide-metric-onlyThe following command shows how to remove the wide-metric link only restriction:
switch(config)# router isis 100switch(config-router)# vrf managementswitch(config-router-vrf)# no wide-metric-onlyRelated Commands