Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Cisco Switching Black Book - Sean Odom, Hanson Nottingham.pdf
Скачиваний:
87
Добавлен:
24.05.2014
Размер:
2.89 Mб
Скачать

show system

Using the show system command, you can obtain a component status summary regarding the switch components. This information includes the system status, current traffic percentage, peak percentage, status of the fans, power supplies, and modem; uptime, and system identification configuration. There is no comparable command on the 1900EN series switches.

show test

The show test command can be used to obtain the status of the switch, interface cards, power supplies, Enhanced Address Recognition Logic (EARL) tests, or active loopback. It also displays the memory status of the read−only memory (ROM), flash electrically erasable programmable ROM (EEPROM), serial EEPROM, and non−volatile RAM. There is no comparable command on the 1900EN series switches.

show version

The show version command provides hardware and software version numbers, in addition to memory and the system uptime statistical information. This command can be used on both the Set/Clear IOS and the CLI−based IOS.

show vtp domain controller

The VLAN Trunking Protocol (VTP) maintains a consistent VLAN configuration throughout the network. In a VTP management domain, a configuration change is done only once on a VTP server−configured switch. The new configuration is propagated throughout the network. The show vtp domain controller command provides the status and configuration information for VTP.

Related solutions:

Found on page:

Configuring the VTP Version on a Catalyst 5000

162

Switch

 

Configuring VTP on a Set/Clear CLI Switch

164

Configuring VTP on a 1900 Cisco IOS CLI Switch

165

Verifying the VTP Configuration on a Set/Clear CLI

166

Displaying VTP Statistics

166

Viewing the Set/Clear IOS Configuration

To view the Set/Clear IOS configuration, use the show config command. Let’s take a look at an example of the output from this command:

Catalyst5002> (enable) show config

.....

begin

!

set password $22$hgjhru^jf#sdc set enablepass $22$hgjhru$fhkn set prompt Catlayst5002

set length 24 default set logout 0

set banner motd ÔUnauthorized Use Prohibited!’

!

#system

set system baud 9600

set system modem disable

set system name Catalyst5002

set system location Sacramento, CA

316

set system contact Sean Odom/Gina Galbraith

!

 

#snmp

 

set snmp community read−only

public

set snmp community read−write

private

set snmp community read−write−all all set snmp rmon disable

set snmp trap enable module set snmp trap enable chassis set snmp trap enable bridge set snmp trap enable repeater set snmp trap enable vtp

set snmp trap enable auth

set snmp trap enable ippermit set snmp trap enable vmps

!

#ip

set interface sc0 2 68.127.186.100 255.255.255.0 68.127.186.255 set interface sl0 0.0.0.0 0.0.0.0

set arp agingtime 1200 set ip redirect enable set ip unreachable enable

set ip fragmentation enable

set ip route 0.0.0.0 68.127.186.254 0 set ip alias default 0.0.0.0

!

#Command alias

!

#vmps

set vmps server retry 3

set vmps server reconfirminterval 60

set vmps tftpserver 0.0.0.0 vmps−config−database.1 set vmps state disable

!

#dns

set ip dns disable

!

#tacacs+

set tacacs attempts 3

set tacacs directedrequest disable set tacacs timeout 5

set authentication login tacacs disable set authentication login local enable set authentication enable tacacs disable set authentication enable local enable

!

#bridge

set bridge ipx snaptoether 8023raw set bridge ipx 8022toether 8023 set bridge ipx 8023rawtofddi snap

!

#vtp

set vtp domain Coriolis set vtp mode server

set vtp v2 enable

set vtp pruneeligible 9−1005 clear vtp pruneeligible 1001−1005

set vlan 1 name default type ethernet mtu 1500 said 100001 state active

set vlan 1002 name fddi−default type fddi mtu 1500 said 101002 state active

set vlan 1004 name fddinet−default type fddinet mtu 1500 said 101004 state active bridge 0x0 stp ieee

set vlan 1005 name trnet−default type trbrf mtu 1500 said 101005 state active bridge 0x0 stp ieee

317

set vlan 1003 name Token−Ring−default type trcrf mtu 1500 said 101003 state active parent 0 ring 0x0 mode srb aremaxhop 7 stemaxhop 7

!

#spantree

!

#uplinkfast groups

set spantree uplinkfast disable

!

#vlan 1

set spantree enable 1

set spantree fwddelay 15 1 set spantree hello 2 1

set spantree maxage 20 1

set spantree priority 32768 1

!

#vlan 2

set spantree enable 1

set spantree fwddelay 15 1 set spantree hello 2 1

set spantree maxage 20 1

set spantree priority 32768 1

!

#vlan 10

set spantree enable 1

set spantree fwddelay 15 1 set spantree hello 2 1

set spantree maxage 20 1

set spantree priority 32768 1

#vlan 1003

set spantree enable 1003

set spantree fwddelay 4 1003 set spantree hello 2 1003 set spantree maxage 10 1003

set spantree priority 32768 1003 set spantree portstate 1003 auto 0 set spantree portcost 1003 80

set spantree portpri 1003 4

set spantree portfast 1003 disable

#vlan 1005

set spantree enable 1005

set spantree fwddelay 15 1005 set spantree hello 2 1005

set spantree maxage 20 1005

set spantree priority 32768 1005

set spantree multicast−address 1005 ieee

!

#cgmp

set cgmp disable

set cgmp leave disable

!

#syslog

set logging console enable set logging server disable

set logging level cdp 2 default set logging level cgmp 2 default set logging level disl 5 default set logging level dvlan 2 default set logging level earl 2 default set logging level fddi 2 default set logging level ip 2 default

set logging level pruning 2 default

318

set logging level snmp 2 default

set logging level spantree 2 default set logging level sys 5 default

set logging level tac 2 default set logging level tcp 2 default set logging level telnet 2 default set logging level tftp 2 default set logging level vtp 2 default set logging level vmps 2 default set logging level kernel 2 default

set logging level filesys 2 default set logging level drip 2 default set logging level pagp 5 default

!

#ntp

set ntp broadcastclient disable set ntp broadcastdelay 3000

set ntp client disable set timezone PST 0 0 set summertime disable

!

#permit list

set ip permit disable

!

#drip

set tokenring reduction enable set tokenring distrib−crf disable

!

#module 1 : 2−port 100BaseFX MM Supervisor set module name 1

set vlan 1 1/1−2

set port channel 1/1−2 off set port channel 1/1−2 auto set port enable 1/1−2

set port level 1/1−2 normal set port duplex 1/1−2 half set port trap 1/1−2 enable set port name 1/1−2

set port security 1/1−2 disable set port broadcast 1/1−2 100% set port membership 1/1−2 static set cdp enable 1/1−2

set cdp interval 1/1−2 60 set trunk 1/1 auto 1−1005 set trunk 1/2 auto 1−1005

set spantree portfast 1/1−2 disable set spantree portcost 1/1−2 19

set spantree portpri 1/1−2 32 set spantree portvlanpri 1/1 10 set spantree portvlanpri 1/2 10

set spantree portvlancost 1/1 cost 18 set spantree portvlancost 1/2 cost 18

!

#module 2 : 24−port 10/100BaseTX Ethernet set module name 2

set module enable 2 set vlan 1 2/1−24

set port enable 2/1−24

set port level 2/1−24 normal set port speed 2/11−24 auto set port speed 2/19 10

set port duplex 2/1−2 full set port trap 2/1−24 enable set port name 2/1−24

set port security 2/1−24 disable set port broadcast 2/1−24 0

319

set port membership 2/1−24 static set cdp enable 2/1−24

set cdp interval 2/1−24 60

set spantree portfast

2/1−24 disable

set spantree portcost

2/11 10

set spantree portcost

2/12 10

set spantree portcost

2/17 10

set spantree portcost

2/18 10

set spantree portcost

2/19 100

set spantree portcost

2/21 10

set spantree portcost

2/1−10,2/13−16,2/20,2/22−24 19

set spantree portpri

2/1−24 32

!

#switch port analyzer set span enable

!

#cam

set cam agingtime 1−2,10,1003,1005 300

end

Viewing the CLI−Based IOS Configuration

To view the CLI−based IOS configuration, use the show running−config command. Let’s take a look at an example of the output from this command:

1912EN#show running−config Building configuration… Current configuration:

!

!

vtp domain "coriolis"

!

mac−address−table permanent 0030.194C.80A6 Ethernet 0/1 mac−address−table permanent 0000.0C00.4BD0 Ethernet 0/1 mac−address−table permanent 00A0.2457.2877 Ethernet 0/1 mac−address−table permanent 0000.0C33.4283 Ethernet 0/5 mac−address−table permanent 0000.0C33.4283 Ethernet 0/10 mac−address−table permanent 0000.0C33.4286 Ethernet 0/10 tftp server "68.127.186.39"

!

hostname "1912EN"

!

monitor−port monitored 0/1 monitor−port

!

network−port 0/8

!

address−violation ignore

!

multicast−store−and−forward

!

ip default−gateway 63.78.39.254 ip domain−name "rcsis.com"

ip name−server 208.45.228.3 ip name−server 208.45.228.4

!

snmp−server location "Sean’s Lab 1900EN" snmp−server contact "Sean Odom"

!

enable password level 15 "book1"

!

interface Ethernet 0/1

320

1912EN#

Viewing the Software Version on a Set/Clear Command−Based IOS Module

To view the software version of a module on a Set/Clear command−based IOS, use the show version command. This command will not work on internal route processor modules, however. Let’s look at the command and an example of its output:

show version <slot number>

 

Catalyst5002> (enable) show version 1

 

Mod

Port

Model

Serial #

Versions

——

————

——————————

———————————

————————————————————

1

2

WS−X5530

006851332

Hw : 1.3

 

 

 

 

Fw : 3.1.2

 

 

 

 

Fw1: 4.2(1)

 

 

 

 

Sw : 4.2(1)

Console> (enable)

 

 

Viewing the IOS Version Information on a CLI−Based IOS

To view the IOS version information on a CLI−based IOS, use the show version command. Let’s take a look at the command and its output:

1912EN#show version

Cisco Catalyst 1900/2820 Enterprise Edition Software Version V8.01.02

Copyright (c) Cisco Systems, Inc. 1993−1998

1912EN uptime is 0day(s) 01hour(s) 33minute(s) 17second(s)

cisco Catalyst 1900 (486sxl) processor with 2048K/1024K bytes of memory Hardware board revision is 5

Upgrade Status: No upgrade currently in progress.

Config File Status: No configuration upload/download is in progress 15 Fixed Ethernet/IEEE 802.3 interface(s)

Base Ethernet Address: 00−30−80−54−6C−00

1912EN#

Using the show flash Command on a Set/Clear

Command−Based IOS

You can use the show flash command on a Set/Clear command−based IOS switch. You can view use optional syntaxes to view the individal chip or file system information. Let’s take a look at the command and its output:

show flash [[m/]device:] [all|chips|filesys]

 

Catalyst5002> show flash

 

 

 

File

Version

Sector

Size

Built

——————————————

————————————

————————————

—————— ————————————————

c5000 nmp

3.1(213−Eng)

02−11

1316809

06/16/00 00:26:21

321

epld

3.1

30

72920

06/14/99 19:33:06

lcp atm

3.1

12−15

23747

06/14/99 11:16:06

lcp tr

3.1

12−15

28737

06/14/99 11:17:19

lcp c5ip

3.1

12−15

23723

06/14/99 11:26:40

lcp 64k

3.1

12−15

57100

06/14/99 11:28:15

atm/fddi

3.1

12−15

24502

06/14/99 11:47:07

lcp 360

3.1(212)

12−15

120648

06/14/99 01:32:33

mcp

3.1

12−15

26278

06/14/99 11:50:41

Catalyst5002>

Note There is no comparable command on the 1900EN series switches.

Testing the Supervisor Engine Hardware on a Set/Clear Command−Based Switch

To test the Supervisor Engine module on a Set/Clear command−based switch, use the show test command. Let’s take a look at the command, its optional syntax, and an example of its output:

show test [module number]

Catalyst5002> (enable) show test

Environmental Status

(. = Pass, F = Fail, U = Unknown)

 

PS (3.3V): .

PS

(12V): .

PS (24V): .

PS1: .

PS2: .

Temperature: .

Fan:

.

Clock(A/B): A

Chassis−Ser− EEPROM: .

Module 1 : 2−port 100BaseFX MM Supervisor Network Management Processor (NMP) Status: (. = Pass, F = Fail, U = Unknown)

ROM: . Flash−EEPROM: . Ser−EEPROM: . NVRAM: . MCP Comm: .

EARL Status :

NewLearnTest: .

IndexLearnTest: .

DontForwardTest: .

MonitorTest .

DontLearn: .

FlushPacket: .

ConditionalLearn: .

EarlLearnDiscard: .

EarlTrapTest: .

LCP Diag Status for Module 1

(.

= Pass, F = Fail, N = N/A)

CPU

: .

Sprom

: .

Bootcsum : .

Archsum

: N

RAM

: .

LTL

: .

CBL

: .

DPRAM

:

. SAMBA : .

Saints

: .

Pkt Bufs : .

Repeater : N

FLASH

:

N

MII Status: Ports 1 2

——————————

N N

SAINT/SAGE Status : Ports 1 2 3

——————————————

. . .

Packet Buffer Status : Ports 1 2 3

——————————————

. . .

Loopback Status [Reported by Module 1] :

Ports 1 2 3

322

——————————————

. . .

Channel Status : Ports 1 2

——————————————

. .

Note There is no comparable command on the 1900EN series switches.

Testing External Module Hardware on a Set/Clear Command−Based Switch

The Catalyst 5002 I am using has a Supervisor Engine in Slot 1. Slot 2 has a 10/100 Ethernet Interface Card with 24 ports. Let’s look at the show test command, its optional syntax, and an example of a test on this module:

show test [module number]

Catalyst5002> (enable) show test 2

Module 2 : 24−port 10/100 Ethernet

LCP Diag Status for Module

2

(.

= Pass, F = Fail, N = N/A)

 

 

 

CPU

 

 

 

: .

 

Sprom

: .

Bootcsum : .

Archsum

: .

 

 

 

RAM

 

 

 

: .

 

LTL

 

: .

CBL

: N

DPRAM

 

: N SAMBA : .

Saints

 

 

: .

 

Pkt Bufs : .

Repeater : N

FLASH

 

: .

 

 

 

SAINT/SAGE Status

:

 

 

 

 

 

 

 

 

 

 

 

Ports

1

2 3

4

5

6

7 8

9 10

11

12

13 14 15 16 17 18 19

20

21

22

23

24

————————————————————————————————————————————————————————————————————

Packet Buffer Status :

Ports 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

————————————————————————————————————————————————————————————————————

Loopback Status [Reported by Module 1] :

Ports 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

————————————————————————————————————————————————————————————————————

Note There is no comparable command on the 1900EN series switches.

Viewing the System Configuration on a Set/Clear Command−Based Switch

To view the system configuration on a Set/Clear command−based IOS switch, use the show system command. Let’s take a look at the command and an example of its output:

Catalyst5002> (enable) show system

PS1Status PS2Status Fan−Status Temp−Alarm Sys−Status Uptime d,h:m:s Logout

———————— ———————— —————————— —————————— —————————— —————————————— ——————

ok

off

ok

off

 

ok

93,3:21:60

none

PS1−Type

PS2−Type

Modem

Baud

Traffic

Peak Peak−Time

 

——————————

——————————

—————— ———— —————— ———— —————————————————————————

WS−C5008B

WS−C5008B

disable

9600

0%

0%

Sat Sep 09 2000, 8:16:58

System Name

System Location

 

System Contact

 

———————————— ———————————————————————— ————————————————————

 

Catalyst5002 Sacramento, CA

 

Sean

Odom

 

 

Note There is no comparable command on the 1900EN series switches.

323

Соседние файлы в предмете Программирование