|
|
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/ports...
enable | Keyword to enable the UDLD information display. |
disable | Keyword to disable the UDLD information display. |
mod/ports... | Number of the module and ports. |
The defaults are as follows:
Switch command.
Privileged.
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 on all the ends of the connection in order to work properly. Console> (enable)
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:Two-way connectivity detection only works during link-up and it should be enabled on both ends in order to work properly. Console> (enable)
This example shows how to enable the UDLD message display for all ports on all modules:
Console> (enable) set udld enable UDLD enabled globally Console> (enable)
This example shows how to disable the UDLD message display for all ports on all modules:
Console> (enable) set udld disable UDLD disabled globally Console> (enable)
Use the set vlan command set to group ports into a VLAN.
set vlan vlan_num mod/ports...
vlan_num | Number identifying the VLAN. |
mod/ports... | Number of the module and ports on the module belonging to the VLAN. |
name name | (Optional) Keyword and value to define a text string used as the name of the VLAN (1 to 32 characters). |
type ethernet | (Optional) Keywords to identify the VLAN type. |
state {active | suspend} | (Optional) Keyword to specify whether the state of the VLAN is active or suspended. VLANs in suspended state do not pass packets; the default is active. |
said said | (Optional) Keyword and value to specify the security association identifier; valid values are from 1 to 4294967294. |
mtu mtu | (Optional) Keyword and value 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 value to specify the identification number of the bridge; valid values are hexadecimal numbers from 0x1 to 0xF. |
mode bridge_mode | (Optional) Keyword and value to specify the bridge mode; valid values are srt and srb. |
stp stp_type | (Optional) Keyword and value to specify the STP type; valid values are ieee, ibm, and auto. |
translation vlan_num | (Optional) Keyword and value to specify a translational VLAN used to translate FDDI or Token Ring to Ethernet; valid values are from 1 to 1005. |
aremaxhop hop_count | (Optional) Keyword and value to specify the maximum number of hops for All-Routes Explorer frames; valid values are from 1 to 13; the default is 7. |
rspan | (Optional) Keyword to create a VLAN for remote SPAN. |
The default is all switched Ethernet ports and Ethernet repeater ports are in VLAN 1. The default SAID is 100001 for VLAN 1, 100002 for VLAN 2, 100003 for VLAN 3, and so on. The default type is Ethernet. The default MTU is 1500 bytes. The default state is active.
Switch command.
Privileged.
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).
You cannot set multiple VLANs for ISL ports using this command. The VLAN name can be from 1 to 32 characters in length. If adding a new VLAN, the VLAN number must be within the range 2 to 1001. When modifying a VLAN, the valid range for the VLAN number is from 2 to 1005.
If you use the rspan keyword for remote SPAN VLANs, no access port (except the remote SPAN destination ports) should be configured on these VLANs and 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 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.
This example shows how to set VLAN 850 to include ports 3 through 7 on module 3:
Console> (enable) set vlan 850 3/4-7VLAN 850 modified.VLAN Mod/Ports---- -----------------------850 3/4-7Console> (enable)
Use the set vlan mapping command to map 802.1Q VLANs to ISL VLANs.
set vlan mapping dot1q 1q_vlan_num isl isl_vlan_num
dot1q | Keyword to specify the VLAN type as 802.1Q. |
1q_vlan_num | Number identifying the 802.1Q VLAN; valid values are from 1001 to 4095. |
isl | (Optional) Keyword to specify the VLAN type as ISL. |
isl_vlan_num | Number identifying the ISL VLAN; valid values are from 1 to 1024. |
The default is all switched Ethernet ports and Ethernet repeater ports are in VLAN 1. The default SAID is 100001 for VLAN 1, 100002 for VLAN 2, 100003 for VLAN 3, and so on. The default type is Ethernet. The default MTU is 1500 bytes. The default state is active.
Switch command.
Privileged.
IEEE 802.1Q VLAN trunks support VLANs 1 through 4095. 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.
You can map up to eight VLANs. 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.
If vlan_num does not exist, then either of the following occurs:
If the table is full, the command is aborted with an error message indicating the table is full.
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 Vlan mapping successful Console> (enable)
This example shows the display if you enter a VLAN that does not exist:
Console> (enable) set vlan mapping dot1q 2 isl 1016 Vlan Mapping Set Warning: Vlan 2 Nonexistent Console> (enable)
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. Console> (enable)
This example shows the display if the mapping table is full:
Console> (enable) set vlan mapping dot1q 99 isl 1017 Vlan Mapping Table Full. Console> (enable)
Use the set vmps tftpserver command to specify the TFTP server's IP address of the VMPS downloaded database and the VMPS storage location.
set vmps tftpserver ip_addr [filename]
ip_addr | IP address of the TFTP server from which the VMPS database is downloaded. |
filename | (Optional) VMPS configuration filename on the TFTP server. |
If filename is not specified, the set vmps tftpserver command uses the default filename vmps-config-database.1.
Switch command.
Privileged.
This example shows how to specify the server from which the VMPS database is downloaded and the configuration filename:
Console> (enable) set vmps tftpserver 192.168.69.100 vmps_config.1 IP address of the TFTP server set to 192.168.69.100 VMPS configuration filename set to vmps_config.1 Console> (enable)
Use the set vtp command to set the options for VTP.
set vtp [domain domain_name] [mode {client | server | transparent}] [passwd passwd]
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) Keywords 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. |
The defaults are as follows: server mode, no password, pruning disabled, and v2 disabled.
Switch command.
Privileged.
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.
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. If you have switches in client mode, 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. |
This example shows how to use the set vtp command:
Console> (enable) set vtp domain Engineering mode client VTP domain Engineering modified Console> (enable)
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. Console> (enable)
show vtp domain
set vlan
clear vlan
show vlan
set vtp pruneeligible
clear vtp pruneeligible
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Fri Dec 31 10:59:28 PST 1999
Copyright 1989-1999©Cisco Systems Inc.