CÁC LỆNH CẤU HÌNH CƠ BẢN CHO ROUTER

10 571 1
CÁC LỆNH CẤU HÌNH CƠ BẢN CHO ROUTER

Đang tải... (xem toàn văn)

Thông tin tài liệu

1. console: + Nối cáp: Dùng cáp console nối cổng Com1 của máy tính (dùng terminal chuyển đổi từ DB9 sang RJ45) với cổng console của Router hoặc Swich. + Đăng nhập vào router or Swich: Dùng secure Quick connect hoặc tổ Hợp phím “Ant + Q” chọn protocol:CRT kết nối File serial, port: COM1, baud rate: 9600.

GVHD: Đặng Thành Đạt SVTH: Thạch Thị Xuân Mai CÁC LỆNH CẤU HÌNH CƠ BẢN CHO ROUTER Cho Mô Hình: I. kết nối bằng secure CRT:    !"#$%&'()*+,- ' ./0 123,4 /0 5 6 .789:5;<◊'=6>?@ AB@C &DEE II. Cấu hình cơ bản: FGH IJCKI' ,/04LJM  6"N,4 OP>"QR>"Q4! S Router> %$T"P>"Q @36UMVHW+"!X Y"L8>"Q4 Trang: 1 GVHD: Đặng Thành Đạt SVTH: Thạch Thị Xuân Mai Router> ? Z[\] YC"!,4>"Q, Router>enable Router# %F\V"!H"L8HK] Y/0 Router# show ? %7.CT6^-HK_YC`"a Cb6M@CT c!d Router>te? e"c@ OY6fHKYC`"a Cb %[\] Y/0 %g"!6!H IYT Router# Show running-config > 4^a!SG JQ4IZ* 4+@ 4IY_%%B%%CTHh=h'"!X 46>>@./i:h"!X6>>> CTH h=h'@^O!Sf#4> CT /i:h$:'@^O!S4I j[\] YX"!k P,GlL-"c Router#exit Router> )"!,4>"QH I[\] Yg  Router# configure terminal Router(config)# P>"QgCTc! ] fX"!P,G>"Q ,.89m; H 7I$'  %".f[\] Y7"!".f'  F\".f 4' Router(config)# hosname R1 R1(config)# %H IC 'g+n$9"]4o/i9 %H I0 R1(config)# enable password itnH I04+ R1(config)#enable secret ciscoH I0Nc+ > K] Yf"L8H II] YO"L8[ \ %H I0f,40 Trang: 2 GVHD: Đặng Thành Đạt SVTH: Thạch Thị Xuân Mai R1(config)#line vty 0 4 Ep)    EpZ)   Q  ,4   h+ R1(config-line)#password itn04+ R1(config-line)#login R1(config-line)#exit R1(config)#line console 0 R1(config-line)#password itn 04+ R1(config-line)#login R1(config-line)#exit %H I"."Sqoi,4[\g R1(config)#interface serial0 R1(config-if)#ip address 192.168.1.123 255.255.255.0 ".1 oi+ R1(config-if)#no shutdown CE+ R1(config-if)clock rate 64000 R1(config-if)description “mô tả cho cổng” /[\] Y %g %g"!L TH I %/[\] Y/0"!6! /0 %g6!H IYT  Router1#show running-config Building configuration Current configuration : 857 bytes ! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname Router1 ! boot-start-marker boot-end-marker ! enable secret 5 $1$L6B6$Oaa6ug9hX5bbUiLpbyKj91 ! no aaa new-model memory-size iomem 5 Trang: 3 GVHD: Đặng Thành Đạt SVTH: Thạch Thị Xuân Mai ! ip cef ! ! no ip domain lookup ! interface Serial1/0 description ket noi toi toi ROuter2 ip address 192.168.2.1 255.255.255.0 serial restart-delay 0 clock rate 64000 ! interface Serial1/1 no ip address shutdown serial restart-delay 0 ! interface Serial1/2 no ip address shutdown serial restart-delay 0 ! interface Serial1/3 no ip address shutdown serial restart-delay 0 ! interface FastEthernet2/0 no ip address duplex auto speed auto ! ip http server ! control-plane ! ! line con 0 password itn Trang: 4 GVHD: Đặng Thành Đạt SVTH: Thạch Thị Xuân Mai login line aux 0 line vty 0 4 password itn login ! End /0gCg6!T Router1# show ip int brief Interface IP-Address OK? Method Status Protocol Serial1/0 192.168.2.1 YES manual up up Serial1/1 unassigned YES unset administratively down down Serial1/2 unassigned YES unset administratively down down Serial1/3 unassigned YES unset administratively down down FastEthernet2/0 unassigned YES TFTP up up /0,6!,oA/ Router1#show version Cisco IOS Software, 3600 Software (C3640-TELCO-M), Version 12.4(16), RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2007 by Cisco Systems, Inc. Compiled Wed 20-Jun-07 11:43 by prod_rel_team ROM: ROMMON Emulation Microcode ROM: 3600 Software (C3640-TELCO-M), Version 12.4(16), RELEASE OFTWARE (fc1) Router1 uptime is 2 hours, 44 minutes System returned to ROM by unknown reload cause – suspect boot_data[BOOT_COUNT] 0x0, BOOT_COUNT 0, BOOTDATA 19 System image file is "tftp://255.255.255.255/unknown" Cisco 3640 (R4700) processor (revision 0xFF) with 124928K/6144K bytes of memory. Processor board ID 00000000 R4700 CPU at 100MHz, Implementation 33, Rev 1.2 1 FastEthernet interface 4 Serial interfaces DRAM configuration is 64 bits wide with parity enabled. 125K bytes of NVRAM. Trang: 5 GVHD: Đặng Thành Đạt SVTH: Thạch Thị Xuân Mai 8192K bytes of processor board System flash (Read/Write) Configuration register is 0x2142 /0g6!grsAtA'u Router1#show flash: System flash directory: No files in System flash [0 bytes used, 8388604 available, 8388604 total] 8192K bytes of processor board System flash (Read/Write) Chạy các lệnh từ xa trên router của Cisco từ máy tính: tY CTc!".WTH `Yv0,4TQ Yf "L86^V=^LwIL-fCTOKc =//7- "!c!MYYV$44O L-xCTc!"ywTY 46^aK 6WH `Yv0@"G 4H 38,Y"G 6!,4M"Qk KU  Remote shell (rsh) là gì? '4QLJIzY^Lw Y"G 4Ro{,4t X$b[\Rsh@CTc!M LJIzYfQY#X7Y#X4c !4QY"G 4Ro{t X6@.c!4Q  6c !"Rsh4QaY"G 4$/$Ro{ ,4CyKrcp+,4rlogin+ =6"k KS,fYt X"Nk  Q,-rsh@I Q4k KSv06^L,3=3@Kv0{i,4 v0/,ZEEj"G Cyrsh7I:C! S<,Y [\rshTH `Y 7I: Trang: 6 GVHD: Đặng Thành Đạt SVTH: Thạch Thị Xuân Mai = f@64,Y,-rshCTN-brsh6^4 c6^Nc G^_>CS#X,4Y$T ^a KH Irsh4Hc!f Cb6c"Sqoi k KU,4fLw = f@36"Nc_"GzL,3@Irsh,x 6^4,-//7FI,3O4> [\rshfQT Cf"N"L8CK,Y,4_4$b4@> CT| rsh^k QLw[@IcO[\=i*)+ Phương pháp cấu hình rsh trên router? 1!c6K2TQYfv0@N>4 ,- @MYY@,4 "cKT"a CT@HK_ Ia443,4Y}NXX|4CQk  IX[U =L-f@CTaK6TS,\f  oA/O<S,\rcmd1!6TS,\4@N 3,4Y "]f~Cg B ' g+n%C =l@CTaKH I|T4,Y,4Lw c6K2MYY"c/ "]4Q,\ Y4 ' g+n%&ZD•)*,C }NKzYfiaip rcmd remote- host "L8 f a =>@CT3,4fLw€local•f  LwO"236Y"L8M YF\f[\Lw\CQ€root• =>"c@192.168.1.454"SqoiT4,Yk KU4CT   |"!MYY%c6@"] 4"Sqoi=>@CTIHfLw v0QCQ4ddavisL,\I"]4fLw "23,4v0{i‚LLwOMYY rshfv0> LCT[\Q3Y^,YC"! Trang: 7 GVHD: Đặng Thành Đạt SVTH: Thạch Thị Xuân Mai M   Y f  v0@IO a3  ,4 f Lw  v0,4L-3C  4Yl#6c€enable•tY4|Lw  3"!6T6! f $Tc!M YCL-4XJ,4qdl"Q 3"L8|\@# l">*+ 7N ^-bY4K>bCT"Nc  "L8H I,4cQLw\CQ"L8<4€root•> CT 6^cQLw[\@Ic![\Y "] ' g+n ,*0ƒ Phương pháp sử dụng rsh từ trạm làm việc Windows 6"NH IYLf@CTc!„4TQ Y#H `Yv07I$"LQ,\ Trang: 8 GVHD: Đặng Thành Đạt SVTH: Thạch Thị Xuân Mai 7I$ Trên thực tế bạn sử dụng lệnh sau: Z: rsh Router1 -l root sh ver 1]4zY"c4,Y • =f4"G "a faK"L8qd,\f4 Router1+ • =>@P"][\-l_t+"!X"SfLwO "L8"!"23tL Ub,xOK[\€ddavis• fv0\CQ"!"KCK4+ •  @4q"SdY=Lw844MYY show versionsh ver+ Bạn có thể làm gì với lệnh rsh? Trang: 9 GVHD: Đặng Thành Đạt SVTH: Thạch Thị Xuân Mai 4,Y[\Y0,@CTc!‚MYf Y0 %g  +YPl".k G 6/ "]4Q,\ • show ip interface brief • show ip route • show ip ospf neighbors • show ip bgp summary • show log 1G CT6^!MY"c4TQY~Cg  B@,\L,Y6TQY.4H IQ"Sq oi  1]  4  "G  -  T  6      Y  0 = f@QlH_ 4CTc!MY"c4|H IYw-Q=?=i,4MYcCfQ3Y 6P  "a  f      v0 … T@ CT [  \ Y copy running-configuration tftp:/1.1.1.1. Có thể thực hiện những gì khác với các lệnh từ xa? > X4Y oA/,GY#XICTO3Hbc Q<c![\,-Y#XBQ_". a"]HoA/"c4CTc6K2X3Y- "L8q"S,4Cb,YQ"G 6! 3 oA/ BQ_MC>"},SJ4c![\|#X +FI>@CT44c!|Q3CbY v0#"> .# -46^a [\=?=i?=i$Tc!6TYrcp,-Yip rcmd rcp-enable+ Kết luận  Yrsh.rcmd+c!H_ ,Y"G 4#X CT1G 4O".CY"}> LCT T Q3Yt Xv0"-HK T,4M YQYshow Trang: 10 . GVHD: Đặng Thành Đạt SVTH: Thạch Thị Xuân Mai CÁC LỆNH CẤU HÌNH CƠ BẢN CHO ROUTER Cho Mô Hình: I. kết nối bằng secure CRT:   . &DEE II. Cấu hình cơ bản: FGH IJCKI' ,/04LJM  6"N,4 OP>"QR>"Q4! S Router& gt;. Xuân Mai Router& gt; ? Z[] YC"!,4>"Q, Router& gt;enable Router# %FV"!H"L8HK] Y/0 Router#

Ngày đăng: 13/08/2014, 17:59

Từ khóa liên quan

Tài liệu cùng người dùng

Tài liệu liên quan