Sie sind auf Seite 1von 10

BI THC HNH THIT K & CI T MNG BUI 1: CU HNH C BN TRN THIT B I.

Mc ch - Lm quen mi trng Cisco Packet Tracer; - Cu hnh c bn trn cc thit b m phng (router, switch); Hc cu lnh cu hnh; - Lu file cu hnh; II. Cisco Packet Tracer

Hnh 1: Phn mm m phng mng version 5.3

Cc thit b m phng: Router Router wireless

Switch

Server

WorkStation

III.

S mng

Subnet zero

Hnh 2 S mng

Subnet 1

IV.

Yu cu IV.1. Cho a ch IP 198.133.19.0/24 (4 bits cho subnet). in thng tin vo bng sau: - S subnet ti a c s dng:..................................... - S host c th s dng trong mi subnet:.....................

a ch mng:

Mt n mng:

Subnet

a ch IP host a ch IP host a u tin cui cng Broadcast

ch

IV.2. Kt ni vt l
-

Ko th cc thit b v kt ni nh s mng cho Hnh 2, xc nh ng cc loi cable v ng cng kt ni.

- Dng cable console (rollover) kt ni gia cng console trn router v cng COM1 (RS322) bng u DB-9 hoc DB-25 trn host1 .

Hnh 3 Kt ni console gia PC v router

IV.3. Kt ni host1 n Router s dng Hyper Terminal ( vo HyperTerminal trn my thc: WindowsTaskbar>Star>Programs>Accessories>Communications >HyperTerminal. ) - S dng: Th desktop>Terminal - Thng s cu hnh:

Hnh 4 Thng s cu hnh Hyper Terminal

o Bits per second: 9600 o Data bits: 8 o Parity: None o Stop bits: 1

o Flow Control: None - Khi bt u session, n Enter n khi nhn c response ca router. - Cc mode cu hnh:
o

Exec mode: Router> y l mode u tin khi bn bt u mt phin lm vic vi router (qua Console hay Telnet). mode ny bn ch c th thc hin c mt s lnh thng thng ca router. Cc lnh ny s khng c ghi vo file cu hnh ca router v do khng gy nh hng n cc ln khi ng sau ca router.

Privileged exec mode: Router# Privileged EXEC Mode cung cp cc lnh quan trng theo di hot ng ca router, truy cp vo cc file cu hnh, IOS, t password... Privileged EXEC Mode l cha kha vo Configuration Mode.

Configuration mode: Router(config)# Configuration mode cho php cu hnh tt c cc chc nng ca Cisco router bao gm cc interface, cc routing protocol, cc line console, vty (telnet), tty (async connection). Cc lnh trong configuration mode s nh hng trc tip n cu hnh hin hnh ca router cha trong RAM (running-configuration). Nu cu hnh ny c ghi li vo NVRAM, cc lnh ny s c tc dng trong nhng ln khi ng sau ca router. Configuration mode c nhiu mode nh, ngoi cng l global configuration mode, sau l cc interface configuration mode, line configuration mode.

Hnh 5 Cc mode cu hnh

- Nu router terminal yu cu np cu hnh t ng, g NO v exec mode:


Would you like [yes/no]: no to enter the initial configuration dialog?

Press RETURN to get started! Router>

- Vo privileged exec mode:


Router> enable Router#

- Xem li file cu hnh ang chy bng lnh


show running-config

- bit tham s ca cu lnh s dng du ? - g nhanh cu lnh dng phm TAB


-

Tr v mode cu hnh trc bng lnh exit Thot ra exec mode bng lnh: end

IV.4. Lnh cu hnh c bn:

IV.4.1.

vo Configuration mode:

Router# configure terminal Router(config)#

IV.4.2.

t tn thit b: Router1

router(config)# hostname Router1 Router1(config)#

IV.4.3. Ci t banner MOTD (Message Of The Day): Banner hin th cho mi kt ni trc khi ng nhp (Ni dung banner t trong cp du %)
Router1(config)# banner motd % Enter TEXT message. End with the character '%'

***You are connected to an ABC network device. Access is granted to only current ABC company system administrators with prior written approval. *** *** Unauthorized access is prohibited, and will be prosecuted. *** *** All connections are continuously logged. *** % Router1(config)#

IV.4.4.

Cu hnh mt khu

t mt khu cho Privilegged exec mode: Dng secret quy nh c m ho mt khu. Trong bi thc hnh, yu cu s dng password cisco cho tt c cc mt khu.
Router1(config)# enable [secret] <password> Router1(config)#

t mt khu cho kt ni console:


Router1(config)# line console 0 Router1(config-line)# password <password> Router1(config-line)# login

t mt khu 5 cng telnet (0-4):


Router1(config-line)# line vty 0 4 Router1(config-line)# password <password> Router1(config-line)# login

Cu lnh m ho tt c cc password:
Router1(config)# service password-encryption

IV.4.5.

Cu hnh a ch IP

Dng nhng a ch IP u tin trong dy cho sn t cho host; a ch IP cui cng trong dy t cho router. Default gateway ca host l a ch interface ca router Cu hnh interface fa0/0 trn router 1:
Router1(config)# interface fa0/0 Router1(config-if)# description Connection to Host1 Router1(config-if)# ip address <address> <mask> Router1(config-if)# no shutdown Router1(config-if)# end

Cu hnh interface fa0/1 trn router 1: tng t fa0/0 IV.4.6. Kim tra kt ni

Dng lnh ipconfig trn command promt kim tra li a ch host. Dng lnh ping kim tra tt c cc kt ni trong LAN. IV.4.7. Lu v xo file cu hnh

Lu cu hnh vo NVRAM:
Router1# copy running-config startup-config Destination filename [startup-config]? <ENTER> Building configuration... [OK]

Router1#

Kim tra cu hnh trong NVRAM:


Router1# show startup-config

Kim tra cu hnh ang c thc thi:


Router1#show running-config

Xo cu hnh trong NVRAM:


Router1# erase startup-config Erasing the nvram filesystem will remove all configuration files! Continue? [confirm] <ENTER> [OK] Erase of nvram: complete

Khi ng li load li cu hnh mc nh:


Router1# reload Proceed with reload? [confirm] <ENTER>

IV.5. Cu hnh switch Lp li cc thao tc v cu lnh trn cu hnh c bn cho switch1 (hostname, banner, password) IV.6. t a ch IP cho cc host Vo th desktop>IP Configuration cu hnh a ch IP v subnet mask cho cc host. Default gateway l a ch giao din trn router kt ni trc tip vi nhnh mng ca host .

Hnh 6 Cu hnh a ch IP cho PC

Lu : - Dng NO trc cu lnh v hiu ho (remove) thao tc ca cu lnh ; - Phi lu cu hnh vo NVRAM ngay sau khi cu hnh xong.

Das könnte Ihnen auch gefallen