You are on page 1of 10

BASIC KNOWLEDGE OF SEMESTER 2

copyright@ nguyen van son

Test skill.
1. Task of group ( nhim v ca nhm)
Khi chng ta thi skill th gm nhng cng vic sau cn phi
lm:
+ Chun b v phn cng ( c s h tng)
. v topology ca mng
. Chia a ch IP
. Lp jack
. kim tra ngun v h thng m bo h thng hot ng
bnh thng
+ Configuration
. Cu hnh c bn
. Routing
. Authentication
+ Tr li cu hi vn p

2. Basic Knowledge
a. Truy cp ascess server:
+Telnet 192.168.a.b
Vi a l a ch phng thi, b l a ch ca ascess server
Sau khi chng ta vo c th n yu cu username v
password ca
Ascess server
Username : student
Password : cisco
Sau chng ta tin hnh nhng lnh sau
Show line
truy cp vo router cu hnh th chng ta phi telnet
qua ascess
Server

Clear line x
X l s dy console ni vo router m mnh mun
vo
Sau dng cmd khc nh lnh
Telnet 192.168.a.b 200x
Th l chng ta truy cp vo ascess server thnh cng
b. cu hnh
sau khi vo c router th ta ch vic cu hnh bnh thng
Sau y l nhng lnh c bn cu hnh

Basic configuration
* Vo cc ch :
Router>en
Router#conf t
Router(config)#
* Cu hnh tn router
Router(config)#Hostname [tn router]
* Cu hnh banner motd
Router(config)#banner motd #qung b sn phm#
* t password ch line console
Router(config)#line console 0
Router(config-line)#password cisco
Router(config-line)#login
Router(config-line)#exit
* t pass cho telnet
Router(config)#line vty 0 4
Router(config-line)#password cisco
Router(config-line)#login
Router (config-line)#exit
*Dat enable secrect va enable password

Router(config)#enable secret cisco


Router(config)#enable password student
Router(config)#line console 0
Router(config-line)#logging synchronous
Router(config-line)#exit
Router(config)#line vty 0 4
Router(config-line)#logging synchronous
Router(config-line)#exit
* Cu hnh cc cng
Router(config)#int serial
-----> nh description
..
Router(config)#int fast ethernet
-----> nh description
..
Router(config)#int loopback
...

Cu lnh kim tra


Router#show cdp neighbors -----> kim tra logic
Router#show ip protocols
Router#show ip route
Router#show ip interface brief -----> kim tra vt l

RIPv2
* Chy giao thc nh tuyn RIPv2

Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#network [a ch mng]
Router(config-router)#no auto-summary
Router(config-router)#passive interface loopback
Nu c default route
Router(config)#ip route 0.0.0.0 0.0.0.0 [exit int]
Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#redistribute static
Router(config-router)#default-information originate
Nu c static route
Router(config)#ip route [a ch IP] [subnet] [exit int]
Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#redistribute static
Nu c back up default route
Router(config)#ip route 0.0.0.0 0.0.0.0 [exit int] [AD +1]
Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#redistribute static
Router(config-router)#default-information originate
EIGRP ------> RIP
Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#redistribute eigrp [AS] metric 1
OSPF ------> RIP
Router(config-router)#redistribute ospf [process id] metric 1
Cu lnh kim tra
Router#show ip interface brief
-----> kim tra vt l
Router#show cdp neighbors
-----> kim tra logic
Router#show ip protocols
Router#show ip rip database
----> show tt c nhng g
router hc c
Router#show ip route

Router#show ip route rip


Authentication
Router(config)#key chain Superman
Router(config)#key 1
Router(config)#key-string cisco
Router(config)#int serial/fastethernet
Router(config-if)#ip rip authentication key-chain Superman
Router(config-if)#ip rip authentication mode md5

EIGRP
* Chy giao thc nh tuyn EIGRP
Router(config)#router eigrp [AS] ----->phi ging nhau gia cc router
trong eigrp
Router(config-router)#network [a ch mng] [wildcard mask]
Router(config-router)#no auto-summary
Router(config-router)#passive-interface loopback
Nu c default route
Router(config)#ip route 0.0.0.0 0.0.0.0 [exit int]
Router(config)#router eigrp [AS]
Router(config-router)#redistribute static
Nu c static route
Router (config)#ip route [a ch IP] [subnet] [exit int]
Router(config)#router eigrp [AS]
Router(config-router)#redistribute static
Nu c back up default route
Router(config)#ip route 0.0.0.0 0.0.0.0 [exit int] [AD +1]
Router(config)#router eigrp [AS]
Router(config-router)#redistribute static
Nu mun thay i bandwidth cho int
Router(config)#int serial
Router(config-if)#bandwidth 64
-----> i bandwidth sang
64kbps
RIP -----> EIGRP
Router(config)#router eigrp [AS]

Router(config-router)#redistribute rip metric 100000 2000 255 1


1500
OSPF -----> EIGRP
Router(config-router)#redistribute ospf [process id] metric 100000 2000
255 1 1500
Cu lnh kim tra
Router#show ip eigrp neighbors
-----> show adjajencies
Router#show ip protocols
Router#show ip route
Router#show ip route eigrp
Router#show interface serial 0/0/0
------> xem
bandwidth,delay. ca metric
Router#show interface
------> ch ra bandwidth
interface
Router#debug eigrp fsm
Authentication
Router(config)#key chain Superman
Router(config)#key 1
Router(config)#key-string cisco
Router(config)#int serial/fastethernet
Router(config-if)#ip authentication key-chain eigrp [AS]
Superman
Router(config-if)#ip authentication mode eigrp [AS] md5

OSPF
* Chy giao thc nh tuyn OSPF
Router(config)#router ospf [process id] ------> khng cn phi
ging nhau
Router(config-router)#router-id [ip add]
Router(config-router)# network [a ch mng] [wildcard mask]
area [area number]
Router(config-router)#passive interface loopback
Nu c default route

Router(config)#ip route 0.0.0.0 0.0.0.0 [exit int]


Router(config)#router ospf [process id]
Router(config-router)#default-information originate
Nu mun thay i bandwidth cho interface
Router(config)#int serial
Router(config-if)#bandwidth 64
------> i bandwidth
sang 64kbps
Hoc
Router( config)#int serial
Router(config-if)#ip ospf cost 1562
Bu bn DR/BDR
Router(config-if)#ip ospf priority [0-255] -------> shutdown ri
no shutdown
RIP -------> OSPF
Router(config)#router ospf [process id]
Router(config-router)# redistribute rip subnets
EIGRP -------> OSPF
Router(config)#router ospf [process id]
Router(config-router)#redistribute eigrp [AS] subnets
Cc cu lnh kim tra
Router#show ip protocols
Router#show ip ospf
Router# show ip ospf interface
Router#show interface
------> ch ra
bandwidth interface
Router#show ip ospf neighbor
------> kim tra bu
bn DR/BDR
Router#show ip route
Authentication
Router(config-if)#ip ospf message-digest-key [key id] md5 7 [secret]
------> ging key-id
Router(config-if)#exit
Router(config)#router ospf [process id]
Router(config-router)#area [area number] authentication messagedigest

3. EXAMPLE
V d: RIP-EIGRP-OSPF lap 5

Bi lm
+ Bc 1 : chun b c s h tng
+ Bc 2 : Cu hnh
. truy cp vo ascess server
+Vo ch cmd
+ telnet 192.168.129.97
Username : student
Pass
: cisco

show line
clear line x
x l s dy console cm vo router
+Vo ch cmd khc telnet vo router m mnh
mun cu hnh
A.Cu hnh router TY H
Router>
Router> enable
Router#
Router# config terminal
Router(config)#
Router(config)# hostname Tayho
Tayho(config)#
Tayho(config)#inter serial 0/0
Tayho(config-if)#ip add 155.55.4.1 255.255.255.0
Tayho(config-if)#no shut
Tayho(config-if)#exit
Tayho(config)#
Tayho(config)#inter loo 1
Tayho(config-if)#ip add 155.55.1.1 255.255.255.0
Tayho(config-if)#exit
Tayho(config)#
Tayho(config)#inter loo 2
Tayho(config-if)#ip add 155.55.2.1 255.255.255.0

Tayho(config-if)#exit
Tayho(config)#
Tayho(config)#inter loo 3
Tayho(config-if)#ip add 155.55.3.1 255.255.255.0
Tayho(config-if)#exit
Tayho(config)#

You might also like