Ccna Exam Flashcards

1
Q

What info can you see in MAC address table? (4)

A

Vlan

MAC address

Type

Ports

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

What fields are in a UDP Header (5)

A

64 bits long

Source Port 16 bits

Destination Port 16 bits

Length 16 bits

Checksum 16 bits

Data - Size varies

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

Does Layer 2 switch have a MAC address?

A

Yes for remote access management

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

What speeds does Cat6a cable support

A

10G

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

What commands are used to configure DHCP?

A

Interface [interface] IP address dhcp

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

What commands can be used to see the application ports available?

A

Show control-plane host open-ports

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

Steps for switch install (6)

A
  1. Confirm power and environmental needs
  2. Rack and stack
  3. Verify cabling
  4. Connect power (switch has no power button so will automatically turn on now)
  5. Watch boot- POST begins and switch LEDs blink. Then IOS text output shown
  6. Ready to config
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What info is displayed in show control-plane host open-host

A

Protocol (tcp or UDP)

Local address (port number)

Foreign address

Service (ssh-server, telnet, HTTP core, NTP)

State - listen, establish

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

What speeds does Cat5e support?

A

1G

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

What types of memories are there on routers? (4)

A

RAM - volatile- lost when powered off - holds running config

NVRAM - stays when powered off - holds startup config, software configuration register

ROM - can’t change - used to recover pwd, download software, holds bootstrap

Flash - holds IOS

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

How does ARP work if IPv4 address outside the network

A

Asks for the MAC for IP….sees not in subnet Sends out default gateway

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

What are the capability codes in show cdp neighbor

A

R-Router

T-trans bridge

B-source route bridge

S-switch

H-host

I-IGMP

r-repeater

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

What info is displayed on show cdp neighbors? (6)

A

Device ID

Local Interface (interface on this dev connected to neighbor)

Hold time (how long to hold data)

Capability code

Platform

Port ID (interface on neighboring dev that is connected to this one)

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

What speeds does Cat5 cable support

A

100M

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

What speeds does Cat7 cabling support

A

10G

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

What commands can you use to exit interface config mode? (1)

A

Exit

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

What commands do you use to set IP address to an interface?

A

Config t Interface [interface] IP address [ip] [subnet mask] No shutdown

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

What commands do you use to change host name

A

Config t Hostname [hostname]

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

What applications does TCP/IP support? Give application, port number and if TCP or UDP (8)

A

FTP. 21. TCP

SSH. 22. TCP

Telnet 23 TCP

HTTP 80 TCP

HTTPS 443 TCP

DNS 53 TCP and UDP

TFTP 69 UDP

SNMP 161 UDP

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

What commands do you use to clear the MAC address table?

A

Clear MAC address-table dynamic

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

What commands can be used to exit privileged exec mode? (2)

A

Disable

Exit

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

What are the flags available in TCP header

A

They are control bits

Nonce Sum (NS) - enables receiver to show aegis ack

Congestion Window Reduced (CWR) - ack the congestion-id’ing echoing received

Explicit Congestion Notification Echo (ECE) - ids congestion

Urgent - data should be prioritized over other data

Acknowledgment (ACK) - used to ack

Push (PSH)- IDs app data to be transmitted immediately and not wait for entire TCP seg

Reset (RST) - IDs connection be reset

Synchronize (SYN) - synch sequence #s

Finish (FIN) - IDs no more data from sender

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

What commands are used to configure DHCP relay?

A

Interface [interface] Ip helper-address [DHCP server IP]

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

What info can you get from show version (5)

A

Lots but IOS software version Switch up time System image file Switch platform Processor board ID

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

How does MAC address table get updated? (6)

A
  1. Switch gets frame from PC A on port 1
  2. Switch enters source MAC of PC A and switch port received on in MAC table
  3. Switch checks table for destination MAC. If address unknown it floods frame to all ports except one received on
  4. Destination device with matching MAC replies with unicast frame to PC A
  5. Switch enters source address of PC B and port number of switch port received frame on into MAC table
  6. Now can forward frames between PC A and PC B
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

Provide media, max length and connector type for 1000BaseSX

A

62.5/50 micron MMF

275m or 550m

Optical fiber connector

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

What info is displayed for show cdp neighbors detail

A

ip addys configed on neighbor device

Version of software it’s running

Management ip

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

What are class A IP addresses? How many octets are network? What binary does it start with? Valid address range? Valid public IPs? Valid private IPs?

A

Huge networking up to 16M hosts

First octet network

Starts binary 0

Range 1-126

Public 1.0.0.0 - 9.255.255.255 and 11.0.0.0 - 126.255.255.255

Private 10.0.0.0/8

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

What IP is used for loopback

A

127.0.0.1

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

What command clears one ip from the arp table

A

Clear ip arp 192.168.3.2

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

What commands are used to leave user EXEC mode? (3)

A

Logout

Exit

Quit

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

What is UTP? What speeds does it support? What length cable does it support?

A

Unshielded Twisted-Pair Cable - 4pair-cheap

Speeds 10M to 50G

Supports up to 100m or 328 ft (30m if 40G)

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

IP address size and portions

A

32 bits

Made up of network and hosts

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

What commands are used to turn off CDP

A

Config t

No cdp run Interface [interface]

No cdp enable

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

What are Class D IP addresses? What binary do they begin with? What are the valid address ranges?

A

Multicasts Always destination addresses

Begins with binary 1110

224-239

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

What uses straight through cabling (3)? What uses crossover cabling? (4)

A

Straight through (unlike)

Switch to router

Switch to PC

Switch to Server

Cross over (like to like)

Switch to switch

Router to router

Router to PC

PC to PC

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

What types of ports are there on routers?

A

Management

Network

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

What commands do you use to add a description to an interface?

A

Config t Interface [interface]

Description [description]

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

What are Class B IPs? What portion is network? What binary do they start with? What is the address range? What are valid Public IPs? What are valid Private IPs?

A

Moderate to large businesses with more than 65,000 hosts

First two octets network

Binary starts with 10

Address range 128-191

Public IPs 128.0.0.0 - 172.15.255.255 and 172.32.0.0 - 191.255.255.255

Private IPs 172.16.0.0/12

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

What commands can you use to verify duplex modes? (1)

A

Show interfaces [interface]

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

What commands are used to set duplex and speed settings on interfaces?

A

Config t

Interface [interface]

Duplex [full] or [half] or [auto]

Speed [speed] or [auto]

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

How can you use ARP to resolve MAC of local IPv4 address?

A

PC sends ARP broadcast for MAC addy of specific IP within same network

Gets back ARP reply via a unicast from the PC that owns the IP with the MAC address

Updates ARP table

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

What are Class E IP addresses? What binary do they start with? What are the valid IP ranges?

A

Experimental

Never assigned to hosts

Begins with binary 1111

240-255

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

Provide media, max length, and connector type for 1000BaseLX

A

9-micron SMF

5-10k

Optical fiber connectors

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

What commands can you use to view MAC address on interface? (2)

A

Show interface [interface] | include address

Or

show interfaces [interface] | include bia

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

What speeds does Cat6 support

A

10G

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

What commands do you use to set a default gateway?

A

Config t ip default gateway [ip]

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

What fields are in IPv4 headers? (14)

A

Source Type - info on QoS

TTL - lifetime of packet (1-255)

Source IP

Destination IP

Version of IP

IHL - internet header length

Total Length ID - used to unfragment IP

Flag - regards to fragmentation

Fragment offset - IDs where frag belongs

Protocol - upper layer protocol (like 6 is TCP)

Header Checksum - used error detection Options - optional parameters

Padding - extra data to ensure ends on 32 bit boundary

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

What commands can be used to confirm Interface configs and status

A

Show ip interface brief

Show protocols [interface]

Show interfaces

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

What commands can be used to see what interfaces you are connected to?

A

Show cdp neighbors

Show lldp neighbors

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

What commands can be used to exit global config mode? (3)

A

Exit

End

ctrl-Z

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

Provide media, max length, and connector type for 100BaseFX

A

62.5/125 micron MMF

400 meters

Duplex MIC ST

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

What are the functions of TCP/IP (6)

A

Session Multiplexing

Identifying applications

Segmentation

Flow Control

Connection-Oriented Protocols

Reliability

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

What info can you get from show interface [interface] (4)

A

Is physical and line protocol up?

MAC info - type and MAC address

Duplex/Speed 5 min

Input rate (interface traffic stats)

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

What are headers in Ethernet frame? (6)

A

Preamble (8 bytes) - used to synchronize the signals

Destination MAC (6 bytes)

Source MAC (6 bytes)

Type (2 bytes) - code that IDs network layer protocol

Payload (46-1500 bytes) - network layer data (if not 46 bytes will add padding)

FCS (4 bytes) - checks for errors via CRC

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

The difference between a ARP cache and MAC address table

A

ARP cache is on host

ARP is MAC to IP address table

MAC address table is on a switch

MAC address table is MAC address and physical port info and VLAN

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

Provide media type, max length and connector type for 1000BaseT

A

Cat5e UTP (4 pair)

100m

RJ-45

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

Where is the MAC address table stores?

A

In CAM memory

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

What is a MAC address

A

IDs NIC interface of device -hard coded or burned in Link layer address

12 hexadecimal numbers

48 bits

1st 24 are OUI (manufacturer of NIC)

Last 24 are vendor assigned end station

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

What commands are used to turn off an application port on a router?

A

Config t

No ip [port name]

i.e.: no ip http server

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

What info does show running-config provide

A

A lot of info

See IP address

See default gateway

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

What is the max length for Ethernet gram

A

1518 bytes

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

What commands can be used to confirm IPv4 config is correct? (3)

A

Show running config interface [interface]

Show ip interface brief Ping

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

What are the routers components? (4)

A

CPU

Motherboard

Memory

Ports

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

Provide media, max length and connector type for 100BaseTX

A

Cat5 UTP (2-pair)

100 meters

RJ-45

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

What IP address is used to AutoConfig IPv4

A

169.254.0.0/16

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

What are the Switch LED lights and what do they mean? (8)

A

SYS- system status

RPS - status of Redundant power supply

STAT - each port LED status of that port

DUPLX - duplex of port…on is full duplex off is 1/2 duplex

SPEED - off is 10M, solid green is 100M, flashing is 1G

PoE - if on supplying PoE

Mode - toggles thru STAT, DUPLX, SPEED, PoE

Port - based on port mode

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

What are Class C IP addresses? How many octets are network? What binary does it start with? What are valid address ranges? What are the Public Ranges? What are the Private Ranges?

A

Most common - for small medium Max 254 hosts

First three octets network

Begins binary 110

192-223

Public range 192.0.0.0 - 192.167.255.255 and 192.169.0.0 - 223.255.255.255

Private range 192.168.0.0/16

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

What fields are in TCP header?

A

Minimum 20 bytes

Source 16 bits

Destination 16 bits

Sequence number 32 bits

Header length 4 bits

Reserved 3 bits

Flags 9 bits

Window size 16 bits - flow control

Checksum 16 bits

Urgent pointers 16 bits - if urg flag set - offset from seq number id’ing last urgent data byte

Options 0-320 bits - determined from data offset field

Data size varies - upper layer data

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

What commands can be used to confirm default gateway is set (3)

A

Show running-config | include default

Show ip route

Ping

71
Q

What commands are used to enable/disable LLDP?

A

Config t

[no] lldp run

[no] lldp transmit

[no] lldp receive

72
Q

What services does ARP provide?

A

Address resolution to map IPv4 addy to

MAC addy Caches MAC addy learned by ARP

73
Q

What IP is used for Broadcasts

A

255.255.255.255

74
Q

What commands do you use to view MAC address table?

A

Show MAC address-table

75
Q

What commands are used to configure router to be used as DHCP server?

A

ip dhcp excluded-address [IPs to exclude with space between them]

ip dhcp pool [pool name]

network [network / subnet]

default-router [ip]

dns-server [ip]

domain-name [domain name]

lease [days] [hours] [minutes] [infinate]

76
Q

How can you see the arp cache

A

Windows machine: arp -a

Router: show ip arp

77
Q

What IP is used for Directed Broadcasts?

A

Network ID + highest broadcast

ie for 10.0.0.0/8 is 10.255.255.255

78
Q

What speeds does Cat8 cabling support?

79
Q

What info does show ip route display?

A

All learned IP addresses and how learned.

This includes subinterfaces provisioned on router on a stick configuration

80
Q

What info can be viewed on show ip arp

A

Protocol

Address

Age

Hardware Address

Type

Interface

81
Q

Basic Troubleshooting tools

A

show logging

ICMP (Ping/Traceroute)

show controls

Telnet/SSH

arp

82
Q

Ways to verify end to end ip connectivity

A

ping (can ping from certain interface using command: ping [ip] source [interface])

traceroute (can ping from certain interface using same as ping)

*ping/traceroute from loopback too

Telnet/SSH (see if you can get to equipment via IP)

show ip arp (verify connected devices)

show ip interfaces brief (see IP config on all interfaces)

83
Q

Troubleshooting common media issues

A

Use sho inter and confirm

  1. if physically down - if down check cable/connectors for damage
  2. check noise - increased error counter in output. Confirm cable length
  3. confirm collisions - verify duplex settings on both sides
84
Q

Common media problems - Copper

A

Damage to wiring

New electronics installed causing EMI

Traffic patterns change

New equipment installed

85
Q

Common media issues - fiber

A

Microbends/macrobends

Splice losses

Dirty connectors

86
Q

Troubleshooting Switch Port issues

A

verify duplex and speed settings on both sides.

87
Q

Troubleshooting physical connectivity issues

A

show interfaces

Confirm interface up

Input queue drops (more traffic than can handle) - look at CPU

Output queue drops (packets dropped bc congestion) - look at QoS

Input errors - problems in reception of frame (CRCs) - look at cabling, interface hardware, duplex

Output errors - issues sending frame (like collision) - look at duplex settings

88
Q

Step to troubleshoot ipv4 addressing

A
  1. Verify IPv4 address and subnet mask
  2. Ping the loopback address
  3. Ping IPv4 address of local interface
  4. Ping the default gateway
  5. Ping remote server
89
Q

How do you configure static route?

A

ip route [ipv4 destination network ip] [ipv4 destination network subnet mask] { [IPv4 address of next-hop router] OR [outbound interface of local router (s0/0/0)] }

90
Q

What is a “host route”?

A

Static route for single host and uses subnet mask of 255.255.255.255

91
Q

What is a floating static route?

A

Static route with AD greater than 1

Need to change the AD manually when configuring

ip route [ipv4 destination network ip] [ipv4 destination network subnet mask] { [IPv4 address of next-hop router] OR [outbound interface of local router (s0/0/0)] } [AD]

92
Q

When is default static route used? How do you configure it?

A

* Used when no other routes in routing table match dest IP of packet

* When router has only one other router connected to it

Often connects edge router to ISP

ip route 0.0.0.0 0.0.0.0 [ip for interface to leave from]

93
Q

What is the difference between a default static router and default gateway?

A

Default-routes set on routers

Default gateways set on hosts

94
Q

How do you remove a static IP route

A

no ip route [network ip] [subnet mask] [nexthop ip] [ad if not 0]

95
Q

How do you enable ipv6 routing on Cisco routers?

A

config t

ipv6 unicast-routing

96
Q

How do you set static route in IPv6?

A

config t

ipv6 unicast-routing

ipv6 route [ipv6 network] [ipv6 mask] [outgoing interface] [ipv6 next hop]

(MUST PROVIDE outgoing interface if next hop is link-local address)

97
Q

How do you see IPv6 static routes and what do you see?

A

show ipv6 route static

See routes set

98
Q

What issues does VLAN address

A

Segmentation

Security

Network Flexibility

VLANs can be in different LANs but then still be in same broadcast domain

99
Q

What commands do you use to set up VLAN

A

config t

vlan [number id]

vlan [vlan name]

100
Q

What VLAN IDs can you use

A

0 is reserved

1 is default

2-1001 - Used for ethernet VLANs

1002-1005 - used for Token Ring, FDDI

1006-4094 - Used for ethernet VLANs

4095 - reserved

101
Q

What do you need to do if you have 1 VLAN that crosses multiple switches

A

Create trunk to connect switches

102
Q

How create VLAN with switchport

A

Under global config:

config t

vlan [vlan id]

name [vlan name]

interface [interface to config on]

switchport mode access

switchport [vlan name] vlan [vlan id]

103
Q

How to verify VLANs and what data does it provide?

A

show interfaces [interface name] switchport

Shows how it was configed (static or dynamic)

Access Mode VLAN

Voice VLAN

104
Q

What are the valid VLAN ranges

A

0 - Reserved

1 - Normal (Default)

2-1001 - Normal Ethernet VLANs

1002-1005 - For Token Rings and FDDI

1006-4094 - Extended Ethernet VLANs

4095 - Reserved

105
Q

How do you provision a VLAN?

A

config t

vlan [vlan number]

name [vlan name]

106
Q

What are the commands that define VLAN port membership modes and characteristics?

A

switchport mode access

switchport mode trunk

switchport voice vlan [vlan id]

107
Q

What does switchport access mode do?

A

For VLANs

Static Access

Can only belong to one VLAN and is manually assigned to that VLAN

108
Q

What does switch port mode trunk do?

A

Configs trunk

Member of all VLANs

Allows switches to exchange VLAN traffic between them via tagging

802.1q

109
Q

What does switchport voice vlan [vlan-id] do?

A

Is a voice VLAN

Attached to Cisco Phone

Uses one VLAN for voice and another for data

110
Q

What commands used to assign port to a Data VLAN?

A

config t

interface [interface]

switchport mode access

switch port access vlan [vlan number]

111
Q

How can you configure multiple interfaces at once

A

config t

interface range FE0/1-3

112
Q

What is a voice VLAN? How do you config that?

A

Voice VLAN is used if you have a VOIP phone that does tagging that also has data VLAN that does not do tagging

CREATE VLANs (voice and data)

config t

vlan [data vlan number]

name [data vlan name]

vlan [phone vlan number]

name [phone vlan name]

ASSIGN VLAN TO PORT

interface [interface]

switchport mode access

switchport voice vlan [phone vlan number]

switchport access [data vlan number]

113
Q

Ways to verify VLANs

A

show vlan

show vlan [vlan number]

show vlan brief

show interfaces [interface] switchport

114
Q

What info is displayed on show vlan?

A

VLAN

Name

Status

Ports

115
Q

What info does show vlan id [vlan number] show?

A

VLAN

Name

Status

Ports

116
Q

What info does show vlan brief show?

A

VLAN

Name

Status

Ports

117
Q

What is DTP?

A

Dynamic Trunking Protocol

Negotiates if interfaces btw switch should be in access or trunk mode

Dynamic Auto - Interface will form trunk if DTP msg received to do so from other side switch. Doesnt generate DTP msgs - only listens

Dynamic Desiarable - negotiate mode automatically - will try to convert line to trunk. Generates and listens for DTP. If port on other side of switch can form trunk it will.

118
Q

What does sho int [interface] switchport show

A

Adminstrative mode (dynamic static or dynamic desirable)

Type of encapsulation

Operational mode

Native VLAN

Access Mode VLAN

Voice VLANs

see if VLANs are active

119
Q

What is 802.1q?

A

Protocol for trunking for VLANs

Combines many VLANs on same port (switch to switch ports)

Allows tranport of frames from different VLANs

Each frame has tag for the VLAN (added by the trunk switch port)

Receive dev fwds frame to corresponding VLAN based on tag

Is switch to switch link

120
Q

What info is added in the 802.1q tag

A

Type - value of 0x8100 to id as 802.1q tagged frame

Priority

CFI - 1-bit identifier enables Token Ring frames to be carried on ethernet links

VLAN ID

121
Q

How do you configure an 802.1q trunk?

A

config t

interface [interface]

switchport trunk encapsulation dot1q

switchport mode trunk

switchport trunk native vlan [vlan number]

switchport trunk allowed vlan [allowed vlans] (optional but must be same on both switches)

(must config identically on both switches)

122
Q

How do you add a new vlan in allowed vlans on switchport?

A

Can either do:

switchport trunk allowed add vlan [new vlan]

OR
switchport trunk allowed vlan [list all vlans including new]

if you just do switport allowed vlan [new vlan] - will remove all other vlans.

124
Q

What is the native VLAN?

A

It is the untagged VLAN

By default is 1 - but can change

Change with command: switchport trunk native vlan [vlan number]

VLAN 1 is also management VLAN and that cannot be changed (CDP, STP, LLDP always carried on VLAN 1)

If change native VLAN must be changed on both sides

125
Q

How can you confirm the 802.1q configuration?

A

show interfaces [interface] switchport

show interfaces trunk

show interfaces status

126
Q

What can you see in sho interfaces trunk?

A

Port

Mode (on - we turned on and not dynamic, dynamic desirable, auto)

Encapsulation

Status

Native VLAN

Vlans allowed

127
Q

What can you see in sho interface status

A

Port

Name

Status (is connected?)

VLAN

Duplex (manual or auto?)

Speed (manual or auto?)

Type

128
Q

Options to enable interVLAN routing

A
  1. Router with separate Interface in each VLAN (takes up lots of space)
  2. Router on a Sitck (prevalent)
  3. Layer3 Switch with sub-interfaces
129
Q

What is Router on a Stick?

A

Build a single trunk link between switch and router to be able to route multiple VLANs over one physical router port

Build separate subinterfaces on the port, enable the VLAN tagging, associate the default gateway for that subinterface.

130
Q

How do you configure router on a stick on a router?

A

config t

interface [interface.subinterface] - usually subinterface=VLAN ID

encapsulation dot1q [vlan id]

ip address [default gateway for the VLAN host]

131
Q

What ways can you verify the VLANs on router (for router on a stick)?

A

sho vlans

sho ip route

132
Q

What info does show vlans show on a router?

A

VLAN ID

VLAN trunk interface

Protocols, IP Address, Transmitted/Received

Encapsulation

133
Q

What functions do dynamic routing protocols fulfill

A

Discover remote networks

Maintain up to date routing info

Choose best path to destination network

Find new best path if current is not available

134
Q

Difference between IGP and EGP?

A

Interior Gateway protocols - withing my own AS

OSPF, EIGRP

Exterior Gatway protocol - outside my AS

BGP

135
Q

Difference between distance vector and link state?

A

Are dynamic routing protocols

Distance Vector = EIGRP and RIP - relies on info neighbor is providing. Only looks at hops

Link State = OSPF and ISIS - looks at state of every link and who is connected to who

136
Q

Explain difference between path selection and adminstrative distance

A

Adminstrative distance is the “trustworthiness” of the route (different protocols use different ADs)

Path Selection is to select the preferred route if multiple routes available (looks at speed or hops)

137
Q

Classless vs classful in dynamic routing protocol

A

Classless - RIP v2, EIGRP, OSPF, IS-IS, BGP

Advertises subnet masks (can support discontiguous networks)

Classful - RIPv1 and IGRP

138
Q

ADs for common protocols

A

0 - Connected

1 - Static

20 - EBGP

90 - EIGRP

110 - OSPF

115 - IS-IS

120 - RIP

170 - External EIGRP

200 - Interal BGP

255 - Unreachable

139
Q

What are the key features of link-state protocols?

A
  1. Scalability
  2. All routers have full map of topology
  3. Updates sent out when topology changes and periodically
  4. Respond to topology changes quickly
  5. More info exchanged btw routers
140
Q

Three tables used in link-state protocols?

A
  1. Neighbor Table
  2. LSDB - Link State Database
  3. Routing Table
141
Q

How do Link State Database works

A
  1. Neighbor relationships established
  2. Sync LSDB by exchanging Link State Advertisement
  3. Store the LSAs in LSDB
  4. Applies SPF algorithm (via Dijkstra algorithm) to LSDB to calculate the shortest path.
  5. Shortest path applied to the routing table.
142
Q

What are LSAs?

A

Link State Advertisments

Describes router and networks connected to router

143
Q

What is OSPF?

A

Open Shortest Path First

Link state routing protocol

IGP

Layer 4 protocol

144
Q

What are the two-layer network hierarchy primary elements in OSPF?

A

AS - Autonomous System - all networks under a common adminstration

Area - grouping of contigous networks

145
Q

Explain a multiarea design in OSPF

A

You have a backbone area (area 0)

All non-backbone areas must be connected to the backbone

Routers in nonbackbone area are internal routers - all have interfaces only in 1 area

Area border routers (ABR) connects area 0 to non-backbone areas

146
Q

Explain ABRs in connection with OSPF

A

ABR = area border routers

routers that connect different areas with the backbone.

Contain LSDB for each area

Make route calculations for each area

Advertise routing info btw areas

147
Q

Explain an ASBR in conjunction with OSPF

A

AS boundary router

At least one interface connected to OSPF area and one interface connected to non-OSPF (like our peering routers) maybe EIGRP or BGP

148
Q

Explain how OSPF works

A

Creates neighbor by exchanging hello packets

Propagates LSAs:

Links (Router Interfaces)

State (Desc of interface and relationship to neighbor routes)

Floods LSAs to all OSPF routers in area

Peices together all LSAs to create the LSDB

Uses SPF algorithm

149
Q

When are LSAs sent out in OSPF?

A

When topology changes

Every 30 mins

150
Q

What info is sent in hello packet and what must agree to establish neighbor relationship?

A

* must agree

Router ID - 32bit number that IDs router - default is highest loopback addy. If not loopback then is highest IP on any interface. Can program yourself using “router-id” command

*Hello/Dead Intervals - how often sends hello keepalive (default p2p is 10s). And how long btw hellos shoudl consider router down (default 4x the hello)

Neighbors

*Area ID - also must have same subnet and subnet mask

Router Priority - 8 bit number - Uses to select DR and BDR

DR IPv4 addy

BDR IPv4 addy

*Authentication data

*Stub area flag - special area

151
Q

What happens when install new router on OSPF network

A
  1. Router interface enabled - OSPF is down b/c no info exchanged yet. Sends hello packets
  2. All directly connected routers that are running OSPF add router to list of neighbors. They are then in initial state (INIT)
  3. Router that got hello sends unicast to the router with info listing all neighbor routers
  4. When new router gets hello back with its own router showing as neighbor - adds neighbors own table now in two way
152
Q

Explain DR and BDR ins OSPF

A

Designated Router and Backup Designated Router

Router with highest priority is the DR

Used in multiaccess broadcast networks (like a LAN)

One DR per LAN

Routers only communicate with DR by using OSPF DR multicast 224.0.0.6

DR communicates with all via 224.0.0.5

153
Q

Provide the exchange protocol with the DR and BDR in OSPF

A

Starts in exstart state

  1. Prim/Second relationship created btw router and DR/BDR. Router with highest RouterID will be primary during exchange
  2. Prim/Sec routers exchange one + DBD (database description) packets with summary of LSDB (exchange state)
  3. Router compares DBD with LSAs of own. If DBD has more recent LS entry - sends LSR (Link State Request) to ther other router. (When send LSR in loading state)
  4. Router sends LSU (link state update) with entries req in the LSR. When all LSR provided - they are synced and in full state
154
Q

How do you update the reference bandwidth in OSPF

A

ospf auto-cost reference-bandwidth [bandwidth in kilobits/sec]

155
Q

How can you update the cost on an interface for OSPF?

A

ip ospf cost [cost]

156
Q

How do you overwrite the interface bandwidth in OSPF?

A

bandwidth [kilobits per sec]

157
Q

How to do you determine the cost of a route in OSPF

A

Cumulative add all the egress interface costs and lowest wins

If two paths are equal we will load balance between the two

(if you do above in show ip router you’ll see two paths to the destination IP)

You can see both the routes also in the LSDB

158
Q

What types of protocol packets for OSPF are there to build LSDB?

A
  1. Hello -discovers and maintains neighbors
  2. DBD - database description packet with summary of LSDB
  3. LSR - sent when want more info on a LSA it doesnt have
  4. LSU - sent in response to LSR with LSAs to be updated
  5. LSAck - ensures reliable transmission (DBD, LSR and LSU responses
159
Q

What commands can you use to see OSPF configs?

A

sho run | section OSPF
sho ip protocols

sho ip ospf

sho ip ospf int brief

sho ip ospf neighbor

sho ip route (see whats learned via OSPF)

160
Q

What info does show run | section ospf show?

A

see router id

see networks running and the area

what type of path (p2p etc)

161
Q

What does show ip ospf tell you?

A

router id

how long process has been running

162
Q

What info do you see in sho ip ospf int bri?

A

see what interfaces are running ospf

163
Q

What info do you see in sho ip ospf neigh?

A

Neighbor Ips

State (full bdr dr etc)

dead time

address

interface

164
Q

How do you configure OSPF?

A

config t

router ospf [process id]

router-id [router id}

(next step can be done on indiv interfaces or network command below is showing network command - this will apply to any interface on the router in the network ip)

network [network ip] [wildcard mask] area [area number]

165
Q

What happens in OSPF if you config “passive-interface” or

A

Means you will not send out OSPF packets out that interface.

166
Q

Spanning Tree what its used for and the steps

A

Eliminates potential L2 loops if redundancy built into network by disabling interfaces that may cause loops

  1. Elects root bridge - based on priority and MAC (if priority is same then use lowest MAC)
  2. Elects root port for each non-root switch
  3. Elects designated port for each segment
  4. Port transitions to forward or blocking state
167
Q

What is the purpose of NAT?

A

Network Address Translation

NAT takes private IPs unroutable outside the LAN and translates to public IPs

Usually on edge routers to convert from private to public right before leaving the LAN

168
Q

What is the difference between NAT and PAT

A

NAT and PAT serve same purpose - but PAT allows to overload with numerous private IPs mapped to the same public IP.

Keeps track by assigning a unique port number to each private IP.

169
Q

What are the 3 different types of NAT

A

Static NAT

Dynamic NAT

Port Address Translation (PAT)

170
Q

How configure Static NAT

A

config t

ip nat inside (saying that this is on the inside interface) source (saying NATing based on source IP) static (type of NATTING doing) [inside local address] [inside global address]

Also must set interfaces for inside and outside

config t

int [int inside]

ip nat inside

int [int outside]

171
Q

How to config dynamic NAT

A

Four Steps:

  1. Create the ACL rule for what will get NATTED

config t

access-list 1 permit [ips to NAT]

  1. Create the inside and outside interfaces

config t

int [inside interface on router]

ip nat inside

int [outside interface on router]

ip nat outside

  1. Create the public IP pool

config t

ip nat pool [NAT-POOL-NAME] [first ip in public range] [last ip in public range] netmask [network mask]

  1. Set up the NAT rule:

config t

ip nat inside (private ips) source (looking at sources) list [ACL num] (where to look to determine if NATTED) pool [NAT-POOL] (what public IPs to assign)

172
Q

NAT Terms

A

Inside Local Address - IP addy of inside network used in all packets inside the network (private)

Inside Global Address - IP addy of the internal dev as it appears to other networks (public) - the translated IP

Outside Local Address - IP of external dev as appears to internal network

Outside Global Address - IP addy of external dev as seen externally (usu same as outside local)

173
Q

How to configure PAT

A

3 parts:

  1. Create ACL rule for what gets NATTED

config t

access-list 1 permit [IPs to NAT] [Wildcard Mask]

  1. Create the inside and outside interfaces

config t

int [int on inside]

ip nat inside

in [int on ouside]

ip nat outside

  1. Set the NAT rule

ip nat inside souce list 1 interface [outside interface] overload