CCNA commands

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall with Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/120

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No study sessions yet.

121 Terms

1
New cards

Command to get to privileged Exec mode

  • Enable

2
New cards

Command to get to global config mode

  • conf t

3
New cards

command to view available commands

  • ?

4
New cards

command to view all commands that start with show

  • show?

5
New cards

command to set a password

  • enable password

6
New cards

command to see running-config

  • show running-config

7
New cards

command to save running-config

  • write

8
New cards

command to hide your password enable

  • service password-encryption

9
New cards

create a more secure password

  • Enable secret password

10
New cards

command to execute privileged exec commands from global config

  • do

11
New cards

command to cancel or delete command

  • no

    • no service password-encryption

12
New cards

command to view arp table

  • arp -a

13
New cards

command to test reachability

  • ping ip-address

14
New cards

command to view Mac address table

  • show mac address-table

15
New cards

command to manually remove MAC addresses from table

  • clear MAC address-table dynamic

16
New cards

command to manually remove specific Mac address from table

  • clear Mac address-table dynamic ffff.ffff.fff

17
New cards

command to clear Mac address from table by the interface

  • clear Mac address-table dynamic intG0/0

18
New cards

command to check status of each interface as well as their IP-addresses
(check after setting ip address to)

  • show ip interface brief

19
New cards

get access to interface

  • conf t

  • int g0/0

20
New cards

set the ip-address

  • conf t

  • int g0/0

  • ip address 10.255.255.254 255.0.0.0

  • no shutdown

21
New cards

set ip address 10.255.255.254 on /8 subnet on interface g0/0

Then check to make sure it’s set properly

  • en

  • conf t

  • int g0/0

  • ip address 10.255.255.254 255.0.0.0

  • no shutdown

  • Do sh ip int br

22
New cards

command to get Mac address of an interface

  • show interfaces g0/0

  • hardware line has BIA or Mac-address

23
New cards

command to show all interfaces on a router and their l1/l2 status

  • show interfaces description

24
New cards

Command to check switch interfaces
-It shows VLAN, duplex, speed, type

show interfaces status

25
New cards

command to shut down multiple interfaces on switch f0/5-12 interfaces

  • int range f0/5-12

  • description ## Not in use

  • shutdown

26
New cards

command to view the routing table

show ip route

27
New cards

Command to configure static route

  • ip route destinationip-address netmask next hop

  • EX: ip route 192.168.13.3 255.255.255.0 192.168.13.254

28
New cards

Check the routing table after setting a static route to 192.168.13.3 /24 with a next hop of 192.168.13.254

  • ip route 192.168.13.3 255.255.255.0 192.168.13.254

  • do show ip route

29
New cards

the route in ip route is to

the destination route… net mask then the next-hop

30
New cards

Configure a static route, specifying the exit-interface:R1(config)# [...]

ip route ip-address netmask exit-interface

31
New cards

Configure a static route, specifying the exit-interface and next-hop IP:
R1(config)# [...]

ip route ip-address netmask exit-interface next-hop

32
New cards

Configure a default route, specifying the next-hop IP:
R1(config)# [...]

ip route 0.0.0.0 0.0.0.0 next-hop

33
New cards

a command used to verify that the IPv4 interfaces are up and up

show ip interface brief

34
New cards

release and renew address and flush dns

  • ipconfig /release

  • ipconfig /renew

    • ipconfig /flushdns

35
New cards

Practice Subnetting questions

k

36
New cards

practice VSLM subnetting questions

k

37
New cards

See which Vlan’s exist on a switch

  • Show vlan brief

38
New cards

command to assign interfaces to a vlan

  • interface range g0/1-3

  • switchport mode access

  • switchport access vlan 10

39
New cards

switchports which carry a single vlan are called
switchports which carry multiple are called

  • access → one VLAN

  • Trunk → multiple VLAN

40
New cards

name the vlan 10 to engineering

  • do show vlan brief

  • vlan 10

  • name ENGINEERING

41
New cards

Set a switch to trunk and doublecheck it

  • int g0/0

  • switchport trunk encapsulation dot1q

  • switchport mode trunk

  • show interfaces trunk

42
New cards

check a switch trunk’s status

show interfaces trunk

43
New cards

configure vlan’s 10 and 30 on the trunk switch

switchport trunk allowed vlan 10,30

44
New cards

switch is in trunk mode and has VLAN 10,30 allowed… also put vlan 40 on there

  • switchport trunk allowed vlan add 40

  • do show interfaces trunk

45
New cards

remove vlan 40 on a trunk switch

  • switchport trunk allowed vlan remove 40

46
New cards

For security purposes it is best to change the native vlan to

an unused VLAN

47
New cards

change the native vlan to 1001

switchport trunk native vlan 1001

48
New cards

the show vlan brief command

  • shows _ assigned to each vlan

  • access ports

    • use show interfaces trunk to confirm trunk ports

49
New cards

set a switch to trunk and vlan 10,30, set the native vlan to 1001

  • switchport trunk encapsulation dot1q

  • switchport mode trunk

  • switchport allowed vlan 10,30

  • switchport trunk native vlan 1001

  • do show interfaces trunk

50
New cards

set up ROAS on interface g0/0

  • int g0/0

  • no shutdown

  • interface g0/.10

  • encapsulation dot1q 10

  • ip address 192.168.1.62 255.255.255.192

51
New cards

when setting up ROAS interface g0/.10

the next command is

encapsulation dot1q #

the number represents

the vlan number

52
New cards

2 commands to configure native vlan on router

  • encapsulation dot1q vlan-id native

    • configure the ip-address for the native vlan on the physical interface of the router

53
New cards

set a native VLAN on a router int g0/.10 vlan 10

  • int g0/.10

  • encapsulation dot1q 10 native

54
New cards

when using multilayer switch

configure it to send it to the switches SVI (as the default gateway) and not the default gateway on router

55
New cards

reset an interface to it’s default settings

  • default interface g0/0

    • do show ip interface brief

56
New cards

set up a layer 3 switch to be multilayer

  • ip routing

  • interface g0/0

  • no switchport

  • ip address 192.168.1.30 255.255.255.192

57
New cards

set up a default route

  • ip route 0.0.0.0 0.0.0.0 next-hop

58
New cards

confirm a layer 3 switch is routing

  • show interfaces status

  • show ip interface brief

59
New cards

configure an SVI on a layer 3 switch

  • interface vlan10

  • ip address 192.168.1.30 255.255.255.192

  • no shutdown

60
New cards

command to show if a switch is set to access, auto or trunk

show interfaces g0/0 switchport

61
New cards

disable DTP on an interface

switchport nonegotiate

62
New cards

set switchport to use DTP

switchport mode ?
-(desirable, auto, access)

-switchport mode dynamic desirable

-switchport mode dynamic auto
-switchport mode access

63
New cards

switches that support both 802.1q and ISL you have to

switchport trunk encapsulate negotiate

64
New cards

get VTP information

show vtp status

65
New cards

change VTP name

VTP domain name

66
New cards

set switch to client mode in VTP

VTP mode client

67
New cards

Set switch to transparent mode

VTP mode transparent

68
New cards

put switch in server vtp mode

vtp mode server

69
New cards

check VTP

show VTP status

70
New cards

change vtp version

vtp version

71
New cards

command to check which port is designated, non designated(blocked), etc etc

show spanning-tree

72
New cards

spanning tree operates by ___ even without configuration

default

(also switches in trunk don;t work for that shit.. portfast is only for access)

73
New cards

put spanning tree in pordtfast mode

  • int g0/2

  • spanning-tree portfast

74
New cards

command to protect portfast

  • spanning-tree bpduguard enable

75
New cards

enable bpdu guard by default

spanning-tree portfast bpduguard default

76
New cards

enable a port that was disabled by bpduguard

  • int g0/0

  • shutdown

  • no shutdown

77
New cards

configure spanning tree mode

  • spanning-tree mode ?

78
New cards

configure root bridge

  • spanning-tree vlan 1 root primary

  • do show spanning-tree

79
New cards

set secondary root bridge

  • spanning-tree vlan 1 root secondary

80
New cards

configure spanning-tree cost or priority

spanning-tree vlan 1 ?

  • cost 200

  • port-priority 32

81
New cards

configure a point to point connection in ST

spanning-tree link-type point-to-point

82
New cards

configure a shared connection in ST

spanning-tree link-type shared

83
New cards

check load balancing on etherchannel

show etherchannel load-balance

84
New cards

configure etherchannel load balancing method and check it

  • port-channel load-balance ?

  • do show etherchannel load-balance

85
New cards

PAGP configuration

  • int range

  • channel-group 1 mode ?

86
New cards

in Etherchannel they must have matching

  • same duplex

  • same speed

  • same switchport mode

    • same allowed VLAN/Native vlan(for trunk)

87
New cards

check status of etherchannel

  • show etherchannel summary

  • show etherchannel port-channel

88
New cards

check etherchannel mode it’s in

  • show etherchannel port-channel

89
New cards

configure layer 3 etherchannel

  • int range g0/0 - 3

  • no switchport

  • channel-group 1 mode active

  • show running-config

  • int p01

  • ip address 10.0.0.0 255.255.255.0

90
New cards

check the switchport operational mode

do show interface g0/1 switchport

91
New cards

configure a static route and change the AD

ip route 10.0.0.0 255.255.255.192 100

92
New cards

go into RIP

  • router rip

  • version 2

  • no auto-summary

  • Network ip-address

  • Network ip-address

Network automatically converts It and no need to convert network mask

93
New cards

on EIGRP or rip routers end hosts should be configured as (anything without rip neighbors should)

  • passive-interface g2/0

94
New cards

share the default gateway route into rip

  • default-information originate

95
New cards

command to check rip, eigrp, ospf

  • show ip protocols

96
New cards

in RIP (Routing Information Protocol) is a command used in network devices to configure how many equal-cost routes to the same destination can be installed in the routing table for load balancing

maximum-paths #

97
New cards

Command to change AD (admin distance) a local measure of trustworthiness (lower is better) used to pick the best path when multiple protocols offer routes to the same network

distance ?

98
New cards

EIGRP basic configurations

  • router eigrp #

  • no auto-summary

  • Network 10.0.0.0

  • network 172.16.1.0 0.0.0.15

it’s router EIGRP # (the number is for Autonomous system number)

99
New cards

on EIGRP the router EIGRP # (AS number) must

match between routers

100
New cards

manually configure EIGRP router id

eigrp router-id ?