Essential Cisco Ios Commands
Essential Cisco Ios Commands
Router#show version - Shows information about the router, including the configuration register
value
Router#show startup-config - Displays the startup configuration
Router#show running-config - Displays the running configuration
Router#copy running-config startup-config - Save the running configuration to the startup
configuration
Router#show ip nat translations - View the NAT translations table to view static and dynamic
mappings
Router#show ip nat statistics - View the NAT statistics
Configuring PPP
Router(config)#username internetwork password cisco - Specify the username and
password that is to be used with authentication
Router(config-if)#encapsulation ppp - Set the encapsulation to PPP
Router(config-if)#ppp authentication pap - Set PPP authentication to use PAP
Router(config-if)#ppp authentication chap - Set PPP authentication to use CHAP
Router(config-if)#ppp pap sent-username internetwork password cisco - Specify what
username and password the client should use to authenticate when connecting to the server
using PAP
Configuring IPv6
Router(config)#interface FastEthernet 0/0 - Configure the fast Ethernet 0/0 interface
Router(config-if)#ipv6 address 2001:cdba:0000:0000:0000:0000:0000:0001/64 - Assign an
IPv6 address to an interface
Router(config-if)#ipv6 enable - Enable IPv6 addressing on an interface without specifying the
IPv6 address
Router(config)#show ipv6 interface brief - Show the IPv6 addresses for all interfaces
Router#show int fa0/0 | inc bia - Show the interface fast Ethernet 0/0 burned in address (bia)
Router>ping 2001:cdba::2 - Ping an IPv6 address
Switch#show port-security - Shows a summary of the ports and security on those ports
Switch#show port-security address - Shows the secure MAC address table
Switch#show mac-address-table - Displays the MAC address table
Switch#show port-security interface fastEthernet 0/3 - Shows the port security settings for
interface fa0/3
Configuring VLANs
Switch(config)#show vlan - Display current VLANs
Switch(config)#vlan 10 - Create a VLAN with the number 10
Switch(config)#name sales - Give the VLAN a name “sales”
Switch(config-if)#switchport access vlan 10 - Assign an interface to VLAN 10
Switch#show spanning vlan 1 - Display the spanning tree information for VLAN 1
Switch#show vlan brief - Display basic VLAN information
Configuring EtherChannel
Switch(config-if)#channel group 1 mode on - Assign a physical interface to a port-channel
Switch#show interface port-channel 1 - Display information about the EtherChannel
Switch#show interface trunk - Displays the trunk information on the switch
Switch#show etherchannel 1 - Verify EtherChannel 1 status