Router Basic Commands

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Basic Router Configuration

Global Configuration

1. Assign a hostname to the router. Name it DUBAI


Router(config)# hostname <Name>
Router(config)# hostname DUBAI
DUBAI(config)#

2. Configure a password for accessing the privilege mode. Set the password to
router.
DUBAI(config)#enable password <password>
DUBAI(config)#enable password Microsoft

DUBAI(config)#enable secret <password>


DUBAI(config)#enable secret cisco

3. Line configuration ( Console ):


Assign the password blackmail to the console port
DUBAI(config)#line console 0
DUBAI(config-line)#password blackmail
DUBAI(config-line)#login
DUBAI(config-line)#exit

4. Line configuration ( Auxiliary ):


Assign the password lucky to the auxiliary port
DUBAI(config)#line aux 0
DUBAI(config-line)#password lucky
DUBAI(config-line)#login
DUBAI(config-line)#exit

5. Ethernet Interface Configuration


Configure the Ethernet Interface and assign it an IP address 10.10.1.1 with
subnet mask 255.0.0.0
DUBAI(config)#interface Ethernet 0/0
DUBAI(config-if)#ip address 10.10.1.1 255.0.0.0
DUBAI(config-if)#no shutdown
DUBAI(config-if)#exit
6. Line Configuration ( Telnet Session )
Configure VTY lines to allow Telnet sessions and set the telnet password titanic
DUBAI(config)#line vty 0 4
DUBAI(config-line)#password titanic
DUBAI(config-line)#login
DUBAI(config-line)#exit

7. Save the configuration


Save all the changes made to the running configuration ( RAM ) to startup-
configuration ( NVRAM ).
DUBAI#copy running-config startup-config
Or
DUBAI#write

8. Show Commands

DUBAI#show running-config
DUBAI#show startup-config
DUBAI#show flash
DUBAI#show version
DUBAI#show history
DUBAI#show interface Ethernet 0
DUBAI#show interface serial 0

You might also like