19.07.2013 Views

CCNA Complete Guide 2nd Edition.pdf - Cisco Learning Home

CCNA Complete Guide 2nd Edition.pdf - Cisco Learning Home

CCNA Complete Guide 2nd Edition.pdf - Cisco Learning Home

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 6<br />

Spanning Tree Protocol Lab<br />

Basic Catalyst Switch Configuration<br />

- All current <strong>Cisco</strong> routers and Catalyst switches run <strong>Cisco</strong> IOS software (legacy Catalyst switches<br />

run CatOS with a series of set-based and show commands), hence Catalyst switches share a lot<br />

of command syntaxes and similarity with the configuration and administration of <strong>Cisco</strong> routers.<br />

- Below list some basic Catalyst switch show commands:<br />

show interfaces status Displays a summary view of all interfaces status.<br />

show mac-address-table dynamic Displays the dynamically learned MAC addresses in<br />

the bridging table.<br />

Switch#show interfaces status<br />

Port Name Status Vlan Duplex Speed Type<br />

Fa0/1 connected 1 a-full a-100 10/100BaseTX<br />

Fa0/2 connected 1 a-full a-100 10/100BaseTX<br />

Fa0/3 notconnect 1 auto auto 10/100BaseTX<br />

Fa0/4 notconnect 1 auto auto 10/100BaseTX<br />

Fa0/5 notconnect 1 auto auto 10/100BaseTX<br />

Fa0/6 notconnect 1 auto auto 10/100BaseTX<br />

Fa0/7 notconnect 1 auto auto 10/100BaseTX<br />

Fa0/8 notconnect 1 auto auto 10/100BaseTX<br />

Switch#<br />

Switch#show mac-address-table dynamic<br />

Mac Address Table<br />

-------------------------------------------<br />

Vlan Mac Address Type Ports<br />

---- ----------- -------- -----<br />

1 aaaa.aaaa.aaaa DYNAMIC Fa0/1<br />

1 bbbb.bbbb.bbbb DYNAMIC Fa0/2<br />

Total Mac Addresses for this criterion: 2<br />

Switch#<br />

- A switch is normally configured with a management IP address for remote access management.<br />

The IP address is configured on the Vlan1 interface. A switch also needs a default gateway,<br />

which can be configured with the ip default-gateway {gw-ip-addr} global configuration<br />

command. The show running-config privileged command can be used to view these settings.<br />

Switch#conf t<br />

Enter configuration commands, one per line. End with CNTL/Z.<br />

Switch(config)#int vlan 1<br />

Switch(config-if)#ip add 192.168.0.11 255.255.255.0<br />

Switch(config-if)#no shut<br />

Switch(config-if)#exit<br />

00:03:01: %LINK-3-UPDOWN: Interface Vlan1, changed state to up<br />

00:03:02: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed<br />

state to up<br />

Switch(config)#ip default-gateway 192.168.0.1<br />

Switch(config)#^Z<br />

Switch#<br />

45<br />

Copyright © 2008 Yap Chin Hoong<br />

yapchinhoong@hotmail.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!