Cisco IOS
Cisco Internetwork Operating System (IOS) is a family of network operating systems used on many Cisco Systems routers and current Cisco network switches
Basic commands
show versionorsh ver(includes uptime information)
Interfaces:
show interfacesshow interface trunkshow interfaces switchport. To display the administrative and operational status of a switching (nonrouting) port
show configurationorsh confshow running-configorsh runAn enable mode command that displays the current configurationconfigure terminalorconf tLogs you into configuration mode
show ipshow ip interfaceshow ip interface brieforsh ip int br
enableLogs into enable mode. Also known as user exec mode or privileged mode. See also:show privilegeenable 5Change to level 5no enable password
show ip trafficshow loggingno shutdown. Enables an interface (brings it up).
ip route-cacheno ip route-cache
include, similar togreplinux command
show vlan [brief | id <vlan-id> | name <name> [ifindex] | <ifindex>]show vlanshow vlan brieforsh vlan brshow vlan summaryorsh vlan s
show ip routeorshow ip ro
show ip arpshow ip sshshow privilege
usernameCreate and delete usersshow users
write
show crypto ca certificates
Access List
Configuring IP Access Lists: https://www.cisco.com/c/en/us/support/docs/security/ios-firewall/23602-confaccesslists.html#acltypes
Types of ACLs: Standard ACLs, Extended ACLs, Lock and Key (Dynamic ACLs), IP Named ACLs, Reflexive ACLs, Time-Based ACLs Using Time Ranges, Commented IP ACL Entries, Context-Based Access Control, Authentication Proxy, Turbo ACLs, Distributed Time-Based ACLs, Receive ACLs, Infrastructure Protection ACLs, Transit ACLs.
show access-listshow ip access-listrouter(config)#access-list 101 deny icmp any anyrouter(config)#access-list 101 permit ip any any
router(config)#ip access-list extended testrouter(config-ext-nacl)#permit ip host 2.2.2.2 host 3.3.3.3router(config-ext-nacl)#permit tcp host 1.1.1.1 host 5.5.5.5 eq wwwrouter(config-ext-nacl)#permit icmp any anyrouter(config-ext-nacl)#permit udp host 6.6.6.6 10.10.10.0 0.0.0.255 eq domain
ip access-group
HTTP Server
sh ip http server allR1(config)#ip http authentication localR1(config)#ip http secure-server
Configuration Guides
Activities
- Read wikipedia article about Cisco Internetwork Operating System
- Read Cisco IOS command reference: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/fundamentals/command/Cisco_IOS_Configuration_Fundamentals_Command_Reference.pdf
- Read Cisco IOS Cheat Sheet: https://www.netwrix.com/cisco_commands_cheat_sheet.html
- Configure a user with public key access Configure public RSA key authentication
- Associate a user with default higher privileges using
usernamecommand