Commands
Cisco IOS CLI
Move between CLI modes
| Command | Description |
|---|---|
> enable | Enter privileged EXEC mode. |
# disable | Return to user EXEC mode. |
# configure terminal | Enter global configuration mode. |
(config)# exit | Return to the previous level in the IOS CLI hierarchy. |
(config)# end | Return to privileged EXEC mode from any configuration mode. |
(config)# do <command> | Run a privileged EXEC command from any configuration mode. |
Get help
| Command | Description |
|---|---|
? | 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
| Command | Description |
|---|---|
# show running-config | View the running-config. |
# show startup-config | View the startup-config. |
> show history | View 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
| Command | Description |
|---|---|
(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-encryption | Encrypt passwords in the configuration with type-7 encryption (weak). |
Save, back up, and erase the configuration
| Command | Description |
|---|---|
# write | Save the device configuration by copying the running-config to the startup-config. |
# write memory | Save the device configuration by copying the running-config to the startup-config. |
# copy running-config startup-config | Save 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 erase | Erase the startup-config. The device loads a factory-default configuration after the next reboot. |
# erase startup-config | Erase 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. |
# reload | Reboot the device. |
Connect to other devices
| Command | Description |
|---|---|
> 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. |
> logout | End the EXEC session. |
Use keyboard shortcuts
| Key | Action |
|---|---|
| Tab | Complete a partially entered command. |
| Up Arrow | Show the previous command in the history for the current mode. |
| Down Arrow | Show the next command in the history for the current mode. |
| Ctrl-A | Move the cursor to the start of the line. |
| Ctrl-E | Move the cursor to the end of the line. |
| Ctrl-Z | Return to privileged EXEC mode from any configuration mode. |
| Ctrl-C | Return 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
| Command | Description |
|---|---|
# show mac address-table | View the switch’s MAC address table. |
# clear mac address-table dynamic | Remove all dynamic MAC addresses. |
# clear mac address-table dynamic address | Remove the specified dynamic MAC address. |
# clear mac address-table dynamic interface | Remove all dynamic MAC addresses learned on the specified interface. |
# ping <ip-address> | Ping the specified host (ICMP echo/reply). |
# show arp | View the device’s ARP table. |
IPv4 addressing
| Command | Description |
|---|---|
# show ip interface [<interface>] | View detailed Layer 3 information about interfaces. |
# show ip interface brief | View 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] shutdown | Enable or disable the interface. |
Router and switch interfaces
| Command | Description |
|---|---|
# show interfaces [<interface>] | View interface Layer 1 and Layer 2 information. |
# show interfaces description | View interface descriptions and status. |
# show interfaces status | View 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
| Command | Description |
|---|---|
# show ip route | View the routing table. |
(config)# ip route <destination-network> <netmask> | Configure a recursive static route. |
(config)# ip route <destination-network> <netmask> | Configure a directly connected static route. |
(config)# ip route <destination-network> <netmask> | Configure a fully specified static route. |
VLANs
| Command | Description |
|---|---|
# show vlan brief | View a list of VLANs and associated ports. |
# show interfaces trunk | View a list of trunk ports. |
(config)# vlan <vlan-id> | Configure a VLAN. |
(config-vlan)# name <name> | Name the VLAN. |
(config-vlan)# [no] shutdown | Enable 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 dot1q | Set the port’s trunk encapsulation protocol. |
(config-if)# switchport trunk allowed vlan { | Specify or modify the port’s list of allowed VLANs (when in trunk mode). |
(config-if)# switchport trunk native vlan | Specify the port’s native VLAN. |
(config)# interface <interface>.<subif-number> | Configure a subinterface (ROAS). |
(config-subif)# encapsulation dot1q <vlan> | Specify the subinterface’s VLAN ID. |
(config)# ip routing | Enable IP routing on a multilayer switch. |
(config)# interface vlan <vlan-id> | Configure a switch virtual interface (SVI). |
(config-if)# no switchport | Make the port a Layer 3 routed port. |
Dynamic Trunking Protocol and VLAN Trunking Protocol
| Command | Description |
|---|---|
# show interfaces switchport | Show port operational and administrative modes. |
(config-if)# switchport mode dynamic | Use DTP to determine the port’s operational mode. |
(config-if)# switchport nonegotiate | Disable DTP on the port. |
# show vtp status | View VTP information. |
(config)# vtp domain <name> | Set the VTP domain name. |
(config)# vtp mode | Set the VTP mode. |
(config)# vtp version {1 | 2 | 3} | Set the VTP version. |
# vtp primary | Make this switch the VTP primary server (VTP version 3 only). |
Spanning Tree Protocol and Rapid Spanning Tree Protocol
| Command | Description |
|---|---|
# show spanning-tree | View STP status and information. |
(config)# spanning-tree vlan <vlan> priority | Set the STP bridge priority. |
(config)# spanning-tree vlan <vlan> root primary | Set the bridge priority to 24576, or the lowest increment of 4096 needed to become the root bridge. |
(config)# spanning-tree vlan <vlan> root secondary | Set the bridge priority to 28672. |
(config-if)# spanning-tree vlan <vlan> | Set the STP port priority. |
(config-if)# spanning-tree portfast enable | Enable PortFast on the port. |
(config)# spanning-tree portfast default | Enable PortFast on all access ports. |
(config-if)# spanning-tree bpduguard enable | Enable BPDU Guard on the port. |
(config)# spanning-tree portfast bpduguard default | Enable 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 method | View the port cost calculation method. |
(config)# spanning-tree pathcost method | Set the port cost calculation method. |
(config-if)# spanning-tree link-type | Set the port’s RSTP link type. |
EtherChannel
| Command | Description |
|---|---|
(config-if)# channel-group <group> mode | Configure a PAgP EtherChannel. |
(config-if)# channel-group <group> mode | Configure an LACP EtherChannel. |
(config-if)# channel-group <group> mode on | Configure a static EtherChannel. |
(config)# interface port-channel <number> | Configure the port-channel interface. |
# show etherchannel summary | View EtherChannel status. |
# show pagp neighbor | View PAgP neighbor status. |
# show lacp neighbor | View LACP neighbor status. |
(config)# port-channel load-balance <parameters> | Modify the EtherChannel load-balancing parameters. |
# show etherchannel load-balance | View the load-balancing parameters. |
Dynamic routing and Open Shortest Path First
| Command | Description |
|---|---|
(config)# ip route <destination-network> <netmask> | Configure a floating static route. |
(config)# router ospf <process-id> | Create or configure an OSPF process. |
(config-router)# network <ip-address> | Activate OSPF on interfaces with an IP address in the specified range. |
(config-router)# auto-cost reference-bandwidth | Modify the OSPF cost reference bandwidth. |
(config-router)# passive-interface <interface> | Configure a passive interface. |
(config-router)# passive-interface default | Make all interfaces passive by default. |
(config-router)# default-information originate | 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 | 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 authentication | Enable 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 protocols | View information about the router’s active routing protocols. |
# show ip ospf interface brief | View OSPF-activated interfaces. |
# show ip ospf neighbor | View OSPF neighbors and their status. |
# show ip ospf interface <interface> | View information about an OSPF interface. |
# show ip ospf database | View the OSPF LSDB. |
# clear ip ospf process | Reset the OSPF process. |
First Hop Redundancy Protocols
| Command | Description |
|---|---|
(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> preempt | Enable HSRP preemption. |
(config-if)# standby version 2 | Enable HSRP version 2. |
# show standby [brief] | View HSRP status and information. |
IPv6 addressing and IPv6 routing
| Command | Description |
|---|---|
(config)# ipv6 unicast-routing | Enable IPv6 routing. |
(config-if)# ipv6 address | Configure an IPv6 address. |
(config-if)# ipv6 address <prefix>/<prefix-length> | Configure an IPv6 address, using EUI-64 to generate the host portion. |
(config-if)# ipv6 address | Configure a link-local IPv6 address. |
(config-if)# ipv6 address | Configure an anycast IPv6 address. |
(config-if)# ipv6 address autoconfig [default] | Use SLAAC to generate an IPv6 address. |
(config-if)# ipv6 enable | Enable IPv6 on the interface without configuring an IPv6 address. |
# show ipv6 interface brief | View a concise summary of interface IPv6 addresses and status. |
# show ipv6 interface [<interface>] | View detailed Layer 3 information about IPv6 interfaces. |
# show ipv6 neighbors | View the IPv6 neighbor table (like ARP). |
# show ipv6 route | View the IPv6 routing table. |
(config)# ipv6 route <destination-prefix> | Configure a recursive static route. |
(config)# ipv6 route <destination-prefix> | Configure a directly connected static route. |
(config)# ipv6 route <destination-prefix> | Configure a fully specified static route. |
Standard and extended access control lists
| Command | Description |
|---|---|
(config)# access-list <number> {permit | deny} | 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} | Configure an ACE in the standard named ACL. |
(config)# access-list <number> {permit | deny} | Configure an ACE in an extended numbered ACL, matching based on protocol and source and destination IP. |
(config)# access-list <number> {permit | deny} | 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} | Configure an ACE in the extended named ACL, matching based on protocol and source and destination IP. |
(config-ext-nacl)# [<seq>] {permit | deny} | 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> | Resequence an ACL. |
# show access-lists | View all ACLs. |
# show ip access-lists | View all IP ACLs. |
Cisco Discovery Protocol and Link Layer Discovery Protocol
| Command | Description |
|---|---|
(config)# [no] cdp run | Globally 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-v2 | Enable or disable CDPv2 advertisements. |
(config-if)# [no] cdp enable | Enable or disable CDP on an interface. |
# show cdp | View 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 traffic | View CDP traffic statistics. |
(config)# [no] lldp run | Globally 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 transmit | Enable or disable LLDP Tx on the interface. |
(config-if)# [no] lldp receive | Enable or disable LLDP Rx on the interface. |
# show lldp | View 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 traffic | View LLDP traffic statistics. |
Network Time Protocol
| Command | Description |
|---|---|
# 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 calendar | View the time of the hardware calendar. |
# calendar set <hh:mm:ss> <month> <day> <year> | Set the time of the hardware calendar. |
# clock update-calendar | Sync the calendar to the clock’s time. |
# clock read-calendar | Sync the clock to the calendar’s time. |
(config)# clock timezone <name> <hours-offset> | Set the device’s time zone. |
(config)# clock summer-time <name> recurring | 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-calendar | Use 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 | 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 associations | View a list of NTP associations (time sources). |
# show ntp status | View the device’s NTP status. |
Domain Name System
| Command | Description |
|---|---|
(config)# ip domain lookup | Enable 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 server | Configure 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 hosts | View all name-to-IP mappings. |
Dynamic Host Configuration Protocol
| Command | Description |
|---|---|
(config)# ip dhcp excluded-address <low-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> | 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 binding | View addresses leased to DHCP clients. |
# clear ip dhcp binding {* | <ip-address>} | Clear DHCP leases. |
# show ip dhcp conflict | View DHCP conflicts. |
# clear ip dhcp conflict {* | <ip-address>} | Clear DHCP conflicts. |
(config-if)# ip address dhcp | Configure the interface as a DHCP client. |
(config-if)# ip helper-address <ip-address> | Configure the interface as a DHCP relay agent. |
(Windows) ipconfig | View basic IP information. |
(Windows) ipconfig /all | View more detailed IP information. |
(Windows) netstat -rn | View the routing table. |
(macOS) ifconfig | View interface information. |
(macOS) netstat -rn | View the routing table. |
(Linux) ifconfig | View interface information (net-tools). |
(Linux) route | View the routing table (net-tools). |
(Linux) ip addr | View interface information (iproute2). |
(Linux) ip route | View the routing table (iproute2). |
Secure Shell
| Command | Description |
|---|---|
(config)# username <username> secret <password> | Create a local user account. |
(config)# line console 0 | Configure the console line. |
(config)# line vty 0 15 | Configure all 16 VTY lines. |
(config-line)# password <password> | Configure a line password. |
(config-line)# login | Require a user to provide the line password to access the line. |
(config-line)# login local | Require 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 | Set the protocols that can be used to connect to the line. |
(config-line)# access-class <acl> in | Apply 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-gateway | View the Layer 2 switch’s default gateway. |
# show ip ssh | View SSH settings and information. |
(config)# crypto key generate rsa | Generate an RSA key pair (for SSH). |
(config)# ip ssh version 2 | Allow only SSH version 2 connections. |
Simple Network Management Protocol
| Command | Description |
|---|---|
(config)# snmp-server community <password> ro | Configure a read-only community string. |
(config)# snmp-server community <password> rw | Configure a read-write community string. |
(config)# snmp-server enable traps | Enable SNMP traps. |
(config)# snmp-server host <ip-address> | Specify the NMS to send traps to. |
Syslog
| Command | Description |
|---|---|
# terminal monitor | Enable 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 | Timestamp log messages with the current date and time. |
(config)# service timestamps log uptime | Timestamp log messages with the device’s current uptime. |
(config-line)# logging synchronous | Automatically reprint the current command on a new line if cut off by a log message. |
# show logging | Show Syslog settings and the logging buffer. |
# show memory | Show device memory usage. |
# debug <command> | Display detailed real-time information about various operations or events. |
Trivial File Transfer Protocol and File Transfer Protocol
| Command | Description |
|---|---|
# show file systems | View 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> | Copy a file from an FTP server to flash, specifying the authentication credentials. |
# show version | View information about the IOS version. |
# show boot | View 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
| Command | Description |
|---|---|
(config-if)# ip nat inside | Configure an inside interface. |
(config-if)# ip nat outside | Configure an outside interface. |
(config)# ip nat inside source static | Configure a static NAT mapping. |
(config)# ip nat pool <pool-name> <start-ip> | Create a NAT pool. |
(config)# ip nat inside source list <acl> pool | Configure a dynamic NAT mapping of an ACL to a NAT pool. |
(config)# ip nat inside source list <acl> pool | Configure a dynamic PAT (NAT overload) mapping of an ACL to a NAT pool. |
(config)# ip nat inside source list <acl> | Configure a dynamic PAT mapping of an ACL to an interface IP address. |
# show ip nat translations | View the NAT translation table. |
# show ip nat statistics | View NAT translation statistics. |
Quality of service
| Command | Description |
|---|---|
(config-if)# switchport voice vlan <vlan-id> | Configure the port’s voice VLAN. |
(config-if)# power inline auto | Enable PoE on the port, and automatically detect and power devices. |
(config-if)# power inline static | Enable PoE on the port with a static power reservation. |
(config-if)# power inline police | Enable power policing on the port. |
(config-if)# power inline never | Disable PoE on the port. |
# show power inline | View PoE status and ports. |
# show power inline police | View power policing status and ports. |
Security concepts
| Command | Description |
|---|---|
(config)# enable algorithm-type | 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 | 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
| Command | Description |
|---|---|
(config-if)# switchport port-security | Enable Port Security on the port. |
(config-if)# switchport port-security maximum | Limit the maximum number of MAC addresses that can be learned on the port. |
(config-if)# switchport port-security mac-address | Configure a static secure MAC address. |
(config-if)# switchport port-security violation | Set the Port Security violation mode of the port. |
(config-if)# switchport port-security aging time | Enable aging, and set the aging time for secure MAC addresses learned on the port. |
(config-if)# switchport port-security aging type | Set the Port Security aging type. |
(config-if)# switchport port-security aging static | Enable static secure MAC address aging. |
(config-if)# switchport port-security mac-address | Enable sticky secure MAC address learning. |
# show port-security | View a list of Port Security-enabled ports. |
# show port-security interface <interface> | View Port Security settings for a port. |
# show mac address-table secure | View secure MAC addresses. |
(config)# errdisable recovery cause | Enable ErrDisable Recovery for ports disabled by Port Security. |
(config)# errdisable recovery interval <seconds> | Set the ErrDisable Recovery interval. |
# show errdisable recovery | View ErrDisable Recovery settings. |
DHCP Snooping
| Command | Description |
|---|---|
(config)# ip dhcp snooping | Enable DHCP Snooping. |
(config)# ip dhcp snooping vlan <vlans> | Activate DHCP Snooping on VLANs. |
(config)# no ip dhcp snooping information option | Disable option 82 insertion. |
(config-if)# ip dhcp snooping trust | Configure 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 | Enable ErrDisable Recovery for ports disabled by DHCP Snooping rate limiting. |
# show ip dhcp snooping | View DHCP Snooping status and settings. |
# show ip dhcp snooping binding | View the DHCP Snooping binding table. |
Dynamic ARP inspection
| Command | Description |
|---|---|
(config)# ip arp inspection vlan <vlans> | Enable DAI on the specified VLANs. |
(config)# ip arp inspection validate | Enable optional DAI checks. |
(config-if)# ip arp inspection trust | Configure the port as a DAI trusted port. |
(config-if)# ip arp inspection limit rate <pps> | Rate-limit ARP messages on the port. |
(config)# errdisable recovery cause arp-inspection | Enable ErrDisable Recovery for ports disabled by DAI rate limiting. |
# show ip arp inspection | View DAI status and information. |
# show ip arp inspection interfaces | View DAI interface status and settings. |
Virtualization and cloud
| Command | Description |
|---|---|
(config)# ip vrf <name> | Create a VRF instance. |
(config-if)# ip vrf forwarding <vrf> | Assign the interface to a VRF. |
# show ip vrf | View 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
| Command | Description |
|---|---|
(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
| Command | Description |
|---|---|
# show <command> | format | Display the output in XML format (only works for some commands). |