Part 07. 라우터에 대해
라우터 모드설명
Mode |
Prompt |
Role |
Access Command |
user-exec |
R1> |
test, ping, trace |
|
privileged |
R1# |
show |
enable |
global-configuration |
R1(config)# |
environment setting |
conf t |
sub line |
R1(config-line)# |
router environment |
line con/aux/vty [N] |
sub interface |
R1(config-if)# |
interface env |
int [int-name] |
[N]은 장비 번호를 적는다.
[int-name]은 인터페이스 이름을 적는다.
>> Router Setting Files
- running-config : RAM에 저장하며 실행 중에 라우터 설정을 관리한다.
- startup-config : NVRAM에 저장하며 시작(boot)시 설정을 관리한다.
- Ctrl + Z : sub와 global-conf 모드에서 이 조합키를 누르면 privileged로 이동한다.
- exit : 모드를 한단계 빠져나가는 명령어이다.
- write : 사용시 이제까지 작업한 내용을 저장하는 것이다.
- Shift + Ctrl + 6 : 명령어를 잘못 쳐서 무한루프 오류가 발생했을때 빠져나오는 키다.
- Console Port : PC를 Console에 연결 후 Terminal에서 접속한다.
- AUX Port : 전화선 모뎀을 사용한다.
- 원격 접속(VTY Port) : Telnet이나 ssh으로 접속한다.
- Console :
- AUX :
- VTY :
- Set Hostname :
- Set Banner :
- Set Clock :
- Set History :
- Set exec-timeout :
>> Setting Username and Password
R1(config)# username [] password []
R1(config)# line con/aux/vty [num] // 보통 console에 설정을 많이한다. 권장 번호도 0
R1(config-line)# login local
>> How to encrypt Password
R1(config)# service password-encryption
*주의점은 복호화가 불가능하고 단방향 hash라는 점이다. *
>> Setting Router interface
R1(config)# interface [int-name]
R1(config-if)# ip addr [ip] [subnet-mask]
R1(config-if)# no shutdown
>> Show Command in Privileged MODE
- show run : 라우터 실행 중 환경설정 파일 내용보기
- show startup : 라우터 시작 환경설정 파일 내용보기
- show interface (int-name) : 모든/해당 인터페이스 설정 파일 내용보기
- show ip interface brief : 간략하게 인터페이스 설정 파일 내용보기
- show ip route : 라우터 아이피 설정파일 내용보기
- show users : 접속한 사용자 정보 내용보기
- show version : 라우터 cisco ios 정보, RAM, Main-board, CPU, interface, NVRAM 등
- show flash : 플래시 메모리 확인
- show process : 실행중인 프로세스 확인
>> Setting Clockrate
R1(config-if)# clock rate [num] // num에는 1200배수를 넣어야한다.
>> Setting Routing Table
R1(config)# ip route [Destination ip] [subnet-mask] [next hop address]