LAN Switching Fundamentals Flashcards
What is a Broadcast Domain?
A broadcast domain contains all devices that can reach each other at the data link layer (OSI layer 2) by using broadcast.
What is a Collision Domain?
Collection of devices that all share the same medium ie switch or hub.
What are the two major ways that traffic is able to be sent over the same wire with multiple host?
Time Division Multiplexing (Alternates signals from host so each signal has a certain amount of time before the next signal is put on the wire) and Frequency Division Multiplexing (IE Radios)
What is CSMA/CA?
Carrier Sense Multiple Access with Collision Detection
What is it called when on a communication link only one person can talk and then goes quiet while someone else talks and then talks again when it’s their turn?
Half Duplex
What is called when both sides of a communication link are able to talk at the same time?
Full Duplex
What is Carrier Sense?
When a host is listening to a wire to see if it detects 1’ and 0’s on it and if so it must be quiet
If Carrier Sense detects no 0’s or 1’s it must do what before putting 0’s and 1’s on the wire?
Wait a specific amount of time to make sure no one else starts talking first.
What is a MTU?
Maximum Transmission Unit, the maximum size of any data unit.
What is it when all devices have access to a wire and anyone can talk?
Multiple Access
What happens if collision is detected on a wire?
The transmission is stopped wherever it is and then the time to wait before putting a signal on the wire is widen a bit before trying again and will repeat this process 16 times before dropping the signal all together.
What is the structure of a DIX Ethernet Frame?
Bonus how many bytes for each field?
Preamble(8) | Destination Address(6) | Source Address(6) | Type(2) | Data (or Padding)(46 - 1500) | FCS(4)
What is the Preamble?
A constant pattern at the beginning of an ethernet frame that acts as a wake up call saying “Hey here come an ethernet packet”
What is the structure of a IEEE 802.3 Ethernet Frame?
Bonus how many bytes for each field?
Preamble(7) | Start of Frame Delimiter (1) | Destination Address (6) | Source Address (6) | Length(2) | 802.2 Header + Data (46-1500) | FCS (4)
How many bits are in a MAC Address?
48 bits
What are the first 24 bits called?
The Organizationally Unique Identifier
The last 24 bits of a MAC Address on a NIC Card are?
Unique within the organization.
In the first byte (1E Below) of a MAC Address the first two bits are very important, what does each bit represent?
1E:4B:2A:3A:BB:CA
Bit 1: Individual or Group bit.
If set to a 0 it’s an individual MAC Address. If it’s set to 1 it’s a group MAC Address , ie MAC broadcast FF:FF:FF:FF:FF:FF
Bit 2: The Global or Local bit
If set to 0 it’s a global address and if it’s set to 1 it’s a local address. The bit that is flipped during EUI-64
What is a Straight-Through Cable and when is it used?
Where pin 1 on one side goes to pin 1 on the other side and the same goes for all 8 pins.
Used when connecting devices that are at different OSI Model Layers
What is a Cross-Over Cable and when is it used?
Pin 1 goes to Pin 3
Pin 2 goes to Pin 6
Rest of the pins match up
Used when connecting devices at similar OSI Model Layers
What is a Rolled Cabled and when is it used?
The pins are reversed, pin 1 on one side goes to pin 8 on the other and you do that all the way down.
Used when connecting devices to console ports, not meant for ethernet frames.
What is a switch?
Networking device that connects devices together on a computer network by using packet switching to receive, process, and forward data to the destination device. Allows for different speeds on different ports.
How does a switch handle collision?
Separates the collision domains. Each port has memory for a receive and transport buffer so that if frames come in at the same time the port waits until it’s turn and then either sends or receives that frames.
What layer does a switch operate at?
The data link layer (2)
What is a MAC Address Table and how is it used?
Stored addresses within a switch that are learned from plugging the device into it for the first time. It uses this to know where to forward traffic to.
What is the amount of time a Cisco switch will wait before forgetting a MAC Address after not seeing it?
5 minutes.
The forwarding of frames is based off of the what?
The Destination MAC Address
What is the start up process switches and routers generally go through?
- Discover device hardware
- Find and load IOS Image
- Find and load config file
By default where is the IOS stored?
In flash memory.
By defualt where is the Start-up Config File stored?
In NVRAM memory
Which two memory typed retain their information even if the system is powered off?
Flash and NVRAM (Non-Volatile Random Access Memory)
Where is the IOS and Start-up config copied to when the device is running?
To the DRAM
What are the speeds and sizes of Flash, NVRAM, and DRAM?
Flash: Moderate Size, slow speed
NVRAM: Small Size, slow speed
DRAM: Large size, fast speed
What do you have to do with the running config after making changes to it?
Save it to the start-up config
Command:
switch# write memory
Where are the tables for the device (ie routing tables, MAC Address Tables, ARP Tables) stored?
DRAM
What mode is this?
Switch>
User or Exec Mode
What mode is this?
Switch#
Privileged Exec Mode or Enable Mode
What configuration mode is this?
Switch(config)#
Global Configuration Mode
What configuration mode is this?
Switch(config-if)#
Interface Configuration Mode
What is the command to determine the amount of line that show on a show command?
Switch#terminal length (0-512)
What is the command to take you all the way back to Privileged Exec Mode?
Switch(config-if)# end
What is the command to take you back one level in the CLI?
Switch(config-if)#exit
Switch(config)#
What is the command to prevent syslog and event messages?
Switch(config-line)# logging synchronous
What is the command to prevent DNS resolution for mistyped commands?
Switch(config)# no ip domain-lookup
What is the command to set the hostname?
Switch(config)# hostname
What is the command to set a banner?
Switch(config)# banner motd
What is the command to add an IPv4 Address to an interface?
Switch(config-if)#ip address <address></address>
What’s the command to bring an interface up and down?
(To shut it down)
Switch(config-if)#shutdown
and to bring it up
Switch(config-if)#no shutdown
What is the very first thing that is checked when a device starts up to learn where to find it’s config files and everything?
Configuration Register
What is the command to show the IOS version that is running?
Switch# show version
What is the command to display all memory locations and file names?
Switch# directory all
What is the command to show the saved and current running configs?
Switch# show startup-config
and
Switch# show running-config
How do you save your running config to the startup config?
Switch# copy running-config startup-config
copy
or
Switch# write memory
How do you set a device back to factory default?
Step 1. Delete Startup Config:
Switch#erase startup-config
or
Switch# write erase
Step 1a. (Switch only):
Switch# delete flash:vlan.dat
Step 2. Reload the device:
Switch# Reload
What are the two password commands and their differences?
Switch(config)# enable password
This stores password in plain text
Switch(config)# enable secret
Encrypts the password you entered
How do you configure a console password?
Switch(config)# line console 0
Switch(config-line)# password
What port does TCP port does telnet come in on?
Port 23
What are the commands to set 1 password on your VTY lines?
Switch(config)# line vty 0 4
Switch(config-line)#password
Switch(config-line)#login
What are the commands to set up usernames and password for your VTY lines?
Switch(config)#username privilege 15 password
Switch(config)#login local
What is CDP?
Cisco Discovery Protocol. Layer 2 protocol for neighbor discovery that provides information such as OS Version, interface, and IP Address.
What is the default timer for CDP?
60 seconds
What is LLDP?
Link Layer Discovery Protocol, opened standard version of CDP.
What is a VLAN?
Logical group of workstations, servers and network devices that appear to be on the same LAN despite their geographical distribution
What does a VLAN provide?
Separates broadcast domains, provides better security, and provides hierarchical subnet usage.
What is the VLAN range?
1-4094
What is the normal usable VLAN range?
1-1001
What VLANs are reserved for token ring?
1002-1005
What is the range of the extended range VLANS?
1006-4094
What is the command to configure a VLAN?
Switch(config)#vlan
Switch(config-vlan)#name
What is an access port?
A switchport that is configured only for a single broadcast domain.
What is a Trunk Port?
A switchport that can have two or more vlans configured on it that can allow multiple VLAN information to pass through it.
What is 802.1Q Encapsulation?
All traffic except for the native VLAN is inserted with a 802.1Q Tag (in the type field) to let the switch know which VLAN the packet is coming from .
By default what is the native VLAN?
Vlan 1
What command changes the native VLAN?
Switch(config-if)#switchport truck native vlan
What is the Auto mode of trunking?
If the other end asks me to be a trunk with DTP, then become a trunk, but I wont initiate any negotitation from this end. If no one asks me to become a trunk then I will become an access port
What is the desirable mode?
Ask the other end to trunk using DTP and trunk if the negotiation succeeds. If DTP negotiation fails then become an access port
What is the On mode of trunk?
Always trunk on this end, and I will send DTP to attempt to negotiate a trunk on the other end
Port security is not available on what type of ports?
Dynamic Ports
What does port security offer?
Limited access to switch ports by limiting which MAC addresses can access a port or the number of MAC addresses
What are the 3 outcomes if a security violation occurs?
- Shutdown (defualt)
- Protect (if a frame comes in that is a violation it will just drop the frame.)
- Restrict (Creates a log of the violations as they happen and acts as Protect mode as well.)
What is a ports default behavior for port security?
Ports do not perform security checks and just pass all traffic.