cc/td/doc/product/lan/cat6000/sw_5_2
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

set udld
set vlan
set vlan mapping
set vtp

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/ports...
Syntax Description

enable

Keyword to enable the UDLD information display.

disable

Keyword to disable the UDLD information display.

mod/ports...

Number of the module and port(s).

Default

The default is UDLD is disabled.

Command Type

Switch command.

Command Mode

Privileged.

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 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) 
Related Command

show udld

set vlan

Use the set vlan command to group ports into a VLAN.

set vlan vlan_num mod/ports...
set vlan vlan_num [name name] [type ethernet]
    [state {active | suspend}] [said said] [mtu mtu] [bridge bridge_num] [mode bridge_mode]
    [stp stp_type] [translation vlan_num] [aremaxhop hop_count]
Syntax Description

vlan_num

Number identifying the VLAN.

mod/ports...

Number of the module and port(s) 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 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 576 to 18190.

bridge bridge_num

(Optional) Keyword and value to specify the identification number of the bridge; valid values are hexadecimal numbers 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 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 1 to 13; the default is 7.

Default

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.

Command Type

Switch command.

Command Mode

Privileged.

Usage Guidelines

You cannot use the set vlan command until the Catalyst 6000 or 6500 series 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 2 to 1005.

The bridge bridge_num, mode bridge_mode, stp stp_type, and translation vlan_num keywords and values are supported only when the Catalyst 6000 or 6500 series switch is used as a VTP server for Catalyst 5000 series switches in the Token Ring and FDDI networks.

Example

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
VLAN 850 modified.
VLAN  Mod/Ports
---- -----------------------
850   3/4-7
Console> (enable) 
Related Commands

show vlan
clear vlan

set vlan mapping

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
Syntax Description

dot1q

Keyword to specify the VLAN type as 802.1Q.

1q_vlan_num

Number identifying the 802.1Q VLAN; valid values are 1001 to 4095.

isl

(Optional) Keyword to specify the VLAN type as ISL.

isl_vlan_num

Number identifying the ISL VLAN; valid values are 1 to 1024.

Default

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.

Command Type

Switch command.

Command Mode

Privileged.

Usage Guidelines

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.

Examples

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) 
Related Commands

show vlan
clear vlan mapping

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 1 to 32 characters in length.

mode {client | server | transparent}

(Optional) Keywords to specify the VTP mode.

passwd passwd

(Optional) Keywords to define the VLAN trunk protocol password. The VTP password can be 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 set version 2 mode.

Default

The defaults are as follows: server mode, no password, pruning disabled, and v2 disabled.

Command Type

Switch command.

Command Mode

Privileged.

Usage Guidelines

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. VTP version 2 is disabled by default.

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.

Examples

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)
Related Commands

show vtp domain
set vlan
clear vlan
show vlan
set vtp pruneeligible
clear vtp pruneeligible


hometocprevnextglossaryfeedbacksearchhelp
Posted: Mon May 17 11:31:56 PDT 1999
Copyright 1989-1999©Cisco Systems Inc.