CCNA ICND2 Cisco learning network lab all commands – Flashcards

Unlock all answers in this set

Unlock answers
question
? or help
answer
In user mode, Cisco IOS Software lists a subset of the available commands. After you enter the enable command and your enable password for privileged mode, a much larger list of available commands is displayed.
question
clock set
answer
Manages the system clock.
question
configure terminal
answer
Activates the configuration mode from the terminal.
question
enable
answer
Activates privileged mode. In privileged mode, more commands are available. This command requires you to enter the enable password if an enable password is configured. If an enable secret password is also configured, the enable secret password overrides the enable password. (example below) Router1 enable Router1#
question
exec time-out
answer
Sets the inactivity time that is allowed before a session will be automatically logged out.
question
history size
answer
Sets the number of lines that are held in the history buffer for recall. Two separate buffers are used: one for EXEC mode commands and the other for configuration mode commands.
question
[no] ip domain-lookup
answer
By default, the command-line interpreter tries, when receiving a command it does not recognize, to interpret it as a symbolic name for an IP address. The no form of this command turns off this default action, thus speeding up the interpretation of erroneous entries.
question
line console 0
answer
Enters line console 0 configuration mode.
question
line vty 0 4
answer
Enters vty configuration mode. Vty lines allow access to the switch for remote network management. The number of vty lines available is dependent on the Cisco IOS Software version that is being used. Typical values are 0-4 and 0-15 (inclusive). Virtual Cisco IOS Software on UNIX devices has vty line values of 0 to 4.
question
logging synchronous
answer
Synchronizes unsolicited messages and debugs privileged EXEC command output with solicited device output and prompts for a specific console port line or vty line. (prevents interuptions while typing)
question
show clock
answer
Displays the system clock.
question
show history
answer
Displays recently entered commands.
question
show interfaces
answer
Displays information regarding all of the router interfaces.
question
show running-config
answer
Displays the active configuration.
question
show terminal
answer
Displays the current settings for the terminal.
question
show version
answer
Displays the configuration of the router hardware and the various software versions.
question
terminal history size
answer
Sets the command history buffer size.
question
banner motd
answer
Allows the conf iguration of a message, which will be display ed at the time of the login process.
question
clear mac-address-table dynamic interface int-id
answer
Clears the secure MAC addresses that are associated with the specified interface. The access parameter ensures that trunk ports are not affected.
question
configure terminal (conf t)
answer
Activates the configuration mode from the terminal.
question
copy running-config destination
answer
Copies the switch running configuration file to another destination. A typical destination is the startup configuration.
question
copy running-config startup-config
answer
Copies the switch running configuration file to the startup configuration file that is held in local NVRAM.
question
crypto key generate rsa
answer
Generates the RSA key pairs to be used.
question
end
answer
Terminates the configuration mode.
question
interface int-id
answer
Enters interface configuration mode.
question
interface range int-id - last-port-number
answer
Allows the grouping of interfaces, so that subsequent interface configuration commands will be applied to all the specified interfaces simultaneously.
question
IP domain-name name
answer
Supplies an IP domain name, which is required by the cryptographic key generation process.
question
IP SSH version [1 | 2]
answer
Specifies the version of SSH to be run. To disable the version of SSH that was configured and to return to compatibility mode, use the no form of this command.
question
line VTY 0 15
answer
Enters the VTY configuration mode. VTY lines allow access to the switch for remote network management. The number of VTY lines that are available is dependent on the Cisco IOS Software version. Typical values are 0-4 and 0-15 (inclusive).
question
login
answer
Activates the login process on the console or VTY lines.
question
login local
answer
Makes the login process on the console or vty lines rely on (or use) the local authentication database.
question
logout
answer
Exits EXEC mode, and requires reauthentication (if enabled).
question
password
answer
Assigns a password to the console or VTY lines.
question
ping IP-address
answer
Used to troubleshoot the accessibility of devices. This tool uses ICMP path echo requests and ICMP path echo replies to determine whether a remote host is active. The ping command also measures the amount of time it takes to receive the echo reply.
question
reload
answer
Restarts the switch and reloads the Cisco IOS operating system.
question
service password-encryption
answer
Enables the service, which will encrypt all passwords in the running configuration.
question
show IP ARP
answer
Displays the IP address resolution table, which holds the binding between IP addresses and their respective MAC addresses.
question
show IP SSH
answer
Shows the current settings of the SSH protocol.
question
show mac-address-table dynamic
answer
Displays only the dynamically learned MAC addresses in the table.
question
show mac-address-table interface int-id
answer
Displays only the MAC addresses in the table that are associated with the specified interface.
question
show port-security interface int-id
answer
Displays administrative and operational status of secure ports on a switch. Optionally displays specific interface security settings or all secure MAC addresses.
question
show running-config
answer
Displays the active configuration.
question
show running-config interface int-id
answer
Displays the running configuration of the interface that is specified in the command.
question
shutdown no shutdown
answer
Disables and enables an interface.
question
switchport mode access
answer
Sets the port to access mode. Use the no version of this command to reset default values.
question
switchport port-security
answer
Enables port security on an interface. Entered without keywords.
question
switchport port-security mac-address sticky
answer
Sets the secure MAC addresses that are associated with an interface to be learned dynamically.
question
switchport port-security maximum [number]
answer
Sets the maximum number of secure MAC addresses for the interface. Use the no version of this command to remove it.
question
switchport port-security violation violation mode
answer
Sets the action to be taken when a security violation occurs. Protect, restrict, and shutdown are the three valid modes.
question
transport input telnet ssh
answer
Specifies which protocols to use to connect to a specific line of the switch.
question
username username password password
answer
Creates a username and password pair, which can then be used as a local authentication database.
question
interface type number
answer
To configure an interface type and enter interface configuration mode, use the interface command in global configuration mode.
question
copy running-config startup-config
answer
Copies the switch running configuration file to the startup configuration file that is held in local NVRAM.
question
ping system-address
answer
Diagnoses basic network connectivity in IP networks. Use the ping command in user EXEC or privileged EXEC mode.
question
ipv6 unicast-routing
answer
Enables the forwarding of IPv6 unicast datagrams. Use the ipv6 unicast-routing command in global configuration mode.
question
ipv6 address ipv6-address/prefix-length
answer
Configure an IPv6 address based on an IPv6 general prefix and enables IPv6 processing on an interface. Use the ipv6 address command in interface configuration mode.
question
ipv6 address ipv6-prefix/prefix-length eui-64
answer
Configures an IPv6 address for an interface and enables IPv6 processing on the interface using an EUI-64 interface ID in the low order 64 bits of the address. Use the ipv6 address eui-64 command in interface configuration mode.
question
ipv6 address autoconfig
answer
Enables automatic configuration of IPv6 addresses using stateless autoconfiguration on an interface and enables IPv6 processing on the interface. Use the ipv6 address autoconfig command in interface configuration mode.
question
ipv6 address ipv6-address/prefix-length link-local
answer
Configures an IPv6 link-local address for an interface and enables IPv6 processing on the interface. Use the ipv6 address link-local command in interface configuration mode.
question
ipv6 nd prefix ipv6-prefix/prefix-length
answer
Configures which IPv6 prefixes are included in IPv6 Neighbor Discovery (ND) router advertisements. Use the ipv6 nd prefix command in interface configuration mode.
question
show ipv6 interface type number]
answer
Displays the usability status of interfaces configured for IPv6. Use the show ipv6 interface command in user EXEC or privileged EXEC mode.
question
vlan vlan-id
answer
Configures a specific VLAN. Use the vlan command in VLAN configuration mode.
question
name vlan-name
answer
Defines a text string used as the name of the VLAN (1 to 32 characters)
question
switchport access vlan vlan-id
answer
Configures the interface as a static access port with the VLAN ID of the access mode VLAN. The range is 1 to 4094.
question
switchport mode access
answer
Sets the port to static access mode. The port is set to access unconditionally and operates as a nontrunking, single VLAN interface that sends and receives unencapsulated (nontagged) frames. An access port can be assigned to only one VLAN.
question
show vlan brief
answer
Displays only a single line for each VLAN, naming the VLAN, status, and ports.
question
switchport trunk encapsulation dot1q
answer
Sets the trunk encapsulation format to 802.1Q.
question
switchport mode trunk
answer
Specifies a trunking VLAN Layer 2 interface.
question
ping system-address
answer
Diagnoses basic network connectivity in IP networks. Use the ping command in user EXEC or privileged EXEC mode.
question
encapsulation dot1q vlan-id
answer
Enables IEEE 802.1Q encapsulation of traffic on a specified router subinterface in a VLAN; Use the encapsulation dot1q command in interface range configuration mode or subinterface configuration mode.
question
router ospf process-id
answer
Configures an OSPF routing process. Use the router ospf command in global configuration mode.
question
router-id ip-address
answer
To use a fixed router ID, use the router-id command in router configuration mode.
question
network ip-address wildcard-mask area area-id
answer
Defines the interfaces on which OSPF runs and to define the area ID for those interfaces; Use the network area command in router configuration mode.
question
show ip ospf neighbor
answer
Displays OSPF neighbor information on a per-interface basis. Use the show ip ospf neighbor command in EXEC mode.
question
ip ospf process-id area area-id
answer
Enables OSPFv2 on an interface. Use the ip ospf area command in interface configuration mode.
question
show ip ospf interface brief
answer
Displays brief overview information for OSPF interfaces, states, addresses and masks, and areas on the router.
question
default-information originate
answer
Generates a default external route into an OSPF routing domain. Use the default-information originate command in router configuration or router address family topology configuration mode.
question
Ipv6 router ospf process-id
answer
Configures an OSPFv3 routing process; Use the ipv6 router ospf command in global configuration mode
question
router-id ip-address
answer
To use a fixed router ID, use the router-id command in router configuration mode.
question
show ipv6 ospf neighbor
answer
Displays OSPFv3 neighbor information on a per-interface basis. Use the show ipv6 ospf neighbor command in EXEC mode.
question
Ipv6 ospf process-id area area-id
answer
Enables OSPFv3 on an interface. Use the ipv6 ospf area command in interface configuration mode.
question
show ipv6 ospf interface brief
answer
Displays brief overview information for OSPFv3 interfaces, states, addresses and masks, and areas on the router.
question
default-information originate
answer
Generates a default external route into an OSPFv3 routing domain. Use the default-information originate command in router configuration or router address family topology configuration mode.
question
ipv6 unicast-routing
answer
Enables the forwarding of IPv6 unicast datagrams. Use the ipv6 unicast-routing command in global configuration mode.
question
name vlan-name
answer
Defines a VLAN name from config-vlan subconfiguration mode.
question
ping
answer
Executes an extended ping command. You will set the ping count and other options manually. (Use this command in privileged EXEC mode.)
question
ping ip-address
answer
Common tool that is used to troubleshoot the accessibility of devices. It uses ICMP echo requests and ICMP echo replies to determine whether a remote host is active. The ping command also measures the amount of time it takes to receive the echo reply.
question
show interfaces interface
answer
Displays the trunk parameters.
question
show interfaces interface switchport
answer
Displays VLAN and trunk information.
question
show spanning-tree vlan vlan#
answer
Displays spanning-tree information for a particular VLAN.
question
show vlan
answer
Displays information on all configured VLANs.
question
show vtp status
answer
Displays the VTP status.
question
spanning-tree mode rapid-pvst
answer
Global configuration mode to enable the Rapid-PVST protocol.
question
spanning-tree portfast
answer
Enables PortFast on an interface.
question
spanning-tree vlan vlan- ID root primary
answer
Global configuration mode to designate a switch to be the primary root for a particular VLAN.
question
spanning-tree vlan vlan- ID root secondary
answer
Global configuration mode to designate a switch to be the secondary root for a particular VLAN.
question
switchport access vlan vlan#
answer
Interface configuration mode to assign a port to a VLAN.
question
switchport mode trunk
answer
Interface configuration mode to set a Fast Ethernet or Gigabit Ethernet port to trunk mode.
question
vlan vlan-id
answer
Global configuration mode to add a VLAN and enter config- vlan subconfiguration mode. Use the no form of this command to delete the VLAN.
question
vtp domain domain
answer
Sets the VTP administrative domain.
question
vtp mode {server | client | transparent}
answer
Sets the VTP mode; use the no form of this command to return to the default setting.
question
ping 10.1.1.1
answer
Tests Layer 3 connectivity
question
show interface
answer
Displays interface status and statistics
question
show interface switchport
answer
Displays switching-related interface statistics
question
show interface trunk
answer
Displays interfaces configured to be trunk ports
question
show vlan id vlan-number
answer
Displays VLAN status and statistics
question
show interface trunk
answer
Displays interfaces configured to be trunk ports
question
show vlan id vlan-number
answer
Displays VLAN status and statistics
question
debug ip ospf adj
answer
Displays the OSPF neighbor establishment process
question
debug ip ospf hello
answer
Displays the OSPF hello packets exchange
question
show interfaces type
answer
Displays statistics for interfaces configured on the router
question
show ip ospf interface
answer
Displays statistics for interfaces that have OSPF enabled
question
show ip ospf neighbor
answer
Determines the state of an OSPF neighbor
question
show ip protocols
answer
Displays values about routing protocols and routing protocol timer information associated with the router
question
show ip route
answer
Displays the routing table
Get an explanation on any task
Get unstuck with the help of our AI assistant in seconds
New