Useful Commands
- ? - Type ? at the command line for a list of all possible commands. type show ip ?
to show command parameters. Also, for example, use show c? to return a list of commands
that start with the letter c.
- sh ru - ie, show running-configuration. shows the firewall's current configuration.
The running-configuration is the config that is in the router's memory.
- wr mem - ie, write memory. This command will save the configuration that is currently
being modified (in RAM), also known as the running-configuration, to the nonvolatile RAM (NVRAM).
If the power is lost, the NVRAM will preserve this configuration.
- sh int - ie, show interface. The show interface command displays the status of the
router's interfaces.
- show ip interface / show ip interface brief - The show ip interface command provides
tons of useful information about the configuration and status of the IP protocol and its services,
on all interfaces. The show ip interface brief command provides a quick status of the interfaces
on the router, including their IP address, Layer 2 status, and Layer 3 status.
- no shutdown - The no shutdown command enables an interface (brings it up).
- show ip route - The show ip route command is used to show the router's routing table.
This is the list of all networks that the router can reach, their metric (the router's preference
for them), and how to get there. This command can be abbreviated sh ipro and can have
parameters after it, like sh ipro ospf for all OSPF routers. To clear the routing
table of all routes, you do clear ip route *. To clear it of just one route,
do clear ip route 1.1.1.1 for clearing out that particular network.
- sh ver - ie, show version. The show version command gives you the router's configuration
register (essentially, the router's firmware settings for booting up), the last time the router
was booted, the version of the IOS, the name of the IOS file, the model of the router,
and the router's amount of RAM and Flash.
- show tech - to get a pile of info to send to a cisco tech.
|