Day 2 - CSMA / CD, Switching, and VLANs Flashcards
What is CSMA/CD?
Carrier Sense Multiple Access with Collision Detection
What does Carrier Sense mean?
That the wire is listened to in order to determine whether there is a signal passing along it.
What does Multiple Access mean?
More than one device is using the cables on the segment.
What is Collision Detection?
An algorithm used by a protocol to determine whether frames on the wire have become damaged due to hitting another frame.
Do switches reduce or increase the amount of collision domains?
Switches increase the number of collision domains.
If four PCs are connected to a switch how many collision domains are there?
Four.
Do switches or routers separate Broadcast domains?
Routers.
Do hubs reduce or increase the amount of collision domains?
Neither. Hubs extend the collision domain they are a part of.
What are the commands to adjust the speed on an interface?
interface [interface name]
speed [10,100,auto]
Do switches switch packets, frames or segments?
Frames.
What type of frame is switched out of all interfaces but the one on which they were received?
Broadcast and frames without a known destination (not in the MAC table).
What are the three main actions a switch must perform to function?
Forwarding or filtering (dropping) frames based on destination MAC addresses
Learning MAC addresses from incoming frames
Using STP to prevent Layer 2 loops
Any delay in passing traffic is know as ?
latency.
What are the three ways Cisco switches can switch traffic and which way is the default on modern switches?
Cut-through
Store-and-forward (default)
Fragment-free
What are the pros and cons of Cut-through switching?
Fastest switching method/lowest latency
No error checking
What are the pros and cons of Store-and-forward switching?
Error checking via CRC
Highest latency
What are the pros and cons of Fragment-free switching?
Quick and reliable
Only checks the first 64 bytes of a frame so any errors after that will be forwarded
What is CRC error checking?
Cyclic Redundancy Check
What is the minimum size of an Ethernet frame?
64 bytes
Fragment-free switching is also know as ?
runt-free switching
Hubs are also know as ?
multiport repeaters
Do hubs store MAC addresses?
no
The memory chip contained in a switch is know as a ?
application specific integrated circuit (ASIC)
Where is the switch table listing devices and ports stored?
Content Addressable Memory (CAM)
What is the switch command to display the CAM table?
show mac-address-table
What does OUI stand for?
Organizationally Unique Identifier
A MAC address is made up of how many bits and are they hex or binary?
48 binary bits
A MAC address is made up of a OUI of 24 binary bits and a ? of ? bits?
Vendor’s Number
24 binary bits
Name the seven components of the IEEE 802.3 Ethernet frame
Preamble Start-of-frame delimiter (SFD) Destination address Source address Length Data Frame-check sequence
What is the Preamble in an Ethernet frame?
synchronises and alerts the network card for the incoming data
What is the SFD in an Ethernet frame?
Start-of-frame delimiter, it indicates the start of the frame
What are the three different types of Destination MAC addresses?
Unicast
Broadcast
Multicast
What does the Length in an Ethernet frame specify?
defines the length of the Data field in the frame
What is FCS in an Ethernet frame and what does it do?
Frame-check sequence and it provides a cyclic redundancy check (CRC) on all data in the frame
What is some of the information that the ‘show version’ command provides?
Switch uptime Model IOS release Reason for last reload Interfaces and type Memory installed Base MAC address
A VLAN is ?
a logical Local Area Network where devices could be anywhere on the network physically but, as far as they are concerned, they are all directly connected to the same switch
If you want to connect to a switch over the network what do you have to do?
Add an IP address to a VLAN known as a management address
What is the command to tell the switch where to send all IP traffic?
config t
ip default-gateway [gateway ip]
What is the command to change the default name of the switch?
config t
hostname [some name]
What are the commands to enable remote access to the switch?
config t
line vty 0 15
password [some password]
login
What is the command to force only SSH connections to the switch?
config t
line vty 0 15
transport input ssh
A LAN is essentially a ?
broadcast domain
What are four advantages of VLANs?
faster network by containing broadcasts
saves resources on devices because they process less broadcasts
added security by keeping devices separate
flexibility in expanding devices across a geographical location of any size
What is IEEE 802.1Q?
a vendor independent method to create interoperable VLANs also known as frame tagging.
What is the limit to the number of VLANs that can be tagged using 802.1Q?
4096
What is a port called that carries data from multiple VLANs?
a trunk
What is a “native VLAN”?
A particular type of 802.1Q VLAN in which frames are not tagged.
What are the two ways ports can be associated with VLANs?
statically
dynamically
What is Cisco’s 802.1Q protocol called?
ISL
Dynamic VLAN assignment allows devices to join a specific VLAN based on ?
the MAC address of the device
Ports are assigned to ?
VLANs
Devices are connected to ?
ports
Switch ports or links can be of what type ?
Access
Trunk
Dynamic
Access links typically connect the switch to ?
hosts
VLAN trunks are used to carry data from ?
multiple VLANs
What is the command to set a switch port to trunking?
switchport mode trunk
What are the five possible modes a trunk link can be in?
On Off Auto Desirable No-negotiate
Describe the On trunk mode
forces the port into permanent trunking mode. The port becomes a trunk, even if the connected device does not agree to convert the link into a trunk link.
Describe the Off trunk mode
the link is not used as a trunk link, even if the connected device is set to “trunk.”
Describe the Auto trunk mode
the port is willing to become a trunk link. If the other device is set to “on” or “desirable,” then the link becomes a trunk link. If both sides are left as “auto,” then the link will never become a trunk, as neither side will attempt to convert.
Describe the Desirable trunk mode
the port actively tries to convert to a trunk link. If the other device is set to “on,” “auto,” or “desirable,” then the link will become a trunk link.
Describe the No-negotiate trunk mode
prevents the port from negotiating a trunk connection. It will be forced into an access or trunk mode as per the configuration.
What is the command to see which VLANs exist on a switch?
show vlan
What is the command to label a VLAN?
vlan 5
name [some vlan name]
What is the command to add port fa0/1 to VLAN 5?
interface fa0/1
switchport access vlan 5
What is the command to verify which ports are trunking?
show interface trunk
What is the command to change the native VLAN on trunking port?
switchport trunk native vlan [vlan#]
What command deletes all VLAN info on a switch?
delete vlan.dat
What is the first thing you should check if you cannot telnet to a switch?
whether telnet has been enabled using the ‘show run’ command and looking for ‘login’ or ‘login local’ and ‘password’ under the vty lines
What is the first thing you should check if you cannot ping a switch?
That an IP address has been configured on the switch and that it has a default gateway
What are signs of duplex mismatches?
input and CRC errors on the switch interface
Switches contain a memory chip known as an _______, which builds a table listing which device is plugged into which port.
ASIC
The _______ _______-_______-_______ command displays a list of which MAC addresses are connected to which ports.
show mac-address-table
Which two commands add an IP address to the VLAN?
The interface vlan x command and the ip address x.x.x.x command.
Which commands will enable Telnet and add a password to the switch Telnet lines?
Switch1( config)# line vty 0 15 Switch1( config-line)# password cisco Switch1( config-line)# login
How do you permit only SSH traffic into your Telnet lines?
Use the Switch1( config-line)# transport input ssh command.
What is the most likely cause of Telnet to another switch not working?
The authentication method is not defined on another switch.
Switches remember all VLAN info, even when reloaded. True or False?
True
A switch interface can be in which of three modes?
Trunk
Access
Dynamic
How do you set a switch to be in a specific mode?
Apply the switchport mode command in Interface Configuration mode.
Which commands will change the switch duplex mode and speed?
The duplex and speed commands.