IP Name Server Command on CISCO Router/Switch

Command IP Name Server Use This command allows you to set which DNS server the router will query when trying to resolve domain names. Syntax Router(config)#ip name-server <name> Example In this example we configure the ip name-server command to allow a router to resolve hostnames. 2611XM(config)#ip name-server 10.10.2.1 …

IP Domain-name Command on CISCO Router/Switch

Command IP Domain-name Use This command allows you to set a domain name for the router. Syntax Router(config)#ip domain-name <name> Example In the below example, we set R1 to have a domain name of “cisco.com”. R1(config)#ip domain-name cisco.com Now if we check show cdp neighbors on R2 we …

IP Default Gateway Command on CISCO Router/Switch

Command IP Default Gateway Use This command allows the router to maintain routing functionality when it stops being a router. What that means is that, after a router crashes, it falls back to basic switching functionality. The default-gateway is where the router will send all packets. Syntax Router(config)#ip …

Username Command on CISCO Router/Switch

Command Username Use Creates a new user on the router. Syntax Router(config)#username <WORD> password <WORD> Example In the following example a new user is created on the router. This user is then used when logging in via a telnet session from R2. R1(config)#username Test password cisco Telnet is …

Default Interface Command on CISCO Router/Switch

Command Default Interface Use This command allows you to quickly revert an interface back to its default configuration. If you have a lot of changes, this is much faster than using the no version of every command on the interface. Syntax Router(config)#default interface <interface> Example In this example …

Alias Exec Command on CISCO Router/Switch

Command Alias Exec Use This command is used to create shortcuts to various commands. While it is definately handy in the real world, we would not recommend using alias exec while studying for the CCNA, as you could potentially get more used to your own commands instead of …

Router eigrp Command on CISCO Router/Switch

Command router eigrp <AS> Use The router eigrp command is necessary to enable EIGRP (Enhanced Interior Gateway Routing Protocol). EIGRP must be enabled before carrying out any of the EIGRP commands. Syntax R1(config)#router eigrp Example In this example, EIGRP is configured on R1 using router eigrp. First, we …

Logging Buffered Command on CISCO Router/Switch

Command Logging Buffered Use This is a handy command that stores log messages so they can be reviewed later. This is especially useful when you are telneting between multiple routers as you would normally miss the console or debug messages on the router your not connected to. Each …