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

  • Upload
    ptduy33

  • View
    88

  • Download
    1

Embed Size (px)

Citation preview

CU HNH C BN CHO ROUTER & SWICHCho M Hnh:

I. kt ni bng secure CRT. 1. console. + Ni cp: Dng cp console ni cng Com1 ca my tnh (dung Terminal chuyn i t DB-9 sang RJ45) vi cng console ca Router hoc Swich. + ng nhp vo router or Swich: Dng secure CRT kt ni File Quick connect hoc t Hp phm Ant + Q chn protocol: serial, port: COM1, baud rate: 9600.

II. Cu hnh c bn. V cu hnh c bn th Router va Swich l tng t nhau 1. khi console vo router ta s ch User mode ch ny hin th Router> - Ban ang ch user mode, nhp ky t ? (chm hoi) xem cac lnh c dung trong ch nay: Router> ? 2. s dng cu lnh enable vo ch privileged mode Router>enable Router# - V D: dng ? thy c tt c cc cu lnh Show

Router# show ? - Hoc ban khng nh tt c nhng lnh bt u bng cc k t te, ban co th go: Router>te? Khi , router s lit k tt c cc lnh bt u bng te. - s dng cu lnh Show running-config kim tra cu hnh hin ti. Router# Show running-config Nu s hang thng tin cn hin thi nhiu hn mt trang man hinh (25 hang), cui man hinh hin ch --More-- ban nhn phim ENTER xem hang k tip, hoc phim SPACE xem trang k tip. Nu bn nhn phm ENTER, thng tin s hin th thm tng hng. Nu bn dng SPACE BAR, thng tin s hin th theo trang mn hnh. 3. s dng cu lnh exit quay tr v mc trc Router#exit Router> 4. vo ch cu hnh s dng cu lnh configure terminal Router# configure terminal Router(config)# ch config bn c th dung cu lnh exit tr v ch privileged mode hoc dng t hp phm Ctrl + Z Cu Hnh Basic cho Router - t tn: s dng cu lnh Hostname t tn cho Router V d: t tn router l R1 Router(config)# hosname R1 R1(config)# - cu hnh banner mote R1(config)#Banner mote y l ISP ^_^ - cu hnh password: R1(config)# enable password itn (cu hnh password l itn) R1(config)#enable secret cisco (cu hnh password m ha ) Nu c hai cu lnh trn c cu hnh th cu lnh enale secret s c s dng - cu hnh password phin telnet v password console: R1(config)#line vty 0 4 (0~4 or 0~24ty thuc vo s cngEthernet) R1(config-line)#password itn (password telnet l itn) R1(config-line)#login R1(config-line)#exit R1(config)#line console 0 R1(config-line)#password itn (password console l itn) R1(config-line)#login

R1(config-line)#exit - cu hnh t a ch IP v s dng cc interface R1(config)#interface serial0 R1(config-if)#ip address 192.168.1.123 255.255.255.0 (t C IP) R1(config-if)#no shutdown (enable cng serial 0) R1(config-if)clock rate 64000 R1(config-if)description m t cho cng S dng cu lnh copy running-config startup-config lu li cu hnh. - S dng cu lnh Show kim tra. Show running-config kim tra cu hnh hin ti ca router. 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 ! 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 login line aux 0 line vty 0 4 password itn login ! End Show ip interface brief kim tra trng thi cc cng. 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 Show version kim tra version ca IOS 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 SOFTWARE (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. 8192K bytes of processor board System flash (Read/Write) Configuration register is 0x2142

Show flash kim tra flash 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)