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

Table of Contents

set vtp pruneeligible
show alias
show arp
show authentication
show boot
show cam
show cam agingtime
show cdp
show channel
show channel group
show config

set vtp pruneeligible

Use the set vtp pruneeligible command to specify which VTP domain VLANs are pruning eligible.

set vtp pruneeligible vlan_range
Syntax Description

vlan_range

Range of VLAN numbers.

Default

The default is VLANs 2 through 1000 are eligible for pruning.

Command Type

Switch command.

Command Mode

Privileged.

Usage Guidelines

VTP pruning causes information about each pruning-eligible VLAN to be removed from VTP updates if there are no stations belonging to that VLAN out a particular switch port. Use the set vtp command to enable VTP pruning.

By default, VLANs 2 through 1000 are pruning eligible. You do not need to use the set vtp pruneeligible command unless you have previously used the clear vtp pruneeligible command to make some VLANs pruning ineligible. If VLANs have been made pruning ineligible, use the set vtp pruneeligible command to make them pruning eligible again.

Examples

This example shows how to configure pruning eligibility for VLANs 120 and 150:

Console> (enable) set vtp pruneeligible 120,150
Vlans 120,150 eligible for pruning on this device.
VTP domain nada modified.
Console> (enable)
 

In this example, VLANs 200-500 were made pruning ineligible using the clear vtp pruneeligible command. This example shows how to make VLANs 220 through 320 pruning eligible again:

Console> (enable) set vtp pruneeligible 220-320
Vlans 2-199,220-320,501-1000 eligible for pruning on this device.
VTP domain Company modified.
Console> (enable)
Related Commands

show vtp domain
set vlan
clear vtp pruneeligible

show alias

Use the show alias command to display a listing of defined command aliases.

show alias [name]
Syntax Description

name

(Optional) Name of the alias to be displayed. If name is not specified, all defined aliases are displayed.

Default

This command has no default setting.

Command Type

Switch command.

Command Mode

Normal.

Example

This example shows how to display all aliases:

Console> show alias
shint           show interface
cc              clear config
shf             show flash
sip             show ip route
Console> 
Related Commands

clear alias
set alias

show arp

Use the show arp command to display the ARP table.

show arp [ip_addr | hostname][noalias]
Syntax Description

ip_addr

(Optional) Number of the IP address.

hostname

(Optional) Name of the host.

noalias

(Optional) Keyword to force the display to show only IP addresses, not IP aliases.

Default

This command has no default setting.

Command Type

Switch command.

Command Mode

Normal.

Usage Guidelines

ARP aging time is the period of time that indicates when an ARP entry is removed from the ARP table. Set this value by entering the set arp agingtime command. The remaining lines of the display show the mappings of IP addresses (or IP aliases) to MAC addresses.

Use the ip_addr or the hostname options to specify a specific IP host when the ARP cache is large.

Example

This example shows how to display the ARP table:

Console> show arp
ARP Aging time = 1200 sec
198.133.219.209 at 00-40-0b-40-cc-31
198.133.219.40  at 08-00-20-08-f1-ac
Console>
Related Commands

clear arp
set arp

show authentication

Use the show authentication command to display authentication information.

show authentication
Syntax Description

This command has no arguments or keywords.

Default

This command has no default setting.

Command Type

Switch command.

Command Mode

Normal.

Example

After entering the show authentication command, you see this display:

Console> show authentication
Console Session   Telnet Session
Login Authentication:
---------------------  ----------------  -----------------
tacacs                 disabled          disabled
local                  enabled(primary)  enabled(primary)
Enable Authentication:
---------------------- -----------------  ---------------
tacacs                 disabled          disabled
local                  enabled(primary)  enabled(primary)
Console> 
 

show boot

Use the show boot command to display the contents of the BOOT environment variables and the configuration register setting.

show boot [mod_num]
Syntax Description

mod_num

(Optional) Module number of the supervisor engine containing the Flash device.

Default

This command has no default setting.

Command Type

Switch command.

Command Mode

Normal.

Example

This example shows how to use the show boot command:

Console> show boot
BOOT variable =
 
Configuration register is 0x10F
ignore-config: disabled
console baud: 9600
boot: the ROM monitor 
Console>
Related Commands

set boot config-register
set boot system flash

show cam

Use the show cam command to display the CAM table.

show cam [count]{dynamic | static | permanent | system} [vlan]
show cam {dynamic | static | permanent} mod_num | port_num
show cam mac_addr [vlan]
Syntax Description

count

(Optional) Keyword to display only the number of CAM entries.

dynamic

Keyword to display dynamic CAM entries.

static

Keyword to display static CAM entries.

permanent

Keyword to display permanent CAM entries.

system

Keyword to display system CAM entries.

vlan

(Optional) Number of the VLAN. If a VLAN is not specified, all VLANs are displayed.

mod_num

Number of the module.

port_num

Number of the port.

mac_addr

MAC address.

Default

This command has no default setting.

Command Type

Switch command.

Command Mode

Normal.

Examples

This example shows how to display dynamic CAM entries for all VLANs:

Console> show cam dynamic
* = Static Entry. + = Permanent Entry. # = System Entry. R = Router Entry.
 
VLAN  Dest MAC/Route Des  Destination Ports or VCs / [Protocol Type]
----  ------------------  ----------------------------------------------------
1     00-60-5c-86-5b-81   4/1 [ALL]
1     00-60-2f-35-48-17   4/1 [ALL]
1     00-80-24-f3-47-20 1/2 [ALL]
1     00-60-09-78-96-fb 4/1 [ALL]
1     00-80-24-1d-d9-ed 1/2 [ALL]
1     00-80-24-1d-da-01 1/2 [ALL]
1     08-00-20-7a-63-01 4/1 [ALL]
 
Total Matching CAM Entries Displayed = 7
Console> 
 

This example shows routers listed as the CAM entries. If the MAC address belongs to a router, it is shown by appending an "R" to the MAC address. If a VLAN is specified, then only those CAM entries matching the VLAN number are displayed.

Console> show cam 00-00-81-01-23-45
* = Static Entry. + = Permanent Entry. # = System Entry. R = Router Entry
 
Router Watergate with IP address 172.25.55.1 has CAM entries:
VLAN  Dest MAC/Route Des  Destination Ports or VCs
----  ------------------  ----------------------------------------------------
100-00-81-01-23-45R2/9 [IP]
200-00-81-01-23-45R2/10 [IP]
Total Matching CAM Entries = 2
Console>
Related Commands

clear cam
set cam
show config
show cam agingtime

show cam agingtime

Use the show cam agingtime command to display CAM aging time information for all configured VLANs.

show cam agingtime
Syntax Description

This command has no arguments or keywords.

Default

This command has no default setting.

Command Type

Switch command.

Command Mode

Normal.

Example

This example shows how to display CAM aging time information:

Console> show cam agingtime
VLAN   1 aging time = 300 sec
VLAN   3 aging time = 300 sec
VLAN   5 aging time = 300 sec
VLAN   9 aging time = 300 sec
VLAN 100 aging time = 300 sec
VLAN 200 aging time = 300 sec
VLAN 201 aging time = 300 sec
VLAN 202 aging time = 300 sec
VLAN 203 aging time = 300 sec
Console> 
Related Commands

clear cam
set cam
show cam

show cdp

Use the show cdp command to display CDP information.

show cdp
show cdp neighbors
[mod_num] [vlan | duplex | capabilities | detail]
show cdp neighbors [mod_num/port_num] [vlan | duplex | capabilities | detail]
show cdp port [mod_num]
show cdp port [mod_num/port_num]
Syntax Description

neighbors

Keyword to show CDP information for Cisco products connected to the switch.

mod_num

(Optional) Number of the module for which CDP information is displayed. If no module number is specified, CDP information for the entire switch is displayed.

vlan

(Optional) Keyword to show the native VLAN number for the neighboring Cisco products.

duplex

(Optional) Keyword to show duplex type of the neighboring Cisco products.

capabilities

(Optional) Keyword to show the capability codes for the neighboring Cisco products; valid values are R, T, B, S, H, I, r (R=Router, T=Trans Bridge, B=Source Route Bridge, S=Switch, H=Host, I=IGMP, and r=Repeater).

detail

(Optional) Keyword to show detailed information about neighboring Cisco products.

/port_num

(Optional) Number of the port for which CDP information is displayed.

port

Keyword to show CDP port settings.

Default

This command has no default setting.

Command Type

Switch command.

Command Mode

Normal.

Examples

This example shows how to display CDP information for the system:

Console> show cdp
CDP               :enabled
Message Interval  :60
Hold Time         :180
 

This example shows how to display detailed CDP neighbor information. The display varies depending on your network configuration at the time you run the command.

Console> show cdp neighbors 4 detail
Device-ID:066506245
Device Addresses:
  IP Address:172.01.02.03
Holdtime:175 sec
Capabilities:TRANSPARENT_BRIDGE SR_BRIDGE SWITCH 
Version:
WS-C6000 Software, Version NmpSW: 6.1(0.1)
Copyright (c) 1995-1998 by cat12-lnf 172.20.25.135
Platform:WS-C6000
Port-ID (Port on Device):1/1
Port (Our Port):1/1     
VTP Management Domain:mydomain
Native VLAN:1
Duplex:half
Console> 
 

This example shows how to display CDP information about neighboring systems:

Console> show cdp neighbors
* - indicates vlan mismatch.
# - indicates duplex mismatch.
 
Port     Device-ID                       Port-ID                   Platform
-------- ------------------------------- ------------------------- ------------
3/5      002267619                       3/6 *                     WS-C5000  
3/6      002267619                       3/5                       WS-C5000
4/1      002267619                       4/2                       WS-C5000
4/2      002267619                       4/1 #                     WS-C5000
4/20     069000057                       8/5                       WS-C5500
5/1      005763872                       2/1                       WS-C5000
5/1      066506245                       2/1                       WS-C5505
5/1      066508595                       5/12 *#                   WS-C5505
5/1      066508596                       5/1                       WS-C5505
Console> 
 

This example shows how to display VLAN information about neighboring systems:

Console> show cdp vlan
* - indicates vlan mismatch.
# - indicates duplex mismatch.
 
Port     Device-ID                       Port-ID                   NativeVLAN 
-------- ------------------------------- ------------------------- ----------
3/5      002267619                       3/6 *                     1
3/6      002267619                       3/5                       1
4/1      002267619                       4/2                       1
4/2      002267619                       4/1 #                     1
4/20     069000057                       8/5                       -
5/1      005763872                       2/1                       -
5/1      066506245                       2/1                       -
5/1      066508595                       5/12 *#                   1
5/1      066508596                       5/1                       1
Console> 
 

This example shows how to display duplex information about neighboring systems:

Console> show cdp neighbors duplex 
* - indicates vlan mismatch.
# - indicates duplex mismatch.
 
Port     Device-ID                       Port-ID                   Duplex
-------- ------------------------------- ------------------------- ------
3/5      002267619                       3/6 *                     half
3/6      002267619                       3/5                       half
4/1      002267619                       4/2                       full
4/2      002267619                       4/1 #                     full
4/20     069000057                       8/5                       -
5/1      005763872                       2/1                       -
5/1      066506245                       2/1                       -
5/1      066508595                       5/12 *#                   half
5/1      066508596                       5/1                       half
Console> 
 

This example shows how to display capability information about neighboring systems:

Console> show cdp neighbors capabilities
* - indicates vlan mismatch.
# - indicates duplex mismatch.
                                                                   
Port     Device-ID                       Port-ID                   Capabilities
-------- ------------------------------- ------------------------- ------------
3/5      002267619                       3/6 *                     T S
3/6      002267619                       3/5                       T S
4/1      002267619                       4/2                       T S
4/2      002267619                       4/1 #                     T S
4/20     069000057                       8/5                       T B S
5/1      005763872                       2/1                       T B S
5/1      066506245                       2/1                       T B S
5/1      066508595                       5/12 *#                   T B S
5/1      066508596                       5/1                       T B S
Console> 
 

This example shows how to display CDP information for all ports:

Console> show cdp port
CDP               :enabled
Message Interval  :60
Hold Time         :180
 
Port      CDP Status 
--------  ---------- 
 2/1      enabled     
 2/2      enabled     
 5/1      enabled     
 5/2      enabled     
 5/3      enabled     
 5/4      enabled     
 5/5      enabled     
 5/6      enabled     
 5/7      enabled     
 5/8      enabled     
Console> 
Related Command

set cdp

show channel

Use the show channel command to display EtherChannel information for a channel.

show channel [channel_id] [info | statistics | mac]
Syntax Description

channel_id

(Optional) Number of the channel.

info

(Optional) Keyword to display port information such as speed, cost, duplex status, priority, secure or dynamic status, trunk status, and associated VLANs.

statistics

(Optional) Keyword to display statistics about the port (PAgP packets sent and received).

mac

(Optional) Keyword to display statistics about the channel.

Default

This command has no default setting.

Command Type

Switch command.

Command Mode

Normal.

Usage Guidelines

If channel_id is not specified, EtherChannel information is shown for all channels.

No information is displayed if the channel specified is not in use.

Examples

This example shows how to display channel information for a specific channel:

Console> show channel 768
Channel Ports                                           Status    Channel
id                                                                Mode
------- ----------------------------------------------- --------- --------
768     2/1-2                                           connected on      
Console> 
 

This example shows how to display channel information for all channels:

Console> show channel
Channel Id   Ports
-----------  -----------------------------------------------
768          2/1-2                                          
769          4/3-4                                          
770          4/7-8                                          
Console> 
 

This example shows how to display port information for a specific channel:

Console> show channel 768 info
Channel Speed Duplex VLANs  Trunk status Channel Vlan  Port     PortSecurity/
Id                                       Cost    Cost  Priority Dynamic Port
------- ----- ------ ------ ------------ ------- ----- -------- ------------
768     1000  full   1-1005 not-trunking       3     0       32             
 
Channel Admin if-   Oper- Neighbor          Neighbor
id      Group Index group Device-id         Oper-group
------- ----- ----- ----- ----------------- ----------
768     143   29    1     
Console>
 

This example shows how to display port information for all channels:

Console> show channel info    
Channel Speed Duplex VLANs  Trunk status Channel Vlan  Port     PortSecurity/
Id                                       Cost    Cost  Priority Dynamic Port
------- ----- ------ ------ ------------ ------- ----- -------- ------------
768     1000  full   1-1005 not-trunking       3     0       32             
769     1000  full   1-1005 not-trunking       3     0       32             
770     1000  full   1-1005 not-trunking       3     0       32             
 
Channel Admin if-   Oper- Neighbor          Neighbor
id      Group Index group Device-id         Oper-group
------- ----- ----- ----- ----------------- ----------
768     143   29    1     
769     151   30    1     
770     152   31    1     
Console>
 

This example shows how to display PAgP information for a specific channel:

Console> show channel 768 statistics
Port  Channel PAgP Pkts   PAgP Pkts PAgP Pkts PAgP Pkts PAgP Pkts PAgP Pkts
      id      Transmitted Received  InFlush   RetnFlush OutFlush  InError      
----- ------- ----------- --------- --------- --------- --------- ---------
 2/1      768           0         0         0         0         0         0
 2/2      768           0         0         0         0         0         0
Console> 
 

This example shows how to display PAgP information for all channels:

Console> show channel statistics
Port  Channel PAgP Pkts   PAgP Pkts PAgP Pkts PAgP Pkts PAgP Pkts PAgP Pkts
      id      Transmitted Received  InFlush   RetnFlush OutFlush  InError      
----- ------- ----------- --------- --------- --------- --------- ---------
 2/1      768           0         0         0         0         0         0
 2/2      768           0         0         0         0         0         0
 4/3      769           0         0         0         0         0         0
 4/4      769           0         0         0         0         0         0
 4/7      770           0        92         0         0         0         0
 4/8      770           0         0         0         0         0         0
Console> 

This example shows how to display statistics for a specific channel:

Console> show channel 768 mac
Channel  Rcv-Unicast          Rcv-Multicast        Rcv-Broadcast
-------- -------------------- -------------------- --------------------
768                       525                  959                  827
 
Channel  Xmit-Unicast         Xmit-Multicast       Xmit-Broadcast
-------- -------------------- -------------------- --------------------
768                       384                   88                    1
 
Port     Rcv-Octet            Xmit-Octet
-------- -------------------- --------------------
768                    469263                48083
 
Channel  Dely-Exced MTU-Exced  In-Discard Lrn-Discrd In-Lost    Out-Lost
-------- ---------- ---------- ---------- ---------- ---------- ----------
768               0          0          0          0          0          0
Console> 
 

This example shows how to display statistics for all channels:

Console> show channel mac
Channel  Rcv-Unicast          Rcv-Multicast        Rcv-Broadcast
 -------- -------------------- -------------------- --------------------
 768                    532290                  163                    6
 769                         0                    0                    0
 771                         4                   64                    0
 
 Channel  Xmit-Unicast         Xmit-Multicast       Xmit-Broadcast
 -------- -------------------- -------------------- --------------------
 768                    602591                   77                    3
 769                         0                    0                    0
 771                    636086                  222                   12
 
 Port     Rcv-Octet            Xmit-Octet
 -------- -------------------- --------------------
 768                  44873880             45102132
 769                         0                    0
 771                     64153             64831844
 
 Channel  Dely-Exced MTU-Exced  In-Discard Lrn-Discrd In-Lost    Out-Lost
 -------- ---------- ---------- ---------- ---------- ---------- ----------
 768               0          0          0          0          0          0
 769               0          0          0          0          0          0
 771               0         18          0          0          0          0 
Last-Time-Cleared
--------------------------
Wed Dec 16 1998, 20:31:13
Console>

show channel group

Use the show channel group command to display EtherChannel group status information.

show channel group [admin_group] [info | statistics]
Syntax Description

admin_group

(Optional) Number of the administrative group. Valid values are 1 to 1024.

info

(Optional) Keyword to display group information.

statistics

(Optional) Keyword to display statistics about the group.

Default

This command has no default setting.

Command Type

Switch command.

Command Mode

Normal.

Usage Guideline

If admin_group is not specified, EtherChannel information is shown for all admin groups.

Examples

This example shows how to display Ethernet channeling information for all admin groups:

Console> (enable) show channel group
Admin Group  Ports
-----------  -----------------------------------------------
7            1/1-2 
Console> (enable) 
 

This example shows how to display Ethernet channeling information for a specific channel:

Console> (enable) show channel group 20
Port  Status     Channel   Admin Ch   Neighbor                         Neighbor
                 Mode      Group id   Device                               Port
----- ---------- --------- ----- ---- ------------------------------------ -----
 6/1  connected  auto      20    768  WS-CONSTEL                           2/1
 6/2  connected  auto      20    768  WS-CONSTEL                           2/2
 6/3  connected  auto      20    768  WS-CONSTEL                           2/3
 6/4  connected  auto      20    768  WS-CONSTEL                           2/4
Console> (enable) 

show config

Use the show config command to display the current system configuration.

show config
Syntax Description

This command has no arguments or keywords.

Default

This command has no default setting.

Command Type

Switch command.

Command Mode

Normal.

Example

This example shows the (partial) contents of a configuration file:

Console> show config
#version 4.2(0.23)VAI55)
!
set password $1$FMFQ$HfZR5DUszVHIRhrz4h6V70
set enablepass $1$FMFQ$HfZR5DUszVHIRhrz4h6V70
set prompt Console>
set length 24 default
set logout 20
set banner motd ^C^C
!
#system
set system baud  9600
set system modem disable
set system name
set system location
set system contact
!   
#tacacs+
set tacacs attempt 3
set tacacs directrequest disable
set tacacs timeout 5
set authentication login tacacs disable console
set authentication login tacacs enable console
set authentication login tacacs disable telnet
set authentication login tacacs enable telnet
set authentication enable tacacs disable console
set authentication enable local enable console
set authentication enable tacacs disable telnet
set authentication enable local enable telnet
!
#vtp
set vtp domain test
set vtp mode server
set vtp v2 disable
set vtp pruning disable
set vtp pruneeligible 2-1000
clear vtp pruneeligible 1001-1005
set vlan 1 name default type ethernet mtu 1500 said 100001 state active
set vlan 2 name VLAN0002 type ethernet mtu 1500 said 100002 state active
! 
Related Commands

clear config
write


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