Cau Hinh Router Cisco

  • View
    100

  • Download
    7

Embed Size (px)

Text of Cau Hinh Router Cisco

Bi 03: Cu Hnh Router Phn 01

BI 03: CU HNH ROUTER PHN 01Ch giao tip dng lnh CLI:

Hnh 3.1: Ch giao tip dng lnh o User EXEC mode: Ch ngi dng (Read Only). o Privileged EXEC mode: Ch c quyn. o Global Configuration mode: Ch cu hnh ton cc (tt c cu lnh lm thay i cu hnh router u xut pht t ch ny). Cu Lnh chuyn i sang ch Global Configuration mode o o cc o Router> enable // Chuyn t ch ngi dng sang c quyn Router# Configure terminal // chuyn t ch c quyn sang ton Router(config)# // Ch ton cc

Hnh 3.2: Lnh chuyn i gia cc ch

Cc lnh c bn thng dng:- Lnh lu tr cu hnh ca Router Trong qu trnh chng ta cu hnh, tt c thng tin u c lu tr trn RAM. Nh vy nu nh chng ta tt ngun hoc Reset li Router th mi vic chng ta lm s sng bin, do sau khi thit lp v cu hnh xong ta phi lu d liu t RAM sang NVRAM o o o o Router> enable Router# write ispace_R1# copy running startup

- Lnh t tn cho Router: o o o Router> enable Router# Config terminal Router(config)# hostname ispace_R1

Hnh 3.3: Lnh i tn Router

- Lnh thit lp mt khu cho Router: Mt khu c s dng hn ch vic truy cp vo router, thng thng ta nn t mt khu cho ng VTY v console trn router. Ngoi ra mt khu cn c s dng kim sot s truy cp vo ch Privileged EXEC trn Router. Lnh t mt khu cho ng console:

Hnh 3.4: Cng Console trn router cisco o o ispace_R1> enable

o ispace_R1# config terminal o ispace_R1(config)# line console 0 // Truy cp vo cng giao tip console o ispace_R1(config-line)# password 123456 // 123456 l mt khu o ispace_R1(config-line)# login

Hnh 3.5: Lnh thit lp mt khu console Lnh g b mt khu cho ng console: o o o o o o ispace_R1> enable ispace_R1# config terminal ispace_R1(config)# line console 0 ispace_R1(config-line)# no password // g b mt khu

Hnh 3.6: G b mt khu cho ng Console Lnh t mt khu cho cng AUX: o o o o o ispace_R1> enable ispace_R1# config terminal ispace_R1(config)# line aux 0 // Truy cp vo cng giao tip aux ispace_R1(config-line)# password aux123 // aux123 l mt khu ispace_R1(config-line)# login

Hnh 3.7: Thit lp mt khu cho cng AUX Lnh g b mt khu cho cng AUX: o o o o o o o ispace_R1> enable ispace_R1# config terminal ispace_R1(config)# line aux 0 ispace_R1(config-line)# no password // g b mt khu

Hnh 3.8: Lnh g b mt khu cng giao tip Console Lnh thit lp mt khu cho giao thc Telnet: o o o o o ispace_R1> enable ispace_R1# config terminal ispace_R1(config)# line vty 0 4 // Truy cp vo giao tip vty ispace_R1(config-line)# password telnetvty // telnetvty l mt khu ispace_R1(config-line)# login

Hnh 3.9: Lnh thit lp mt khu telnet Lnh g b mt khu cho cng AUX: o o o o o o o ispace_R1> enable ispace_R1# config terminal ispace_R1(config)# line vty 0 4 ispace_R1(config-line)# no password // g b mt khu

Hnh 3.10: Lnh g b mt khu VTY Lnh thit lp mt khu cho ch Privileged EXEC mode (Khng m ha): o ispace_R1> enable o ispace_R1# config terminal o ispace_R1(config)# enable password clear_text // Mt khu l "clear_text"

Hnh 3.11: Lnh Thit lp mt khu ch Privileged EXEC (Khng m ha) Lnh g b mt khu cho ch Privileged EXEC mode (Khng m ha): o o o ispace_R1> enable ispace_R1# config terminal ispace_R1(config)# no enable password // g b mt khu

Hnh 3.12: Lnh g b mt khu ch Privileged EXEC (Khng m ha) Lnh thit lp mt khu cho ch Privileged EXEC mode (M ha MD5): o o o ispace_R1> enable ispace_R1# config terminal ispace_R1(config)# enable secret ma_hoa // Mt khu l "ma_hoa"

Hnh 3.13: Lnh Thit lp mt khu ch Privileged EXEC (M ha MD5) Lnh g b mt khu cho ch Privileged EXEC mode (M ha MD5): o o o ispace_R1> enable ispace_R1# config terminal ispace_R1(config)# no enable secret // g b mt khu

Hnh 3.14: Lnh g b mt khu ch Privileged EXEC (M ha MD5)