OS/Internetworking OS

Cisco Device Handling

MorningPhys 2015. 8. 19. 22:54

Cisco Device Handling

 

- 2006년 라우터 & 스위치 구축 및 관리 Sun 교재 중에서 발췌 -

 

Router# sh version
Configuration register is 0x2102
# 0x2는 NVRAM의 설정을 참조한다.
# 102는 라우터별로 상이한 번호이다.

 

# boot system 명령으로 순서를 명시할 수 있다.
Router# config term
Enter configuration commands, one per line. End with CNTL/Z

Router(config)# boot system flash [FileName]
Router(config)# boot system tftp [FileName][Remote IP]
Router(config)# boot system rom

 

Router# sh flash

Router(config)# config-register 0x0 (ROM Monitor Mode)
Router(config)# config-register 0x1 (Boot From ROM)
Router(config)# config-register 0x2
                (Examine NVRAM for boot system command)
Router(config)# config-register 0xF
                (Examine NVRAM for boot system command)

 

# 명령어 모드
User EXEC Mode : Router>_

Previleged Exec Mode : Router> enable or en
                       Router# _

Global Configuration : Router# configure terminal or conf t
                       Router(config)# _

Setup Mode : Config File 이 없는 경우, 자동으로 나타나 Interactive한 Router 설정을 가능하게 한다.
             Router# setup 명령을 통해서도 접근이 가능하다.
RXBoot Mode : Ctrl + B or Ctrl + Break 키를 눌러 접근할 수 있다.

 

Router> enable
Router# config germ
Router(config)#

 

라우터 정보 확인하기
Show Version : Internetwork OS
Show Processes, show protocols : Programs
Show running-config : Dynamic Configuration Info
Show mem, show ip route : Routing Tables and Buffers
Show startup-config : Backup Configuration File(NVRAM)
Show flash : Operating System(Flash)
Show interfaces : Interfaces

 

History Command
Ctrl + P or 위화살표 : 입력했던 명령어 불러오기
Ctrl + N or 아래화실표 : 가장 최근에 입력한 명령어 불러오기
sh history 버퍼에 저장된 명령어 나열
Terminal history size ? 버퍼 사이즈 조정<1-255>
No termanal editing 고급 편집 기능 사용 안함
Termanal editing 고급 편집 기능 사용
Tab 입력중 명령어 완성

 

라우터 편집 명령어
Ctrl + A #명령어 라인의 맨 앞으로 이동
Ctrl + E #명령어 라인의 맨 뒤로 이동
Esc + B #한 단어 뒤로 이동
Ctrl + F #한 글자 앞으로 이동
Ctrl + B #한 글자 뒤로 이동
Esc + F #한 단어 앞으로 이동

 

BASIC Router Setting (Host name)
라우터 이름 변경하기
Router# configure terminal 또는 conf t
Router(config)# hostname R2501A

 

저장하기
R2501A# copy running-config startup-config 또는 wr
Building configuration ...

 

Enable Password
Router(config)# enable password cisco

 

Secret Password
Router(config)# enable secret sanfran

 

Console Password
Router(config)# line console 0
Router(config-line)# login
Router(config-line)# password cisco

 

Virtual Terminal Password
Router(config)# line vty 0 4
Router(config-line)# login
Router(config-line)# password sanjose

 

LAN Interface IP Setting
1. Etehrnet Interface IP Address 설정하기

Router(config)# interface ehternet 0
Router(config-if)# ip address 172.16.2.1. 255.255.255.0
Router(config-if)# no shutdown

 

2. Token-Ring Interface IP Address 설정하기
Router(config)# interface tokenring 0
Router(config-if)# ip address 172.16.1.1 255.255.255.0
Router(config-if)#

 

3. IP Address 제거하기
Router(config)# interface ethernet 0
Router(config-if)# no ip address

 

4. Serial Interface IP Setting
Router(config)# interface serial 0
Router(config-if)# ip address 10.1.1.1 255.255.255.0
Router(config-if)# clock rate 64000 <- DCE일 경우
Router(config-if)# bandwidth 64 <- Kbps 단위
Router(config-if)# no shutdown <- interface 활성화

 

5. Serial Interface의 Cable Type 확인
Router# show controller serial 0

반응형