注册 | 登录 忘记密码? 51cto首页 | 博客 | 论坛 | 招聘
热点文章 小五思科技术学习笔记之SSH
 帮助

Set 命令集学习


2007-10-05 18:53:03
 标签:set   [推送到技术圈]

clear config
Use the clear config command to clear the system or module configuration information stored in
NVRAM.
clear config {mod | rmon | all | snmp | acl{nvram}}
Syntax Description 
            
                   mod         Number of the module.
                   rmon        Keyword to clear all RMON configurations,including the historyControlTable,the
                               alarmTable,the eventTable,and the ringStation ControlTable.
                   all         Keyword to clear all module and system configuration information, including the
                               IP address.
                   snmp        Keyword to clear all SNMP configurations.
                   acl nvram   Keyword to clear all ACL configurations.
                  
Defaults
          
                  This command has no defult setting.
                 
Command Types    
                  Switch command.
                 
Command Modes
                  Privileged.     
                 
Usage Guidelines
                  When using an MSM,clear config clears the portion of the MSM configuration kept by the
                  Catalyst 6000 series switch supervisor engine.The portion of the configuration kept by the MSM must
                  be cleared at the router level(router>prompt).
                 
                  Before using the clear config all command,save a backup of the configuration using the copy
                  command.
                 
Examples
                  This example shows how to delete the configuration information in NVRAM on module 2:
                 
                  console> (enable) clear config 2
                  This command will clear module 2 configuration.
                  Do you want to continue (y/n) [n]? y
                  ......................................
                  Module 2 configuration cleared.
                  consloe> (enable)
                 
                  This example shows how to delete the configuration information stored in NVRAM on module 1(the
                  supervisor engine):
                 
                  Console> (enable) clear config 1
                  This command will clear module 1 configuration.
                  Do you want to continue{y/n} [n]? y
                  ........
                  Module 1 configuration cleared.
                  host%
                 
                  This example shows how to delete all the configuration information for the Catalyst 6000 family
                  switchs:
                 
                  Console> (enable) clear config all
                  This command will clear all configuration in NVRAM.
                  Do you want to continue {y/n}[n]? y
                  ....................................
                  Connection closed by foreign host
                  host%
                 
                  This example shows how to delete all the SNMP configuration information for the Catalyst 6000 family
                  switches:
                 
                  Console> (enable) clear config snmp
                  This command will clear SNMP configuration in NVRAM.
                  Do you want to continue {y/n} [n]? y
                  ..................................
                  Connection closed by foreign host
                  host%
                 
                  This example shows how to delete all ACL configuration information for NVRAM:
                 
                  Console> (enable) clear config acl nvram
                  ACL configuration has been deleted form NVRAM.
                  Warning: Use the copy command to save the ACL configuration to a file and
                  the 'set boot config-register auto-config' commands to configure the
                  auto-config feature.
                  Console> (enable)
                 
Related Commands
                
                  configure
                  show config

                 
clear vlan
                 Use the clear vlan command to delete an existing VLAN from a management domain.
                
                       clear vlan vlan_num
                      
Syntax Description          
                 vlan_name    Number of the VLAN;vaild values are from 2 to 1000

Defaults                      
                 This command has no default setting.
                
Command Type  
                 Switch command.
                
 
Command Modes  

                 Privileged.
                
 
Usage Guidelines

                 Follow these guidelines for deleting VLANs:
                
                 When you delete a normal-range Ethernet VLAN in VTP server mode, the VLAN is removed from
                 all switches in the same VTP domain.
                
                 When you delete a normal-range VLAN in VTP transparent mode,the VLAN is deleted only on the
                 current switch.
                
                 To delete a Toking Ring TrBRF VLAN,you must first reassign its child TrCRFs to another parent
                 TrBRF.or delete the child TrCRFs.
                
                 When you clear a private VLAN (primary, isolated, or community), the ports are set to inactive and are
                 not assigned to any VLAN. The private VLAN mapping for the selected VLAN are also cleared.ACL
                 to VLAN mapping are also deleted.
                
                 When you clear a private VLAN (primary, isolated, or communirty),the ports are set to inactive and are
                 not assigened to any VLAN.The private VLAN mapping for the selected VLAN are also cleared.
                
Examples
                 This example shows how to clear existing VLAN 4 from a management domain:
                
                 Console> (enable) clear vlan 4
                 This command will de-activate all ports on vlan 4
                 in the entire management domain
                 Do you want to continue (y/n) [n]? y
                 YTP:VLAN 4 deletion successful
                 Console> (enable)
                
Related Commands
                 set vlan
                 show vlan

                
                
Router# dir device_name 
                 Displays the contents of the device.
Router# delete deivce_name
                 Removes existing files from the ciscoView directory.
                
Router#squeeze device_name:
                 Recoverys the space in the file system.
 
set password
Use the set password command to change the login password on the CLI.
                set password

Syntax Description
This command has no arguments or keywords.
Defaults
The defualt is no password is configured.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guildelines
Password are case sensitive and may be from 0 to 19 characters in length, including spaces.
The command prompts you for the old password. If the password you enter is vaild, you are prompted
to enter a new password and to verify the new password. A zero-length password is allowed by pressing
Return.
Examples
This example shows how to set an initial password:
Console> (enable) set password
Enter old password:
Enter new password:
Retype new password:  
Password Changed.
Console> (enable)      
 
 
set enablepass
Use the set enablepass command to change the password for the privileged level fo the CLI.
               set enablepass
              
Syntax Description
This command has no arguments or keywords.
Defaults
The default configuration has no enable password configured.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidenlines
Passwords are case sensitieve and may be 0 to 19 characters in length.including spaces
The command prompts you for the old password.If the password you enter is vaild, you are promptd
to enter a new password and to verify the new password.
Examples
This example shows how to establish a new password:
Console> (enable) set enablepass
Enter old password
Enter new password
Retype new password
Password changeed.
Console> (enable)
Related Commands
eanble
set password
 
 
set system name
 
Use the set system name command to configure a name for the system.
          set system name [name_string]
         
Syntax Description
name_sting (Optional) Text string that identifies the system.
Defaults
The default is no system name is configured.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guildelines
If you use the set system name command to assign a name to the switch, the switch name is used as the
prompt string. However, if you specify a different prompt string using the set prompt command, that
string is used for the prompt.
If you do not specify a system name, the system name is cleared, and DNS lookup is initiated for a
system name. If a name is found, that is the name used: if no name is found,no name is desigenated.
The system name can be 255 characters long, and teh prompt can be 20 characters long.The system
name is truncated appropriately when used as a prompt;a greater-than symbol(>)is appened to the
truncated system name.If the system name was found from a DNS lookup, it is truncated to remove the
domian name.
If the prompt is obtained using the system name, it is updated whenever the system name change.You
can overwrite this prompt any time by setting thr prompt manually.Any change in the prompt is
reflected in all current open seesions.
If you do not specify a name, the system name is cleared
Examples
This example shows how to set the system name to Informatin Systems:
Console> (enable) set sytem name Information Systems
System name set.
Console> (enable)  
Related Commands
show system
set prompt

set snmp community
 
Use the set snmp community command to set SNMP communities and associated access types.
   set snmp community {read-only | real-wirte | read-write-all} [community_string]
  
Syntax Description
read-only Keyword to assign read-only access to the specified SNMP community.
read-write Keyword to assigen read-write access to the specifed SNMP community.
real-write-all Keyword to assigen read-write-all access to the specifed SNMP community.
community_string (Optional) Name of the SNMP community.
Defaults
The default is the following community and access type are defined:
public     read-only
private    read-write
secret     read-write-all
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is not supports by the NAM.(content analysis module)
There are three configurable SNMP communities, one for each access type.If you do not specify the
community string, the community string configured for that access type is cleard.
To support the access types, you also need to configure for MIB tables: vacmContextTable.
vacmSecurityToGroupTable,vacmAccessTable, and vacmViewTreeTable. Use the clear config
snmp command to reset tables to the defualt values.
Examples
This examples shows how to set red-write access to the SNMP community called yappledapple:
Console> (enable)set snmp community read-write yappledapple
SNMP read-write community string set to yappledapple.
Console> (enable)
This example shows how to clear the community string defined for read-only access:
Console> (enable) set snmp community read-only
SNMP read-only community string cleared.
Console> (enable)
Related Commands
clear config snmp
show snmp
 
set ntp broadcastclient
Use the set ntp boardcastclient command to enable or disable NTP in boradcast-client mode.
         set ntp broadcastclient {enable|disable}
        
Syntax Description
enable   Keyword to enable NTP in broadcast-client mode.
disable  Keyword to enable NTP in broadcast-client mode.
Defaults
The default is broadcast-client mode is disabled.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
The broadcast-client mode assumes that a broadcast server ,such as a router,send time-of-day
information regularly to a Catalyst 6000 family switch.
Examples
This example shows how to enable an NTP broadcast client:
Console> (enable) set ntp broadcastclient enable
NTP Broadcast Client mode enabled.
console> (enable)
This example shows how to disable an NTP broadcst client:
Console> (enable) set ntp broadcastclient disable
NTP Broadcast Client mode disabled.
Console> (enable)
Related Commands
show ntp
 
 
set ntp broadcastdelay
Use the set ntp broadcastdelay command to configure a time-adjustment factor so the Catalyst 6000   
family switch can receive broadcast packets.
         set ntp broadcastrelay microseconds
        
Syntax Description
microseconds   Estimated round-trip time, in microseconds, for NTP broadcasts:
               valid values are from 1 to 999999.
              
Defaults
The default is the NTP broadcast delay is set to 3000 ms.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example show how to set the NTP broadcast delay to 4000 ms:
Console> (enable) set ntp broadcastdelay 4000
NTP broadcast delay set to 4000 microseconds.
Console> (enable)
Related Commands
show ntp
 
 
set ntp client
Use the set ntp client command to enable or disable a Catalyst 6000 family switch as an NTP client.
            set ntp client {enable | disable}
           
Syntax Description
enable     Keyword to enable a Catalyst 6000 family switch as an NTP client.
disable    keyword to disable a Catalyst 6000 family switch as an NTP client.
Defautls
The default is NTP client mode is disabled.
Command Types
Switch Command.
Command Modes
Privileged.
Usage Guidelines
You can configure NTP in either braodcast-client mode or client mode.The broadcast-client mode
assumes that a broadcast server,such  as a router,send time-of-day information regularly to a
Catalyst 6000 family switch.The client mode assumes that the client ( a Catalyst 6000 family switch)
regularly sends time-of-day requestes to the NTP server.  
Examples
This example shows how to enable NTP client mode:
Console> (enable) set ntp client enable
NTP client mode enabled.
Console> (enable)
Related Commands
show ntp
 
 
set ntp server
Use the set ntp server command to configure the IP address of the NTP server.
           set ntp server ip_addr
          
Syntax Description
ip_addr    IP address of the NTP server providing the clock synchronization.
Defaults
This command has no defualt setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidenlines
The client mode assumes that the client ( a Catalyst 6000 family switch) send time-of-day requests
regularly to the NTP server.A maximum of ten servers per client is allowed.
Examples
This example shows how to configure an NTP server:
Console> (enable) set ntp server 172.20.22.191
NTP server 172.20.22.191 added.
Console> (enable)
Related Commands
clear ntp server
show ntp
 

set timezone
Use the set timezone command to set the time zone for the system.
            set timezone[zone_name][hous[minutes]]
           
Synatx Description
zone_name (Optional) Name of the time zone to be displayed.
hours     (Optional) Number of hours offset from UTC.
minutes   (Optional) Number of minutes offset from UTC.If the specified
           hours value is a negative number, then the minutes value is assumed
           to be negative as well.
Defaults
The default is the time zone is set to UTC.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
The set timezone command is effective only when NTP is running.If you set the time explicityly and
NTP is disengaged, the set timezone command has no effect.If you have enabled NTP and have not
entered the set timezone command,the Catalyst 6000 family switch displays UTC by default.
Examples
This examples shows how to set the time zone to Pasific Standard Time with an offset of minus 8 hours
from UTC:
Console> (enable)set timezone GMT 8
Timezone set to "GMT", offset from UTP is 8 hours.
Console> (enable)
 
 
set banner motd
Use the set banner motd command to program an MOTD banner to appear before session login.
             set banner motd c[text]c
   
Syntax Description
c           Delimiting character used to begin and end message.
text        (Optional) Message of the day.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
The banner may contain no more than 3,070 characters,including tabs.Tabs display as eight characters
but take only one characer of memory.
You can use either the clear banner motd command or the set banner motd cc command to clear the
message-of-the-day banner.
Examples
This example shows how to set the message of the day using the pound sign(#)as the delimiting
character:
Console> (enable) set banner motd#
** System upgrade at 6:00am Tuesday.
** Please log out before leaving on Monday.#
MOTD banner set.
Console> (enable)
This example shows how to clear the message of the day:
Console> (enable) set banner motd##
MOTD banner cleared.
Console> (enable)
Related Commands
clear banner motd

set boot config-register
Use the set boot config-register command set to configure the boot configuration register value.
             set boot config-register 0xvalue[mod]
            
             set boot config-register baud {1200 | 2400 | 4800 | 9600} [mod]
            
             set boot config-register igonre-config { enable | disable} [mod]
            
             set boot config-register boot { rommon | bootflash| system } [mod]
            

Syntax Description
             0xvalue           Keyword to set the 16-bit configuration register value.
            
             mod               (Optional) Module number of the supervisor engine containing the Flash
                                device.
                               
             baud {1200 |2400   Keywords to specify the console baud rate.
             4800 | 9600 }
            
             ignore-config      Keywords to set the ignore-config feature.
            
             enable             Keywords to enable the specified feature.
            
             disable            Keywords to disable the specified feature.
            
             boot               Keywords to specify the boot image to use on the next restart.
            
             rommon             Keywords to specify booting from the ROM monitor.
            
             bootflash          Keywords to specify booting from the bootflash.
            
             system             Keywords to specify booting from the system.
            
Defaults
The defaults are as follows:
Configuration register value is 0x10F,which causes the switch to boot from what is specified by
the BOOT environment varialbe.
Baud rate is set to 9600.
ignore-config parameter is disabled.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
We recommmand that you use only the rommon and system options to the set boot config-register boot
command.
Each time you enter one of the set boot config-register commands,the system dsiplays all current
configuration-register information (the equivalent of entering the show boot command).
The baud rate specified in the configuration register is used by the ROM monitor only and is different
from the baud rate specified by the set system baud command.
When you enable the ignore-config feature,the system software ignoresthe configuration.Enabling
the ignore-config pararmeter is the same as entering the clear config all command; that is, it clears the
entire configuration stored in NVRAM the next time the switch is restarted.
Examples
This example shows how to specify booting from the ROM monitor:
Console> (enable) set boot config-register boot rommon
Configuration register is 0x100
ignroe-config:disabled
console baud:9600
boot: the ROM monitor
Console> (enable)
This example shows how to specify the default 16-bit cofiguration register value:
Console> (enable) set boot config-register 0x12f
Configuration register is 0x12f
break: disabled
ignore-config: disabled
console baud: 9600
boot: image specified by the boot system commands
Console> (enable)
This example shows how to change the ROM monitor baud rate to 4800:
Console> (enable) set boot config-register baud 4800
Configuration register is 0x90f
ignore-config: disable
console baud: 4800
boot: image specified by the boot system commands
Console> (enable)
This example shows how to ignore the configuration information stored in NVRAM the next time the
switch is restared:
Console> (enable) set boot config-register ignore-config enable
Configuration register is 0x94f
ignore-config; enabled
console baud: 4800
boot:image specified by the boot system commands
Console> (enable)
This example shows how to specify rommon as the boot image to use on the next restart:
Console> (enable) set boot config-register boot rommon
confiuration register is 0x100
ignore-config: disabled
console baud: 9600
boot: the ROM monitor
Console> (enable)
Related Commands
set config acl
set boot auto-config
set boot system flash
show boot
copy
show config
 
set boot system flash
Use the set boot system flash command to set the BOOT environment variable that specifies a list of
images the switch loads at stratup.
set boot system flash device:[filename][prepend][mod]
Syntax Description
device:          Device where the Flash resides.
filename         (Optional) Name of the configuratinon file.
prepend          (Optional) Keyword to place the device first in the list of boot devices.
mod              (Optional) Module number of the supervisor engine containing the Flash device.
Defaults  
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
A colon(:) is required after the specified device.
You can enter several boot system commands to provide a fail-safe method for booting the switch.The
system stores and executes the boot system commands in the order in which you enter them.
Remember to clear the old entry when building a new image with a different filename in order to use
the new image.
If the file does not exist(for example,if you entered the wrong filename),then the filename is appended
to the bootstring, and this message displays,"Warning:File not found but still added in the bootstring."
If the file does exist,but is not a supervisor engine image,the file is not added to the bootstring,and
this meesage displays,"Warning:file found but it is not a vaild boot image."
Exmples
This example shows how to append the filename cat6000-sup5-5-1.bin on device bootflash to the
BOOT environment variable:
Console> (enable) set boot system flash bootflash:cat6000-sup5-5-1.bin
BOOT variable = bootflash:cat6000-sup.5-5-1.bin,1;bootflash:cat6000-sup.5-5-1.bin,1;
Console> (enable)
This example shows how to prepend cat6000-sup5.5-5-1.bin to the beginning of the boot string:
Console> (enable) set boot system flash bootflash:cat6000-sup5.5-5-1.bin prepend
BOOT variable = bootflash:cat6000-sup5-5-1.bin,1;bootflash:cat6000-sup.5-4-1.bin,1;
Console> (enable)
Related Commands
clear boot sytem
show boot
 
 
set ip route
 
Use the set ip route command to add IP address or aliases to the IP routing table.
        set ip route {destination}[/netmask]{gateway}[metric][primary]
       
Syntax Description
destination     IP address,IP alias of the network,or specific host to the added.Use
                default as the destination to set the new entry as the default route.
               
/netmask        (Optionl) Number of bits in network or dot format (for example,
                172.20.22.7/24 or 172.20.22./255.255.255.0).
              
gateway         IP address or IP alias of the router.
metric          (Optional) Value used to indicate the number of hops between the
                switch and the gateway.
       
primary         (Optional) Keyword used with the Multiple IP Gateway feature to
                specify the default IP gateway with the highest priority.
               
Defaults
The default configuration routes the local network through the sc0 interface with metric 0 as soon as
sc0 is configured.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
You can configure up to three default gateway,The primary is the highest priority.If you do not
designate a primary gateway , priority is based on the order of input.If you enter two primary
definitions, the second definition becomes the primary and the first definition is now the secondary
default IP gateway.
You can only specify the primary keyword for a default route.
When you enter the destination or gateway,enter it in dot notation,for example,a.b.c.d.
When you specify the netmask , this indicates the number of bits allocated to subnetting in the hostid
section of the given Class A,B, or C address , For example, if you enter an IP address for the sc0
interface as 172.22.20.7, the hostid bits for this Class B address is 16.Any number of bits in the hostid
bits can be allocated to the netmask field.If you do not enter the netmask,the number of bits is assumed
to be the natural netmask.
When you enter the netmask, enter is as the number of bits or dot format,for example,destination/24
or desination/255.255.255.0. If you enter the netmask in dot format, you must have contiguous 1s.
Examples
These examples show how to add three default routes to the IP routing table,checking after each
addition using the show ip route command:
Console> (enable) set ip route default 192.122.173.42 1 primary
Route added.
Console> (enable)
Console> (enable) show ip route
Fragmentation                  Redirect                     unreachable
---------------------         -------------           ---------------------
eanbled                         enabled                    enabled
Destination                    Gateway                      Flages            Use       Inerface
----------------          ---------------------        ------------------ --------  ------------- -
default                     192.122.173.42                  UG               59444       sc0
192.22.74.0                 192.22.74.223                   U                    5       sc0
Console> (enable)
Console> (enable) set ip route default 192.122.173.43 1
Route added.
Console> (enable)
Console> (enable)show ip route
Fragmentation                     Redirect                 Unreachable
-------------------             ------------------         --------------
enabled                           enabled                   enabled
Destination                        Gateway                Flags            Use         Interface
--------------------          -------------------       -------------     ---------  ------------
default                       192.122.173.43               UG              59444        sc0
default                       192.122.173.42               UG              59444        sc0
192.22.74.0                   192.22.74.223                U                   5        sc0
Console> (enable)
Related Commands
clear ip route
show ip route
 
set ip dns
Use the set ip dns command to enable or disable DNS.
            set ip dns {enable | disable}
           
Syntax Description
enable          Keyword to enable DNS.
disable         Keyword to disable DNS.
Defaults
The default is DNS id disabled.
Command Type
Switch command.
Command Modes
Privileged.
Examples
This example shows how to enable DNS.
Console> (enable) set ip dns enable
DNS is enabled.
Console> (enable)
This example shows how to disable DNS.
Console> (enable) set ip dns disable
DNS is disabled.
Console> (enable)
Related Commands
show ip dns
 
 
set ip dns domain
Use the set ip dns domain command to set the defualt DNS domian name.
             set ip dns domain name
            
Syntax Description
name         DNS domain name.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If you specify a domian name on the command line, the system attempts to resolve the host name as
entered.If the system cannot resolve the host name as entere, it sppends the default DNS domian name
as defined with the set ip dns domain command. If you specify a domain name with a trailing dot,the
program considers this an absolute domain name.
Examples
This example show how to set the default DNS domain name:
Console> (enable) set ip dns domain yow.com
DNS domian name set to yow.com
Console> (enable)
Related Commands
clear ip dns domain
show ip dns
 
set ip dns server
Use the set ip dns server command to set the IP address of a DNS server.
         set ip dns server ip_addr [primary]
        
Syntax Description
ip_addr     IP address of the DNS server.
primary     (Optional) Keyword to configure a DNS server as the primary
             server.
            
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
You can configure up to three DNS name servers as backup.You can also configure any DNS server as
the primay server.The primary server is queried first.If the primary server fails,the backup servers
are queried.
If DNS is disabled, you must use the IP address with all commands that require explicit IP addresses or
manually define an alias for the address.The alias has priority over DNS.
Examples
These examples show how to set the IP address of a DNS server:
Cosnole> (enable) set ip dns server 198.92.30.32
198.92.30.32 added to DNS server table as primary server.
Console> (enable) set ip dns server 171.69.2.132 primary
171.69.2.132 added to DNS server table as primary server.
Console> (enable) set ip dns server 171.69.2.143 primary
171.69.2.143 added to DNS server table as primary server.
This example show what happens if you enter more than three DNS name servers as backup:
Console> (enable) set ip dns server 161.44.128.70
DNS server table is full. 161.44.128.70 not added to DNS server table.
Related Commands
clear ip dns server
show ip dns
 
 
session
Use the session command to open a session with a module(for example,the MSM or ATM), allowing
you to use the module-specific CLI.
             session   mod
Syntax Description
mod            Number of the module.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Privileged.
Usage Guidelines
After you enter this command,the system redponds with the Enter Password:prompt, if one is
configured on the module.
To end the session,enter the quit command.
Use the session command to toggle between router and switch sessions.
For information on ATM commands, refer to the ATM software configuration guid and command
Reference for the catalyst 5000 Family and 6000 Family Switches.
Examples
This examples shows how to open a session with an MSM(module 4):
Console> (enable) session 4
Trying Router-4...
connected to Router-4.
Escape character is '^]'.
Router>
Related Commands
switch console
quit
 
 
set vtp
 
Use the stp vtp command to set the options for VTP.
     set vtp [domian domian-name] [mode { client | server | transparent} ]
     [passwd passwd] [pruning {enable | disable}][v2 {enable | disable}]

    
Syntax Descripion
domain           (Optional) Keywords to define the name that identifies the VLAN
domain_name       management domian.The domain.The domain_name can be from 1 to 32 characters in
                  length.
                 
mode{ client|    (Optional) Keywords to specify the VTP mode.
server|
transparent}
passwd passwd    (Optional) Keyword and variable to define the VTP password; the VTP
                  password can be form 8 to 64 characters in length.
                 
pruning {enable|  (Optional) Keywords to enable or disable VTP pruning for the entire
disable}           management domian.
v2 (enable|       (Optional) Keyword to enable or disable version 2 mode.
disable}
Defaults
The defaults are as follows: server mode, no password,pruning disable,and v2 disabled.
Command Type
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is not supported by the NAM.
All switch 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) clear the VTP password.
VTP supports three different mode: 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 switch 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 trasnparent mode,the configuration is not changed.Switches in transparent
mode to not participate in VTP.If you make VTP or VLAN configuration change 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 domian.VTP pruning
causes information about each pruning-eligible VLAN to be removed for VTP updates if there are no
stations beloging to that VLAN out a particular switch port.Use the set vtp pruneeligible and clear
vtp pruning command to specify which VLANs should or should not be pruned when pruning is
enabled for the domian.
To disable VTP,enter the set vtp mode transparent command.This command diesables 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.
Examples
This examples shows how to use the set vtp command:
Console> (enable) set vtp domain Engineering mode client
VTP domain Engineering modeified.
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 pruning

set vtp pruneeligible
 
Use the set vtp pruneeligible command to specify which VTP domian VLANs are pruning eligible.
 
          set vtp pruneeligible vlan_range
         
Syntax Description
vlan_range  Range of VLAN numbers; valid values are from 2 to 1000.
Defaults
The defaults is VLAN 2 through 1000 are eligible for pruning.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
VTP pruning causes infromation about each pruning-eligible VLAN to be removed from VTP updates
if there are no stations beloging to that VLAN out a particular switch port.Use the set vtp command
to enable VTP pruning.
By defult,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 pruning 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 show how to configure pruning eligibility for VLANs 120 and 150:
Console> (enable) set vtp pruneeligible 120,150
Vlan 120,150 eligible for pruning on this device.
VTP domain nada modified.
Console>
In this example,VLANs 200-500 were made pruning ineligible using the clear vtp pruning command.
This example shows how to make VLANs 200 through 320 pruning eligible again:
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>
Related Commands
show vtp domain
set vlan
clear vtp pruning

set interface
 
Use the set interface command set to configure the in-band and SLIP interface on the switch.
             set interface { sc0 | sl0 } {up | down}
             set interface sc0 [vlan][ip_address[/netmask][broadcast]]
             set interface sl0 slip_address dest_addr
             set interface sc0 dhcp { renew | release | requestnew}

            
Syntax Description
sc0          Keyword to specify the in-band interface.
sl0          Keyword to specify the SLIP interface.
up           Keyword to bring the interface into operation.
down         Keyword to bring the interface out of operation.
vlan         (Optional) Number of the VLAN to be assigned to the interface.
ip_addr      (Optional) IP address.
/netmask     (Optional) Subnet mask.
broadcast    (Optional) Broadcast address.
slip_addr    IP address of the console port.
dest_addr    IP address of the host to which the console port will be connected.
dhcp         Keyword to perform DHCP operations on the sc0 interface.
renew        Keyword to renew the lease on a DHCP-leared IP address.
release      Keyword to release a DHCP-learned  IP address back to the DHCP
             IP address pool.
requestnew   Keyword used to request a new lease on a DCHP-learned IP

Defaults
The default configuration is the in-band interface(sc0) in VLAN 1 with the IP address.subnet mask,
and broadcast address set to 0.0.0.0.The default configuration for the SLIP interface (sl0)is that the IP
address and broadcast address are set to 0.0.0.0.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
Two configurable network interface are on a Catalyst 6000 family switch: in-band (sc0) and SLIP
(sl0).Configuration the sc0 interface with an IP address and subnet mask allows you to access the switch
CLI via Telnet from a remote host.You should assign the sc0 interface to an active VLAN configured
on the switch(the default is VLAN 1).Make sure the IP address you assign is in the same subnet as
other stations in that VLAN.
Configuring the sl0 interface with an IP address and destination address allows you to make a
point-to-point connection to a host through the console port.Use the slip attach command to activate
SLIP on the console port ( you will not be able to access the CLI via a terminal connected to the console
port until you use the slip detach command to deactivate SLIP on the console port).
When you specify the netmask,this indicates the number of bits allocated to subnetting in the hostid
section of the given Class A.B.or C address.For example,if you enter an IP address for the sc0
interface as 172.22.20.7 ,the hostid bits for this Class B address is 16.Any number of bits in the hostid
bits can be allocated to the subnet field.If you do not enter the net enter the netmask,the number of bits is assumed
to be the natural netmask.
The set interface sc0 dhcp command is valid only when the address is learned form the DHCP server
and available in privileged mode only.
Examples
This example shows how to use set interface sc0 and set interface sl0 from the console port.It also
shows how to bring down interface sc0 using a terminal connected to the console port:
Console> (enable) set interface sc0 192.20.11.44/255.255.255.0
Interface sc0 IP address and netmask set.
Console> (enable) set interface sl0 192.200.10.45 192.200.10.103
Interface sl0 SLIP and desination address set.
Console> (enable) set interface sc0 down
Interface sc0 administratively down
Console> (enable)
This example shows how to set the IP address for sc0 through a Telnet session.Note that the default
netmask for that IP address class is used(for example,a Class C address uses 255.255.255.0 and a
Class B uses 255.255.0.0):
Console> (enable) set interface sc0 192.200.11.40
This command may disconnect active telnet sessions.
Do you want to continue(y/n) [n]?y
Interface sc0 IP address set.
This exmaple shows how to take the interface out of operation through a Telnet session:
Console> (enable) set interface sc0 down
This command will inactivate telnet sessions.
Do you want to continue (y/n) [n]? y
Interface sc0 administratively down.
This example shows how to assign the sc0 interface to a pariticular VLAN:
Console> (enable) set interface sc0 5
Interface sc0 vlan set.
Console> (enable)
This example shows what happens when you assign the sc0 interface to a nonactive VLAN:
Cosnole> (enable) set interface sc0 200
Vlan is not active,user needs to set vlan 200 active.
Interface sc0 vlan set.
This examples shows how to release a DHCP-learned IP address back to the DHCP IP address pool:
Console> (enable) set interface sc0 dhcp release
Releasing IP address... Done
Console> (enable)
This example shows how to renew a lease on a DHCP-learned IP address:
Console> (enable) set interface sc0 dhcp renew
Renewing IP address... Done
Console> (enable)
This example shows how to request a new lease on a DHCP-learned IP address:
Console> (enable) set interface sc0 dhcp requestnew
Requesting new IP address... Done
Console> (enable)
Related Commands
show interface
slip
 
set port disable
Use the set port disable command to disable a port or a range or ports.
           set port disable mod/port
          
Syntax Description
mod/port           Number of the modules and the port on the module.
Defaults
This default system configuration has all port enabled.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is not supported by the NAM.
It takes approximately 30 seconds for this command to take effect.
Examples
This exmaple shows how to disable a port using the set port disable command:
Console> (enable) set port disable 5/10
Port 5/10 disabled.
Console> (enable)
Related Commands
set port enable
show port
 
 
set port enable
Use the set port disable command to enable a port or a range of ports.
set port enable mod/port
Syntax Description
mod/port   Number of the and the port on the module.
Defaults
The default is all ports are enabled.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is not supported by the NAM.
It takes approximately 30 seconds for this command to take effect.
Examples
This example shows how to enable port 3 on module 2:
Console> (enable) set port enable 2/3
Port 2/3 enabled.
Console> (enable)
Related Commands
set port disable
show port
 
 
set port duplex
Use the set port duplex command to configure the duplex type of an Ethernet port or a range of ports.
           set port duplex mod/port {full/half}
          
Syntax Description
mod/port           Number of the module and the port on the module.
full               Keyword to specify full-duplex transmission.
half               Keyword to specify half-duplex transmission.
Defaults
The default configuration for 10-Mbps and 100-Mbps modules has all Ethernet ports set to half duplex.
Command Type
Switch command.
Command Modes
Privileged.
Usage Guidelines
You can configure Ethernet and Fast Ethernet interfaces to either full duplex or half duplex.
Gigabit ports only support full-duplex mode.
Examples
This example shows how to set port 1 on module 2 to full duplex:
Console> (enable) set port duplex 2/1 full
Port 2/1 set to full-duplex.
Console> (enable)
Related Commands
show port
 
set port speed
Use the set port speed command to configure the speed of a port interface.You can configure the speed
of a Fast Ethernet interface.
          set port speed mod/port {10 | 100 |auto}
         

Syntax Description
mod/port          Number of the module and the port on the module.
10 | 100 | auto   Keyword to set a port speed to 10Mbps,100Mbps, or autospeed detection mode.
Defults
The default is auto
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
You can configure Fast Ethernet interface on the 10/100-Mbps Fast Ethernet switching module to
either 10 or 100 Mbps,or to autosensing mode,allowing the interface to sense and distinguish between
10- and 100-Mbps port transmission speeds and full-duplex or half-duplex port trasmission types at a
remote port connection. If you set the interfaces to autosensing, they configure themselves
automatically to operate at the proper speed and transmission type.
This command is not supported by the Gigabit Ethernet switching module or the NAM.
Examples
This example shows how to configure port 1,module 2 to auto:
Console> (enable) set port speed 2/1 auto
Port 2/1 speed set to auto-sensing mode.
Console> (enable)
This example shows how to configure the port speed on port 2, module 2 to 10 Mbps:
Console> (enable) set port speed 2/2 10
Port 2/2 speed set to 10 Mbps.
Console> (enable)
Related Commands
show port
 
 
set port channel
Use the set port channel command set to configure EtherChannel on Ethernet module ports.
set port channel mod/port [admin_group]
set port channel mod/port mode {on | off | desirable | auto} [silent | non-silent]
set port channel all distribution {ip | mac } [source | destination | both]
Syntax Description
mode/type        Number of the module and the port on the module.
admin_group      (Optional) Number of administrative group;vaild values are from
                 1 to 1024.
mode             Keyword to specify the EtherChannel mode.
on               Keyword to enable and force specified ports to channel without
                 PagP.
off              Keyword to prevent ports from channeling.
desirable        Keyword to set a PagP mode that places a port into an active
                 negotiating state,in which the port initiates negotiations with
                 other ports by sending PagP packets.
auto             Keyword to set a PagP mode that places a port into a passive
                 negotiating state,in which the port responds to PagP packet it
                 receives,but does not initiate PagP packet negotiation.
silent           (Optional) Keyword to use with auto or desirable when no traffic
                 is expected from the other device to prevent the link from being
                 reported to STP as down.
non-silent       (Optional)Keyword to use with auto ro desirable when traffic is
                 expected from the other device.
all distribution  Keywords to apply frame distribution to all ports in the switch.
ip                Keyword to specify the frame distribution method using IP
                  address values.
mac              Keyword to specify the frame distribution method using MAC
                 address values.
source           (Optional) Keyword to specify the frame distribution method
                 using source address values.
destination      (Optional) Keyword to specify the frame distribution method
                 using destination address values.
both             (Optional) Keyword to specify the frame distribution method
                 using source and destination address values.
  
Defaults
The default is EtherChannel is set to auto and silent on all module ports.The defaults for frame
distribution are ip and both.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is not supported by the NAM.
Make sure that all ports in the channel are configured with the same port speed, duplex mode,and so
forth.For more information on  EtherChannel,refer to the Catalyst 6000 Family Software Configuration
Guide.
With the on mode,a usable EtherChannel exists only when a port group in on mode is connected to
another port group in on mode.
If you are running Qos,make sure that bundled ports are all of the same trust types and have similar
queueing and drop capabilites.
Disable the port security feature on the channeled ports(see the set port security command).If you
enable port security for a channel port,the port shuts down when it recevies packets with source
addresses that do not match the secure address of the port.
You can configrue up to eight ports on the same switch in each administrative group.
When you assign ports to an existing admin group,the original ports associated with the admin group
will move to an automatically picked new admin group. You cannot add ports to the same admin group.
If you do not enter an admin_group, it means that you want to create a new administrative group with
admin_group selected automatically.The next available admin_group is automatically selected.
If you do not enter the channel mode,the channel mode of the ports addressed are not modified.
The silent | non-silent parameters only apply disirable or auto modes are entered.
If you do not specify silent or non-silent ,the current setting is not affected.
This command is not support by non-Etherchannel-capable modules.
Examples
This example shows how to set the channel mode to desirable:
Console> (enable) set port channel 2/2-8 mode desirable
Ports 2/2-8 channel mode set to desirable.
This example shows how to set the channel mode to auto:
Console> (enable)set port channel 2/7-8,3/1 mode auto
Ports 2/7-8,3/1 channel mode set to auto.
Console> (enable)
This example show how to group port 4/1 through 4 in an admin group:
Console> (enable)set port channel 4/1-4 96
Ports 4/1-4 are assigned to admin group 96.
Console> (enable)
This example shows the display when the port list is exceeded:
Console> (enable) set port channel 2/1-9 1
NO more than 8 ports can be assigned to an admin group.
Console> (enable)
This example shows how to disable EtherChannel on module 4, ports 4 through 6:
Console> (enable) set port channel 4/4-6 mode off
Ports 4/4-6 channel mode set to off
Console>
This example shows the display output when you assign ports to an existing admin group.This example
moves ports in admin group 96 to another admin group and assigns ports 4/4 through 6 to admin
group 96
Console> (enable) set port channel 4/4-6 96
Ports 4/1-3 are moved to admin group 97.
Ports 4/4-6 are assigned to admin grouop 96.
Console> (enable)
This example shows how to set channel mode to off for ports 4/4 through 6 and assign port 4/4
through 6 to an automatically selected admin group:
Console> (enable) set port channel 4/4-6 off
Ports 4/4-6 channel mode set to off.
Ports 4/4-6 are assigned to admin group 23.
Console> (enable)
This example show how to configure the EtherChannel load-balancing feature:
Console> (enable) set port channel all disribution ip destination
Channel disribution is set to ip destination.
Console> (enable)
Related Commands
show port channel
show channel
show channel group

 
clear alias
Use the clear alias command to clear the shorthand versions of commands
              clear alias {name | all}
             
Syntax Description
name          Alternate identifier of the command
all           Keyword that clears every alternate identifier previously created.
Defaults
This command has no default setting.
Command Type
Switch command.
Command Modes
Privileged.
Examples
This example show how to erase the arpdel alias:
Console> (enable) clear alias arpdel
Command alias deleted.
Console> (enable)
This example shows how to erase all the alias:
Console> (enable) clear alias all
Command alias table cleared.
Console> (enable)
Related Commands
set alias
show alias
 
 
clear arp
Use the clear arp command to delete a specific entry or all entries from the ARP table.
              clear arp [all | dynamic | permanent | static ] {ip_addr}
             
Syntax Description
all           (Optional) Keyword to clear all ARP entries
dynamic       (Optional) Keyword to clear all dynamic ARP entries.
permantent    (Optional) Keyword to clear all permantent ARP entries.
static        (Optional) Keyword to clear all static ARP entries.
ip_addr       IP address to clear from the ARP table.
Defaults
This command has no default setting
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to remove IP address 198.133.219.209 from the ARP table.
Console> (enable) clear arp 198.133.219.209
ARP entry deleted.
Console> (enable)
This example shows how to remove all entries from the ARP table:
Console> (enable) clear arp all
ARP table cleared.
Console> (enable)
This example shows how to remove all dynamically learned ARP entries:
Console> (enable) clear arp dynamic
Unknown host
Dynamic ARP entries cleared.
Console> (enable)
This example shows how to clear all permanently entered ARP entries:
Console> (enable) clear arp permanent
Unknown host
permanent ARP entries cleared.
Console> (enable)
Related Commands
set arp
show arp
 
 
clear banner motd
Use the clear banner motd command to clear the message-of-the-day banner.
          clear banner motd
         
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example show how to clear the message-of-the-day banner.
Console> (enable) clear banner motd
MOTD banner cleared
Console> (enable)
Related Commands
set banner motd
 
 
clear boot system
Use the clear boot system command set to clear the contents of the BOOT environment variable and
the configuration register setting.
             clear boot system all [mod]
             clear boot system flash device:[filename][mod]
            
Syntax Description
all          Keyword to clear the whole BOOT environment variable.
mod          (Optional) Module number of the supervisor engine containing the
             Flash device.
flash        (Optional) Keyword to clear the Flash device.
device:      Name of the Flash device.
filename     (Optional) Filename of the Flash device.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear the whole BOOT environment variable:
Console> (enable) clear boot system all
B00T variable=
Console> (enable)
This example shows how to clear a specific device:
Console> (enable) clear boot system flash bootflash:cat6000-sup.5-5-1.bin
BOOT variable=bootflash: cat6000-sup.5-2-1.bin,1;bootflash:cat6000-sup.4-5-2.
bin,1;
Console> (enable)
Related Commands
set boot system flash
show boot
 
clear cam
Use the clear cam command to delete a specific entry or all entries from the CAM table.
         clear cam  {mac_addr | dynamic | static | permanent } [vlan]
Syntax Description
mac_addr     One or more MAC address.
dynamic      Keyword to clear the dynamic CAM entries from the CAM table.
static       Keyword to clear the static CAM entries from the CAM table.
permanent    Keyword to clear the permanent CAM entries from the CAM table.
vlan         (Optional) Number of the VLAN;vaild values are 1 to 1005.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to remove MAC address 00-40-0b-a0-03-fa from the CAM table:
Console> (enable) clear cam 00-40-0b-a0-03-fa
CAM table entry cleared.
Console> (enable)
This example shows how to clear dynamic entries from the CAM table:
Console> (enable) clear cam dynamic
Dynamic CAM entries cleared.
Console> (enable)
Related Commands
set cam
show cam
 
 
clear channel statistics
Use the clear channel statistics command to clear PagP statistical information.
           clear channel statistics
          
Synatx  Descritpion
This command has no arguments or keywords.
Defaults
This command has no defualt setting.
Command Types
Switch command.
command Modes
Privileged.
Examples
This example shows how to clear PagP statistical infromation:
Console> (enable) clear channel statistics
PagP statistics cleared.
Console> (enable)
Related Commands
show channel
 
 
pwd
Use the pwd command to show the current setting of the cd command.
               pwd [[m/]device:]
Syntax Descripiton
m/             (Optional) Module number of the supervisor engine containing the
                Flash device.
device:        (Optional) Decvice where the Flash resides.
Defaults       
If no module number or devcie is specified,pwd defaults to the first module of the active device.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guilelines
A colon(:) is required after the specified device.
Examples
This example shows how to use the pwd command to display the current listing of the cd command.
Console> cd slot0:
Default flash device set to slot0.
Console> pwd
slot 0
Related Commands
cd

quit
Use the quit command to exit a CLI session.
        quit
       
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Normal.
Usage Guidelines
The exit and logout commands perform the same function as the quit command.
Examples
This example shows how to quit a CLI session.
Console> quit
Connection closed by foreign bost.
host%

reload
Use the reload command to force a module to accept a download via SCP.This command resets the
module and prompt you to initiate a download when the reset is complete.
             reload module
   
Syntax Description 
module         Number of the module.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is used if a module is accidently reset during the downloading of an image.After the
reset,a normal download will not work.You must enter the reload module command followed by the
download host file[mod] command.
Examples
This examples shows how to reset module 3 and download the acpflash_1111.bbi file from the mercury
host to the module:
Console> (enable) reload 3
Console> (enable) download mercury acpflash_111.bbi 3
This command will reset Module 3.
Download image acpflash_111.bbi from mercury to Module 3 FLASH(y/n)[n]? y
/
Done.Finished network download.
Console> (enable)
Related Commands
download

set time
Use the set time command to change the time of day on the system clock.
         set time [day_of_week][mm/dd/yy][hh:mm:ss]
        
Syntax Description
         day_of_week         (Optional)Day of the week.
         mm/dd/yy            (Optional)Month,day and year.
         hh:mm:ss            (Optional)Current time in 24-hour format.
        
Defaults
This command has no defualt setting.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This  example shows how to set the system clock to Saturday,Octorber 31,1998,7:50 a.m:
Console> (enable) set time sat 10/31/98 7:50
Sat Oct 31 1998, 07:50:00
console> (enable)
Related Commands
show time

set trunk
Use the set trunk command to configure trunk port and to add VLANs to the allowed VLAN list for
existig trunks.
      set trunk mod/port {on|off|desirable|auto|nonegotiate}[vlans][isl|dot1q|negotiate]
     
Syntax Description
mod/port     Number of the module and the port on the module.
on           Keyword to force the port to become a trunk port and persuade the neighboring
             port to become a trunk port.The port becomes a trunk port even if the neighboring
             port does not agree to become a trunk.
            
off          Keyword to force the port to become a nontrunk port and persuade the neighboring
             port to become a nontrunk port.The port becomes a nontrunk port even if the
             neighboring port does not agree to become a nontrunk port.
           
desirable    Keyword to cause the port to negotiate actively with the neihgboring port to
             become a trunk link.
            
auto         Keyword to cause the port to become a trunk port if the neighboring port tries to
             negotiabte a trunk link.This is the default mode for EtherChannel ports.
            
nonegotiate  Keyword to force the port to become a trunk port but prevent if from sending DTP
             frames to its neighbor.
            
isl          (Optional) Keyword to specify an ISL trunk on a Fast or Gigabit Ethernet port.
dot1q        (Optional) Keyword to specify an IEEE 802.1Q trunk on a Fast or Gigabit
             Ethernet port.
  
negotiate    (Optional) Keyword to specify that the port become an ISL(preferred)or 802.1Q
              trunk,depending on the configuration and capabilities of the neighboring port.
             
vlans        (Optional) VLANs to add to the list of allowed VLANs on the trunk;valid vaules
              are from 1 to 1000 and 1025 to 4094
             
Defaults
The default port mode is 802.1Q-Native.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is not supported by the NAM.
The following usage guidelines apply when using the set trunk command:
If a trunk-type keyword(isl,dot1q,negotiated)is not specified when configuration an EtherChannel
trunk,the current trunk type is not affected.
To reture a trunk to its default trunk type and mode,enter the clear trunk mod/port command.
Trunking capabilities are hardware-dependent.Refer to the Catalyst 6000 Family Module
Installation Guide to determine the trunking capabilites of you hardwar, or enter the show port
capabilites command.
The Catalyst 6000 family switchs use the DTP to negotiate trunk links automatically on
EtherChannel ports.Whether a port will negotiate to become a trunk port depends on both the mode
and the trunk type specified for that port.Refer to the Catalyst 6000 Family Software Configuration
Guide for detailed information on how trunk ports and negotiated.
DTP is a point-to-point protocol.However,some internetworking devices might improperly
forward DTP frames.You can avoid this problem by ensuring that trunking is turned off on ports
connected to non-Catalyst 6000 family switch devices if you do not intend to trunk across those
links.When enabling trunking on a link to a Cisco router,enter the noneg keyword to cause the
port to become a trunk but not generate DTP frames.
For trunking to be negotiated on EtherChannel ports,the port must be in the same VTP domain.
However,you can use the on or noneg mode to force a port to become a trunk,even if it is in a
different domain.
To remove VLANs from the allowed list for a trunk,enter the clear trunk mod/port vlans
command.When you first configure a port as a trunk,the set trunk command always adds all
VLANs to the allowed VLAN  list for the trunk,even if you specify a VLAN range(the specified
VLAN range is ignored).
To remove VLANs from the allowed list,enter the clear trunk mod/port vlans command.To later
add VLANs that were removed,enter the set trunk mod/port vlans command.
You cannot change the allowed VLAN range on the MSM port.The MSM port can be configured
only as an IEEE 802.1q-type trunk.
The following configuration guidelines and restrictions apply when using 802.1q trunks impose some
limitations on the trunking strategy for a network.Note these restrictions when using 802.1q trunks:
When connecting Cisco switches through an 802.1q trunk,make sure the native VLAN for an
802.1Q trunk is the same on both ends of the trunk link.If the native VLAN on on end of the trunk
is different from the native VLAN on the other end,spanning tree loops might result.
Disabling spanning tree on the native VLAN of an 802.1Q trunk without disabling spanning tree
on every VLAN in the network can cause spanning tree loops.We recommend that you leave
spanning tree enabled on the native VLAN of an 802.1q trunk.If this is not possible,disable
spanning tree on every VLAN in the network.Make sure your network is free of physical loops
before disabling spanning tree.
When you connect two Cisco switches through 802.1Q trunks,the switches exchange spanning-tree
BPDUs on each VLAN allowed on the trunks.The BPDUs on the native VLAN of the trunk are
sent untagged to the reseerved IEEE 802.1d spanning-tree multicast MAC address
(01-80-c2-00-00-00).The BPDUs on all other VLANs on the trunk are sent tagged to the reserved
Cisco Shared Spannin Tree(SSTP) multicast MAC address(01-00-0c-cc-cc-cd).
Non-Cisco 802.1q switches maintain only a single instance of spanning tree (the Mono Spanning
Tree,or MST) that defines the spanning-tree topology for all VLANs,When you connect a Cisco
switch to a non-Cisco switch through an 802.1q trunk,the MST of the non-Cisco switch and the
native VLAN spanning-tree of the Cisco switch combine to form a single spanning-tree topology
known as the Common Spanning Tree (CST).
Because Cisco switches transmit BPDUs to the SSTP multicast MAC address on VLANs other than
the native VLAN of the trunsk,non-Cisco switches do not recognize these frames as BPDUs and
flood them on all ports in the corresponding VLAN.Other Cisco switches connected to the
non-Cisco 802.1q cloud recevie these flooded BPDUs.This allows Cisco switches to maintain a
per-vlan spanning tree topology across a cloud of non-Cisco 802.1q switches.The non-Cisco
802.1q cloud searating the Cisco switches is treated as a single broadcast segment between all
switchs connected to the non-Cisco 802.1q cloud through 802.1q trunks.
Make certain that the native VLAN is the same to ALL of the 802.1q trunks connecting the Cisco
switches to the non-Cisco 802.1q cloud.
If you are connecting multiple Cisco switches to a non-Cisco 802.1q cloud, all of the connections
must be through 802.1q trunks.You cannot connect Cisco switches to a non-Cisco 802.1q cloud
through ISL trunks or through access ports.Doing so will cause the switch to place the ISL trunk
port or access port into the spanning tree "port inconsistent" state and no traffice will pass through
the port.
Examples
This example shows how to set port 2 on module 1 as a trunk port:
Console> (enable) set trunk 2/1 on
Ports 1/2 trunk mode set to on.
Console> (enable)
This example shows how to add VLANs 5 through 50 to the allowed VLAN list for a trunk port (VLANs
were previously removed from the allowed list with the clear trunk command):
Console> (enable) set trunk 1/1 5-50
Adding vlans 5-50 to allowed list.
Ports 1/1 allowed list.
Ports 1/1 allowed vlans modeiied to 1,5-50,101-1005.
Console> (enable)
This example show how to set port 5 on module 4 as an 802.1Q trunk port in desirable mode:
Console> (enable) set trunk 4/5 desirable dot1q
Ports 4/5 trunk mode set to desirable.
Ports 4/5 trunk type set to dot1q.
Console> (enable)
Related Commands
clear trunk
show trunk
set vtp
show vtp statistics

set port name
Use the set port name command to configure a name for a port.
          set port name mod/port [port_name]
         
Synatx Description
mod/port     Number of the module and the port on the module.
port_name    (Optional) Name of the module.
Defaults
The default is no port name is configuration for any port.
Command Type
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is not supported by the NAM.
If you do not specify the name string,the port name is cleared.
Examples
This example shows how to set port 1 on mode 4 Snowy:
Console> (enable) set port name 4/1 Snowy
Port 4/1 name set.
Console> (enable)
Related Commands
show port
 
set errdisable-timeout
Use the set errdisable-timeout command to configure a timeout for ports in errdisable state,after
which the ports are reenabled automatically.
             set errdisable-timeout {enable | disable} {reason}
             set errdisable-timeout interval [interval]

            
Synatx Description
enable       Keyword to enable errdisable timeout.
disable      Keyword to disable errdisable timeout.
reason       Reason for the port being in the errdisable state;vaild values are bpdu-guard,
             channel-misconfig,duplex-mismatch,udld,other and all.
interval     Timeout interval; vaild values are from 30 to 86400 seconds (30 seconds to
             24 hours).
            
Defaults
The default is disable and the interval is 300 seconds.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
The errdisable timeout feature allows you to configure a timeout period for ports in errdisable state.
When this feature is enabled,ports are reenabled automatically after the timeout interval has elapsed.
A port enters errdisable state for the following reasons (these reasons appear as configuration options
with the set errdisable-timeout enable command);
Channel misconfiguration
Duplex mismatch
BPDU port-guard
UDLD
Other(reasons other than the above0
All (apply errdisable timeout to all reasons)
You can enable or disable errdisable timeout for each of the above listed reasons.The ports in errdisable
state for reasons other than the first four reasons are considered"other".If you specify other,all ports
errdisable by causes other than the first four reasons are enable for errdisable timeout.If you specify
"all", all ports errdisable for any reason are enable for errdisable timeout.
Exapmles
This examples shows how to enable an errdisable timeout for BPDU guard causes:
Console> (enable) set errdisable-timeout enable bpdu-gurad
Successfully enabled errdisable-timeout for bpdu-guard.
Console> (enable)
This example shows how to set an errdisable timeout interval to 450 seconds.
Console> (enable) set errdisable-timeout interval 450
Successfully set errdisable timeout to 450 seconds.
Console> (enable)
Related Command
show errdisable-timeout
 

set feature mdg
Use the set feature mdg command to enable or disable the multiple default gateway feature.
        set feautre mdg {enable |disable}
       
Synatx Description
enable      Keyword to enable the multiple default gateway.
disable     Keyword to disable the multiple default gateway.
Default
This command has no default setting.
Command Types
Switch command.
Command Modes
Privilege.
Usage Guidelines
If you enable the multiple default gateway feature,the Catalyst 6000 family switch pings the default
gateways every 10 seconds to verify the gateway are still available.
Example
This example shows how to enable the multiple default gateway feautre.
Console> (enable) set feature mdg enable
Multiple Gateway feature enabled.
Console> (enable)
Console> (enable) set feature mdg disable
Multiple Gateway feature enabled.
Console> (enable)
 
 
set ip alias
Use the set ip alias command to add aliaseds of IP address
       set ip alias name ip_addr
      
Synatx Destription
name       Name of the alias being defined.
ip_ddr     IP address of the alias being defined.