Professional Documents
Culture Documents
Yu cu :
- Kt ni 3 router v dy cp nh hnh v
- Cu hnh c bn cho router
- Gn IP cho cc router nh hnh v
- Cu hnh telnet
- Kim tra qu trnh kt ni telnet
Hng Dn :
Cng vic 1 : Kt ni 3 router v dy cp nh hnh v
Cng vic 2 : Cu hnh c bn cho router
Gn IP cho router1
R1(config)#interface fa0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.252
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#
Gn IP cho router2
R2(config)#interface fa0/1
R2(config-if)#ip address 192.168.1.2 255.255.255.252
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#
R2(config)#interface fa0/0
R2(config-if)#ip address 172.16.1.1 255.255.255.252
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#
Gn IP cho router3
R3(config)#interface fa0/1
R3(config-if)#ip address 172.16.1.2 255.255.255.252
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#
VDC Training Center Trang 2 ThS L Xun Tng
Kim tra sau khi gn IP : Ta quan st xem IP c c t ng hay khng v trng
thi ca cc cng giao tip
Router 1 :
Router 2 :
Router 3 :
R1#ping 192.168.1.2
R2#ping 192.168.1.1
R2#ping 172.16.1.2
R3#ping 172.16.1.1
R1(config)#line vty 0 ?
<1-15> Last Line number
<cr>
R1(config)#line vty 0 15 h tr n 16 phin telnet (0-15)
R1(config-line)#password class1
R1(config-line)#login
R1(config-line)#exit
R1(config)#
R2(config)#line vty 0 15
R2(config-line)#password class2
R2(config-line)#login
R2(config-line)#exit
R2(config)#
Router 3 :
R3(config)#line vty 0 15
R3(config-line)#password class3
R3(config-line)#login
R3(config-line)#exit
R3(config)#
R1#telnet 192.168.1.2
Trying 192.168.1.2 ...
User Access Verification
Password: g password l class2
R2>enable
Password: g password l cisco2
R2#telnet 172.16.1.2
Trying 172.16.1.2 ...
User Access Verification
Password: g password l class3
R3>enable
Password: g password l cisco3
R3#
R3#exit
R1#
Lu :
- Nu ta khng g EXIT m nhn t hp phm Ctrl + Shift + 6 th ra ri nhn lin
phm X, th ta khng ngt kt ni telnet vi router m ch tm thot ra khi router
m thi, phin kt ni (Session) vn cn c gi
- telnet vo mt router thay v g :
R1#telnet 192.168.1.2
Ta c th g
R1#192.168.1.2
Router 2 :
R2(config)#ip host r1 192.168.1.1
R2(config)#ip host r3 172.16.1.2
Router 3 :
R3(config)#ip host r2 172.16.1.1
Telnet bng tn
R1#r2
Trying 192.168.1.2 ...
User Access Verification
Password:
R2>enable
Password:
R2#r3
Trying 172.16.1.2 ...
User Access Verification
Password:
R3>enable
Password:
R3#
R2#r1