Lecture 10: Switching. Vlan. Inter-vlan Flashcards

(20 cards)

1
Q

What are the main benefits of learning VLANs and switching?

A

Helps understand how data is forwarded on networks.

Prepares students for configuration in Cisco Packet Tracer.

Covers key concepts like frame forwarding, broadcast/collision domains, VLAN, Inter-VLAN routing, and switch security.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the 5-step Cisco switch boot sequence?

A
  • POST (Power-On Self-Test) checks CPU, DRAM, flash.
  • Loads boot loader from ROM.
  • Initializes CPU registers and memory mapping.
  • Initializes flash file system.
  • Loads the default IOS image.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What do the main switch LED indicators show on Cisco 2960?

A
  • SYST: Power and health status.
  • RPS: Redundant Power Supply status.
  • STAT: Port link/activity.
  • DUPLX: Duplex mode (full/half).
  • SPEED: Port speed (10/100/1000 Mbps).
  • PoE: Power over Ethernet status.
  • The Mode button toggles LED display between these modes.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the two main switch forwarding methods?

A

Store-and-Forward: Receives full frame and checks for errors before forwarding (Cisco’s preferred method).

Cut-Through: Forwards frame immediately after reading destination MAC address (low latency).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are collision and broadcast domains?

A

Collision domain: Where data packets can collide; common in half-duplex setups with hubs.

Broadcast domain: Network area where a broadcast frame is forwarded; VLANs help reduce these.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a VLAN and what standard does it follow?

A

A Virtual Local Area Network is a logical separation within a physical network.

VLANs follow IEEE 802.1Q standard.

VLANs segment the network into smaller broadcast domains.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are access ports and trunk ports in VLANs?

A

Access port: Belongs to a single VLAN; used for connecting end devices.

Trunk port: Carries traffic for multiple VLANs; used between switches. Tagged VLANs pass through it, and untagged packets use the native VLAN.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the purpose of the native VLAN?

A

Carries untagged traffic on a trunk port.

By default, it’s VLAN 1, but it is recommended to change it for security.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the types of VLANs in Cisco devices?

A
  1. Default VLAN (VLAN 1): Used by default; cannot be deleted or renamed.
  2. Data VLANs: Created for users and hosts.
  3. Voice VLANs: Dedicated for IP phones and voice traffic.
  4. Management VLANs: Used to access and manage the switch remotely.
  5. Native VLAN: Used for untagged traffic on trunk ports.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the VLAN ID range on Catalyst switches?

A

Catalyst 2960 and 3650 switches support over 4000 VLANs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How do you configure VLANs and assign ports?

A
  1. vlan 10 → Create VLAN.
  2. name student → Name the VLAN.
  3. interface f0/2
    switchport mode access
    switchport access vlan 10
  4. interface g0/1
    switchport mode trunk
    switchport trunk allowed vlan 10,20
    switchport trunk native vlan 99
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the types of Inter-VLAN Routing?

A

Legacy routing: One physical port per VLAN on a router.

Router-on-a-Stick: Single trunk port with subinterfaces for each VLAN (e.g., int g0/0.10).

Layer 3 Switch Routing: Uses SVIs (Switch Virtual Interfaces) and enables ip routing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is DTP and how do modes interact?

A

Dynamic Trunking Protocol (DTP) negotiates trunk links automatically.
* Modes: Dynamic Auto, Dynamic Desirable, Access, Trunk.
** Auto + Auto = Access
** Auto + Desirable = Trunk
** Desirable + Desirable = Trunk
** Trunk + Trunk = Trunk

*For security, disable DTP with switchport nonegotiate.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is VTP?

A

VTP (VLAN Trunking Protocol) synchronizes VLANs across switches.
Modes:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are VTPs modes?

A

Server: Can create, delete, and advertise VLANs.

Client: Cannot create VLANs but receives them from server.

Transparent: Does not participate in advertisements but forwards them.

Config Example:
vtp mode server
vtp domain mydomain
vtp password mypass

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is port security in switches?

A

Port security restricts access based on MAC addresses.

17
Q

What are MAC address learning types in port security?

A

Manual: Admin enters MAC addresses explicitly.

Dynamic: Switch learns MACs automatically but doesn’t save them.

Sticky: Learned MACs are saved to configuration if you save the running-config.

18
Q

What are port security violation modes?

A

Protect: Discards unauthorized traffic silently.

Restrict: Discards and logs unauthorized traffic.

Shutdown: Disables the port entirely (default behavior).

19
Q

What is VLAN hopping and how does double tagging work?

A

VLAN hopping: Attack where frames are sent into unauthorized VLANs.

Double tagging: Frame contains two VLAN tags, the outer is removed by first switch, second tag lets it access a different VLAN.

20
Q

How can VLAN attacks be mitigated?

A

Disable DTP on all access ports (switchport mode access).

Place unused ports into an unused VLAN.

Manually set trunk ports (switchport mode trunk).

Disable DTP on trunks with switchport nonegotiate.

Change native VLAN to a non-default VLAN.