Sunteți pe pagina 1din 2

o

Cisco Router Commands and their Usages


User Mode Commands
These commands can only be entered from user mode. Command Syntax SHOW show ? Description This is used to view the available commands set to this layer, use this to learn and navigate the Router/Switch. This is used from the basic user prompt to view neighbor details for WAN connection. To view details, use the "det" after the original command. This is a very helpful trouble shooting command for user level access.

OSPF

show ip ospf nei

Privileged Mode Commands


These commands can only be entered from privileged mode. To enter privileged mode, use the enable command. Command enable disable configure terminal terminal editing show Syntax enable disable conf[igure] t[erminal] terminal editing show ? Descrition Switches to privileged mode. If the enable password has been set, you will be prompted to enter it. changes to user mode switches to config mode, this will allow you to make critical changes to the Router/Switch enabled special unix-style editing commands This is used to help the enabled user see the available commands on that specific layer. You may use this on each layer and after any command to help view the next part of syntax. This will show options of what is available to you that has "sho" for the beginning of a command, in this case it will have "show" as it's only option. Try using other letters or beginnings to see more variety such as: "s?" or "a?" These will give you a larger list.

show

sh?

cdp

this will show all used connections to your ports and whom they show cdp nei are connected to. This is very helpful when drawing out a system det diagram.

Config Commands
These commands can only be entered from config mode. To enter config mode, use the "conf t" command. Command Enable Syntax enable secret Justin Descrition This will set a Password to get to enable mode so others cannot make changes with out proper access. In this case we are making the password Justin (case sensitive). This command modifies the boot settings on the router. Example settings are: configregister configregister 0xnnnn

0x2100 - ROM Monitor 0x2101 - ROM Boot 0x2102 - Boot from NVRAM (default) 0x2142 - Boot from NVRAM but ignore startup-config file

hostname router rip

hostname NAME router rip

changes the router name to NAME enables the RIP routing protocol and switches to router configuration mode Switches to interface configuration mode (s0 stands for Serial 0 but interfaces naming may vary). It is possible to use other interfaces such as Consoles (local), vty 0 ? (telnet), and much more.. You may also create passwords within those layers for more security using the "password" command at that interfaces layer.

int

int s0

References

S-ar putea să vă placă și