Table Of Contents
set udld
set udld aggressive-mode
set udld interval
set vlan
set vlan mapping
set vmps downloadmethod
set vmps downloadserver
set vmps server
set vmps state
set vtp
set vtp pruneeligible
set udld
Use the set udld command to enable or disable the UDLD information display on specified ports or globally on all ports.
set udld enable | disable [mod/port]
Syntax Description
enable
|
Keyword to enable the UDLD information display.
|
disable
|
Keyword to disable the UDLD information display.
|
mod/port
|
(Optional) Number of the module and port on the module.
|
Defaults
The defaults are as follows:
•
UDLD global enable state—Globally disabled.
•
UDLD per-port enable state for fiber-optic media—Enabled on all Ethernet fiber-optic ports.
•
UDLD per-port enable state for twisted-pair (copper) media—Disabled on all Ethernet 10/100 and 1000BASE-TX ports.
Command Types
Switch command.
Command Modes
Privileged.
Whenever a unidirectional connection is detected, UDLD displays a syslog message to notify you and the network management application (through SNMP) that the port on which the misconfiguration has been detected has been disabled.
If you enter the global set udld enable or disable command, UDLD is globally configured. If UDLD is globally disabled, UDLD is automatically disabled on all interfaces, but the per-port enable (or disable) configuration is not changed. If UDLD is globally enabled, whether UDLD is running on an interface or not depends on its per-port configuration.
UDLD is supported on both Ethernet fiber and copper interfaces. UDLD can only be enabled on Ethernet fiber or copper interfaces.
Examples
This example shows how to enable the UDLD message display for port 1 on module 2:
Console> (enable) set udld enable 2/1
UDLD enabled on port 2/1.
Warning:UniDirectional Link Detection
should be enabled only on ports not connected to hubs,
media converters or similar devices.
This example shows how to disable the UDLD message display for port 1 on module 2:
Console> (enable) set udld disable 2/1
UDLD disabled on port 2/1.
Warning:UniDirectional Link Detection
should be enabled only on ports not connected to hubs,
media converters or similar devices.
This example shows how to enable the UDLD message display for all ports on all modules:
Console> (enable) set udld enable
This example shows how to disable the UDLD message display for all ports on all modules:
Console> (enable) set udld disable
Related Commands
show udld
set udld aggressive-mode
Use the set udld aggressive-mode command to enable or disable the UDLD aggressive mode on specified ports.
set udld aggressive-mode enable | disable mod/port
Syntax Description
enable
|
Keyword to enable UDLD aggressive mode.
|
disable
|
Keyword to disable UDLD aggressive mode.
|
mod/port
|
Number of the module and port on the module.
|
Defaults
The default is aggressive mode is disabled.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
You can use the aggressive mode in cases in which a port that sits on a bidirectional link stops receiving packets from its neighbor. When this happens, if aggressive mode is enabled on the port, UDLD will try to reestablish the connection with the neighbor. If connection is not reestablished after eight failed retries, the port is error disabled.
We recommend that you use this command on point-to-point links between Cisco switches only.
Examples
This example shows how to enable aggressive mode:
Console> (enable) set udld aggressive-mode enable 2/1
Aggressive UDLD enabled on port 5/13.
Warning:Aggressive Mode for UniDirectional Link Detection
should be enabled only on ports not connected to hubs,
media converters or similar devices.
Console> (enable)
Related Commands
set udld
show udld
set udld interval
Use the set udld interval command to set the UDLD message interval timer.
set udld interval interval
Syntax Description
interval
|
Message interval in seconds; valid values are from 7 to 90 seconds.
|
Defaults
The default is 15 seconds.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to set the message interval timer:
Console> (enable) set udld interval 90
UDLD message interval set to 90 seconds
Related Commands
set udld
show udld
set vlan
Use the set vlan command set to group ports into a VLAN, set the private VLAN type, or map or unmap VLANs to or from an instance.
set vlan {vlans}{mod/ports}
set vlan {vlans} [name name] [type type] [state state] [said said] [mtu mtu]
[bridge bridge_num] [mode bridge_mode] [stp stp_type] [translation vlan_num]
[aremaxhop hopcount] [pvlan-type pvlan_type] [mistp-instance mistp_instance] [ring
hex_ring_number] [decring decimal_ring_number] [parent vlan_num] [backupcrf {off | on}]
[stemaxhop hopcount] [rspan]
Syntax Description
vlans
|
Number identifying the VLAN; valid values are from 1 to 1000 and from 1025 to 4094.
|
mod/ports
|
Number of the module and ports on the module belonging to the VLAN.
|
name name
|
(Optional) Keyword and variable to define a text string used as the name of the VLAN; valid values are from 1 to 32 characters.
|
type type
|
(Optional) Keyword and variable to identify the VLAN type.
|
state state
|
(Optional) Keyword and variable to specify whether the state of the VLAN is active or suspended.
|
said said
|
(Optional) Keyword and variable to specify the security association identifier; valid values are from 1 to 4294967294.
|
mtu mtu
|
(Optional) Keyword and variable to specify the maximum transmission unit (packet size, in bytes) that the VLAN can use; valid values are from 576 to 18190.
|
bridge bridge_num
|
(Optional) Keyword and variable to specify the identification number of the bridge; valid values are hexadecimal numbers from 0x1 to 0xF.
|
mode bridge_mode
|
(Optional) Keyword and variable to specify the bridge mode; valid values are srt and srb.
|
stp stp_type
|
(Optional) Keyword and variable to specify the STP type; valid values are ieee, ibm, and auto.
|
translation vlan_num
|
(Optional) Keyword and variable to specify a translational VLAN used to translate FDDI or Token Ring to Ethernet; valid values are from 1 to 1000 and from 1025 to 4094.
|
aremaxhop hopcount
|
(Optional) Keyword and variable to specify the maximum number of hops for All-Routes Explorer frames; valid values are from 1 to 13.
|
pvlan-type pvlan-type
|
(Optional) Keyword and options to specify the private VLAN type. See the "Usage Guidelines" section for valid values.
|
mistp-instance mistp_instance
|
(Optional) Keyword and variable to specify the MISTP instance; valid values are none and from 1 to 16.
|
ring hex_ring_number
|
(Optional) Keyword to specify the VLAN as the primary VLAN in a private VLAN.
|
decring decimal_ring_number
|
(Optional) Keyword and variable to specify the decimal ring number; valid values are from 1 to 4095.
|
parent vlan_num
|
(Optional) Keyword and variable to specify the VLAN number of the parent VLAN; valid values are from 1 to 1000 and from 1025 to 4094.
|
backupcrf off | on
|
(Optional) Keywords to specify whether the TrCRF is a backup path for traffic.
|
stemaxhop hopcount
|
(Optional) Keyword and variable to specify the maximum number of hops for Spanning Tree Explorer frames; valid values are from 1 to 14.
|
rspan
|
(Optional) Keyword to create a VLAN for remote SPAN.
|
Defaults
The default values are as follows:
•
Switched Ethernet ports and Ethernet repeater ports are in VLAN 1.
•
said is 100001 for VLAN 1, 100002 for VLAN 2, 100003 for VLAN 3, and so forth.
•
type is Ethernet.
•
mtu is 1500 bytes.
•
state is active.
•
hopcount is 7.
•
pvlan type is none.
•
mistp_instance is no new instances have any VLANs mapped. For an existing VLAN, the existing instance configuration is used.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is not supported by the NAM.
If you are configuring normal-range VLANs, you cannot use the set vlan command until the Catalyst 6000 family switch is either in VTP transparent mode (set vtp mode transparent) or until a VTP domain name has been set (set vtp domain name). To create a private VLAN, UTP mode must be transparent.
VLAN 1 parameters are factory configured and cannot be changed.
If you specify a range of VLANs, you cannot use the VLAN name.
If you enter the mistp-instance none command, the specified VLANs are unmapped from any instance they are mapped to.
The set vlan vlan_num mistp-instance mistp_instance command is available in PVST+ mode.
You cannot set multiple VLANs for ISL ports using this command. The VLAN name can be from 1 to 32 characters in length. If you are adding a new VLAN or modifying an existing VLAN, the VLAN number must be within the range of 1 to 1000 and 1025 to 4094.
If you want to use the extended-range VLANs (1025 to 4094), you must enable the MAC address reduction feature using the set spantree macreduction command. When you enable MAC address reduction, the pool of MAC addresses used for the VLAN spanning tree is disabled, leaving a single MAC address that identifies the switch.
If you use the rspan keyword for remote SPAN VLANs, you should not configure an access port (except the remote SPAN destination ports) on these VLANs. Learning is disabled for remote SPAN VLANs.
If you use the rspan keyword for remote SPAN VLANs, only the name name and the state {active | suspend} variables are supported.
The stemaxhop hopcount parameter is valid only when defining or configuring TrCRFs.
The bridge bridge_num, mode bridge_mode, stp stp_type, and translation vlan_num keywords and values are supported only when the Catalyst 6000 family switch is used as a VTP server for Catalyst 5000 family switches in the Token Ring and FDDI networks.
You must configure a private VLAN on the supervisor engine.
Valid values for pvlan-type are as follows:
•
primary specifies the VLAN as the primary VLAN in a private VLAN.
•
isolated specifies the VLAN as the isolated VLAN in a private VLAN.
•
community specifies the VLAN as the community VLAN in a private VLAN.
•
twoway-community specifies the VLAN as a bidirectional community VLAN that carries the traffic among community ports and to and from community ports to and from the MSFC.
•
none specifies that the VLAN is a normal Ethernet VLAN, not a private VLAN.
Only regular VLANs with no access ports assigned to them can be used in private VLANs. Do not use the set vlan command to add ports to a private VLAN; use the set pvlan command to add ports to a private VLAN.
VLANs 1001, 1002, 1003, 1004, and 1005 cannot be used in private VLANs.
VLANs 1025 to 4094 are extended-range VLANs.
VLANs in a suspended state do not pass packets.
Examples
This example shows how to set VLAN 850 to include ports 3 through 7 on module 3:
Console> (enable) set vlan 850 3/4-7
---- -----------------------
This example shows how to set VLAN 7 as a primary VLAN:
Console> (enable) set vlan 7 pvlan-type primary
This example shows how to set VLAN 901 as an isolated VLAN:
Console> (enable) set vlan 901 pvlan-type isolated
This example shows how to set VLAN 903 as a community VLAN:
Console> (enable) set vlan 903 pvlan-type community
This example shows how to unmap all instances currently mapped to VLAN 5:
Console> (enable) set vlan 5 mistp-instance none
Vlan 5 configuration successful
Related Commands
set spantree macreduction
set vlan mapping
show vlan
set pvlan
clear config pvlan
clear pvlan mapping
show pvlan
show pvlan mapping
clear vlan
set vlan mapping
Use the set vlan mapping command set to map reserved VLANs to nonreserved VLANs or map 802.1Q VLANs to ISL VLANs.
set vlan mapping reserved vlan non-reserved vlan
set vlan mapping dot1q 1q_vlan_num isl isl_vlan_num
Syntax Description
reserved vlan
|
Keyword to specify the reserved VLAN; valid values are from 1006 to 1024.
|
non-reserved vlan
|
Keyword and variable to specify the nonreserved VLAN; valid values are from 1 to 1000 and from 1025 to 4094.
|
dot1q 1q_vlan_num
|
Keyword and variable to specify the 802.1Q VLAN; valid values are from 1001 to 4094.
|
isl isl_vlan_num
|
Keyword to specify the ISL VLAN; valid values are from 1 to 1024.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
VLAN and MISTP instance mapping can be set only on the switch that is in either VTP server mode or in transparent mode.
IEEE 802.1Q VLAN trunks support VLANs 1 through 4094. ISL VLAN trunks support VLANs 1 through 1024 (1005 to 1024 are reserved). The switch automatically maps 802.1Q VLANs 1000 and lower to ISL VLANs with the same number.
Use this feature to map 802.1Q VLANs above 1000 to ISL VLANs.
The total of all mappings must be less than or equal to eight. Only one 802.1Q VLAN can be mapped to an ISL VLAN. For example, if 802.1Q VLAN 800 has been automatically mapped to ISL VLAN 800, do not manually map any other 802.1Q VLANs to ISL VLAN 800.
You cannot overwrite existing 802.1Q VLAN mapping. If the 802.1Q VLAN number already exists, the command is aborted. You must first clear that mapping.
The reserved vlan range is 1002 to 1024. You can map the entire reserved range with the exception of the default media VLANs 1002 to 1005.
You cannot overwrite existing VLAN mapping. If the VLAN number already exists, the command is aborted. You must first clear that mapping.
If the VLAN number does not exist, then either of the following occurs:
•
If the switch is in server or transparent mode, the VLAN is created with all default values.
•
If the switch is in client mode, then the command proceeds without creating the VLAN. A warning will be given indicating that the VLAN does not exist.
If the table is full, the command is aborted with an error message indicating the table is full.
dot1q VLANs are rejected if any extended-range VLANs are present.
Examples
This example shows how to map reserved VLAN 1010 to nonreserved VLAN 4000:
Console> (enable) set vlan mapping reserved 1010 non-reserved 4000
Vlan 1010 successfully mapped to 4000.
This example shows the display if you enter an existing mapping:
Console> (enable) set vlan mapping reserved 1011 non-reserved 4001
Vlan mapping from vlan 1011 to vlan 4001 already exists.
This example shows the display if the mapping table is full:
Console> (enable) set vlan mapping reserved 1010 non-reserved 4000
Vlan mapping table full. Maximum of 8 mappings allowed.
This example shows how to map VLAN 850 to ISL VLAN 1022:
Console> (enable) set vlan mapping dot1q 850 isl 1022
Vlan 850 configuration successful
This example shows the display if you enter a VLAN that does not exist:
Console> (enable) set vlan mapping dot1q 2 isl 1016
Warning: Vlan 2 Nonexistent
This example shows the display if you enter an existing mapping:
Console> (enable) set vlan mapping dot1q 3 isl 1022
1022 exists in the mapping table. Please clear the mapping first.
This example shows the display if the mapping table is full:
Console> (enable) set vlan mapping dot1q 99 isl 1017
Related Commands
show vlan
clear vlan mapping
set vmps downloadmethod
Use the set vmps downloadmethod command to specify whether to use TFTP or rcp to download the VMPS database.
set vmps downloadmethod {rcp | tftp} [username]
Syntax Description
rcp
|
Keyword to specify rcp as the method for downloading the VMPS database.
|
tftp
|
Keyword to specify TFTP as the method for downloading the VMPS database.
|
username
|
(Optional) Username for downloading with rcp.
|
Defaults
If no method is specified, TFTP will be used.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
The username option is not allowed if you specify tftp as the download method.
Examples
This example shows how to specify the method for downloading the VMPS database:
Console> (enable) set vmps downloadmethod rcp jdoe
vmps downloadmethod : RCP
Related Commands
set rcp username
show vmps
download vmps
set vmps downloadserver
Use the set vmps downloadserver command to specify the IP address of the TFTP or rcp server from which the VMPS database is downloaded.
set vmps downloadserver ip_addr [filename]
Syntax Description
ip_addr
|
IP address of the TFTP or rcp server from which the VMPS database is downloaded.
|
filename
|
(Optional) VMPS configuration filename on the TFTP or rcp server.
|
Defaults
If filename is not specified, the set vmps downloadserver command uses the default filename vmps-config-database.1.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to specify the server from which the VMPS database is downloaded and how to specify the configuration filename:
Console> (enable) set vmps downloadserver 192.168.69.100 vmps_config.1
IP address of the server set to 192.168.69.100
VMPS configuration filename set to vmps_config.1
Related Commands
set vmps state
show vmps
download vmps
set vmps server
Use the set vmps server command set to configure the VMPS server.
set vmps server ip_addr [primary]
set vmps server retry count
set vmps server reconfirminterval interval
Syntax Description
ip_addr
|
IP address of the VMPS server.
|
primary
|
(Optional) Keyword to specify the device as the primary VMPS server.
|
retry count
|
Keyword and variable to specify the retry interval; valid values are from 1 to 10 minutes.
|
reconfirminterval interval
|
Keyword and variable to specify the reconfirmation interval; valid values are from 0 to 120 minutes.
|
Defaults
If no IP address is specified, VMPS uses the local VMPS configuration.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
You can specify the IP addresses of up to three VMPS servers. You can define any VMPS server as the primary VMPS server.
If the primary VMPS server is down, all subsequent queries go to a secondary VMPS server. VMPS checks on the primary server's availability once every five minutes. When the primary VMPS server comes back online, subsequent VMPS queries are directed back to the primary VMPS server.
To use a co-resident VMPS (when VMPS is enabled in a device), configure one of the three VMPS addresses as the IP address of interface sc0.
When you specify the reconfirminterval interval, enter 0 to disable reconfirmation.
Examples
This example shows how to define a primary VMPS server:
Console> (enable) set vmps server 192.168.10.140 primary
192.168.10.140 added to VMPS table as primary domain server.
This example shows how to define a secondary VMPS server:
Console> (enable) set vmps server 192.168.69.171
192.168.69.171 added to VMPS table as backup domain server.
Related Commands
clear vmps server
show vmps
set vmps state
Use the set vmps state command to enable or disable VMPS.
set vmps state {enable | disable}
Syntax Description
enable
|
Keyword to enable VMPS.
|
disable
|
Keyword to disable VMPS.
|
Defaults
By default, VMPS is disabled.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
Before using the set vmps state command, you must use the set vmps tftpserver command to specify the IP address of the server from which the VMPS database is downloaded.
Examples
This example shows how to enable VMPS:
Console> (enable) set vmps state enable
Vlan membership Policy Server enabled.
This example shows how to disable VMPS:
Console> (enable) set vmps state disable
All the VMPS configuration information will be lost and the resources released on disable.
Do you want to continue (y/n[n]):y
VLAN Membership Policy Server disabled.
Related Commands
show vmps
download vmps
set vtp
Use the set vtp command to set the options for VTP.
set vtp [domain domain_name] [mode {client | server | transparent}] [passwd passwd]
[pruning {enable | disable}] [v2 {enable | disable}]
Syntax Description
domain domain_name
|
(Optional) Keywords to define the name that identifies the VLAN management domain. The domain_name can be from 1 to 32 characters in length.
|
mode {client | server | transparent}
|
(Optional) Keywords to specify the VTP mode.
|
passwd passwd
|
(Optional) Keyword and variable to define the VTP password; the VTP password can be from 8 to 64 characters in length.
|
pruning {enable | disable}
|
(Optional) Keywords to enable or disable VTP pruning for the entire management domain.
|
v2 {enable | disable}
|
(Optional) Keywords to enable or disable version 2 mode.
|
Defaults
The defaults are as follows: server mode, no password, pruning disabled, and v2 disabled.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is not supported on extended-range VLANs.
VTP pruning and MISTP cannot be enabled at the same time.
All switches in a VTP domain must run the same version of VTP. VTP version 1 and VTP version 2 do not operate on switches in the same VTP domain.
If all switches in a domain are VTP version 2-capable, you only need to enable VTP version 2 on one switch (using the set vtp v2 enable command); the version number is then propagated to the other version 2-capable switches in the VTP domain.
If the VTP password has already been defined, entering passwd 0 (zero) clears the VTP password.
VTP supports three different modes: server, client, and transparent. If you make a change to the VTP or VLAN configuration on a switch in server mode, that change is propagated to all of the switches in the same VTP domain.
If the receiving switch is in server mode and its revision number is higher than the sending switch, the configuration is not changed. If the revision number is lower, the configuration is duplicated.
VTP can be set to either server or client mode only when dynamic VLAN creation is disabled.
If the receiving switch is in server mode, the configuration is not changed.
If the receiving switch is in client mode, the client switch changes its configuration to duplicate the configuration of the server. Make sure to make all VTP or VLAN configuration changes on a switch in server mode.
If the receiving switch is in transparent mode, the configuration is not changed. Switches in transparent mode do not participate in VTP. If you make VTP or VLAN configuration changes on a switch in transparent mode, the changes are not propagated to the other switches in the network.
The pruning keyword is used to enable or disable VTP pruning for the VTP domain. VTP pruning causes information about each pruning-eligible VLAN to be removed from VTP updates if there are no stations belonging to that VLAN out a particular switch port. Use the set vtp pruneeligible and clear vtp pruneeligible commands to specify which VLANs should or should not be pruned when pruning is enabled for the domain.
To disable VTP, enter the set vtp mode transparent command. This command disables VTP from the domain but does not remove the domain from the switch. Use the clear config all command to remove the domain from the switch.
Caution 
Be careful when you use the
clear config all command. This command clears the entire switch configuration, not just the VTP domain.
Examples
This example shows how to use the set vtp command:
Console> (enable) set vtp domain Engineering mode client
VTP domain Engineering modified
This example shows what happens if you try to change VTP to server or client mode and dynamic VLAN creation is enabled:
Console> (enable) set vtp mode server
Failed to Set VTP to Server. Please disable Dynamic VLAN Creation First.
Related Commands
show vtp domain
set vlan
clear vlan
show vlan
set vtp pruneeligible
clear vtp pruneeligible
set vtp pruneeligible
Use the set vtp pruneeligible command to specify which VTP domain VLANs are pruning eligible.
set vtp pruneeligible vlans
Syntax Description
vlans
|
Range of VLAN numbers; valid values are from 2 to 1000.
|
Defaults
The default is VLANs 2 through 1000 are eligible for pruning.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
VTP pruning causes information about each pruning-eligible VLAN to be removed from VTP updates if there are no stations belonging to that VLAN out a particular switch port. Use the set vtp command to enable VTP pruning.
By default, VLANs 2 through 1000 are pruning eligible. You do not need to use the set vtp pruneeligible command unless you have previously used the clear vtp pruneeligible command to make some VLANs pruning ineligible. If VLANs have been made pruning ineligible, use the set vtp pruneeligible command to make them pruning eligible again.
Examples
This example shows how to configure pruning eligibility for VLANs 120 and 150:
Console> set vtp pruneeligible 120,150
Vlans 120,150 eligible for pruning on this device.
VTP domain nada modified.
In this example, VLANs 200-500 were made pruning ineligible using the clear vtp pruneeligible command. This example shows how to make VLANs 220 through 320 pruning eligible again:
Console> set vtp pruneeligible 220-320
Vlans 2-199,220-320,501-1000 eligible for pruning on this device.
VTP domain Company modified.
Related Commands
show vtp domain
set vlan
clear vtp pruneeligible