Difference between revisions of "Cisco IOS"
Jump to navigation
Jump to search
(91 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[wikipedia: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 | [[wikipedia: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 = | |
− | * <code>show | + | * <code>[[show version]]</code> or <code>sh ver</code> (includes [[uptime]] information) |
− | + | * <code>[[show clock]]</code> | |
− | * <code>show | ||
− | * <code>[[/show configuration | + | * <code>[[debug (IOS)|debug]]</code> |
− | * <code>[[ | + | * <code>[[show platform]]</code> |
+ | * <code>[[show cdp neighbors]]</code> | ||
+ | |||
+ | == Interfaces == | ||
+ | {{show interface TOC}} | ||
+ | |||
+ | * <code>[[show configuration]]</code> or <code>sh conf</code> | ||
+ | * <code>[[show running-config]]</code> or <code>sh run</code> An enable mode command that displays the current configuration | ||
* <code>configure terminal</code> or <code>conf t</code> Logs you into configuration mode | * <code>configure terminal</code> or <code>conf t</code> Logs you into configuration mode | ||
+ | * <code>[[switchport]] mode access|trunk</code> | ||
+ | |||
+ | * interface Te1/0/1 | ||
− | * <code>show ip</code> | + | * <code>[[show mac address-table]] interface <switchport></code> |
− | * <code>show ip interface</code> | + | |
+ | * <code>show ip [OPTION]</code> | ||
+ | * <code>[[show ip interface]]</code> | ||
** <code>show ip interface brief</code> or <code>sh ip int br</code> | ** <code>show ip interface brief</code> or <code>sh ip int br</code> | ||
− | * <code>enable</code> Logs into enable mode. Also known as user exec mode or privileged mode. See also: <code>show privilege</code> | + | * <code>[[enable]]</code> Logs into enable mode. Also known as user exec mode or privileged mode. See also: <code>[[show privilege]]</code> |
** <code>enable 5</code> Change to level 5 | ** <code>enable 5</code> Change to level 5 | ||
** <code>no enable password</code> | ** <code>no enable password</code> | ||
* <code>show ip traffic</code> | * <code>show ip traffic</code> | ||
− | * <code>[[/show logging/]]</code> | + | |
− | * <code>[[ | + | * <code>show tcp brief</code> |
+ | |||
+ | |||
+ | |||
+ | |||
+ | * <code>[[show logging]]</code> | ||
+ | ** <code>[[show logging history]]</code> | ||
+ | |||
+ | |||
+ | * <code>[[show archive]] log config all</code> | ||
+ | |||
+ | |||
+ | * <code>[[no shutdown]]</code>. Enables an interface (brings it up). | ||
+ | |||
+ | * <code>show process</code> | ||
+ | |||
+ | * <code>[[ip dns]]</code> | ||
+ | ** <code>[[ip dns spoofing]]</code> | ||
+ | |||
+ | * <code>[[debug ip domain]]</code> | ||
+ | |||
+ | * <code>ip domain lookup</code> | ||
+ | * <code>no ip domain lookup</code> | ||
+ | |||
+ | * <code>ip domain-lookup</code> | ||
+ | * <code>no ip domain-lookup</code> | ||
+ | |||
+ | |||
+ | * <code>ip host HOSTNAME xx.xx.xx.xx</code> (Similar to <code>/etc/[[hosts]]</code>) | ||
+ | |||
+ | * [no] <code>ip forward-protocol nd</code> | ||
Line 33: | Line 72: | ||
* <code>include</code>, similar to <code>[[linux/Basic commands/grep|grep]]</code> linux command | * <code>include</code>, similar to <code>[[linux/Basic commands/grep|grep]]</code> linux command | ||
− | * <code>show vlan [brief | id <vlan-id> | name <name> [ifindex] | <ifindex>]</code> | + | == [[VLAN]] == |
+ | * <code>[[show vlan]] [brief | id <vlan-id> | name <name> [ifindex] | <ifindex>]</code> | ||
** <code>[[show vlan]]</code> | ** <code>[[show vlan]]</code> | ||
** <code>[[show vlan brief]]</code> or <code>[[sh vlan br]]</code> | ** <code>[[show vlan brief]]</code> or <code>[[sh vlan br]]</code> | ||
** <code>show vlan summary</code> or <code>[[sh vlan s]]</code> | ** <code>show vlan summary</code> or <code>[[sh vlan s]]</code> | ||
+ | * <code>[[show vtp status]]</code> | ||
− | * | + | * [[IOS: Create a VLAN|Create a new VLAN]] |
− | * <code>[[ | + | == [[show ip]] == |
+ | * <code>[[show ip route]]</code> or <code>[[show ip route|sh ip ro]]</code> | ||
− | * <code>[[ | + | * <code>[[show ip arp]]</code> |
− | * <code>[[ | + | * <code>[[show ip ssh]]</code> |
− | |||
− | + | == [[Stacking]] == | |
− | * <code>[[ | + | * <code>[[show switch stack-ports]]</code> |
− | * <code>[[ | + | == Users == |
+ | * <code>[[show privilege]]</code> | ||
− | * <code>[[/show | + | * <code>[[username]]</code> Create and delete users |
+ | * <code>[[Cisco IOS: show users]]</code> | ||
− | + | * <code>[[write]]</code> | |
− | |||
− | + | * <code>[[show crypto ca certificates]]</code> | |
− | |||
− | |||
− | |||
− | |||
+ | * <code>[[aaa new model]]</code> | ||
+ | [[IOS: Access List (ACLs)]] | ||
− | + | == HTTP Server == | |
− | * <code> | + | * <code>sh ip http server all</code> |
− | |||
− | |||
− | |||
+ | * <code>R1(config)#ip [[http]] server</code> | ||
+ | * <code>R1(config)#ip http authentication local</code> | ||
+ | * <code>R1(config)#ip http secure-server</code> | ||
− | * <code>ip | + | == [[DHCP]] Server == |
+ | * <code>[[show ip dhcp binding]]</code> | ||
− | === | + | == Memory == |
− | + | * <code>[[show memory]]</code> | |
− | * <code> | + | * <code>[[show memory platform]]</code> |
− | * <code> | ||
== Configuration Guides == | == Configuration Guides == | ||
− | + | {{IOS activities}} | |
− | |||
== Activities == | == Activities == | ||
− | |||
# 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 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 | # Read Cisco IOS Cheat Sheet: https://www.netwrix.com/cisco_commands_cheat_sheet.html | ||
− | # Configure a user with public key access [[ | + | # Configure a user with public key access [[Configure public RSA key authentication]] |
− | # [[ | + | # [[Associate a user with default higher privileges]] using <code>[[username]]</code> command |
− | + | # [[IOS: Create a VLAN|Create a new VLAN]] | |
+ | # Use ansible: <code>[[ansible-galaxy install ansible-network.cisco_ios]]</code> | ||
+ | == Related terms == | ||
+ | * [[Secure Gateway OS (SGOS)]] | ||
+ | * [[iOS]] | ||
+ | * [[Cisco NX-OS]] | ||
== See also == | == See also == | ||
− | {{Networking}} | + | * {{IOS}} |
+ | * {{Networking}} | ||
+ | * {{Networking OS}} | ||
+ | * {{Firewall OS}} | ||
+ | * {{Cisco}} | ||
[[Category:Networking]] | [[Category:Networking]] | ||
+ | [[Category:Cisco]] | ||
− | {{CC license}} https://en.wikiversity.org/wiki/Cisco_IOS | + | {{CC license}}Source: https://en.wikiversity.org/wiki/Cisco_IOS |
Latest revision as of 08:39, 17 April 2024
Cisco Internetwork Operating System (IOS) is a family of network operating systems used on many Cisco Systems routers and current Cisco network switches
Contents
Basic commands[edit]
show version
orsh ver
(includes uptime information)show clock
Interfaces[edit]
show interface
show interface link
show interface status
(enable or disabled)show interface stats
show interface summary
show interface trunk
show interfaces switchport
. To display the administrative and operational status of a switching (nonrouting) port, including VLANs. and switchport mode
show configuration
orsh conf
show running-config
orsh run
An enable mode command that displays the current configurationconfigure terminal
orconf t
Logs you into configuration mode
switchport mode access|trunk
- interface Te1/0/1
show mac address-table interface <switchport>
show ip [OPTION]
show ip interface
show ip interface brief
orsh ip int br
enable
Logs into enable mode. Also known as user exec mode or privileged mode. See also:show privilege
enable 5
Change to level 5no enable password
show ip traffic
show tcp brief
show archive log config all
no shutdown
. Enables an interface (brings it up).
show process
ip domain lookup
no ip domain lookup
ip domain-lookup
no ip domain-lookup
ip host HOSTNAME xx.xx.xx.xx
(Similar to/etc/hosts
)
- [no]
ip forward-protocol nd
ip route-cache
no ip route-cache
include
, similar togrep
linux command
VLAN[edit]
show vlan [brief | id <vlan-id> | name <name> [ifindex] | <ifindex>]
show vlan
show vlan brief
orsh vlan br
show vlan summary
orsh vlan s
show vtp status
show ip[edit]
Stacking[edit]
Users[edit]
username
Create and delete usersCisco IOS: show users
HTTP Server[edit]
sh ip http server all
R1(config)#ip http server
R1(config)#ip http authentication local
R1(config)#ip http secure-server
DHCP Server[edit]
Memory[edit]
Configuration Guides[edit]
- IOS: Create a VLAN
- Change vlan configuration:
switchport mode access, switchport access vlan 4545
- Cisco IOS: enable an interface:
conf t
,int XXXXXX
no shutdown
- Cisco IOS DHCP Server configuration
- Configure public RSA key authentication:
ip ssh pubkey-chain
- Cisco IOS logging
Activities[edit]
- 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
username
command - Create a new VLAN
- Use ansible:
ansible-galaxy install ansible-network.cisco_ios
Related terms[edit]
See also[edit]
- Cisco IOS: Cisco IOS XE, Config (mode), VLANs, Cisco IOS logging, VTP, ACLs,
show logging
,show logging history
,show interface status
,debug
,archive
,show archive
,conf t
,int
,ip http server
,ip ssh
,ip address
, vty,show mac address-table
,show access-list
, Access-list,ip access-group
,admin
- Networking: bandwidth, latency, Jitter, Ethernet, UPnP, MPLS, Frame Relay, ATM, TCP/IP, ARP, WiFi, BGP, Networking timeline, Router, Proxy ARP, Services & Networking, Traffic shapper
- Cisco IOS, PAN-OS, Junos OS, FortiOS
- OS: PAN-OS, FortiOS, SonicOS, IPFire, JunOS
- Cisco, Meraki, Cisco IOS, Cisco NX-OS, Cisco UCS, Cisco ACI, Cisco IOS XE, Cisco SD-access, AppDynamics, CCT, CCNA, CCNP, CCENT, Duo Mobile, Cisco Duo Mobile, Webex
Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy.Source: https://en.wikiversity.org/wiki/Cisco_IOS
Advertising: