CCNA R&S (CCNA 5.0) Bài lab cấu hình cơ bản router A6-302-ktcntn
Đề bài CCNA R&S (CCNA 5.0) cấu hình cơ bản router
CCNA R&S (CCNA 5.0) Cấu hình Tên, 3 loại mật khẩu, Banner và int của R1
Router>
Router>
Router>
Router>ena
Router>enable
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hos
Router(config)#hostname R1
R1(config)#ena
R1(config)#enable pas
R1(config)#enable password cisco
R1(config)#li
R1(config)#line co
R1(config)#line console 0
R1(config-line)#pas
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#exit
R1(config)#li
R1(config)#line vty 0 4
R1(config-line)#pas
R1(config-line)#password cisco
R1(config-line)#exit
R1(config)#ban
R1(config)#banner mo
R1(config)#banner motd “Khong phan su mien vao”
R1(config)#
R1(config)#interface f
R1(config)#interface fastEthernet 0/0
R1(config-if)#no shut
R1(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R1(config-if)#ip add
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#des
R1(config-if)#description connect to lan1
R1(config-if)#exit
R1(config)#int f0/1
R1(config-if)#no shut
R1(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
R1(config-if)#ip add
R1(config-if)#ip address 192.168.2.1 255.255.255.0
R1(config-if)#des
R1(config-if)#description connect to lan2
R1(config-if)#exit
R1(config)#exit
R1#
%SYS-5-CONFIG_I: Configured from console by console
R1#
CCNA R&S (CCNA 5.0) Lưu lại file cấu hình và0 NVRAM
R1#wr
Building configuration…
[OK]
CCNA R&S (CCNA 5.0) hoặc sử dụng câu lệnh copy để lưu file cấu hình vào NVRAM
R1#copy
R1#copy ru
R1#copy running-config st
R1#copy running-config startup-config
Destination filename [startup-config]?
Building configuration…
[OK]
CCNA R&S (CCNA 5.0) Câu lệnh xem bảng định tuyến
R1#show ip route
Codes: C – connected, S – static, I – IGRP, R – RIP, M – mobile, B – BGP
D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area
N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
E1 – OSPF external type 1, E2 – OSPF external type 2, E – EGP
i – IS-IS, L1 – IS-IS level-1, L2 – IS-IS level-2, ia – IS-IS inter area
* – candidate default, U – per-user static route, o – ODR
P – periodic downloaded static route
Gateway of last resort is not set
C 192.168.1.0/24 is directly connected, FastEthernet0/0
C 192.168.2.0/24 is directly connected, FastEthernet0/1
CCNA R&S (CCNA 5.0) Câu lệnh xem lại file cấu hình
R1#show run
R1#show running-config
Building configuration…
Current configuration : 669 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R1
!
!
!
enable password cisco
!
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
interface FastEthernet0/0
description connect to lan1
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
description connect to lan2
ip address 192.168.2.1 255.255.255.0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
ip classless
!
!
!
banner motd ^CKhong phan su mien vao^C
!
!
!
!
line con 0
password cisco
login
!
line aux 0
!
line vty 0 4
password cisco
login
!
!
!
end
R1#