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

Yêu cầu: 

– Đặt password Console

– Đặt password  enable

– Đặt password telnet

– Mã hóa các password đã đặt

Chi tiết thực hiện:

Các loại password đăng nhập trong Cisco

1. Mật khẩu Console: Đặt mật khẩu truy cập cho cổng consol trên router

Router#configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#line console 0

Router(config-line)#password songvugia

Router(config-line)#login

Router(config-line)#end

Router>

Press RETURN to get started.

User Access Verification

Password: songvugia

Router#

2. Mật khẩu telnet: Dùng để bảo mật cho đăng nhập từ xa vào Router.

Router#configure terminal

Router(config)#

Router(config)#line vty 0 4  ← cho phép 5 máy truy cập cùng lúc
Router(config-line)#password songvugiatelnet
Router(config-line)#login

Router(config-line)#end

Router#exit

3. Mật khẩu enable: Dùng để bảo mật cho đăng nhập vào “global configuration mode”,Có hai loại,
mật khấu không mã hóa và mật khẩu mã hóa, nếu đặt hai loại mật khẩu cùng lúc thì loại mật khẩu
không mã hóa sẽ không còn hiệu lực thay vào đó mật khẩu dạng “enable secret”sẽ được hỏi để
được quyền đăng nhập

Router#

Router#configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#enable password songvugiapassword  ← Dạng password không được mã hóa.


Router(config)#enable secret songvugiasecret  ← Dạng password được mã hóa

Router(config)#end

%SYS-5-CONFIG_I: Configured from console by console

Router#exit

Router con0 is now available

Press RETURN to get started.

User Access Verification

 ————————————————————–
   1.Ta có thể sử dụng enable password hoặc enable secret để đặt Password mode privileged:

Router>enable

Router#conf terminal

Router(config)#enable password anninhmang  //Ở đây pass là anninhmang


Router(config)#enable secret cisco (cấu hình enable secret là cisco)

2. Đặt mật khẩu ngăn chặn đăng nhập không hợp lệ ngay từ cổng console:
Router(config)#line console 0  (số 0 không phải ký tự ở)
Router(config-line)#password matkhau
Router(config-line)#login

3. Đặt pass cho Telnet

Router(config)#line VTY 0 x (x từ 0-15, mở đồng thời bao nhiêu line cùng lúc)


Router(config-line)#password matkhau
Router(config-line)#login

Password: “nếu đặt cùng lúc password ở trên thì password songvugiasecret sẽ đăng nhập được
vào hệ thống”
4. Câu lệnh để mã hóa toàn bộ password được đặt

Router#

Router#configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#service password-encryption ← Dùng mã hóa toàn bộ các loại password

You might also like