Showing posts with label Setting virtual terminal password. Show all posts
Showing posts with label Setting virtual terminal password. Show all posts

Wednesday, 26 February 2014

Basic router configuration

following commands are used in basic router configuration. Have a look at them and grasp them quickly.

Following are the basic commands:
1.        Naming the router
Use: Specifies the name for the router.
Steps:
Router>enable
Router# configure terminal
Router# hostname bca
bca>

Output:


2.        Setting passwords
·         Secret password
Use: Specifies an encrypted password to prevent unauthorized access to the router.
Steps:
bca(config)# enable secret chitkara
Output:

·         Setting console terminal password
Use: Enters line configuration mode, and specifies the console type of line then give unique password for line and enable password checking at terminal session login.
Steps:
bca(config)# line console 0
bca(config-line)# password abc
bca(config-line)# login
bca(config-line)# exit
bca(config)#
Output:

·         Setting virtual terminal password
Use: Specifies a virtual terminal for remote console access.
Steps:
bca(config)# line vty 0 4
bca(config-line)# password def
bca(config-line)# login
bca(config-line)# exit
bca(config)#
Output:

3.        Configuring interfaces
·         Fast Ethernet interface
Use: Enters interface mode and then give ip address, subnet mask.
Steps:
bca(config)# interface fa0/0
bca(config-if)# ip address 192.168.10.1 255.255.0.0
bca(config-if)# no shutdown
bca(config-if)# exit
Output:

·         Serial interface
Use: Enters serial interface mode and then give ip address, subnet mask and clock rate. Clock rate will be given only if the serial port is DCE.
Steps:
bca(config)# interface se0/0
bca(config-if)#ip address 192.168.30.1 255.255.0.0
bca(config-if)#no shutdown
bca(config-if)# clockrate 6400
bca(config-if)#exit
Output:

4.        Message of the banner
Use: Message will be shown when we enter the command line interface of the router.
Steps:
bca(config)# banner motd %message....%
bca(config)#
Output:

Output:
Ping command from PC1 to router