본문 바로가기

해봐야 안다.OTL/Network

라우터 기본 명령어

+++ 기본 Mode +++
- User mode에서 Privileged mode로 이동
router> enable
router#

- Privildeged mode 에서 Global configuration mode로 이동
router# configure terminal
router(config)#


+++ Global configuration Mode +++
- Router 이름 설정
router(config)# hostname <name (ex: R11)>
R11(config)#

- Domain 해석 금지
router(config)# no ip domain lookup

- 외부 사용자에게 보여질 문구지정
router(config)# banner motd # 보여질 문구 #

- User mode에서 Privileged mode로 이동시 Password 설정
router(config)# enable secret <password> --> 암호화 O
router(config)# enable password <password> --> 암호화 X
router(config)# service password-encryption --> enable password 암호화


+++ Line Mode +++
- Line mode로 이동
router(config)# line <console 0, aux 0, vty 0 4>
router(config-line)#

- Login시 Password 설정
router(config-line)# login
router(config-line)# password <password>

- Time Session 설정
router(config-line)# exec-timeout <분 초>

- Input 메세지 동기화
router(config-line)# logging synchronous


- 계정 생성
일반적인 계정 생성
router(config)# username <name> password <password>
router(config)# line <console 0, aux 0, vty 0 4>
router(config-line)# login local

권한을 갖는 계정 생성
router(config)# username <name> privilege <0-15> password <password>
router(config)# line <console 0, aux 0, vty 0 4>
router(config-line)# login local


+++ Interface Mode +++
- interface mode로 이동
router(config)# interface <type> <number>
router(config-if)#

- Interface 식별
router(config-if)# description <식별문구>


+++ 확인 명령 +++
- RAM에 저장된 구성값 확인
router# show running-config

- NVRAM에 저장된 구성값 확인
router# show startup-config

- IOS Version 확인
router# show version

- Line 정보 확인
router# show line


- 기본 명령어
router> enable
router# configure terminal
router(config)# hostname R11
R11(config)# no ip domain lookup
R11(config)# line console 0
R11(config-line)# logging synchronous
R11(config-line)# exec-timeout 0 0
R11(config-line)# no login
R11(config-line)# exit
R11(config)# line vty 0 4
R11(config-line)# no password
R11(config-line)# no login
R11(config)# end
R11#