22020, 1/1101 회원가입  로그인  
   초콜렛나인
   라우터 기초 명령어요

http://www.hackerschool.org/HS_Boards/zboard.php?id=Free_Board&no=15311 [복사]


시스코 라우터 기초 명령어 찾아봤음여

# 라우터 초기화 하기
Router>en
Router#erase startup-config

Erasing the nvram filesystem will remove all configuration files! Continue? [confirm] <enter>

[OK]
Erase of nvram: complete



Router#reload
Proceed with reload? [confirm] <enter>


## 라우터에 각 정보 확인하기 위한 명령어들...

>> Flash에 IOS 정보 확인하기

Router#show flash

System flash directory:
File  Length   Name/status
  1   16124776  /c2500-jk8s-l.122-1d.bin
[16124840 bytes used, 652376 available, 16777216 total]
16384K bytes of processor board System flash (Read ONLY)



>> DRAM에 Active Config File 정보 보기

Router#show running-config 단축명령: sh run

Router#sh run
Building configuration...

Current configuration : 572 bytes
!
version 12.2
no service single-slot-reload-enable
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Router
<생략>
.....


>> VNRAM에 Backup Config File 정보 보기

Router#show startup-config 단축명령: sh star

Router#sh start
Using 565 out of 32762 bytes
!
version 12.2
no service single-slot-reload-enable
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Router
<생략>
.......


>> 라우터에 하드웨어 및 소프웨어 정보를 확인하는 명령

Router#show version 단축명령: sh ver
Router#sh ver
Cisco Internetwork Operating System Software
IOS (tm) 2500 Software (C2500-JK8S-L), Version 12.2(1d), RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2002 by cisco Systems, Inc.
Compiled Sun 03-Feb-02 18:14 by srani
Image text-base: 0x0307C2FC, data-base: 0x00001000

ROM: System Bootstrap, Version 5.2(8a), RELEASE SOFTWARE
BOOTFLASH: 3000 Bootstrap Software (IGS-RXBOOT), Version 10.2(8a), RELEASE SOFTWARE (fc1)

Router uptime is 5 minutes
System returned to ROM by power-on
System image file is "flash:/c2500-jk8s-l.122-1d.bin"

cisco 2509 (68030) processor (revision D) with 16384K/2048K bytes of memory.
Processor board ID 01756284, with hardware revision 00000000
Bridging software.
X.25 software, Version 3.0.0.
SuperLAT software (copyright 1990 by Meridian Technology Corp).
TN3270 Emulation software.
1 Ethernet/IEEE 802.3 interface(s)
2 Serial network interface(s)
8 terminal line(s)
32K bytes of non-volatile configuration memory.
16384K bytes of processor board System flash (Read ONLY)

Configuration register is 0x2102





>> Terminal (작업창) 설정 상태 확인 명령



Router#show terminal 단축명령: sh ter

Router#show term
Line 0, Location: "", Type: ""
Length: 24 lines, Width: 80 columns
Status: PSI Enabled, Ready, Active, Automore On
Capabilities: none
Modem state: Ready
Group codes:    0
Special Chars: Escape  Hold  Stop  Start  Disconnect  Activation
                ^^x    none   -     -       none        
Timeouts:      Idle EXEC    Idle Session   Modem Answer  Session   Dispatch
               00:10:00        never                        none     not set
                            Idle Session Disconnect Warning
                              never
                            Login-sequence User Response
                             00:00:30
                            Autoselect Initial Wait
                              not set
Modem type is unknown.
Session limit is not set.
Time since activation: 00:04:03
Editing is enabled.
History is enabled, history size is 10.
DNS resolution in show commands is enabled
Full user help is disabled
Allowed input transports are none.
Allowed output transports are lat pad v120 mop telnet rlogin nasi.
Preferred transport is lat.
No output characters are padded
No special data dispatching characters




>> History Buffer 정보 보기
Router#show history
Router#sh his
  en
  sh flash
  sh run
  sh start
  sh ver
  show term
  sh his
Router#


**********************************
라우터 기초 설정을 위한 기본 명령어
**********************************
>> Hostname 설정
Router#conf t
Router(config)#hostname R1
R1(config)#



>> UserMode -> PrivilegedMode로 이동시 암호 제어하기

R1(config)#enable ?  
  last-resort     Define enable action if no TACACS servers respond
  password     Assign the privileged level password
  secret          Assign the privileged level secret
  use-tacacs   Use TACACS to check enable passwords



예제>
Router(config)#enable secret cisco               ! 암호화된 문자로 기본 저장된다.



R1(config)#enable password 12345                  ! password로 할당한 암호는 기본적으로 암호화 되지 않고 저장된다.

R1(config)#service password-encryption        ! Password로 할당한 암호화되지 않은 문자를 암호화 해준다.





>> Console Log 동기화 하기
R1(config)#line console 0
R1(config-line)#logging synchronous



>> Console에 Timeout 시간 변경
R1(config)#line console 0
R1(config-line)#exec-timeout 8 0



******************
Interface 구성하기
******************

Ethternet/fastethernet/serial/loopback

>>>> 라우터에 인터페이스 요약정보를 확인하기
R1#show ip interface brief ! 현재 라우터에 각 인터페이스 Name, IP, State를 보여준다.



>> LAN Interface

> Ethernet Inetface (10baseT)
R1(config)#interface ethernet 0  단축명령: int e0
R1(config-if)#ip address <IP> <subnetmask>
R1(config-if)#no shutdown  ! 인터페이스 활성화



> Fastethernet  (100BaseTx)
R1(config)#interface fastethernet 0/0
R1(config-if)#ip address <IP> <subnetmask>
R1(config-if)#speed {auto|100|10}
R1(config-if)#duplex {auto|Full|Half}
R1(config-if)#no shutdown


>> WAN Interface
Serial interface는 Leased-Line/Frame-relay/X25 와 같은 네트워크에 연결해서 사용한다.



> DTE Type Serial Interface 설정
R1(config)#interface serial 0
R1(config-if)#ip address <IP> <Subnetmask>
R1(config-if)#encapsulation {HDLC|PPP|Frame-relay...}
R1(config-if)#bandwidth 1024  ! 설정하지 않으면 1544k 가 기본값이다.
R1(config-if)#no shutdown


> DCE Type Serial Interface 설정
R1(config)#interface serial 0
R1(config-if)#ip address <IP> <Subnetmask>
R1(config-if)#encapsulation {HDLC|PPP|Frame-relay...}
R1(config-if)#bandwidth 1024  ! 설정하지 않으면 1544k 가 기본값이다.
R1(config-if)#clock rate 1000000   ! speed를 기준으로 bps 단위로 List에 있는 값을 할당.
R1(config-if)#no shutdown



*** DCE/DTE Type Cable을 구분하는 방법

R1#sh controllers serial 0
HD unit 0, idb = 0x27326C, driver structure at 0x27A830
buffer size 1524  HD unit 0, V.35 DTE cable
cpb = 0x1, eda = 0x4940, cda = 0x4800



>> Logical Interface (가상인터페이스)



> Loopback Interface  (생성후 설정을 한다.)
R1(config)#interface loopback 0
R1(config-if)#ip address <IP> <subnetmask>

[출처] CISCO IOS 기본 명령어 |작성자 노막

이거면되여?

  Hit : 14859     Date : 2010/03/17 08:29



    
BkeMan 네 감사합니다 . ㅎ 2010/03/17  
kangms0801 라우터 접속은 어케하는거에요?ㅋ 2010/03/17  
BkeMan 저 가상 라우터 접속(다이나밉스) 써요 ; ㅎ
나중에 네트윅 장비들좀 만지게 해주세요 ㅠ
2010/03/18  
     [공지]해커스쿨 이용수칙 2021/04/11 수정판 [55] 한승재 01/05 12819
22019   해커구함     k1230
10/04 24
22018   카타고 AI[1]     해킹잘하고싶다
10/01 50
22017   시스코 라우터랑 스위치 케이블 장비 질문이에요.[1]     해킹잘하고싶다
09/22 114
22016   ㅇㅅㅇ     해킹잘하고싶다
08/15 297
22015   요즘 하고 있는 거     해킹잘하고싶다
07/13 504
22014   2위 ㅇㅅㅇ     해킹잘하고싶다
07/13 442
22013   ...     해킹잘하고싶다
03/31 833
22012   ...     해킹잘하고싶다
03/25 812
22011   15년전쯤 이 사이트 보고 꿈을 정했었는데~~~[1]     ambition65
03/20 1216
22010   으앙!!![1]     해킹잘하고싶다
02/05 955
22009   오랜만~     DarkSlayer
12/11 1156
22008   해커스쿨 옛날 BGM[1]     wkfhddl4041
11/07 1257
22007   히잉...     해킹잘하고싶다
11/02 1081
22006   바둑과 장기     해킹잘하고싶다
10/30 1167
22005   나는 언제 애인이 생기나욤...     해킹잘하고싶다
10/27 1244
22004   전국 1위     해킹잘하고싶다
10/27 1190
22003   담배 ㅋㅋ[1]     해킹잘하고싶다
10/27 1192
22002   매트릭스의 파란약을 아십니까..?     해킹잘하고싶다
10/27 1148
22001   ㅇㅇ[1]     해킹잘하고싶다
10/20 1117
1 [2][3][4][5][6][7][8][9][10]..[1101]

Copyright 1999-2026 Zeroboard / skin by Hackerschool.org / Secure Patch by Hackerschool.org