Network programming Lab 3-2
Network programming Lab 3-2
Topics
console
● Create password for router “Enable password”
● Encrypt password “Enable secret”
● #Enable secret is override the enable password
● Delete enable password
● Create password for console
● Encrypt console password
● Create banner motd “for 24h” or login “forever”
Telnet
● Create vty password
● Create username and password for every user
● Create super user to login into any mode with one password
Commands
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#enable password cisco
Router(config)#exit
Router#show run
Building configuration...
Current configuration : 577 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
enable password cisco
!
!
!
!
!
!
ip cef
no ipv6 cef
--More--
Router>en
Password:
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#no enable password
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#show run
Building configuration...
Current configuration : 602 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
enable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0
!
!
!
!
!
!
ip cef
no ipv6 cef
--More--
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#line console 0
Router(config-line)#password cisco
Router(config-line)#login
Router#show run
!
!
!
line con 0
password cisco
Login
Save configurations
Router#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
Router#
Banner
Router(config)#banner motd #Hello#
Router(config)#banner login #Hello World#
Telnet commands
We should to connect with console at the first time, and write the basic configurations then we
can use telnet after that.
cisco>en
cisco#config t
Enter configuration commands, one per line. End with CNTL/Z.
cisco(config)#line vty 0 4
cisco(config-line)#password cisco
cisco(config-line)#login
From any PC go to Desktop => command prompt and write the following
C:\>telnet 10.0.0.1
Trying 10.0.0.1 ...Open
User Access Verification
Password:
cisco>en
% No password set.
cisco>
In PC