Documente Academic
Documente Profesional
Documente Cultură
©©2003,
2003,Cisco
CiscoSystems,
Systems,Inc.
Inc.All
Allrights
rightsreserved.
reserved. BCMSN v2.0—1-26 2-26
Layer 2 Switching
• Hardware-based bridging
• Wire-speed performance
• High-speed scalability
• Low latency
• MAC address
• Hardware-based
packet forwarding
• High-performance
packet switching
• Layer 3 security
• Policy deployment
40 Km
©©2003,
2003,Cisco
CiscoSystems,
Systems,Inc.
Inc.All
Allrights
rightsreserved.
reserved. BCMSN v2.0—1-41 2-41
Cisco IOS File System and Devices
Switch#show flash
Directory of flash:/
• NVRAM
• Terminal
• TFTP server
• Erase start
© 2003, Cisco Systems, Inc. All rights reserved. BCMSN v2.0—1-47
show and debug Commands
show debug
Processing
Static Dynamic
characteristics
• Check:
– Cabling
– LINK LED
• Make sure that:
– Interface is configured as “no shutdown.”
– IP address, subnet mask, and VLAN membership of the
switch interface are correct.
– Management interface configuration is complete.
©©2003,
2003,Cisco
CiscoSystems,
Systems,Inc.
Inc.All
Allrights
rightsreserved.
reserved. BCMSN 2.0—2-58 2-58
Objectives
• Layer 2
connectivity
• Logical
organizational
flexibility
• Single
broadcast
domain
• Management
• Basic security
• All users attached to same switch port must be in the same VLAN.
© 2003, Cisco Systems, Inc. All rights reserved. BCMSN v2.0—1-63
Configuring VLANs in Global Mode
Switch#configure terminal
Switch(config)#vlan 3
Switch(config-vlan)#name Vlan3
Switch(config-vlan)#exit
Switch(config)#end
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 1002 1003
2 enet 100002 1500 - - - - - 0 0
51 enet 100051 1500 - - - - - 0 0
52 enet 100052 1500 - - - - - 0 0
…
©©2003,
2003,Cisco
CiscoSystems,
Systems,Inc.
Inc.All
Allrights
rightsreserved.
reserved. BCMSN v2.0—2-71 2-71
VLAN Trunking
Command Function
. . .
Make sure:
• The Layer 2 interface mode configured on both
ends of the link is valid.
• The trunk encapsulation type configured on both
ends of the link is valid.
• The native VLAN is the same on both ends of the
trunk (802.1Q trunks).
©©2003,
2003,Cisco
CiscoSystems,
Systems,Inc.
Inc.All
Allrights
rightsreserved.
reserved. BCMSN 2.0—2-83 2-83
VTP Protocol Features
• Cannot create,
change, or delete • Creates, modifies, and
VLANs deletes VLANs locally
• Forwards only
advertisements • Forwards
• Synchronizes advertisements
VLAN • Does not
configurations synchronize VLAN
• Does not save in configurations
NVRAM • Saves configuration in
NVRAM
© 2003, Cisco Systems, Inc. All rights reserved. BCMSN v2.0—1-85
VTP Operation
• VTP advertisements are sent as multicast frames.
• VTP servers and clients are synchronized to the latest revision number.
• VTP advertisements are sent every 5 minutes or when there is a change.
Switch(config)#vtp server
Switch(config)#vtp pruning
Switch#configure terminal
Switch(config)#vtp server
VTP Version : 2
Configuration Revision : 247
Maximum VLANs supported locally : 1005
Number of existing VLANs : 33
VTP Operating Mode : Client
VTP Domain Name : Lab_Network
VTP Pruning Mode : Enabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0x45 0x52 0xB6 0xFD 0x63 0xC8 0x49 0x80
Configuration last modified by 0.0.0.0 at 8-12-99 15:04:49
Switch#
VTP statistics:
Summary advertisements received : 7
Subset advertisements received : 5
Request advertisements received : 0
Summary advertisements transmitted : 997
Subset advertisements transmitted : 13
Request advertisements transmitted : 3
Number of config revision errors : 0
Number of config digest errors : 0
Number of V1 summary errors : 0
©©2003,
2003,Cisco
CiscoSystems,
Systems,Inc.
Inc.All
Allrights
rightsreserved.
reserved. BCMSN v2.0—3-97 2-97
Transparent Bridging
Fast Ethernet
RP
Ethernet
©©2003,
2003,Cisco
CiscoSystems,
Systems,Inc.
Inc.All
Allrights
rightsreserved.
reserved. BCMSN 2.0—3-112 2-112
Enabling Spanning Tree
Switch(config)#spanning-tree vlan 200
VLAN0200
Spanning tree enabled protocol ieee
Root ID Priority 49352
Address 0008.2199.2bc0
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
©©2003,
2003,Cisco
CiscoSystems,
Systems,Inc.
Inc.All
Allrights
rightsreserved.
reserved. BCMSN 2.0—3-117 2-117
Objectives
• Logical aggregation
of similar links
• Viewed as one
logical port
• Switch-level load
balancing
• Redundancy
Port-channel: Po1
------------
©©2003,
2003,Cisco
CiscoSystems,
Systems,Inc.
Inc.All
Allrights
rightsreserved.
reserved. BCMSN v2.0—5-124 2-124
Port-Based VLANs
Switch(config)#ip routing
Switch(config)#interface vlan-id
Switch#show running-config
Switch#show ip route
Switch#show ip protocols
©©2003,
2003,Cisco
CiscoSystems,
Systems,Inc.
Inc.All
Allrights
rightsreserved.
reserved. BCMSN v2.0—6-134 2-134
Problem: Using Default Gateways
Switch#debug standby
*Mar 1 00:22:30.443: SB11: Vl11 Hello out 172.16.11.111 Active pri 100 ip 172.16.11.115
*Mar 1 00:22:32.019: SB11: Vl11 Hello in 172.16.11.112 Standby pri 50 ip 172.16.11.115
*Mar 1 00:22:33.331: SB11: Vl11 Hello out 172.16.11.111 Active pri 100 ip 172.16.11.115
*Mar 1 00:22:34.927: SB11: Vl11 Hello in 172.16.11.112 Standby pri 50 ip 172.16.11.115
*Mar 1 00:22:36.231: SB11: Vl11 Hello out 172.16.11.111 Active pri 100 ip 172.16.11.115
*Mar 1 00:22:37.823: SB11: Vl11 Hello in 172.16.11.112 Standby pri 50 ip 172.16.11.115
*Mar 1 00:22:39.163: SB11: Vl11 Hello out 172.16.11.111 Active pri 100 ip 172.16.11.115
*Mar 1 00:22:40.735: SB11: Vl11 Hello in 172.16.11.112 Standby pri 50 ip 172.16.11.115
*Mar 1 00:22:42.119: SB11: Vl11 Hello out 172.16.11.111 Active pri 100 ip 172.16.11.115
*Mar 1 00:22:43.663: SB11: Vl11 Hello in 172.16.11.112 Standby pri 50 ip 172.16.11.115
*Mar 1 00:22:45.067: SB11: Vl11 Hello out 172.16.11.111 Active pri 100 ip 172.16.11.115
*Mar 1 00:22:46.567: SB11: Vl11 Hello in 172.16.11.112 Standby pri 50 ip 172.16.11.115