Catalyst 4500 Series Command Reference, 7.5
set logging level through set pvlan

Table Of Contents

set logging level

set logging server

set logging session

set logging telnet

set logging timestamp

set logout

set module disable

set module enable

set module name

set multicast router

set ntp authentication

set ntp broadcastclient

set ntp broadcastdelay

set ntp client

set ntp key

set ntp server

set ntp summertime

set ntp timezone

set password

set port auxiliaryvlan

set port channel

set port debounce

set port disable

set port dot1x

set port duplex

set port enable

set port errdisable-timeout

set port flowcontrol

set port gmrp

set port gvrp

set port host

set port inlinepower

set port lacp-channel

set port level

set port membership

set port name

set port negotiation

set port protocol

set port security

set port speed

set port trap

set port unicast-flood

set power budget

set power dcinput

set prompt

set protocolfilter

set pvlan


set logging level

To set the facility and severity level to be used when system messages are logged, use the set logging level command.

set logging level facility severity [default]

Syntax Description

facility

Value for the type of system messages to capture.
Facility types are shown in Table 2-3.

severity

Value for the severity level of system messages to capture. Severity level definitions are shown in Table 2-4.

default

(Optional) Logging level to apply to all sessions. If default is not used, the specified logging level applies only to the current session.


Table 2-3 Facility Types 

Facility Type
Definition

all

All facilities

cdp

Cisco Discovery Protocol

cops

Common Open Policy Service

dot1x

IEEE 802.1x

dtp

Dynamic Trunking Protocol

dvlan

Dynamic VLAN

earl

Enhanced Address Recognition Logic

filesys

File system

gvrp

GARP VLAN Registration Protocol

ip

Internet Protocol

kernel

Kernel

mcast

Multicast

mgmt

Management

mls

Multilayer Switching

pagp

Port Aggregation Protocol

protfilt

Protocol Filter

pruning

VTP pruning

qos

Quality of Service

radius

Remote Access Dial-In User Service

security

Security

snmp

Simple Network Management Protocol

spantree

Spanning Tree Protocol

sys

System

tac

Terminal Access Controller

tcp

Transmission Control Protocol

telnet

Terminal Emulation Protocol

tftp

Trivial File Transfer Protocol

udld

User Datagram Protocol

vtp

Virtual Terminal Protocol


Table 2-4 Severity Level Definitions

Severity Level
Severity Type
Description

0

Emergencies

System unusable

1

Alerts

Immediate action required

2

Critical

Critical condition

3

Errors

Error conditions

4

Warnings

Warning conditions

5

Notifications

Normal bug significant condition

6

Informational

Informational messages

7

Debugging

Debugging messages


Defaults

The defaults are shown in the following table:

Configuration Parameter
Default Setting

system message logging to the console

enabled

system message logging to Telnet sessions

enabled

logging server

disabled

syslog server

unconfigured

server facility

LOCAL7

server severity

Warnings (4)

logging buffer

500

logging history size

1

timestamp option

disabled

facility/severity level for system messages

sys/5
dtp/5
pagp/5
mgmt/5
mls/5
all other facilities/2


Command Types

Switch command

Command Modes

Privileged

Usage Guidelines

You can also set the logging level by using the set logging server command.

If you do not use the default keyword, the specified logging level applies only to the current session.

Examples

This example shows how to set the default system message logging severity level for the SNMP facility:

Console> (enable) set logging level snmp 2 default
System logging facility <snmp> set to severity 2(critical).
Console> (enable)

Related Commands

show logging
show logging buffer

set logging server

To enable or disable system message logging to configured syslog servers and to add a syslog server to the system logging server table, use the set logging server command.

set logging server {enable | disable}

set logging server ip_addr

set logging server facility server_facility_parameter

set logging server severity server_severity_level

Syntax Description

enable

Enables system message logging to configured syslog servers.

disable

Disables system message logging to configured syslog servers.

ip_addr

IP address of the syslog server to be added to the configuration. An IP alias or a host name that can be resolved through DNS can also be used.

facility

Type of system messages to capture.

server_facility_parameter

Logging facility of syslog server; valid values are local0, local1, local2, local3, local4, local5, local6, local7, and syslog.

severity

Sets the severity level of system messages to capture.

server_severity_level

Severity level of system messages to capture; valid values are from 0 to 7. Severity level definitions are shown in Table 2-4.


Defaults

No syslog servers are configured to receive system messages.

Command Types

Switch command

Command Modes

Privileged

Examples

This example shows how to enable system message logging to the console:

Console> (enable) set logging server enable
System logging messages will be sent to the configured syslog servers.
Console> (enable)

This example shows how to add a syslog server to the system logging server table:

Console> (enable) set logging server 192.168.255.255
192.168.255.255 added to the System logging server table.
Console> (enable)

This example shows how to set the syslog server facility to local7:

Console> (enable) set logging server facility local7
System logging server facility set to <local7>
Console> (enable) 

This example shows how to set the syslog server severity level to 4:

Console> (enable) set logging server severity 4
System logging server severity set to <4>
Console> (enable) 

This example shows how to set the syslog history table size to 400:

Console> (enable) set logging history 400 
System logging history table size set to <400>
Console> (enable) 

Related Commands

clear logging server
show logging

set logging session

To enable or disable the sending of system logging messages to the current login session, use the set logging session command.

set logging session {enable | disable}

Syntax Description

enable

Enables the sending of system logging messages to the current login session.

disable

Disables the sending of system logging messages to the current login session.


Defaults

Enabled

Command Types

Switch command

Command Modes

Privileged

Examples

This example shows how to prevent system logging messages from being sent to the current login session:

Console> (enable) set logging session disable
System logging messages will not be sent to the current login session.
Console> (enable)

This example shows how to cause system logging messages to be sent to the current login session:

Console> (enable) set logging session enable
System logging messages will be sent to the current login session.
Console> (enable)

Related Commands

set logging buffer
set logging level
show logging
show logging buffer

set logging telnet

To enable or disable logging on Telnet sessions, use the set logging telnet command.

set logging telnet {enable | disable}

Syntax Description

enable

Enables logging on Telnet sessions.

disable

Disables logging on Telnet sessions.


Defaults

Enabled

Command Types

Switch command

Command Modes

Privileged

Examples

This example shows how to allow system logging messages to be sent to new Telnet sessions:

Console> (enable) set logging telnet enable 
System logging messages will be sent to the new telnet sessions.
Console> (enable) 

This example shows how to prevent system logging messages from being sent to new Telnet sessions:

Console> (enable) set logging telnet disable 
System logging messages will not be sent to the new telnet sessions.
Console> (enable)

Related Commands

set logging console
set logging history
show logging
show logging buffer

set logging timestamp

To enable or disable the timestamp display on system logging messages, use the set logging timestamp command.

set logging timestamp {enable | disable}

Syntax Description

enable

Enables the timestamp display.

disable

Disables the timestamp display.


Defaults

Enabled

Command Types

Switch command

Command Modes

Privileged

Examples

This example shows how to enable the timestamp display:

Console> (enable) set logging timestamp enable
System logging messages timestamp will be enabled.
Console> (enable)

This example shows how to disable the timestamp display:

Console> (enable) set logging timestamp disable
System logging messages timestamp will be disabled.
Console> (enable) 

Related Commands

show logging

set logout

To specify the number of minutes the system waits before automatically disconnecting an idle session, use the set logout command.

set logout timeout

Syntax Description

timeout

Number of minutes until the system disconnects an idle session automatically; valid values are from 0 to 10000. Setting the value to zero (0) disables the automatic disconnection of idle sessions.


Defaults

20 minutes

Command Types

Switch command

Command Modes

Privileged

Examples

This example shows how to set the number of minutes until the system disconnects an idle session automatically:

Console> (enable) set logout 20
Sessions will be automatically logged out after 20 minutes of idle time.
Console> (enable)

This example shows how to disable the automatic disconnection of idle sessions:

Console> (enable) set logout 0
Sessions will not be automatically logged out.
Console> (enable)

set module disable

To disable a module, use the set module disable command.

set module disable mod

Syntax Description

mod

Module number.


Defaults

All modules are enabled.

Command Types

Switch command

Command Modes

Privileged

Usage Guidelines

Avoid disabling a module when you are connected through a Telnet session; if you disable the module that contains the port through which your Telnet session was established, you will disconnect your Telnet session.

If there are no other network connections to the switch, you must connect to the switch through the console port to reenable the module.

You can specify a series of modules by entering a comma between each module number (for example, 2,3,5). You can specify a range of modules by entering a hyphen between module numbers
(for example, 2-5).

Examples

This example shows how to disable module 3 when connected through the console port:

Console> (enable) set module disable 3
Module 3 disabled.
Console> (enable)

This example shows how to disable module 2 when connected through a Telnet session:

Console> (enable) set module disable 2
This command may disconnect your telnet session.
Do you want to continue (y/n) [n]? y
Module 2 disabled.
Console> (enable)

Related Commands

set module enable
show module

set module enable

To enable a module, use the set module enable command.

set module enable mod

Syntax Description

mod

Module number.


Defaults

All modules are enabled.

Command Types

Switch command

Command Modes

Privileged

Usage Guidelines

If an individual port on a module was previously disabled, enabling the module does not enable the disabled port.

Examples

This example shows how to enable module 2:

Console> (enable) set module enable 2
Module 2 enabled.
Console> (enable)

Related Commands

set module disable
show module

set module name

To set the name for a module, use the set module name command.

set module name mod [mod_name]

Syntax Description

mod

Module number.

mod_name

(Optional) Specifies a name to assign to the module.


Defaults

No module names are configured.

Command Types

Switch command

Command Modes

Privileged

Usage Guidelines

If you do not specify a mod_name value, any previously specified name is cleared.

Module names configured using the set module name command are displayed in the output of the show module command and other commands.

Examples

This example shows how to set Supervisor as the name for module 1:

Console> (enable) set module name 1 Supervisor
Module name set.
Console> (enable)

Related Commands

show module

set multicast router

To manually configure a port as a multicast router port, use the set multicast router command.

set multicast router mod/port

Syntax Description

mod/port

Number of the module and the port.


Defaults

No ports are configured as multicast router ports.

Command Types

Switch command

Command Modes

Privileged

Usage Guidelines

When you enable CGMP or IGMP snooping, the ports to which a multicast-capable router is attached are identified automatically. The set multicast router command allows you to configure multicast router ports statically.

Examples

This example shows how to manually configure module 3 port 1 as a multicast router port:

Console> (enable) set multicast router 3/1
Port 3/1 added to multicast router port list.
Console> (enable)

Related Commands

clear multicast router
set cgmp
show multicast group count
show multicast router

set ntp authentication

To enable or disable the Network Time Protocol (NTP) authentication feature, use the set ntp authentication command.

set ntp authentication {enable | disable}

Syntax Description

enable

Enables NTP authentication.

disable

Disables NTP authentication.


Defaults

Enabled

Command Types

Switch command

Command Modes

Privileged

Examples

This example shows how to enable NTP authentication:

Console> (enable) set ntp authentication enable
NTP authentication feature enabled.
At least one trusted key must be set for NTP to work.
Console> (enable) 

This example shows how to disable NTP authentication:

Console> (enable) set ntp authentication disable
NTP authentication feature disabled.
Console> (enable) 

Related Commands

show ntp

set ntp broadcastclient

To enable or disable Network Time Protocol (NTP) broadcast-client mode, use the set ntp broadcastclient command.

set ntp broadcastclient {enable | disable}

Syntax Description

enable

Enables NTP broadcast-client mode.

disable

Disables NTP broadcast-client mode.


Defaults

Disabled

Command Types

Switch command

Command Modes

Privileged

Usage Guidelines

You can configure NTP in either broadcast-client mode or client mode. The broadcast-client mode assumes that a broadcast server, such as a router, sends time-of-day information regularly to the switch.

Examples

This example shows how to enable NTP broadcast client:

Console> (enable) set ntp broadcastclient enable
NTP Broadcast Client mode enabled.
Console> (enable)

This example shows how to disable NTP broadcast client:

Console> (enable) set ntp broadcastclient disable
NTP Broadcast Client mode disabled.
Console> (enable)

Related Commands

show ntp

set ntp broadcastdelay

To configure a time-adjustment factor so the switch can receive broadcast packets, use the set ntp broadcastdelay command.

set ntp broadcastdelay microseconds

Syntax Description

microseconds

Estimated round-trip time, in microseconds, for Network Time Protocol (NTP) broadcasts; valid values are from 1 to 999999.


Defaults

NTP broadcast delay is set to 3000 microseconds.

Command Types

Switch command

Command Modes

Privileged

Examples

This example shows how to set the NTP broadcast delay to 4000 microseconds (4 seconds):

Console> (enable) set ntp broadcastdelay 4000
NTP broadcast delay set to 4000 microseconds.
Console> (enable)

Related Commands

show ntp

set ntp client

To enable or disable the switch as a Network Time Protocol (NTP) client, use the set ntp client command.

set ntp client {enable | disable}

Syntax Description

enable

Enables the NTP client.

disable

Disables the NTP client.


Defaults

Disabled

Command Types

Switch command

Command Modes

Privileged

Usage Guidelines

You can configure NTP in either broadcast-client mode or client mode. The client mode assumes that the client switch regularly sends time-of-day requests 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 key

To define an Network Time Protocol (NTP) authentication key pair or to specify a key to be trusted or untrusted, use the set ntp key command.

set ntp key public_keynum {trusted | untrusted} [md5 secret_keystring]

Syntax Description

public_keynum

Number of the key pair; valid values are from 1 to 4,292,945,295.

trusted

Trusted key mode.

untrusted

Untrusted key mode.

md5

(Optional) Sets the keystring of the key pair.

secret_keystring

(Optional) Key string; valid values are from 1 to 32 printable characters.


Defaults

This command has no default settings.

Command Types

Switch command

Command Modes

Privileged

Usage Guidelines

If you enter the set ntp key command without the md5 keyword, the trusted or untrusted mode of the key will change after it is entered into the key table. Enter the set ntp key command with the md5 keyword to enter an authentication key pair into the system.

Examples

This example shows how to define an NTP authentication key:

Console> (enable) set ntp key 435 trusted md5 have_a_good_day
NTP key 435 added.
Console> (enable) 

This example shows how to trust an NTP key:

Console> (enable) set ntp key 435 trusted
NTP key 435 configured to be trusted.
Console> (enable) 

This example shows how to untrust an NTP key:

Console> (enable) set ntp key 9999 untrusted
NTP key 9999 configured not to be trusted.
Console> (enable) 

Related Commands

clear ntp key
show ntp

set ntp server

To specify the Network Time Protocol (NTP) server address and to configure an NTP server authentication key, use the set ntp server command.

set ntp server ip_addr [key public_keynum]

Syntax Description

ip_addr

IP address of the NTP server.

key

(Optional) Key number.

public_keynum

(Optional) Number of the key pair; valid values are from 1 to 4,292,945,295.


Defaults

This command has no default settings.

Command Types

Switch command

Command Modes

Privileged

Usage Guidelines

If you enter the set ntp server command without specifying the key keyword, and the authentication feature is enabled, the following message is displayed:

A trusted key may be required to communicate with this server.

Examples

This example shows how to configure an NTP server:

Console> (enable) set ntp server 172.20.52.3
NTP server 172.20.52.3 added
Console> (enable)

This example shows how to configure an NTP server with a key:

Console> (enable) set ntp server 111.222.111.222 key 879
NTP server 111.222.111.222 with key 879 added
Console> (enable) 

This example shows how to assign a new key to an NTP server:

Console> (enable) set ntp server 111.222.111.222 key 4323423
NTP server 111.222.111.222 has been updated with key 4323423
Console> (enable) 

Related Commands

clear ntp server
show ntp

set ntp summertime

To specify whether the system should set the clock ahead one hour to accommodate daylight saving time, use the set ntp summertime command.

set ntp summertime {enable | disable} [zone]

set ntp summertime recurring {week day month hh:mm} [offset]

set ntp summertime date {month date year hh:mm} [offset]

Syntax Description

enable

Sets the clock ahead one hour to accommodate daylight saving time.

disable

Prevents the system from setting the clock ahead one hour during daylight saving time.

zone

(Optional) Time zone used by the set summertime command.

recurring

Summertime dates that recur every year.

week

Week of the month; valid values are first, second, third, fourth, last, 1, 2, 3, 4, and 5.

day

Day of the week; valid values are sunday, monday, tuesday, wednesday, thursday, friday, and saturday.

month

Month of the year; valid values are january, february, march, and so on.

hh:mm

Hours and minutes.

offset

(Optional) Offset in minutes; valid values are from
1 to 1440 minutes.

date

Daylight savings begins and ends on a particular, nonrecurring date.

date

Day of the month; valid values are from 1 to 31.

year

Year; valid values are from 1993 to 2035.


Defaults

Disabled


Note When the command is enabled, the default for offset is 60 minutes, following U.S. standards.


Command Types

Switch command

Command Modes

Privileged

Usage Guidelines

After you enter the clear config command, the dates and times return to default (US summertime).

Unless you configure it otherwise, this command advances the clock one hour at 2:00 a.m. on the first Sunday in April and moves the clock back one hour at 2:00 a.m. on the last Sunday in October.

Examples

This example shows how to configure the system to set the clock ahead one hour for daylight saving time to Pacific daylight time (PDT):

Console> (enable) set ntp summertime enable PDT
Summertime is enabled and set to "PDT".
Console> (enable)

This example shows how to prevent the system from setting the clock ahead one hour for daylight saving time:

Console> (enable) set ntp summertime disable
Summertime disabled.
Console> (enable)

This example shows how to set daylight saving time to repeat every year, starting from the third Monday of February at noon and ending at the second Saturday of August at 3:00 p.m., with an offset of 30 minutes:

Console> (enable) set ntp summertime recurring 3 mon feb 12:00 2 saturday aug 15:00 30
Summertime is disabled and set to ''
  Start : Mon Feb 19 2001, 12:00:00
  End   : Sat Aug 11 2001, 15:00:00
  Offset: 30 minutes
  Recurring: yes, starting at 12:00pm of third Monday of February and ending on
15:00pm of second Saturday of August. 
Console> (enable)

This example shows how to set daylight saving time to start on January 29, 1999, at 2:00 a.m. and end on August 19, 2004, at 3:00 p.m., with an offset of 30 minutes:

Console> (enable) set ntp summertime date jan 29 1999 02:00 aug 19 2004 15:00 30 
Summertime is disabled and set to ''
Start : Fri Jan 29 1999, 02:00:00
End   : Thu Aug 19 2004, 15:00:00
Offset: 30 minutes
Recurring: no
Console> (enable) 

This example shows how to set recurring to default to the standard US daylight savings:

Console> (enable) set ntp summertime recurring 3 mon feb 2:00 4 thurs oct 2:00 60
Summertime is disabled and set to ''
  Start : Mon Feb 19 2001, 02:00:00
  End   : Thu Oct 25 2001, 02:00:00
  Offset: 60 minutes
  Recurring: yes, starting at 02:00am of third Monday of February and ending on
02:00am of fourth Thursday of October. 
Console> (enable) 

Related Commands

show ntp

set ntp timezone

To configure the time offset from Greenwich Mean Time, use the set ntp timezone command.

set ntp timezone [zone_name] [hours [minutes]]

Syntax Description

zone_name

Name of the timezone.

hours

(Optional) Time offset (in hours) from Greenwich Mean Time; valid values are from -12 to 12 hours.

minutes

(Optional) Time offset (in minutes) from Greenwich Mean Time; valid values are from 0 to 59 minutes.


Defaults

This command has no default settings.

Command Types

Switch command

Command Modes

Privileged

Usage Guidelines

The set ntp timezone command is effective only when NTP is running. If you set the time explicitly and NTP is disengaged, the set ntp timezone command has no effect. If you have enabled NTP and have not entered the set timezone command, the Catalyst 4000 family switch displays UTC by default.

Examples

This example shows how to set the time zone to Pacific Standard Time, with an offset of minus 8 hours from UTC:

Console> (enable) set ntp timezone PST -8
Timezone set to "PST", offset from UTC is -8 hours.
Console> (enable)

Related Commands

clear ntp timezone
show ntp

set password

To change the Normal (login) mode password on the switch, use the set password command.

set password

Syntax Description

This command has no arguments or keywords.

Defaults

No password is configured.

Command Types

Switch command

Command Modes

Privileged

Usage Guidelines

Passwords are case sensitive; they can be from 0 to 30 characters in length, including spaces.

The command prompts you for the old password. If the password you enter is valid, 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 the Normal (login) mode password:

Console> (enable) set password
Enter old password: <old_password>
Enter new password: <new_password>
Retype new password: <new_password>
Password changed.
Console> (enable)

Related Commands

set enablepass

set port auxiliaryvlan

To configure the auxiliary VLAN ports, use the set port auxiliaryvlan command.

set port auxiliaryvlan mod [/ports] {vlan | untagged | none}

Syntax Description

mod [/ports]

Number of the module and (optional) ports.

vlan

Number of the VLAN; valid values are from 1 to 1000.

untagged

Port sends untagged packets.

none

Port does not send any auxiliary VLAN information in the CDP packets from that port.


Defaults

Auxiliary VLAN ports are set to none.

Command Types

Switch command

Command Modes

Privileged

Usage Guidelines

If you do not specify a port, all ports are selected.

The vlan option specifies that the connected device send packets tagged with a specific VLAN.

Dynamic VLAN support for VVID includes these restrictions to the following configuration of MVAP on the switch port:

You can configure any VVID on a dynamic port including dot1p and untagged, except when the VVID is equal to untagged. If this is the case, you must configure VMPS with the MAC address of the IP phone. When you configure the VVID as untagged on a dynamic port, the following warning message is displayed:

 VMPS should be configured with the IP phone mac's.

You cannot change the VVID of the port equal to PVID assigned by the VMPS for the dynamic port.

You cannot configure trunk ports as dynamic ports, but an MVAP can be configured as a dynamic port.

Examples

This example shows how to set the auxiliary VLAN port to untagged:

Console> (enable) set port auxiliaryvlan 3/7 untagged
Port 3/7 allows the connected device send and receive untagged packets and without 802.1p 
priority.
Console> (enable)

This example shows how to set the auxiliary VLAN port to none:

Console> (enable) set port auxiliaryvlan 3/12 none 
Port 3/12 will not allow sending CDP packets with AuxiliaryVlan information.
Console> (enable)

This example shows how to set the auxiliary VLAN port to a specific module, port, and VLAN:

Console> (enable) set port auxiliaryvlan 2/1-3 222 
Auxiliaryvlan 222 configuration successful.
AuxiliaryVlan AuxVlanStatus Mod/Ports
------------- ------------- -------------------------
222           active        1/2,2/1-3
Console> (enable)

Related CommandsConsole> (enable)

show port auxiliaryvlan

set port channel

To configure EtherChannel on Ethernet module ports, use the set port channel command set.

set port channel mod/port [admin_group]

set port channel mod/port mode {on | off | desirable | auto} [silent | non-silent]

set port channel all mode off

set port channel all distribution mac [both]

Syntax Description

mod/port

Number of the module and the port on the module.

admin_group

(Optional) Number of administrative group; valid values are from 1 to 1024.

mode

EtherChannel mode.

on

Forces the specified ports to channel without PAgP.

off

Prevents ports from channeling.

desirable

Sets 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

Sets a PAgP mode that places a port into a passive negotiating state, in which the port responds to PAgP packets it receives, but does not initiate PAgP packet negotiation.

silent

(Optional) Used 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) Used with auto or desirable when traffic is expected from the other device.

all mode off

Turns off channeling on all ports.

all distribution

Applies frame distribution to all ports in the switch.

mac

Frame distribution method using MAC address values.

both

(Optional) Frame distribution method using source and destination address values.


Defaults

The default settings are as follows:

EtherChannel is set to auto and silent on all module ports.

Frame distribution are mac and both.

Command Types

Switch command

Command Modes

Privileged

Usage Guidelines

Ensure that all ports you intend to channel are configured properly. For complete information on EtherChannel configuration restrictions, refer to the Software Configuration Guide-Catalyst 4000 Family, Catalyst 2948G, and Catalyst 2980G Switches.

Because of the port ID handling by the spanning tree feature, the maximum supported number of channels is 126 for a 6-slot chassis.

Administrative groups specify which ports can form an EtherChannel together. An administrative group can contain a maximum of eight ports. However, administrative group membership is restricted by hardware capabilities. Use the show port capabilities command to determine which ports can form a channel together.

On the Catalyst 4000 family switches, an EtherChannel bundle can consist of any two to eight ports. Ports in an EtherChannel do not have to be contiguous, nor do they have to be on the same module.

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 capabilities.

Disable the port security feature on the channeled ports (see the set port security command). If you enable port security for a channeled port, the port shuts down when it receives packets with source addresses that do not match the secure address of the port.

You can configure 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 if desirable or auto modes are entered.

If you do not specify silent or non-silent, the current setting is not affected.

To support jumbo frames, channeling ports need to have the same jumbo frame setting on each port.

Examples

This example shows how to create an EtherChannel on ports 5 and 6 of module 4:

Console> (enable) set port channel 4/5-6 on
Port(s) 4/5-6 are assigned to admin group 56.
Port(s) 4/5-6 channel mode set to on.
Console> (enable)

This example shows how to remove an EtherChannel on ports 5 and 6 of module 4:

Console> (enable) set port channel 4/5-6 mode auto
Port(s) 4/5-6 channel mode set to auto.
Console> (enable) show port channel

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 to 6:

Console> (enable) set port channel 4/4-6 mode off
Port(s) 4/4-6 channel mode set to off.
Console> (enable) 

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 module 4, ports 4 to 6 to admin group 96:

Console> (enable) set port channel 4/4-6 96
Port(s) 4/1-3 are moved to admin group 97.
Port(s) 4/4-6 are assigned to admin group 96.
Console> (enable) 

This example shows how to set the channel mode to off for module 4, ports 4 to 6 and assign those ports to an automatically selected admin group:

Console> (enable) set port channel 4/4-6 off
Port(s) 4/4-6 channel mode set to off.
Port(s) 4/4-6 are assigned to admin group 23.
Console> (enable) 

Related Commands

set channel cost
set channel vlancost
show channel
show channel group
show port channel

set port debounce

To enable or disable the debounce timer setting on a per port basis, use the set port debounce command.

set port debounce mod/port {enable | disable}

Syntax Description

mod/port

Number of the module and the port on the module.

enable

Enables the debounce timer.

disable

Disables the debounce timer.


Defaults

Debounce timer is disabled on all ports.

Command Types

Switch command

Command Modes

Privileged

Usage Guidelines

The debounce timer is the time the firmware waits before notifying the main processor for the supervisor engine of a link change at the physical layer.

Examples

This example shows how to enable the debounce timer for a specific port on a specific module:

Console> (enable) set port debounce 1/1 enable
Debounce is enabled on port 1/1.
Warning:Enabling port debounce causes Link Up/Down detections to be delayed.
It results in loss of data traffic during debouncing period, which might
affect the convergence/reconvergence of various Layer 2 and Layer 3
protocols.
Use with caution.
Console> (enable)

Related Commands

show port debounce

set port disable

To disable a port or a range of ports, use the set port disable command.

set port disable mod/port

Syntax Description

mod/port

Number of the module and the port on the module.


Defaults

All ports are enabled.

Command Types

Switch command

Command Modes

Privileged

Usage Guidelines

This command is not supported by the Access Gateway module.

Examples

This example shows how to disable port 5/10:

Console> (enable) set port disable 5/10
Port 5/10 disabled.
Console> (enable) 

Related Commands

set port enable
show port

set port dot1x

To configure dot1x on a port, use the set port dot1x command set.

set port dot1x mod/port multiple-host {enable | disable}

set port dot1x mod/port {port-control port_control_value}

set port dot1x mod/port {initialize | re-authenticate