IP Addressing and Subnetting
- ip address ip-value bnet-value - Assigns an IP and subnet mask
- show ip interface interface-number - Displays the status of a network interface as well as a detailed listing of its IP configurations and related characteristics
- show ip interface brief - Provides a concise summary of the IP interface status and configuration
- no ip address - Removes an IP address
Configuring Routing Protocols
- ip route destination network-mask next hop - Sets a static route in the IP routing table
- ip route 0.0.0.0 0.0.0.0 next-hop-ip - Configures a default route
- no ip route network mask next-hop-ip - Removes a route
- router rip - Enables a Routing Information Protocol (RIP) routing process, which places you in Router Configuration mode
- show ip rip database - Displays the contents of the RIP routing database
- clear ip route * - Clears the routing table
Troubleshooting and Diagnostics
- show interfaces - Displays detailed information about interface status, settings and counters
- show ip route - Shows the routing table of the device
- show interface status - Displays the interface line status
- show interfaces trunk - Lists information about the currently operational trunks and the VLANs supported by those trunks
- show version - Displays information about the IOS version, uptime and hardware configuration
- show running-config - Displays the current active configuration on the device
- show mac address-table - Displays the MAC address table
- show log - Shows system log messages (logs of events and errors)
Vlan Configuration and Routing
- vlan vlan ID - Creates a VLAN with the specified ID
- name vlan-name - Assigns a name to the created VLAN
- show vlan brief - Displays a summary of all VLANs and their associated interfaces
- interface vlan vlan-id - Enters interface configuration mode for the specified VLAN
- switchport mode access - Sets the port to access mode (used for connecting end devices)
- switchport access vlan vlan-id - Assigns the port to a specific VLAN
- switchport mode trunk - Configures a port as a trunk to carry multiple VLANs
- switchport trunk allowed vlan vlan-list - Specifies which VLANs are allowed on a trunk
- no vlan vlan-id - deletes a vlan
DHCP Configuration Commands
- show ip dhcp pool - Displays DHCP pool statistics and information
- show ip dhcp binding - Displays the list of IP addresses currently leased to DHCP clients
- show ip dhcp server statistics - Displays statistics about DHCP server operations
- clear ip dhcp binding address - Releases the IP address binding for a specific client
- clear ip dhcp conflicts - Clears any DHCP address conflicts
- debug ip dhcp server packet - Displays real-time debugging information for DHCP packets
- ip dhcp conflict logging - Enables logging of DHCP address conflicts
- no ip dhcp conflict logging - Disables logging of DHCP address conflicts