본문으로 바로가기

Cisco Router 명령어 정리 (검정 : 프롬프트, 빨강 : 입력할 명령어 파랑 : 사용자가 지정하는 부분)

 

설정 프롬프트

설정 명령

보기

프롬프트

보기 명령

사용자모드에서 특권모드로

Router>

enable

 

 

특권모드에서 설정모드로

Router#

config terminal

 

 

설정모드에서 특권모드로

Router(config)#

exit

 

 

다시 사용자모드로 가기

Router#

disable

 

 

한번에 특권모드로 이동

 

Ctrl+z, end

 

 

한단계씩 빠져나오기

 

exit

 

 

NVRAM으로 저장

Router#

write memory

 

 

Router#

copy running-config startup-config

 

 

라우팅 테이블

 

 

Router#

show ip route

라우터 기본 정보

 

 

Router#

show version

모든 인터페이스 정보

 

 

Router#

show interface

이더넷 인터페이스 정보

 

 

Router#

show interface ethernet 0

시리얼 인터페이스 정보

 

 

Router#

show interface serial 0

현재 구성 파일

 

 

Router#

show running-config

NVRAM 백업 구성 파일

 

 

Router#

show startup-config

플래쉬 메모리

 

 

Router#

show flash

라우터 동작 상태

 

 

Router#

show processes cpu

배너 입력하기

Router(config)#

banner motd # This is end #

 

 

인터페이스 설명

Router(config)#

int fa 0/0

 

 

Router(config-if)#

description Text

 

 

단순형 핑

Router#

ping 150.10.1.1

 

 

라우터 이름 설정

Router(config)#

hostname R4

 

 

관리 비밀번호 설정

Router(config)#

enable secret cisco

 

 

Router(config)#

enable password cisco

 

 

계정생성

Router(config)#

username HHH password 1111

 

 

콘솔비밀번호 설정

Router(config)#

line console 0

 

 

Router(config-line)#

password cisco

 

 

Router(config-line)#

login

 

 

콘솔유저까지 설정

Router(config)#

line console 0

 

 

Router(config-line)#

login local

 

 

Router(config-line)#

exit

 

 

Router(config)#

username ccna password cisco

 

 

텔넷 비밀번호 설정

Router(config)#

line vty 0 2

동시 접속가능한 원격 단말기수 : 3대

Router(config-line)#

password cisco

 

 

Router(config-line)#

login

 

 

텔넷 유저까지 설정

Router(config)#

line vty 0 4

동시 접속가능한 원격 단말기수 : 5대

Router(config-line)#

login local

 

 

Router(config-line)#

exit

 

 

Router(config)#

username ccna password cisco

 

 

텔넷 연결 세션 보기

 

 

Router#

show session

세션 종료

 

 

Router#

disconnect

라우터 IP 설정

Router(config)#

interface fa 0/0

 

 

Router(config-if)#

ip address 150.10.1.1 255.255.255.0

 

 

포트 동작 시키기

Router(config-if)#

no shutdown

 

 

(10분 30초)

Router(config-line)#

exec-timeout 10 30

10분 30초 동안 조작없으면 세션종료

타임아웃 안걸기

Router(config-line)#

no exec-timeout

 

 

ip주소에 이름 설정

Router(config)#

ip host PC1 192.16810.2

 

 

이름으로 ping 보내기

Router#

ping PC1

 

 

? : 현재 상태에서 사용할 수 있는 명령어, 현재 입력한 명령어 이후로 올 수 있는 명령어, 현재입력한 문자로 시작하는 모든 명령어를 볼 수 있는 명령어

탭키 : 명령어를 완성시키는 키