| |
|
Home | Links ( Motorcycles, Computers ) |
Cisco IOS and Router Command Reference
All of the information, instructions, and recommendations on this Web site are offered on a strictly "as is" basis. Remember "Murphy's Law." Please take the proper precautions before attempting any of the tips or modifications listed here.
| Cisco IOS Modes of Operation |
| Status, Settings, and Diagnostic Commands |
| Interface Configuration |
| Configure the RIP Routing Process |
| Configure the OSPF Routing Process |
| Network Simulators and Emulators |
| References |
| Computer Tips index |
The Cisco IOS software provides access to several different command modes. Each command mode provides a different group of related commands.
For security purposes, the Cisco IOS software provides two levels of access to commands: user and privileged. The unprivileged user mode is called user EXEC mode. The privileged mode is called privileged EXEC mode.
The following table describes some of the most commonly used modes, the resulting prompts, and how to enter these modes. The prompt helps you identify which mode you are in and, therefore, which commands are available to you.
| Mode of Operation | Prompt / Mode | How to Enter the Mode | Usage |
|---|---|---|---|
| User EXEC (aka unprivileged mode) | Router> | First level accessed | Change terminal settings on a temporary basis, perform basic tests, and list system information |
| Privileged EXEC | Router# | From user EXEC mode, enter enable | System administration, set operating parameters |
| Global Configuration | Router(config)# | From privileged EXEC, enter configure terminal | Modify configuration that affect the system as a whole |
| Interface Configuration | Router(config-if)# | From global mode, enter interface type number | Modify the operation of an interface |
| Prompt / Mode | Command | Description |
|---|---|---|
| Router# | show interfaces | Displays the status of all interfaces, including if the interface is up or down and if its line protocol is up or down. Lots of details. |
| Router# | show ip interface brief | Displays just the IP address, and the status each interface and its line protocol. (up or down) Check that the IP address of each interface is correct, and that "Status" and "Protocol" are both "up" for each enabled interface. |
| Router# | show controller | Displays the controller state that is specific to controller hardware. Generally useful for diagnostic tasks. |
| Router# | show controller serial 0/0 | Use to determine if a serial interface is DCE or DTE. e.g. DCE => DCE V.35, clock rate 9600 e.g. DTE => DTE V.35 TX and RX clocks detected |
| Router# | show ip protocol | Shows the details of the enabled routing protocol service. Check that the proper number of "Type C" networks are listed, and that they have the correct values. |
| Router# | show ip route | Displays the routing table. Check that indirect routes are listed. Check that the mask and network address are correct for each "directly connected" interface. |
| Router# | show ip arp | Displays the mapping of IP addresses to MAC addresses |
| Router# | show running-config | Displays the current configuration of all parameters the router is currently using. |
| Router# | show ip rip database [ip-address {mask}] |
| Prompt / Mode | Command | Description |
|---|---|---|
| Router> | enable | |
| Router# | configure terminal | Enter Global Configuration mode |
| Router(config)# | interface <interface type> <slot>/<interface #> | Indicate the interface to configure |
| Router(config-if)# | ip address <ip address> <subnet mask> | Specify IP address and subnet mask for the interface |
| Router(config-if)# | no shutdown | Enable the interface |
| Router(config-if)# | exit or ctrl-z or end | Exit from interface config mode |
| Prompt / Mode | Command | Description |
|---|---|---|
| Router> | enable | |
| Router# | configure terminal | Enter Global Configuration mode |
| Router(config)# | router rip | |
| Router(config-router)# | network <network address> | e.g. network 192.168.1.0 |
| Router(config-router)# | version 2 | Set to RIP v2. Default is v1. Note: RouteSim v6.0.0 has a bug in RIP v2 that adds invalid routes to the table. |
| Router(config-router)# | exit or ctrl-z or end |
| Prompt / Mode | Command | Description |
|---|---|---|
| Router> | enable | |
| Router# | configure terminal | Enter Global Configuration mode |
| Router(config)# | router ospf <process- id> | Process-id: Internally used identification parameter for an OSPF routing process. It is locally assigned and can be any positive integer. A unique value is assigned for each OSPF routing process. |
| Router(config-router)# | network <network address> <wildcard mask> area <area #> | A 0 octet in the wildcard mask indicates that the corresponding octet in the network must match exactly. A 255 indicates that you don’t care what the corresponding octet is in the network number. |
| Router(config-router)# | exit |
| All items Copyright ©1996 - 2012 Mr. N. Chin. All Rights reserved | Conscious Vibes developed and maintained by Mr. Chin | Duplication of links and/or content is strictly prohibited. See: Terms of use |