Documente Academic
Documente Profesional
Documente Cultură
0260.8c01.1111
0260.8c01.2222
E0
E1
E2
E3
0260.8c01.3333
0260.8c01.4444
0260.8c01.1111
E0
E1
E2
E3
0260.8c01.2222
0260.8c01.3333
0260.8c01.4444
except port
0260.8c01.1111
E0
E2
0260.8c01.2222
E1
E3
0260.8c01.3333
0260.8c01.4444
0260.8c01.1111
E0:
E2:
E1:
E3:
E0
E2
0260.8c01.1111
0260.8c01.2222
0260.8c01.3333
0260.8c01.4444
0260.8c01.3333
E1
X
XE3
0260.8c01.2222
0260.8c01.4444
StationAsendsaframetostationC
Destinationisknown,frameisnotflooded
BroadcastandMulticastFrames
MAC address table
A
0260.8c01.1111
0260.8c01.2222
E0:
E2:
E1:
E3:
0260.8c01.1111
0260.8c01.2222
0260.8c01.3333
0260.8c01.4444
E0
E1
E2
E3
0260.8c01.3333
0260.8c01.4444
Address learning
Forward/filter decision
Loop avoidance
Redundant Topology
Server/host X
Router Y
Segment 1
Segment 2
Broadcast Storms
Server/host X
Router Y
Segment 1
Broadcast
Switch A
Switch B
Segment 2
Broadcast Storms
Server/host X
Router Y
Segment 1
Broadcast
Switch A
Switch B
Segment 2
Broadcast Storms
Server/host X
Router Y
Segment 1
Switch A
Switch B
Broadcast
Segment 2
Unicast
Router Y
Segment 1
Switch A
Switch B
Segment 2
MultipleFrameCopies
Server/host X
Unicast
Router Y
Segment 1
Unicast
Switch A
Unicast
Switch B
Segment 2
Server/host X
Segment 1
Unicast
Unicast
Port 0
Switch A
Port 1
Port 0
Switch B
Port 1
Segment 2
Server/host X
Segment 1
Unicast
Unicast
Port 0
Port 0
Switch B
Port 1
Port 1
Switch A
Segment 2
Server/host
Loop
Loop
Loop
Workstations
Block
Spanning-Tree Operations
One root bridge per network
One root port per nonroot bridge
One designated port per segment
100baseT
Designated port (F)
Root bridge
Nonroot bridge
SW X
SW Y
Designated port (F)
Nondesignated port (B)
10baseT
Spanning-Tree Protocol
Root Bridge Selection
Switch X
Default priority 32768
(8000 hex)
MAC 0c0011111111
Switch Y
Default priority 32768
(8000 hex)
MAC 0c0022222222
BPDU
Spanning-Tree Protocol
Port States
100baseT
Port 0
Switch X
Default priority 32768
MAC 0c0011111111
Root bridge
Port 1
Port 0
Port 1
10baseT
Switch Y
Default priority 32768
MAC 0c0022222222
Spanning-Tree Protocol
Path Cost
Link Speed
Cost (reratify IEEE spec) Cost (previous IEEE spec)
---------------------------------------------------------------------------------------------------10 Gbps
2
1
1 Gbps
4
1
100 Mbps
19
10
10 Mbps
100
100
Spanning-Tree:
Port 0
Switch Z
Mac 0c0011110000
Default priority 32768
100baseT
Port 0
Switch X
MAC 0c0011111111
Default priority 32768
Port 0
Port 1
Port 1
Switch Y
MAC 0c0022222222
Default priority 32768
100baseT
Can you figure out:
What is the root bridge?
What are the designated, nondesignated, and root ports?
Which are the forwarding and blocking ports?
Spanning-Tree:
Port 0
Switch Z
Mac 0c0011110000
Default priority 32768
100baseT
Port 0
Switch X
MAC 0c0011111111
Default priority 32768
Port 1
Port 0
Switch Y
MAC 0c0022222222
Default priority 32768
100baseT
Spanning-Tree Recalculation
100baseT
Port 0
Designated port
Switch X
MAC 0c0011111111
Default priority 32768 Root Bridge
Port 1
Designated port
Port 0
Port 1
10baseT
Switch Y
MAC 0c0022222222
Default priority 32768
Spanning-Tree Recalculation
100baseT
Designated port
Port 0
Switch X
MAC 0c0011111111
Default priority 32768 Root Bridge
Port 1
x
BPDU
MAXAGE
Designated port
Port 0
Port 1
10baseT
Switch Y
MAC 0c0022222222
Default priority 32768
LAN Switching
Frame
Frame
Frame
TransmittingFramesthroughaSwitch
Cutthrough
Switchchecksdestinationaddress
andimmediatelybeginsforwarding
frame
Frame
Storeandforward
Completeframeisreceivedand
checkedbeforeforwarding
Frame
Frame
Frame
Fragmentfree
(modifiedcutthrough)Cat1900Default
Switchchecksthefirst64bytesthenimmediately
beginsforwardingframe
Frame
Duplex Overview
Switch
Hub
Duplex Overview
Switch
Hub
Full duplex
Point-to-point only
Attached to dedicated switched port
Requires full-duplex support on both ends
Collision free
Collision detect circuit disabled
Catalyst 1900
Web-based VSM
(Visual Switch Manager)
IOS CLI
(command-line interface)
Catalyst1900DefaultConfigurations
IPaddress:0.0.0.0
CDP:Enabled
Switchingmode:fragmentfree
100baseTport:Autonegotiateduplexmode
10baseTport:Halfduplex
SpanningTree:Enabled
Consolepassword:none
10baseT ports
AUI port
100baseT uplink ports
Cat1912
Cat1924
e0/1 to e0/12
e0/1 to e0/24
e0/25
e0/25
fa0/26 (port A)
fa0/27 (port B)
fa0/26 (port A)
fa0/27 (port B)
wg_sw_d#shspan
Buildingconfiguration...
Currentconfiguration:
!
!
interfaceEthernet0/1
!
interfaceEthernet0/2
PortEthernet0/1ofVLAN1isForwarding
Portpathcost100,Portpriority128
Designatedroothaspriority32768,address0090.8673.3340
Designatedbridgehaspriority32768,address0090.8673.3340
DesignatedportisEthernet0/1,pathcost0
Timers:messageage20,forwarddelay15,hold1
wg_sw_a#showvlanmembership
PortVLANMembershipType
PortVLANMembershipType
15Static
131
Static
21Static 141
Static
31Static
151 Static
ConfiguringtheSwitch
ConfigurationModes
Globalconfigurationmode
wg_sw_a#confterm
wg_sw_a(config)#
Interfaceconfigurationmode
wg_sw_a(config)#interfacee0/1
wg_sw_a(configif)#
ConfiguringtheSwitchIPAddress
wg_sw_a(config)#
ipaddress{ipaddress}{mask}
ConfiguringtheSwitchDefaultGateway
wg_sw_a(config)#
ipdefaultgateway{ipaddress}
ConfiguringtheSwitchDefaultGateway
wg_sw_a(config)#
ipdefaultgateway{ipaddress}
ShowingtheSwitchIPAddress
wg_sw_a#showip
IPaddress:10.5.5.11
Subnetmask:255.255.255.0
Defaultgateway:10.5.5.3
ManagementVLAN:1
Domainname:
Nameserver1:0.0.0.0
Nameserver2:0.0.0.0
HTTPserver:Enabled
HTTPport:80
RIP:Enabled
wg_sw_a#
SettingDuplexOptions
wg_sw_a(config)#interface e0/1
wg_sw_a(config-if)#
duplex{auto|full|fullflowcontrol|half}
wg_sw_a(config-if)#duplex half
Totalgoodframes44841Totalframes404502
Totaloctets4944550Totaloctets29591574
Broadcast/multicastframes31011Broadcast/multicastframes390913
Broadcast/multicastoctets3865029Broadcast/multicastoctets28478154
Goodframesforwarded44832Deferrals0
Framesfiltered9Singlecollisions0
Runtframes0Multiplecollisions0
Nobufferdiscards0Excessivecollisions0
Queuefulldiscards0
Errors:Errors:
FCSerrors0Latecollisions0
Alignmenterrors0Excessivedeferrals0
Giantframes0Jabbererrors0
Addressviolations0Othertransmiterrors 0
Duplex Mismatches
Totalgoodframes44841Totalframes404502
Totaloctets4944550Totaloctets29591574
Broadcast/multicastframes31011Broadcast/multicastframes390913
Broadcast/multicastoctets3865029Broadcast/multicastoctets28478154
Goodframesforwarded44832Deferrals0
Framesfiltered9Singlecollisions0
Runtframes0Multiplecollisions0
Nobufferdiscards0Excessivecollisions0
Queuefulldiscards0
Errors:Errors:
FCSerrors0Latecollisions0
Alignmenterrors0Excessivedeferrals0
Giantframes0Jabbererrors0
Addressviolations0Othertransmiterrors
0
ManagingMacAddressTable
wg_sw_a#showmacaddresstable
wg_sw_a#sh mac-address-table
Number of permanent addresses : 0
Number of restricted static addresses : 0
Number of dynamic addresses : 6
Address
Dest Interface
Type
Source Interface List
------------------------------------------------------------------------------------------------00E0.1E5D.AE2F Ethernet 0/2
Dynamic
All
00D0.588F.B604 FastEthernet 0/26 Dynamic
All
00E0.1E5D.AE2B FastEthernet 0/26 Dynamic
All
0090.273B.87A4 FastEthernet 0/26 Dynamic
All
00D0.588F.B600 FastEthernet 0/26 Dynamic
All
00D0.5892.38C4 FastEthernet 0/27 Dynamic
All
SettingPermanentMACAddress
wg_sw_a(config)#
macaddresstablepermanent{macaddresstypemodule/port}
SettingPermanentMACAddress
wg_sw_a(config)#
macaddresstablepermanent{macaddresstypemodule/port}
wg_sw_a(config)#mac-address-table permanent 2222.2222.2222 ethernet 0/3
SettingPermanentMACAddress
wg_sw_a(config)#
macaddresstablepermanent{macaddresstypemodule/port}
wg_sw_a(config)#mac-address-table permanent 2222.2222.2222 ethernet 0/3
wg_sw_a#sh mac-address-table
Number of permanent addresses : 1
Number of restricted static addresses : 0
Number of dynamic addresses : 4
Address
Dest Interface
Type
Source Interface List
-------------------------------------------------------------------------------------------------------------00E0.1E5D.AE2F Ethernet 0/2
Dynamic
All
2222.2222.2222
Ethernet 0/3
Permanent
All
00D0.588F.B604 FastEthernet 0/26 Dynamic
All
00E0.1E5D.AE2B FastEthernet 0/26 Dynamic
All
00D0.5892.38C4 FastEthernet 0/27 Dynamic
All
SettingRestrictedStaticMACAddress
wg_sw_a(config)#
macaddresstablerestrictedstatic{macaddresstypemodule/portsrciflist}
SettingRestrictedStaticMACAddress
wg_sw_a(config)#
macaddresstablerestrictedstatic{macaddresstypemodule/portsrciflist}
SettingRestrictedStaticMACAddress
wg_sw_a(config)#
macaddresstablerestrictedstatic{macaddresstypemodule/portsrciflist}
portsecure[maxmaccountcount]
Configures an interface to be a secured port
Define a maximum number of mac addresses allowed in the
address table for this port
Count can be from 1 to 132
Default is 132
ConfiguringPortSecurity
wg_sw_a(config-if)#
portsecure[maxmaccountcount]
Configures an interface to be a secured port
Define a maximum number of mac addresses allowed in the
address table for this port
Count can be from 1 to 132
Default is 132
wg_sw_a(config)#interfacee0/4
wg_sw_a(configif)#portsecure
wg_sw_a(configif)#portsecuremaxmaccount1
ConfiguringPortSecurity
wg_sw_a#showmacaddresstablesecurity
wg_sw_a#show mac-address-table security
Action upon address violation : Suspend
Interface
Addressing Security
Address Table Size
-----------------------------------------------------------------------------------Ethernet 0/1
Disabled
N/A
Ethernet 0/2
Disabled
N/A
Ethernet 0/3
Disabled
N/A
Ethernet 0/4
Enabled
1
Ethernet 0/5
Disabled
N/A
Ethernet 0/6
Disabled
N/A
Ethernet 0/7
Disabled
N/A
Ethernet 0/8
Disabled
N/A
Ethernet 0/9
Disabled
N/A
Ethernet 0/10 Disabled
N/A
Ethernet 0/11 Disabled
N/A
Ethernet 0/12 Disabled
N/A
wg_sw_a(config)#addressviolation{suspend|disable|ignore}
ShowVersion
wg_sw_a#showversion
CiscoCatalyst1900/2820EnterpriseEditionSoftware
VersionV8.01.01
Copyright(c)CiscoSystems,Inc.19931998
ROM:SystemBootstrap,Version3.03
wg_sw_duptimeis8day(s)17hour(s)53minute(s)25second(s)
ciscoCatalyst1900(486sxl)processorwith2048K/1024Kbytesofmemory
Hardwareboardrevisionis1
UpgradeStatus:Noupgradecurrentlyinprogress.
ConfigFileStatus:Filewgswd.cfgdownloadedfrom10.1.1.1
27FixedEthernet/IEEE802.3interface(s)
BaseEthernetAddress:009086733340
wg_sw_a#
ManagingConfigurationFile
To send the configuration to a TFTP server:
wg_sw_a#
copynvramtftp://host/dst_file
ManagingConfigurationFile
To send the configuration to a TFTP server:
wg_sw_a#
copynvramtftp://host/dst_file
To download the configuration from a TFTP server:
wg_sw_a#
copytftp://host/src_filenvram
ManagingConfigurationFile
To send the configuration to a TFTP server:
wg_sw_a#
copynvramtftp://host/dst_file
To download the configuration from a TFTP server:
wg_sw_a#
copytftp://host/src_filenvram
wg_sw_a#copynvramtftp://10.1.1.1/wgswd.cfg
Configurationuploadissuccessfullycompleted
wg_sw_a#copytftp://10.1.1.1/wgswd.cfgnvram
TFTPsuccessfullydownloadedconfigurationfile
ClearNVRAM
wg_sw_d#deletenvram