VLANs Flashcards

1
Q

What OSI Layer do VLANs live at?

A

Layer 2

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

True or False - Switches do not forward broadcast traffic by default

A

False. They do forward broadcast traffic by default

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

True or False - Switches forward broadcast traffic everywhere, including between IP Subnets

A

True

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

What kind of traffic were VLANs designed to segment?

A

Broadcast Traffic

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

What does broadcast traffic on a switch bypass?

A

It bypasses the router and/or the firewall because it’s a Layer 2 broadcast

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

VLANS segment the LAN into what?

A

Separate Broadcast Domains

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

If you have VLANs set up on a switch, the switch will only allow traffic within the same what?

A

VLAN

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

How would you create a VLAN on a switch?

A

vlan {vlan #id}
vlan {name}

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

How would you put an interface in a specific VLAN?

A

int {int}
switchport mode access
switchport acc vlan {vlan-id}

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

How would you configure a range of interfaces from fa0/1 to fa0/5 to go in a VLAN?

A

int range fa0/1 - 5
sw mode access
sw acc vlan {vlan #id}

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

What is the command to verify which ports are in specific VLANs?

A

show vlan brief

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

What is the command to view specific information about a switchport?

A

show int {int} switchport

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

If you’re sending unicast traffic to a different subnet with both devices in VLAN 1 will the traffic make it there without a router?

A

No, unicast traffic between subnets still need a router to get to where it’s going

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

Scenario: You have 3 computers.

PC1: 10.10.10.5/24
PC2: 10.10.10.6/24
PC3: 10.10.20.2/24
All 3 are in VLAN 1

If PC1 sends a ping to 10.10.10.255 will PC3 receive that broadcast traffic as well?

A

Yes, broadcast traffic, regardless of what subnet the device is in, will get forwarded out ALL ports on the switch.

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

Do switches send traffic between multiple VLANs?

A

No, routers do this

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

What encapsulation mode is a VLAN Trunk configured in?

A

Dot1Q

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

Why would you want to have trunk ports between switches?

A

So that your devices can talk to other devices in their same VLAN on other switches.

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

What happens to the Layer 2 header when it forwards traffic to another switch for the same VLAN?

A

It tags the Layer 2 Dot1Q header with the correct VLAN

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

When a switch receives a packet with a Layer 2 header Dot1Q VLAN tag for VLAN 299. What ports will it send that traffic out of?

A

Only ports configured in VLAN 299

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

What happens when a switch forwards traffic tagged with a Dot1Q VLAN out to an access port?

A

It strips the Layer 2 Dot1Q tag. The end device isn’t VLAN aware so it wouldn’t know what do with it

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

Scenario: If you have a server with multiple VMs running in multiple different VLANs, what should you make sure of?

A

You need to have the link between the switch and the server trunked

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

True or False - For a phone that is daisychained, you only need to have the voice vlan command configured

A

False. You need to the port configured in access mode and also the access vlan designation as well

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

How would you configure a trunkport?

A

int {int}
description {description of trunk port}
switchport trunk encapsulation dot1q (modern switches don’t require this command)
switchport mode trunk

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

Do you need to configure both sides of the link to be a trunk?

A

Yes

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

What is the default native VLAN?

A

1

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

Do Native VLANs have to match on both sides of a trunk to come up?

A

Yes

27
Q

What is a Native VLAN used for?

A

To assign any traffic which is untagged on a trunk port to the native VLAN

28
Q

What is a full configuration for a Trunk Port to SW2 with a Native VLAN of 100 on int gi1/0/1

A

vlan 100
name Native VLAN

int {int}
description Trunk to SW2
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk native vlan 100

29
Q

How would you LIMIT allowed VLANs on a switch?

Allowed: 10
Allowed: 20
Allowed: 30
Not Allowed: 40

A

int {int}
switchport trunk allowed vlan 10,20,30

We don’t include 40 because it’s not allowed

30
Q

If two switches are cabled together in the right circumstances they can negotiate a trunk using what?

A

Cisco’s Dynamic Trunking Protocol

31
Q

What is switchport mode dynamic auto?

A

This command will form a trunk IF the neighbor switch port is set to trunk or switchport mode dynamic desirable

32
Q

This will form a trunk if the neighbor switch port is set to trunk, desirable or auto. Default on older switches.

A

sw mode trunk or switchport mode dynamic desirable

33
Q

How would you disable DTP?

A

switchport nonegotiate

34
Q

What command would you enter to check the administrative mode on a switchport?

A

show int {int} switchport

35
Q

What 2 items would be in the Operational Mode of a show int switchport command?

A

It will show whether it’s a Trunk or Access port

36
Q

What 2 items would be in the Administrative Mode of a show int switchport command?

A

Dynamic Auto or Dynamic Desirable

37
Q

An Access port is considered what type of port?

A

An untagged port

38
Q

A Trunk port is considered what type of port?

A

A tagged port

39
Q

Do untagged packets contain a VLAN tag?

A

No

40
Q

How many VLANs can an untagged port belong to?

A

1

41
Q

True or False - A tagged port can send both untagged and tagged packets

A

True

42
Q

When a tagged port receives an untagged packet it does what?

A

It applies its native VLAN to that packet

43
Q

When an untagged port (Access Port) receives a Tagged Packet (Containing a VLAN Tag) the switch will do what?

A

Send it out the port with that VLAN tag or it will drop the packet if the VLAN tag on the packet is not the same as the VLAN configured on that port

44
Q

Packets that match the native VLAN configured on a tagged port are sent out as what?

A

Untagged packet because the tagged port will strip the dot1q header off as it sends it out to the switchport

45
Q

What is the default DTP mode on modern switches?

A

Switchport mode dynamic auto

46
Q

What does VTP stand for?

A

VLAN Trunking Protocol

47
Q

What is VTP used for?

A

VTP allows you to add, edit or delete VLANs on switches configured as VTP Servers and have other switches configured as VTP Clients sync their VLAN database with the Server

48
Q

Will a transparent mode VTP switch get updated with the Server’s VLAN database?

A

No, transparent mode will not update anything that the Server mode switch pushes

49
Q

How do you configure a VTP mode server?

A

config mode
vtp domain {domain-name}
vtp mode server

50
Q

How do you configure a VTP mode client?

A

config mode
vtp mode client

51
Q

How do you configure a VTP mode transparent switch?

A

config mode
vtp mode transparent

52
Q

If you want a transparent switch to know about the VLANs in a network, what do you need to do?

A

Manually add the VLANs because since it’s in transparent mode it will not receive VLAN database info from the server mode switch

53
Q

How would you verify VTP?

A

show vtp status

54
Q

If you wanted to, could you manually add, edit or delete VLAN database info on a Client mode switch?

A

No, that has to come the server mode switch

55
Q

What 3 types of InterVLAN routing are there?

A
  1. Router with Separate Interfaces
  2. Router on a Stick
  3. Layer 3 Switch Routing
56
Q

What are the commands to configure Layer 3 Switching on a non-WAN configuration?

A

ip routing
int vlan {vlan-id) (this creates the SVI)
ip address {ip-address} {subnet-mask}

57
Q

What are the commands to configure WAN Layer 3 Routing on a Switch?

A

int {int}
no switchport
ip address {ip-address} {subnet-mask}

then include that port in a network statement for a routing protocol or use a static route

58
Q

Assigning IP Addresses to an interface in the same subnet as other connected devices on the Router and then tagging them in the proper VLAN on the switch as an access port is considered what type of InterVLAN routing?

A

Router with Separate Interfaces

59
Q

Why is Router with Separate Interfaces considered bad practice?

A

Because you’ll quickly run out of interfaces to use on the router

60
Q

What commands would be used to configure Router with Separate Interfaces?

A

On the Router:
int {int}
ip address {ip-address} {subnet-mask}

On the Switch:
sw mode acc
sw acc vlan {vlan}

61
Q

For Router on a Stick to work the cable going from the Switch to the Router has to be a what?

A

A Trunk Port

62
Q

What does a Subinterface look like on a Router?

A

int fa0/1.10

or even

int gi0/2.20

63
Q

What are the commands to configure Router on a Stick on the Router and the Switch?

A

Router
int {int}
no ip address
no shut

exit out of the int

int {sub-interface} – Ex: int fa0/1.10
encapsulation dot1q 10
ip address {ip-address} {subnet-mask} (This will be the gateway address for that VLAN)

On the Switch
int {int}
sw mode trunk

64
Q

What are the general steps to create a VLAN and have it configured for interVLAN routing and WAN routing to other sites?

A
  1. Create the VLAN
  2. Enable IP Routing
  3. Create the SVI and IP it w/ a subnet mask
  4. Configure the Layer 3 interface to have it be a no switchport and add an IP Address and add a subnet mask to it
  5. Include that Layer 3 interface in a routing protocol or a static route