Module 3 - Implementing Cisco LAN Connectivity Flashcards

1
Q

Layer 2 - Switches

A

They operate at the OSI Layer 2, they are by default seen as one physical broadcast domain. Any broadcast frame sent is flooded everywhere. L2 Switches can be logicially split into VLANs. VLANs allow for the switch to be logically segmented… this can improve performance, improve security, provide flexibility.

Layer 3 device is needed to forward traffic from one broadcast domain to another.

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

VLANs

A

VLANs create separate broadcast domains.

VLAN 1 is the default VLAN and cannot be deleted.

VLANs can route by using ROAS - router on a stick or intervlan routing with use of SVI’s on a L3 switch.

VLANs can be departmental, physical location based such as floor based, they also have a number and generally a descriptive name.

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

Configuring and Showing VLANs

A

switch1 - vlan 2

Configuring Vlans by entering into global config mode :

name Sales

vlan 20

name IT

Show VLAN info

show vlan 2

show vlan brief - summary information

show interface fa0/3 switchport - shows capabilities of a switchport

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

Q.

Which command assigns a port to VLAN 20?

A

A.

switchport access vlan 20

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

VLANs Continued

A

Common VLAN traits:

  • A VLAN is a virtual LAN.
  • VLAN = broadcast domain
  • VLAN = logical network (subnet)

VLANs address these needs:

  • Segmentation
  • Security
  • Network flexibility

Addressing VLANs

VLANs are usually addressed by the VLAN number in the subnet. For example 3 VLANS - VLAN 10, 20, 30 could be IP addressed as follows

vlan 10 - 10.0.10.0/24
vlan20 - 10.0.20.0/24
vlan30- 10.0.30/0/24

this can help administratively and keeps things clean. This is common to see in networks.

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

Assigning a port to a VLAN

A

SwitchX# configure terminal SwitchX
(config)# interface FastEthernet 0/3
SwitchX(config-if)# switchport mode access
SwitchX(config-if)# switchport access vlan 2
SwitchX(config-if)# switchport voice vlan 20

After creating a VLAN, you can manually assign a port or many ports to this VLAN. An access port can belong to only one VLAN at a time.

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

Vlan Verification cmds

A

show vlan id 2 or show vlan name - command to display information about a particular VLAN.

show vlan brief - a summary information of VLANs

show vlan - command to display information on all configured VLANs. The show vlan command displays the switch ports that are assigned to each VLAN.

show interface FastEthernet0/3 switchport - for detailed switchport operational status and mode it is operating in.

Remember VLAN information created is stored in vlan.dat file on the device.

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

Trunks Overview

A

The 802.1q IEEE standard is used for trunking. Trunking is used between switches and adds a tag field into the header frame. Most important is the 12-bit vlan-id this tags the frame with the VLAN which allows for multiple tagged vlans to be forwarded over a trunk link.

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

Native VLAN

A

The Native VLAN by default is VLAN1, anything sent from an access port within VLAN 1 is left untagged. VLAN 1 or the native VLAN if it is changed is used to send untagged traffic such as CDP information or anything native across a trunk link.

Broadcast traffic does traverse a trunk link. If it is a 802.1q tagged frame then the tag is removed and flooded and if it is native then there if no tag but the same principle still applies.

Cisco switches use Cisco Discovery Protocol to warn of a native VLAN mismatch. On select versions of Cisco IOS Software, Cisco Discovery Protocol may not be transmitted or will be automatically turned off if VLAN 1 is disabled on the trunk.​

Best practice - Is to configure a native vlan on something other than VLAN 1.

Remember - with native vlans the same side must be configured to use the same native vlan.

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

Trunking Interfaces

A

Trunks are simply interfaces which are configured in a specific way.

show interfaces fa0/0 switchport | trunk can be used to view trunking status

show interfaces trunk also is useful.

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

IEEE 802.1Q FRAME

A

The original frame is expanded and a 4 byte tag field is added into the frame. The 4 byte field includes the following:

  • Type or Tag Protocol Identifier (16 bits) is set to a value of 0x8100 to identify the frame as an IEEE 802.1Q-tagged frame.
  • Priority (3 bits) indicates the frame priority level that can be used for the prioritization of traffic.
  • If flag (1 bit) is 1, the MAC address is in noncanonical format. If flag is 0, the MAC address is in canonical format.
  • VLAN ID(12 bits) uniquely identifies the VLAN to which the frame belongs.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Configuring a trunk interface

A

Steps to configure a trunk interface and change the native vlan

conf t - enter into global config mode

int fa0/1 enter interface config mode

switchport mode trunk change the switchport to mode to trunk

switchport trunk native vlan 99 change the native vlan to 99

show interface fa0/1 switchport verifies the switchport status

Many Cisco Catalyst switches support DTP (Dynamic Trunking Protocol), which manages automatic trunk negotiation. DTP is a Cisco proprietary protocol. Switches from other vendors do not support DTP. DTP is automatically enabled on a switch port when certain trunking modes are configured on the switch port. DTP manages trunk negotiation only if the port on the other switch is configured in a trunk mode that supports DTP.​

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

Q.

Which type of port allows for frames from many VLANs to be tagged indicating to which VLAN they belong?

A

Trunk port.

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

Inter-vlan routing

A

Routing is neccessary to route traffic between VLANs. A layer 3 device is needed to perform this. The ‘traditional approach’ of having a switch with multiple links for each vlan going into a router is not practical as it doesn’t scale well. ROAS is recommended for simple configurations and small networks.

ROAS uses a trunk link, makes use of sub-interfaces. If using a L3 switch then remember that IP Routing must be enabled.

Remember these key concepts with VLANS:

  • Inter-VLAN communication occurs between broadcast domains via a Layer 3 device.
  • A VLAN creates a separate switching segment.
  • Traffic cannot be switched between VLANs.
  • VLANs have different IP subnets.
  • Routing is necessary to forward traffic between VLANs.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Layer 3 based Inter-vlan based routing

A

ip routing !

interface Vlan10
ip address 10.1.10.1 255.255.255.0
no shutdown !

interface Vlan20
ip address 10.1.20.1 255.255.255.0
no shutdown

This is more flexible than a router based ROAS as the trunk links can be quite busy. Just remember to enable IP routing and ensure that the ports are correctly configured.

In general, a Layer 3 switch is primarily a Layer 2 device that has been upgraded to have some routing capabilities. A router is a Layer 3 device that can perform some switching functions.

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

Q.

Which inter-VLAN routing option best describes a “Router on a stick”?

A

A.

A router that is connected to a switch trunk port with a single interface that is configured with subinterfaces that perform 802.1Q encapsulation for each VLAN.

17
Q

Q.

Which two statements about inter-VLAN routing in the following topology are true? (Choose two.)

A

2) The Ethernet 0/0 interface on R1 must be configured with subinterfaces.
5) The same encapsulation type must be configured on the Ethernet 0/0 interface on R1 and Ethernet 0/0 on SW2.

18
Q

Q.

Which command would set an interface to trunk mode?

A

switchport mode trunk

19
Q

From configuration mode, what command sequence would create VLAN 20 and name the VLAN Voice?

A

SW1(config)# vlan 20 SW1(config-vlan)# name Voice

20
Q

Which is a VLAN that exists in the VLAN database and cannot be deleted?

A

default VLAN 1

21
Q

Which two commands would allow you to verify that interface FastEthernet 0/3 is set to access mode? (Choose two.)

A

show interface FastEthernet0/3 switchport

show interface trunk

22
Q

Which command would allow you to see all interfaces that are configured in trunk mode and the VLANs that are allowed on those trunk ports?

A

show interfaces trunk

23
Q

Which command when issued on a trunking interface, would set a VLAN that is not to be given an 802.1q tag?

A

SW2(config-if)# switchport trunk native vlan 99

24
Q

Which inter-VLAN routing option uses a router with individual physical interfaces connected to switchport configured as access ports in separate VLANs?

A

Traditional inter-VLAN routing