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

Viewing the VTP Domain Configuration on a Set/Clear IOS

The show vtp domain command can be used to obtain the VTP domain configuration on a Set/Clear command−based IOS switch. Let’s take a look at the command and an example of the output associated with it:

Catalyst5002> (enable) show

vtp domain

 

 

Domain Name

 

Domain Index VTP Version Local Mode Password

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

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

Coriolis

 

1

 

1

Server

Vlan−count Max−vlan−storage

Config Revision Notifications

 

——————————

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

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

 

5

1023

 

0

enabled

 

 

Last Updater

V2 Mode Pruning

PruneEligible on Vlans

 

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

 

68.127.187.12

disabled disabled 2−1000

 

 

Viewing the VTP Domain Configuration on a CLI−Based IOS

The show vtp command displays the VTP domain configuration on an IOS−based switch. Let’s look at the command, its available options, and an example of its output:

1912EN#show vtp ?

statistics Show VTP statistics

<cr>

 

 

1912EN#show vtp

 

 

VTP version: 1

 

 

Configuration revision:

0

 

Maximum VLANs supported locally: 1005

Number of existing VLANs:

5

VTP domain name

: coriolis

VTP password

:

 

VTP operating mode

: Server

VTP pruning mode

: Disabled

VTP traps generation

: Enabled

Configuration last modified by: 63.78.39.33 at 00−00−0000 00:00:00

1912EN#

Viewing the VLAN Configuration on a Set/Clear

Command−Based Switch

To view the VLAN configuration on a Set/Clear command−based IOS switch, use the show vlan command. Several options are available for use with the command that allow you to see only trunked ports, only non−trunked ports, or an individual VLAN number. Let’s look at the command, its optional syntaxes, and an example of its output:

show vlan [vlan] [trunk|no trunk]

Catalyst5002> show vlan

Virtual LAN ID: 1

vLAN Trunk Interface: FastEthernet1/0.1

324

Protocols Configured:

Address:

Received:

Transmitted:

IP

68.127.187.10

95563219847

81294682

Virtual LAN ID: 2 (Inter Switch Link Encapsulation)

 

vLAN Trunk Interface:

FastEthernet1/0.2

 

 

Protocols Configured:

Address:

Received:

Transmitted:

IP

68.127.186.1

855147

854281

Catalyst5002>

Viewing the VLAN Configuration on a CLI−Based IOS

To view the VLAN configuration on a CLI−based IOS switch, use the show vlan command. Let’s look at the command, its optional syntax, and an example of its output:

1912EN#show vlan ?

 

 

 

<1−1005> ISL VLAN index

 

 

<cr>

 

 

 

1912EN#show vlan

 

 

VLAN Name

Status

Ports

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

1

default

Enabled

6−12, AUI, A, B

2

Engineers

Enabled

1−3

3

Admins

Enabled

4−5

1002

fddi−default

Suspended

 

1003

token−ring−defau

Suspended

 

1004

fddinet−default

Suspended

 

1005

trnet−default

Suspended

 

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

VLAN Type

SAID MTU Parent RingNo BridgeNo Stp Trans1 Trans2

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

1

Ethernet

100001 1500

0

0

0

Unkn 1002

1003

2

Ethernet

100002 1500

0

0

0

Unkn 1002

1003

3

Ethernet

100003 1500

0

0

0

Unkn 1002

1003

10

Ethernet

100010 1500

0

0

0

Unkn 1002

1003

1002

FDDI

101002 1500

0

0

0

Unkn 1

1003

1003

Token−Ring

101003 1500

1005

1

0

Unkn 1

1002

1004

FDDI−Net

101004 1500

0

0

1

IEEE 0

0

1005

Token−Ring−Net 101005 1500

0

0

1

IEEE 0

0

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

1912EN#

Viewing the Spanning Tree Configuration on a Set/Clear Command−Based IOS

The show spantree command on the Set/Clear command−based IOS can be used to obtain configuration information and statistics on STP. You can use the command to view by VLAN number, module number, and module. You can also specify to see only active interfaces. Let’s take a look at the command, its optional syntaxes, and an example of its output:

show spantree [VLAN|module number/port][active]

325

Catalyst5002> (enable) show spantree

VLAN 1

 

Spanning tree enabled

 

Spanning tree type

ieee

Designated Root

00−00−80−0c−a1−b3

Designated Root Priority

32768

Designated

Root Cost

0

Designated

Root Port

1/0

Root Max Age

20 sec

Hello Time 2

sec

Forward Delay 15 sec

Bridge ID MAC

ADDR

 

00−00−80−0c−a1−b3

 

Bridge ID Priority

 

32768

 

 

 

Bridge Max Age 20 sec

Hello Time 2 sec

Forward Delay 15 sec

Port

Vlan

Port−State

 

Cost

Priority

Fast−Start Group−method

————————

————

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

————

————————

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

1/1

1

not−connected

19

 

32

disabled

1/2

1

not−connected

19

 

32

disabled

2/1

1

forwarding

 

10

 

32

disabled

2/2

1

forwarding

 

10

 

32

disabled

2/3

1

forwarding

 

10

 

32

disabled

2/4

1

forwarding

 

10

 

32

disabled

2/5

1

forwarding

 

10

 

32

disabled

2/6

1

not−connected

19

 

32

disabled

2/7

1

forwarding

 

100

 

32

disabled

2/8

1

forwarding

 

100

 

32

disabled

2/9

1

not−connected

100

 

32

disabled

2/10

1

forwarding

 

10

 

32

disabled

2/11

1

forwarding

 

10

 

20

disabled

2/12

1

not−connected

19

 

32

disabled

2/13

1

forwarding

 

10

 

32

disabled

2/14

1

forwarding

 

10

 

32

disabled

2/15

1

forwarding

 

10

 

32

disabled

2/16

1

not−connected

19

 

32

disabled

2/17

1

forwarding

 

10

 

10

disabled

2/18

1

forwarding

 

10

 

32

disabled

2/19

1

not−connected

100

 

10

disabled

2/20

1

forwarding

 

10

 

32

disabled

2/21

1

forwarding

 

100

 

32

disabled

2/22

1

not−connected

100

 

32

disabled

2/23

1

forwarding

 

10

 

32

disabled

2/24

1

not−connected

100

 

32

disabled

Viewing the Spanning Tree Configuration on a CLI−Based IOS

The show spantree command can be used on a CLI−based IOS to obtain configuration information and statistics on STP. Let’s take a look at the command, its optional syntaxes, and an example of its output:

show port <mod_num>

show port <mod_num/port_num> 1912EN#show spantree

VLAN1 is executing the IEEE compatible Spanning Tree Protocol Bridge Identifier has priority 32768, address 0030.8054.6C00 Configured hello time 2, max age 20, forward delay 15 Current root has priority 32768, address 0000.0C00.4BD0 Root port is Ethernet 0/1, cost of root path is 100 Topology change flag not set, detected flag not set

Topology changes 0, last topology change occurred 0d00h00m00s ago Times: hold 1, topology change 8960

hello 2, max age 20, forward delay 15

Timers: hello 2, topology change 35, notification 2

326

Port Ethernet 0/1 of VLAN2 is Forwarding Port path cost 100, Port priority 128

Designated root has priority 32768, address 0000.0C00.4BD0 Designated bridge has priority 32768, address 0000.0C00.4BD0 Designated port is Ethernet 0/7, path cost 0

Timers: message age 20, forward delay 15, hold 1 Port Ethernet 0/2 of VLAN2 is Forwarding

Port path cost 100, Port priority 128

Designated root has priority 32768, address 0000.0C00.4BD0

Designated bridge has priority 32768,

address 0030.8054.6C00

Designated port

is Ethernet 0/2, path

cost 100

Timers: message

age

20, forward delay 15, hold 1

Port Ethernet 0/3

of VLAN2 is Forwarding

 

Port path cost 100,

Port priority 128

 

Designated root

has

priority 32768, address 0000.0C00.4BD0

Designated bridge

has

priority 32768, address 0030.8054.6C00

Designated port

is Ethernet 0/3, path cost 100

Timers: message

age

20, forward delay 15, hold 1

Port Ethernet 0/4

of VLAN3 is Forwarding

 

Port path cost 100,

Port priority 128

 

Designated root

has

priority 32768, address 0000.0C00.4BD0

Designated bridge has priority 32768, address 0030.8054.6C00 Designated port is Ethernet 0/4, path cost 100

Timers: message age 20, forward delay 15, hold 1 Port Ethernet 0/5 of VLAN3 is Forwarding

Port path cost 100, Port priority 128

Designated root has priority 32768, address 0000.0C00.4BD0 Designated bridge has priority 32768, address 0030.8054.6C00 Designated port is Ethernet 0/5, path cost 100

Timers: message age 20, forward delay 15, hold 1 Port Ethernet 0/6 of VLAN1 is Forwarding

Port path cost 100, Port priority 128

Designated root has priority 32768, address 0000.0C00.4BD0 Designated bridge has priority 32768, address 0030.8054.6C00 Designated port is Ethernet 0/6, path cost 100

Timers: message age 20, forward delay 15, hold 1 Port Ethernet 0/7 of VLAN1 is Forwarding

Port path cost 100, Port priority 128

Designated root has priority 32768, address 0000.0C00.4BD0 Designated bridge has priority 32768, address 0030.8054.6C00 Designated port is Ethernet 0/7, path cost 100

Timers: message age 20, forward delay 15, hold 1 Port Ethernet 0/8 of VLAN1 is Forwarding

Port path cost 100, Port priority 128

Designated root has priority 32768, address 0000.0C00.4BD0 Designated bridge has priority 32768, address 0030.8054.6C00 Designated port is Ethernet 0/8, path cost 100

Timers: message age 20, forward delay 15, hold 1 Port Ethernet 0/9 of VLAN1 is Forwarding

Port path cost 100, Port priority 128

Designated root has priority 32768, address 0000.0C00.4BD0 Designated bridge has priority 32768, address 0030.8054.6C00 Designated port is Ethernet 0/9, path cost 100

Timers: message age 20, forward delay 15, hold 1 Port Ethernet 0/10 of VLAN1 is Forwarding

Port path cost 100, Port priority 128

Designated root has priority 32768, address 0000.0C00.4BD0 Designated bridge has priority 32768, address 0030.8054.6C00 Designated port is Ethernet 0/10, path cost 100

Timers: message age 20, forward delay 15, hold 1 Port Ethernet 0/11 of VLAN1 is Forwarding

Port path cost 100, Port priority 128

Designated root has priority 32768, address 0000.0C00.4BD0 Designated bridge has priority 32768, address 0030.8054.6C00 Designated port is Ethernet 0/11, path cost 100

Timers: message age 20, forward delay 15, hold 1 Port Ethernet 0/12 of VLAN1 is Forwarding

327

Port path cost 100, Port priority 128

Designated root has priority 32768, address 0000.0C00.4BD0

Designated bridge has priority 32768, address 0030.8054.6C00

Designated port is Ethernet 0/12, path cost 100

Timers: message age 20, forward delay 15, hold 1

Port Ethernet 0/25 of VLAN1 is Forwarding

Port path cost 100, Port priority 128

Designated root has priority 32768, address 0000.0C00.4BD0

Designated bridge has priority 32768, address 0030.8054.6C00

Designated port is Ethernet 0/25, path cost 100

Timers: message age 20, forward delay 15, hold 1

Port FastEthernet 0/26 of VLAN1 is Blocking

Port path cost 10, Port priority 128

Designated root has priority 32768, address 0000.0C00.4BD0

Designated bridge has priority 32768, address 0030.8054.6C00

Designated port is FastEthernet 0/26, path cost 100

Timers: message age 20, forward delay 15, hold 1

Port FastEthernet 0/27 of VLAN1 is Blocking

Port path cost 10, Port priority 128

Designated root has priority 32768, address 0000.0C00.4BD0

Designated bridge has priority 32768,

address 0030.8054.6C00

Designated port

is FastEthernet 0/27,

path cost 100

Timers: message

age 20, forward delay

15, hold 1

Viewing the CAM (MAC Address) Table on a Set/Clear Command−Based IOS

A switch uses the CAM table to make forwarding decisions on the switch. Let’s take a look at the available command options, syntaxes, and an example of the output using the show cam command:

Catalyst5002> (enable) show cam ?

Usage: show cam [count] <dynamic|static|permanent|system> [vlan] show cam <dynamic|static|permanent> <mod_num/port_num>

show cam <mac_addr> [vlan] show cam agingtime

Catalyst5002> (enable) show cam dynamic 2

VLAN

Dest MAC/Route Des

Destination Ports or VCs

2

00−30−19−4C−80−A6

2/4

2

00−30−19−4C−80−A8

2/18

2

00−30−19−4C−80−A6

2/15

2

00−30−19−4C−80−A6

2/12

2

00−30−19−4C−80−BC

2/9

2

00−30−19−4C−80−3F

2/10

2

00−30−19−4C−80−D4

2/6

2

00−30−19−4C−80−B3

2/7

2

00−30−19−4C−80−A2

2/2

2

00−80−00−00−12−D0

2/22

2

00−30−19−4C−80−C4

2/1

2

00−30−19−4C−80−3B

2/23

Total

Matching CAM Entries Displayed = 12

Viewing the CAM (MAC Address) Table on a CLI−Based IOS

On a CLI−based IOS, the show mac command is used to view the CAM table that makes forwarding decisions for frames arriving on the switch. Let’s take a look at the output using the show mac command:

328

1912EN#show mac

 

 

 

 

 

Number of permanent addresses

: 5

 

Number of restricted

static

addresses : 0

 

Number of dynamic addresses

:

1

 

Address

Dest

Interface Type

Source Interface List

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

0030.194C.80A6

Ethernet 0/1

Permanent

All

0000.0C00.4BD0

Ethernet 0/1

Permanent

All

00A0.2457.2877

Ethernet 0/1

Permanent

All

0000.0C33.4283

Ethernet 0/5

Permanent

All

0000.0C33.4283

Ethernet 0/10

Permanent

All

0000.0C33.4286

Ethernet 0/10

Permanent

All

0010.A4EF.92FB

Ethernet 0/6

Dynamic

All

1912EN#

 

 

 

Viewing the CDP Neighbors on a Set/Clear Command−Based IOS

The show cdp neighbors command is used to obtain details of the neighboring Cisco devices. Let’s take a look at the optional syntaxes and an example of the output using the command:

show cdp neighbors [module number[/port number][detail]

Catalyst5002(enable) show cdp neighbor detail

Device−ID: Coriolis2514.coriolis.com Device Addresses:

IP Address: 68.27.187.254 Holdtime: 150 sec Capabilities: ROUTER Version:

Cisco Internetwork Operating System Software

IOS (tm) 2500 Software (C2500−IO−L), Version 12.0(5), RELEASE SOFTWARE (fc1) Copyright (c) 1986−1999 by cisco Systems, Inc.

Platform: cisco 2500 Port−ID: FastEthernet0 Port: 2/1

Device−ID: 1900EN.coriolis.com

Device Addresses:

IP Address: 68.27.187.253

Holdtime: 132 sec

Capabilities: SWITCH

Version:

Cisco Internetwork Operating System Software

Cisco Catalyst 1900/2820 Enterprise Edition Software

Version V8.01.02

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

Platform: cisco 1900/2820

Port−ID: FastEthernet0

Port: 2/2

Viewing the CDP Neighbors on a CLI−Based IOS

The show cdp neighbors command is used to obtain details of the neighboring Cisco devices on a CLI−based IOS. Let’s take a look at the command and an example of its output:

329

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