|
|
Use the set vlan command to group ports into a VLAN.
set vlan vlan_num mod_num/port_list
vlan_num | Number identifying the VLAN. |
mod_num | Number of the module. This parameter is not valid when defining or configuring TrBRFs. |
port_list | Numbers of the port on the module belonging to the VLAN. This parameter does not apply to TrBRFs. |
name name | (Optional) Keyword to define a text string used as the name of the VLAN (1 to 32 characters). |
type {ethernet | fddi | fddinet | trcrf | trbrf} | (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 to specify the security association identifier. Possible values are 1 to 4294967294. This parameter does not apply to TrCRFs or TrBRFs. |
mtu mtu | (Optional) Keyword to specify the maximum transmission unit (packet size, in bytes) that the VLAN can use. Possible values are 576 to 18190. |
ring hex_ring_number | (Optional) Keyword to specify the logical ring number for Token Ring VLANs. Possible values are hexadecimal numbers 0x1 to 0xFFF. For Token Ring VLANs, this parameter is valid and required only when defining a TrCRF. |
decring decimal_ring_number | (Optional) Keyword to specify the logical ring number for Token Ring VLANs. Possible values are decimal numbers 1 to 4095. For Token Ring VLANs, this parameter is valid and required only when defining a TrCRF. |
bridge bridge_num | (Optional) Keyword to specify the identification number of the bridge. Possible values are hexadecimal numbers 0x1 to 0xF. For Token Ring VLANs, the default is 0F. This parameter is not valid for TrCRFs. |
parent vlan_num | (Optional) Keyword to set a parent VLAN. The range for vlan_num is 2 to 1005. This parameter identifies the TrBRF to which a TrCRF belongs and is required when defining a TrCRF. |
mode {srt | srb} | (Optional) TrCRF bridging mode. Valid values for this parameter are srt and srb. |
stp {ieee | ibm} | (Optional) Keyword to specify the version of the Spanning-Tree Protocol for a TrBRF to use, source routing transparent (ieee), and source route bridging (ibm). |
translation vlan_num | (Optional) Keyword to specify a translational VLAN used to translate FDDI or Token Ring to Ethernet. Possible values are 1 to 1005. |
backupcrf {off | on} | (Optional) Keyword to specify whether the TrCRF is a backup path for traffic. |
aremaxhop hop_count | (Optional) Keyword to specify the maximum number of hops for All-Routes Explorer frames. Possible values are 1 to 13; the default is 7. This parameter is only valid when defining or configuring TrCRFs. |
stemaxhop hop_count | (Optional) Keyword to specify the maximum number of hops for Spanning-Tree Explorer frames. Possible values are 1 to 13; the default is 7. This parameter is only valid when defining or configuring TrCRFs. |
The default configuration has all switched Ethernet ports and Ethernet repeater ports 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.
The default TrBRF is 1005, the default TrCRF is 1003, and the default MTU for TrBRFs and TrCRFs is 4472. The default state is active.
Switch command.
Privileged.
You cannot use the set vlan command until the Catalyst 5000 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).
Valid MTU values for Token Ring VLAN are 1500 or 4472. While you can enter any value for the MTU value, the value you enter defaults to the next lowest valid value.
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.
On a new Token Ring VLAN, if you do not specify the parent parameter for a TrCRF, the default TrBRF (1005) is used.
This example shows how to set VLAN 850 to include ports 3 through 7 on module 3. Ports 3 through 7 were assigned to TrCRF 1003, therefore, the message reflects the modification of VLAN 1003:
Console> (enable) set vlan 850 3/4-7
VLAN 850 modified. VLAN 1003 modified. VLAN Mod/Ports ---- ----------------------- 850 3/4-7 Console> (enable)
Use the set vmps server command to configure the IP address of the VMPS server to be queried.
set vmps server ip_addr [primary]
ip_addr | IP address of the VMPS server. |
primary | (Optional) Keyword to identify the specified device as the primary VMPS server. |
If no IP address is specified, VMPS uses the local VMPS configuration.
Switch command.
Privileged.
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.
This example shows how to define a VMPS server:
Console> (enable) set vmps server 192.168.10.140 primary
192.168.10.140 added to VMPS table as primary domain server. Console> (enable) set vmps server 192.168.69.171
192.168.69.171 added to VMPS table as backup domain server. Console> (enable)
Use the set vmps state command to enable or disable VMPS.
set vmps state {enable | disable}
enable | Keyword to enable VMPS. |
disable | Keyword to disable VMPS. |
By default, VMPS is disabled.
Switch command.
Privileged.
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.
This example shows how to enable VMPS:
Console> (enable) set vmps state enable
Vlan membership Policy Server enabled. Console> (enable)
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. 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] [pruning {enable | disable}] [v2 {enable | disable}]
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) Keyword 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) Keyword to set 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. VTP version 2 is supported in software release 3.1(1) and later and 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.
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.
If you assign a VTP password, no VTP or VLAN configuration changes can be made without first entering the password.
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 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)
show vtp domain
set vlan
clear vlan
show vlan
set vtp pruneeligible
clear vtp pruneeligible
Use the set vtp pruneeligible command to specify which VLANs in the VTP domain are eligible for pruning.
set vtp pruneeligible vlan_range
vlan_range | Range of VLAN numbers. |
By default, VLANs 2 through 1000 are eligible for pruning.
Switch command.
Privileged.
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.
This example shows how to configure pruning eligibility for VLANs 120 and 150:
Console> (enable) set vtp pruneeligible 120,150
Vlans 120,150 eligible for pruning on this device. VTP domain nada modified. Console> (enable)
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> (enable) clear vtp pruneeligible 200-500
Vlans 1,200-500,1001-1005 will not be pruned on this device. VTP domain Company modified. Console> (enable) Console> (enable) set vtp pruneeligible 220-320
Vlans 2-199,220-320,501-1000 eligible for pruning on this device. VTP domain Company modified. Console> (enable)
show vtp domain
set vlan
clear vtp pruneeligible
|
|