Freebie

Commands

Cisco IOS CLI

Move between CLI modes

CommandDescription
> enableEnter privileged EXEC mode.
# disableReturn to user EXEC mode.
# configure terminalEnter global configuration mode.
(config)# exitReturn to the previous level in the IOS CLI hierarchy.
(config)# endReturn to privileged EXEC mode from any configuration mode.
(config)# do <command>Run a privileged EXEC command from any configuration mode.

Get help

CommandDescription
?List the commands available in the current mode.
<partial-command>?List the commands that begin with the specified letters.
<command> ?List the keywords and arguments that can follow the command.

View and filter output

CommandDescription
# show running-configView the running-config.
# show startup-configView the startup-config.
> show historyView the command history for the current session.
# show <command> | include <string>Limit show command output to lines that include the specified string.
# show <command> | exclude <string>Limit show command output to lines that don’t include the specified string.
# show <command> | begin <string>Show show command output starting from the first line that includes the specified string.

Set the hostname and passwords

CommandDescription
(config)# hostname <name>Set the device’s hostname.
(config)# enable password <password>Configure an unhashed enable password.
(config)# enable secret <password>Configure a hashed enable secret.
(config)# service password-encryptionEncrypt passwords in the configuration with type-7 encryption (weak).

Save, back up, and erase the configuration

CommandDescription
# writeSave the device configuration by copying the running-config to the startup-config.
# write memorySave the device configuration by copying the running-config to the startup-config.
# copy running-config startup-configSave the device configuration by copying the running-config to the startup-config.
# copy running-config flash:Back up the running-config to flash memory.
# copy running-config tftp:Back up the running-config to a TFTP server.
# write eraseErase the startup-config. The device loads a factory-default configuration after the next reboot.
# erase startup-configErase the startup-config. The device loads a factory-default configuration after the next reboot.
# erase nvram:Erase the startup-config. The device loads a factory-default configuration after the next reboot.
# reloadReboot the device.

Connect to other devices

CommandDescription
> traceroute <ip-address>Trace the route to a destination.
> telnet <ip-address>Open a Telnet connection.
> ssh -l <username> <ip-address>Open an SSH client connection.
> connect <ip-address>Open a terminal connection.
> disconnect [<session>]Close an existing network connection.
> resume [<session>]Resume an active network connection.
> logoutEnd the EXEC session.

Use keyboard shortcuts

KeyAction
TabComplete a partially entered command.
Up ArrowShow the previous command in the history for the current mode.
Down ArrowShow the next command in the history for the current mode.
Ctrl-AMove the cursor to the start of the line.
Ctrl-EMove the cursor to the end of the line.
Ctrl-ZReturn to privileged EXEC mode from any configuration mode.
Ctrl-CReturn to privileged EXEC mode from any configuration mode.
Enter at --More--Show the next line of output.
Space at --More--Show the next page of output.

Ethernet LAN switching

CommandDescription
# show mac address-tableView the switch’s MAC address table.
# clear mac address-table dynamicRemove all dynamic MAC addresses.
# clear mac address-table dynamic address
  <address>
Remove the specified dynamic MAC address.
# clear mac address-table dynamic interface
  <interface>
Remove all dynamic MAC addresses learned on the specified interface.
# ping <ip-address>Ping the specified host (ICMP echo/reply).
# show arpView the device’s ARP table.

IPv4 addressing

CommandDescription
# show ip interface [<interface>]View detailed Layer 3 information about interfaces.
# show ip interface briefView a concise summary of interface IP addresses and status.
(config)# interface <interface>Enter interface config mode for the specified interface.
(config-if)# ip address <ip-address> <netmask>Set the interface’s IP address and netmask.
(config-if)# [no] shutdownEnable or disable the interface.

Router and switch interfaces

CommandDescription
# show interfaces [<interface>]View interface Layer 1 and Layer 2 information.
# show interfaces descriptionView interface descriptions and status.
# show interfaces statusView interface status, speed, and duplex.
(config)# interface range <interface-list>Configure multiple interfaces at once.
(config-if)# description <description>Set the interface’s description.
(config-if)# speed {auto | <speed>}Set the interface’s speed.
(config-if)# duplex {auto | full | half}Set the interface’s duplex.

Routing fundamentals

CommandDescription
# show ip routeView the routing table.
(config)# ip route <destination-network> <netmask>
  <next-hop>
Configure a recursive static route.
(config)# ip route <destination-network> <netmask>
  <exit-interface>
Configure a directly connected static route.
(config)# ip route <destination-network> <netmask>
  <exit-interface> <next-hop>
Configure a fully specified static route.

VLANs

CommandDescription
# show vlan briefView a list of VLANs and associated ports.
# show interfaces trunkView a list of trunk ports.
(config)# vlan <vlan-id>Configure a VLAN.
(config-vlan)# name <name>Name the VLAN.
(config-vlan)# [no] shutdownEnable or disable the VLAN.
(config-if)# switchport mode {access | trunk}Manually configure access or trunk mode.
(config-if)# switchport access vlan <vlan-id>Set the port’s access VLAN.
(config-if)# switchport trunk encapsulation dot1qSet the port’s trunk encapsulation protocol.
(config-if)# switchport trunk allowed vlan {
  <vlans> | add <vlans> | remove <vlans> |
  except <vlans> | all | none
}
Specify or modify the port’s list of allowed VLANs (when in trunk mode).
(config-if)# switchport trunk native vlan
  <vlan-id>
Specify the port’s native VLAN.
(config)# interface <interface>.<subif-number>Configure a subinterface (ROAS).
(config-subif)# encapsulation dot1q <vlan>
  [native]
Specify the subinterface’s VLAN ID.
(config)# ip routingEnable IP routing on a multilayer switch.
(config)# interface vlan <vlan-id>Configure a switch virtual interface (SVI).
(config-if)# no switchportMake the port a Layer 3 routed port.

Dynamic Trunking Protocol and VLAN Trunking Protocol

CommandDescription
# show interfaces switchportShow port operational and administrative modes.
(config-if)# switchport mode dynamic
  {auto | desirable}
Use DTP to determine the port’s operational mode.
(config-if)# switchport nonegotiateDisable DTP on the port.
# show vtp statusView VTP information.
(config)# vtp domain <name>Set the VTP domain name.
(config)# vtp mode
  {server | client | transparent | off}
Set the VTP mode.
(config)# vtp version {1 | 2 | 3}Set the VTP version.
# vtp primaryMake this switch the VTP primary server (VTP version 3 only).

Spanning Tree Protocol and Rapid Spanning Tree Protocol

CommandDescription
# show spanning-treeView STP status and information.
(config)# spanning-tree vlan <vlan> priority
  <priority>
Set the STP bridge priority.
(config)# spanning-tree vlan <vlan> root primarySet the bridge priority to 24576, or the lowest increment of 4096 needed to become the root bridge.
(config)# spanning-tree vlan <vlan> root secondarySet the bridge priority to 28672.
(config-if)# spanning-tree vlan <vlan>
  port-priority <priority>
Set the STP port priority.
(config-if)# spanning-tree portfast enableEnable PortFast on the port.
(config)# spanning-tree portfast defaultEnable PortFast on all access ports.
(config-if)# spanning-tree bpduguard enableEnable BPDU Guard on the port.
(config)# spanning-tree portfast bpduguard defaultEnable BPDU Guard on all PortFast-enabled ports.
(config)# spanning-tree mode {pvst | rapid-pvst}Set the STP mode (standard or rapid).
# show spanning-tree pathcost methodView the port cost calculation method.
(config)# spanning-tree pathcost method
  {short | long}
Set the port cost calculation method.
(config-if)# spanning-tree link-type
  {point-to-point | shared}
Set the port’s RSTP link type.

EtherChannel

CommandDescription
(config-if)# channel-group <group> mode
  {desirable | auto}
Configure a PAgP EtherChannel.
(config-if)# channel-group <group> mode
  {active | passive}
Configure an LACP EtherChannel.
(config-if)# channel-group <group> mode onConfigure a static EtherChannel.
(config)# interface port-channel <number>Configure the port-channel interface.
# show etherchannel summaryView EtherChannel status.
# show pagp neighborView PAgP neighbor status.
# show lacp neighborView LACP neighbor status.
(config)# port-channel load-balance <parameters>Modify the EtherChannel load-balancing parameters.
# show etherchannel load-balanceView the load-balancing parameters.

Dynamic routing and Open Shortest Path First

CommandDescription
(config)# ip route <destination-network> <netmask>
  <next-hop> <administrative-distance>
Configure a floating static route.
(config)# router ospf <process-id>Create or configure an OSPF process.
(config-router)# network <ip-address>
  <wildcard-mask> area <area>
Activate OSPF on interfaces with an IP address in the specified range.
(config-router)# auto-cost reference-bandwidth
  <mbps>
Modify the OSPF cost reference bandwidth.
(config-router)# passive-interface <interface>Configure a passive interface.
(config-router)# passive-interface defaultMake all interfaces passive by default.
(config-router)# default-information originate
  [always]
Advertise a default route to other routers.
(config-router)# maximum-paths <number>Set the maximum number of routes inserted into the routing table for ECMP.
(config-router)# router-id <rid>Manually set the OSPF router ID (RID).
(config-if)# ip ospf <process-id> area <area>Activate OSPF on the interface.
(config-if)# ip ospf network
  {point-to-point | broadcast}
Set the interface’s OSPF network type.
(config-if)# ip ospf priority <priority>Set the interface’s OSPF priority (for the DR/BDR election).
(config-if)# ip ospf cost <cost>Set the interface’s OSPF cost.
(config-if)# bandwidth <kbps>Set the interface’s bandwidth.
(config-if)# ip ospf hello-interval <seconds>Set the interface’s hello timer.
(config-if)# ip ospf dead-interval <seconds>Set the interface’s dead timer.
(config-if)# ip ospf authenticationEnable OSPF authentication.
(config-if)# ip ospf authentication-key <password>Set the OSPF authentication password.
(config-if)# ip mtu <bytes>Set the interface’s IP MTU.
(config)# interface loopback <number>Create or configure a loopback interface.
# show ip protocolsView information about the router’s active routing protocols.
# show ip ospf interface briefView OSPF-activated interfaces.
# show ip ospf neighborView OSPF neighbors and their status.
# show ip ospf interface <interface>View information about an OSPF interface.
# show ip ospf databaseView the OSPF LSDB.
# clear ip ospf processReset the OSPF process.

First Hop Redundancy Protocols

CommandDescription
(config-if)# standby <group> ip <virtual-ip>Set the HSRP virtual IP address.
(config-if)# standby <group> priority <priority>Set the HSRP priority.
(config-if)# standby <group> preemptEnable HSRP preemption.
(config-if)# standby version 2Enable HSRP version 2.
# show standby [brief]View HSRP status and information.

IPv6 addressing and IPv6 routing

CommandDescription
(config)# ipv6 unicast-routingEnable IPv6 routing.
(config-if)# ipv6 address
  <address>/<prefix-length>
Configure an IPv6 address.
(config-if)# ipv6 address <prefix>/<prefix-length>
  eui-64
Configure an IPv6 address, using EUI-64 to generate the host portion.
(config-if)# ipv6 address
  <address>/<prefix-length> link-local
Configure a link-local IPv6 address.
(config-if)# ipv6 address
  <address>/<prefix-length> anycast
Configure an anycast IPv6 address.
(config-if)# ipv6 address autoconfig [default]Use SLAAC to generate an IPv6 address.
(config-if)# ipv6 enableEnable IPv6 on the interface without configuring an IPv6 address.
# show ipv6 interface briefView a concise summary of interface IPv6 addresses and status.
# show ipv6 interface [<interface>]View detailed Layer 3 information about IPv6 interfaces.
# show ipv6 neighborsView the IPv6 neighbor table (like ARP).
# show ipv6 routeView the IPv6 routing table.
(config)# ipv6 route <destination-prefix>
  <next-hop> [<ad>]
Configure a recursive static route.
(config)# ipv6 route <destination-prefix>
  <exit-interface> [<ad>]
Configure a directly connected static route.
(config)# ipv6 route <destination-prefix>
  <exit-interface> <next-hop> [<ad>]
Configure a fully specified static route.

Standard and extended access control lists

CommandDescription
(config)# access-list <number> {permit | deny}
  <src-ip> <wildcard>
Configure an ACE in a standard numbered ACL.
(config)# access-list <number> remark <remark>Configure an ACL remark.
(config)# ip access-list standard <name>Configure a standard named ACL.
(config-std-nacl)# [<seq>] {permit | deny}
  <src-ip> <wildcard>
Configure an ACE in the standard named ACL.
(config)# access-list <number> {permit | deny}
  <protocol> <source> <destination>
Configure an ACE in an extended numbered ACL, matching based on protocol and source and destination IP.
(config)# access-list <number> {permit | deny}
  {tcp | udp} <source> [<operator> <src-port>]
  <destination> [<operator> <dst-port>]
Configure an ACE in an extended numbered ACL, matching based on protocol, source and destination IP, and source and destination port.
(config)# ip access-list extended <name>Configure an extended named ACL.
(config-ext-nacl)# [<seq>] {permit | deny}
  <protocol> <source> <destination>
Configure an ACE in the extended named ACL, matching based on protocol and source and destination IP.
(config-ext-nacl)# [<seq>] {permit | deny}
  {tcp | udp} <source> [<operator> <src-port>]
  <destination> [<operator> <dst-port>]
Configure an ACE in the extended named ACL, matching based on protocol, source and destination IP, and source and destination port.
(config-if)# ip access-group <acl> {in | out}Apply an ACL to an interface.
(config)# ip access-list resequence <acl>
  <starting-seq-num> <increment>
Resequence an ACL.
# show access-listsView all ACLs.
# show ip access-listsView all IP ACLs.
CommandDescription
(config)# [no] cdp runGlobally enable or disable CDP.
(config)# cdp timer <seconds>Set the CDP advertisement timer.
(config)# cdp holdtime <seconds>Set the CDP holdtime.
(config)# [no] cdp advertise-v2Enable or disable CDPv2 advertisements.
(config-if)# [no] cdp enableEnable or disable CDP on an interface.
# show cdpView basic CDP status and information.
# show cdp neighbors [detail]View information about CDP neighbors.
# show cdp entry <name>View detailed information about the specified CDP neighbor.
# show cdp interface [<interface>]View information about CDP interfaces.
# show cdp trafficView CDP traffic statistics.
(config)# [no] lldp runGlobally enable or disable LLDP.
(config)# lldp timer <seconds>Set the LLDP advertisement timer.
(config)# lldp holdtime <seconds>Set the LLDP holdtime.
(config)# lldp reinit <seconds>Set the LLDP reinitialization timer.
(config-if)# [no] lldp transmitEnable or disable LLDP Tx on the interface.
(config-if)# [no] lldp receiveEnable or disable LLDP Rx on the interface.
# show lldpView basic LLDP status and information.
# show lldp neighbors [detail]View information about LLDP neighbors.
# show lldp entry <name>View detailed information about the specified LLDP neighbor.
# show lldp interface [<interface>]View information about LLDP interfaces.
# show lldp trafficView LLDP traffic statistics.

Network Time Protocol

CommandDescription
# show clock [detail]View the time of the software clock.
# clock set <hh:mm:ss> <month> <day> <year>Set the time of the software clock.
# show calendarView the time of the hardware calendar.
# calendar set <hh:mm:ss> <month> <day> <year>Set the time of the hardware calendar.
# clock update-calendarSync the calendar to the clock’s time.
# clock read-calendarSync the clock to the calendar’s time.
(config)# clock timezone <name> <hours-offset>
  <minutes-offset>
Set the device’s time zone.
(config)# clock summer-time <name> recurring
  <start-date-time> <end-date-time>
Enable summer time (daylight saving time).
(config)# ntp server <ip-address> [prefer]Configure this device as an NTP client of the specified server.
(config)# ntp update-calendarUse NTP to regularly update the calendar.
(config)# ntp source <interface>Set the interface used to send NTP messages.
(config)# ntp master [<stratum>]Make this device a primary NTP server with its own clock as the reference clock.
(config)# ntp peer <ip-address>Configure a symmetric active NTP relationship on two devices.
(config)# ntp authentication-key <key-number> md5
  <key>
Configure an NTP authentication key.
(config)# ntp trusted-key <key-number>Specify an NTP trusted authentication key.
(config)# ntp server <ip-address> key <key-number>Configure this device as an NTP client of the specified server and authenticate it with the specified key.
# show ntp associationsView a list of NTP associations (time sources).
# show ntp statusView the device’s NTP status.

Domain Name System

CommandDescription
(config)# ip domain lookupEnable the device to send DNS queries.
(config)# ip name-server <ip-address>Configure the DNS server(s) to send DNS queries to.
(config)# no ip name-server [<ip-address>]Remove the specified DNS server, or all DNS servers if you omit the address.
(config)# ip dns serverConfigure the device as a DNS server, allowing it to respond to DNS queries.
(config)# ip domain name <domain-name>Set the device’s default domain name.
(config)# ip host <hostname> <ip-address>Create a manual name-to-IP mapping.
# show hostsView all name-to-IP mappings.

Dynamic Host Configuration Protocol

CommandDescription
(config)# ip dhcp excluded-address <low-ip>
  <high-ip>
Specify a range of addresses that the device won’t lease to DHCP clients.
(config)# ip dhcp pool <name>Create or configure a DHCP pool.
(dhcp-config)# network <address>
  {/<prefix-length> | <netmask>}
Set the range of IP addresses to lease to clients.
(dhcp-config)# default-router <ip-address>Set the pool’s default gateway.
(dhcp-config)# dns-server <ip-address>Set the pool’s DNS server.
(dhcp-config)# domain-name <domain-name>Set the pool’s domain name.
(dhcp-config)# lease <days> <hours> <minutes>Set the pool’s lease time.
# show ip dhcp bindingView addresses leased to DHCP clients.
# clear ip dhcp binding {* | <ip-address>}Clear DHCP leases.
# show ip dhcp conflictView DHCP conflicts.
# clear ip dhcp conflict {* | <ip-address>}Clear DHCP conflicts.
(config-if)# ip address dhcpConfigure the interface as a DHCP client.
(config-if)# ip helper-address <ip-address>Configure the interface as a DHCP relay agent.
(Windows) ipconfigView basic IP information.
(Windows) ipconfig /allView more detailed IP information.
(Windows) netstat -rnView the routing table.
(macOS) ifconfigView interface information.
(macOS) netstat -rnView the routing table.
(Linux) ifconfigView interface information (net-tools).
(Linux) routeView the routing table (net-tools).
(Linux) ip addrView interface information (iproute2).
(Linux) ip routeView the routing table (iproute2).

Secure Shell

CommandDescription
(config)# username <username> secret <password>Create a local user account.
(config)# line console 0Configure the console line.
(config)# line vty 0 15Configure all 16 VTY lines.
(config-line)# password <password>Configure a line password.
(config-line)# loginRequire a user to provide the line password to access the line.
(config-line)# login localRequire a user to log in with a local user account to access the line.
(config-line)# exec-timeout <minutes>Set the inactivity logout timer.
(config-line)# transport input
  {telnet | ssh | all | none}
Set the protocols that can be used to connect to the line.
(config-line)# access-class <acl> inApply an ACL to limit access to the line.
(config)# ip default-gateway <ip-address>Set the Layer 2 switch’s default gateway.
# show ip default-gatewayView the Layer 2 switch’s default gateway.
# show ip sshView SSH settings and information.
(config)# crypto key generate rsaGenerate an RSA key pair (for SSH).
(config)# ip ssh version 2Allow only SSH version 2 connections.

Simple Network Management Protocol

CommandDescription
(config)# snmp-server community <password> roConfigure a read-only community string.
(config)# snmp-server community <password> rwConfigure a read-write community string.
(config)# snmp-server enable trapsEnable SNMP traps.
(config)# snmp-server host <ip-address>
  [version 2c] <community-string>
Specify the NMS to send traps to.

Syslog

CommandDescription
# terminal monitorEnable real-time logging to the VTY lines for the current session.
(config)# logging console [<severity>]Configure logging to the console line.
(config)# logging monitor [<severity>]Configure logging to the VTY lines.
(config)# logging buffered [<bytes>] [<severity>]Configure logging to the logging buffer.
(config)# logging trap [<severity>]Configure logging to a Syslog server.
(config)# logging [host] <ip-address>Specify the Syslog server to send logs to.
(config)# service timestamps log datetime
  [localtime] [msec]
Timestamp log messages with the current date and time.
(config)# service timestamps log uptimeTimestamp log messages with the device’s current uptime.
(config-line)# logging synchronousAutomatically reprint the current command on a new line if cut off by a log message.
# show loggingShow Syslog settings and the logging buffer.
# show memoryShow device memory usage.
# debug <command>Display detailed real-time information about various operations or events.

Trivial File Transfer Protocol and File Transfer Protocol

CommandDescription
# show file systemsView the device’s file systems.
# dir <file-system>View the contents of a file system.
# more <file-name>View the contents of a file.
# show flash:View the contents of flash memory.
# copy <src-file-path> <dst-file-path>Copy a file.
# copy tftp: flash:Copy a file from a TFTP server to flash.
# copy ftp: flash:Copy a file from an FTP server to flash.
(config)# ip ftp username <username>Set the default FTP username.
(config)# ip ftp password <password>Set the default FTP password.
# copy ftp://<username>:<password>@<server-ip>
  flash:
Copy a file from an FTP server to flash, specifying the authentication credentials.
# show versionView information about the IOS version.
# show bootView information about the boot image.
(config)# boot system <image-path>Set the IOS image that will be loaded on the next boot.

Network address translation

CommandDescription
(config-if)# ip nat insideConfigure an inside interface.
(config-if)# ip nat outsideConfigure an outside interface.
(config)# ip nat inside source static
  <inside-local> <inside-global>
Configure a static NAT mapping.
(config)# ip nat pool <pool-name> <start-ip>
  <end-ip> prefix-length <length>
Create a NAT pool.
(config)# ip nat inside source list <acl> pool
  <pool-name>
Configure a dynamic NAT mapping of an ACL to a NAT pool.
(config)# ip nat inside source list <acl> pool
  <pool-name> overload
Configure a dynamic PAT (NAT overload) mapping of an ACL to a NAT pool.
(config)# ip nat inside source list <acl>
  interface <interface> [overload]
Configure a dynamic PAT mapping of an ACL to an interface IP address.
# show ip nat translationsView the NAT translation table.
# show ip nat statisticsView NAT translation statistics.

Quality of service

CommandDescription
(config-if)# switchport voice vlan <vlan-id>Configure the port’s voice VLAN.
(config-if)# power inline autoEnable PoE on the port, and automatically detect and power devices.
(config-if)# power inline static
  [max <milliwatts>]
Enable PoE on the port with a static power reservation.
(config-if)# power inline policeEnable power policing on the port.
(config-if)# power inline neverDisable PoE on the port.
# show power inlineView PoE status and ports.
# show power inline policeView power policing status and ports.

Security concepts

CommandDescription
(config)# enable algorithm-type
  {md5 | sha256 | scrypt} secret <password>
Configure an enable secret using the specified hashing algorithm.
(config)# enable secret <type> <hash>Configure an already-hashed enable secret.
(config)# username <username> algorithm-type
  {md5 | sha256 | scrypt} secret <password>
Configure a user account, and hash the password using the specified algorithm.
(config)# username <username> secret <type> <hash>Configure a user account with an already-hashed password.

Port Security

CommandDescription
(config-if)# switchport port-securityEnable Port Security on the port.
(config-if)# switchport port-security maximum
  <number>
Limit the maximum number of MAC addresses that can be learned on the port.
(config-if)# switchport port-security mac-address
  <mac-address> [voice vlan]
Configure a static secure MAC address.
(config-if)# switchport port-security violation
  {shutdown | restrict | protect}
Set the Port Security violation mode of the port.
(config-if)# switchport port-security aging time
  <minutes>
Enable aging, and set the aging time for secure MAC addresses learned on the port.
(config-if)# switchport port-security aging type
  {absolute | inactivity}
Set the Port Security aging type.
(config-if)# switchport port-security aging staticEnable static secure MAC address aging.
(config-if)# switchport port-security mac-address
  sticky
Enable sticky secure MAC address learning.
# show port-securityView a list of Port Security-enabled ports.
# show port-security interface <interface>View Port Security settings for a port.
# show mac address-table secureView secure MAC addresses.
(config)# errdisable recovery cause
  psecure-violation
Enable ErrDisable Recovery for ports disabled by Port Security.
(config)# errdisable recovery interval <seconds>Set the ErrDisable Recovery interval.
# show errdisable recoveryView ErrDisable Recovery settings.

DHCP Snooping

CommandDescription
(config)# ip dhcp snoopingEnable DHCP Snooping.
(config)# ip dhcp snooping vlan <vlans>Activate DHCP Snooping on VLANs.
(config)# no ip dhcp snooping information optionDisable option 82 insertion.
(config-if)# ip dhcp snooping trustConfigure the port as a DHCP Snooping trusted port.
(config-if)# ip dhcp snooping limit rate <pps>Rate-limit DHCP messages on the port.
(config)# errdisable recovery cause
  dhcp-rate-limit
Enable ErrDisable Recovery for ports disabled by DHCP Snooping rate limiting.
# show ip dhcp snoopingView DHCP Snooping status and settings.
# show ip dhcp snooping bindingView the DHCP Snooping binding table.

Dynamic ARP inspection

CommandDescription
(config)# ip arp inspection vlan <vlans>Enable DAI on the specified VLANs.
(config)# ip arp inspection validate
  {[src-mac] [dst-mac] [ip]}
Enable optional DAI checks.
(config-if)# ip arp inspection trustConfigure the port as a DAI trusted port.
(config-if)# ip arp inspection limit rate <pps>
  [burst interval <seconds>]
Rate-limit ARP messages on the port.
(config)# errdisable recovery cause arp-inspectionEnable ErrDisable Recovery for ports disabled by DAI rate limiting.
# show ip arp inspectionView DAI status and information.
# show ip arp inspection interfacesView DAI interface status and settings.

Virtualization and cloud

CommandDescription
(config)# ip vrf <name>Create a VRF instance.
(config-if)# ip vrf forwarding <vrf>Assign the interface to a VRF.
# show ip vrfView a list of VRFs and their interfaces.
# show ip route vrf <vrf>View the specified VRF’s routing table.
# ping vrf <vrf> <ip-address>Ping a host from the specified VRF.

Wireless LAN configuration

CommandDescription
(dhcp-config)# option 42 ip <ip-address>Set the DHCP pool’s NTP server address.
(dhcp-config)# option 43 ip <ip-address>Set the DHCP pool’s WLC address (to help LWAPs identify their WLC).

Data formats

CommandDescription
# show <command> | formatDisplay the output in XML format (only works for some commands).