1/39
Router Commands
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
enable
Enters privileged EXEC (enable) mode for advanced configuration and viewing
configure terminal
Enters global configuration mode to make device-wide changes
service password-encryption
Encrypts all plaintext passwords in the configuration file
security passwords min-length [MIN_LENGTH]
Sets the minimum character length for all passwords
hostname [HOSTNAME]
Sets the device's hostname
enable secret [ENABLE_SECRET]
Sets the encrypted password for privileged EXEC mode
ip dhcp excluded-address [START_IP] [END_IP]
Excludes a range of IP addresses from being assigned by DHCP
ip dhcp pool [POOL_NAME]
Creates a DHCP pool and enters DHCP configuration mode
network [NETWORK] [SUBNET_MASK]
(DHCP) Defines the network range for the DHCP pool
default-router [DEFAULT_ROUTER_IP]
(DHCP) Specifies the default gateway for DHCP clients
domain-name [DOMAIN_NAME]
(DHCP) Sets the domain name provided to DHCP clients
exit
Exits current configuration mode and returns to previous mode
ipv6 unicast-routing
Enables IPv6 packet forwarding between interfaces
username [USERNAME] secret [USER_SECRET]
Creates a local user account with encrypted password
ip ssh version 2
Forces the use of SSH version 2 for enhanced security
no ip domain-lookup
Disables DNS lookup for mistyped commands
ip domain-name [DOMAIN_NAME]
Sets the domain name used for SSL certificates and SSH key generation
interface Loopback[LOOPBACK_NUMBER]
Creates and enters loopback interface configuration
description [DESCRIPTION]
Adds a description to an interface for documentation
ip address [IP_ADDRESS] [SUBNET_MASK]
Assigns an IPv4 address and subnet mask to an interface
ipv6 address [LINK_LOCAL_IPV6] link-local
Configures a link-local IPv6 address on an interface
ipv6 address [GLOBAL_IPV6]
Assigns a global unicast IPv6 address to an interface
interface [PHYSICAL_INTERFACE]
Enters configuration mode for a physical interface
no ip address
Removes any IP address configuration from an interface
duplex auto
Sets the interface to auto-negotiate duplex mode
speed auto
Sets the interface to auto-negotiate speed
no shutdown
Administratively enables (turns on) an interface
interface [PHYSICAL_INTERFACE].[SUBINT_NUMBER]
Creates and enters subinterface configuration
encapsulation dot1Q [VLAN_ID]
Configures 802.1Q trunking for a subinterface with specified VLAN
encapsulation dot1Q [VLAN_ID] native
Configures the native (untagged) VLAN for a trunk subinterface
ip route 0.0.0.0 0.0.0.0 [NEXT_HOP]
Creates a default IPv4 static route
ipv6 route ::/0 [NEXT_HOP]
Creates a default IPv6 static route
banner motd [DELIMITER] [BANNER_TEXT] [DELIMITER]
Creates a Message of the Day banner shown to all users
line con 0
Enters configuration mode for the console port
password [CONSOLE_PASSWORD]
Sets the password for console access
login
Enables password checking for the line
line vty [FIRST_LINE] [LAST_LINE]
Enters configuration mode for virtual terminal (Telnet/SSH) lines
login local
Enables authentication using locally configured usernames
transport input ssh
Restricts VTY access to SSH only (disables Telnet)
end
Exits all configuration modes and returns to privileged EXEC mode