You are on page 1of 2

-Pass console (đặt mật khẩu cổng console)

Router>ena
Router#conf ter
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#line console 0
Router(config-line)#password 1234
Router(config-line)#login
Router(config-line)#end
Router#
-pass enable (đặt mật khẩu enable)
Router>ena
Router#conf ter
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ena pass 123
Router(config)#exit
-lưu cấu hình
Router#write
-show cấu hình
Router#show running-config
-dat ten router
Router>
Router>
Router>ena
Password:
Router#conf ter
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1
R1(config)#
-cau hinh ip
R1#conf ter
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#inter
% Incomplete command.
R1(config)#interface g0/0
R1(config-if)#ip add 192.168.14.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#
-kiem tra nhanh cac giao dien

R1#show ip interface brief


-mo telnet cho router (phai dat pass enable truoc)
R1(config)#line vty 0 15
R1(config-line)#password tel123
R1(config-line)#login
R1(config-line)#end

-Mo ssh cho router


R1(config)# ip domain-name abc.com

R1(config)#crypo key generate rsa


512
R1(config)#line vty 0 4
R1(config-line)#usename leanh password 123
R1(config-line)#transport input ssh
R1(config-line)#login local
R1(config-line)#end

You might also like