| 종류 | 명령어 예제 | 설명 |
| 모드이동 | Router> 사용자 모드 Router> enable 관리자 모드로 이동 Router# configure terminal 전역 설정 모드로 이동 Router(config)# exit | |
| Clock 설정 | Router>show clock Router>en Router# clock set 11:30:00 28 September 2022 Router# show clock Router# exit | clock set 시:분:초 Day Month Year |
| 이름 설정 | Router>en Router# conf t Router(config)# hostname R1 R1(config)# | |
| 콘솔 암호 설정 | R1(config)# line console 0 R1(config-line)# password cisco R1(config-line)# login R1(config-line)# exit | line: 첫 번째 콘솔 포트 0 으로 설정 password: 사용자모드 진입시 암호설정 login: 접속시 암호 입력 필요 |
| 라우터 암호 설정 | R1(config)# enable password cisco R1(config)# enable secret class R1(config)# exit Router# exit Router# show run | enable password: 관리자모드 진입시 enable secret: 관리자모드 진입시 (암호화됨), secret 암호 우선 적용 enable secret 5 $1$mERr$9cT..... show run 하면 암호가 나타난다. |
| 배너메시지 | R1>enable R1#conf t R1(config)# banner motd # Enter TEXT message. End with the character ‘#’ Authorized Access Only !!! # R1(config)# exit R1# exit | 빠져나간 후 다시 라우터로 들어오면 banner 글자가 보인다.
단, 영어만 가능하다. |
| 설정파일 저장 | R1# wr (또는 copy running-config startup-config) Destination filename [startup-config]? Building configuration.... [OK] R1#show startup-config ㆍㆍㆍ 중간 생략 ㆍㆍㆍ R1#erase startup-config Erasing the nvram filesystem will remove all configuration files! ~ | 전원을 끄거나 재부팅해도 설정한 내용을 유지하기 위해 NVRAM (Non-Volatile RAM: 비휘발성 RAM)에 복사한다. wr: write memory 명령어
erase: 삭제 |
| 재부팅 | R1# reload | 설정파일을 저장된 파일을 불러와 재부팅함 |
라우터 IP 주소 할당 (GigaEthernet) | R1# conf t R1(config)# int gi0/0 R1(config-if)# ip address 203.230.7.1 255.255.255.0 R1(config-if)# no shut R1(config-if)# exit | Giga ethernet 설정
라우터는 기본 비활성화(shutdown) 이므로 활성화 (no shutdown) 시킨다. |
라우터 IP 주소 할당 (FastEthernet) | R1#conf t R1(config)# int fa0/0 R1(config-if)# ip address 203.230.7.1 255.255.255.0 R1(config-if)# exit | Fast ethernet 설정 |
라우터 IP 주소 할당 (Serial DCE/DTE) | R1(config)# int se0/0/0 R1(config-if)# ip address 163.180.116.217 255.255.255.0 R1(config-if)# clock rate ? (“?”로 확인 가능) R1(config-if)# clock rate 56000 ------------- R1(config)# int se0/0/1 (DTE일 경우 clock rate 주지 않음) R1(config-if)# ip address 163.180.117.217 255.255.255.0 | DCE (Data Circuit Terminating Exqupment) - clock rate가 필요하다. DTE (Data Terminal Equipment)
|
| 스위치 IP 주소 할당 | Switch> en Switch# conf t Switch(config)# int vlan 1 Switch(config-if)# ip address 203.230.7.2 255.255.255.0 Switch(config-if)# no shut ㆍㆍㆍ 중간 생략 ㆍㆍㆍ Switch(config-if)# exit Switch(config)# ip default-gateway 203.230.7.1 Switch(config)# exit | |
| 인터페이스 설명 달기 | R1(config)# int gi0/0 R1(config-if)# description Connects to main Switch in Our LAN. R1(config-if)# Ctrl+Z R1#sh run | 설명을 달아 놓을 수 있다. show run 으로 확인가능 |
| 인터페이스 상태 | R1# show ip int brief | |
| 연결확인 (ping) | R1# ping 203.230.7.2 R1# ping 203.230.7.3 R1# ping 203.230.7.4
R1# conf t R1(config)# ip host pc0 203.230.7.3 R1(config)# exit R1#ping pc0 | ping의 성공 또는 실패로 확인 ip host는 주소를 이름으로 설정한다. |
| 텔넷 접속 설정 | R1(config)# line vty 0 ? R1(config)# line vty 0 4 R1(config-line)# password cisco R1(config-line)# login R1(config-line)# exit R1(config)# exit | 설정 후 PC0를 클릭하고 Desktop-> Command Prompt를 선택한 후 다음과 같이 접속해 보자.
ping 203.230.7.1 telnet 203.230.7.1 |
| 버전 | R1# show version | |
| Security 라이센스 활성화 | R1# conf t R1(config)# license boot module c2900 technology-package securityk9 ㆍㆍㆍ 중간 생략 ㆍㆍㆍ (라이선스에 대한 주의 사항) ACCEPT? [yes/no]: yes (라이선스에 동의하였으므로 발급됨) R1(config)# exit R1# write | (시험 버전은 60일간 유효함; 실제 장비일 경우 사용하려면 구매해야 함; 그러나 패킷트레이서에서는 이러한 내용들을 적용 받지 않음)
(라이선스를 계속 적용하려면 반드시 write로 저장할 것) |
| UC(Unified Communication) 라이선스 활성화 | R1#conf t R1(config)# license boot module c2900 technology-package uck9 ㆍㆍㆍ 중간 생략 ㆍㆍㆍ ACCEPT? [yes/no]: yes (라이선스에 동의하였으므로 발급됨) R1(config)#exit R1# write R1# reload (설정하고 라우터를 재부팅해야 함) | 라이센스 활성화 확인
show run show version R1(config)# ? (명령어가 추가 되었다)
|
| 암호화 (encryption) | R1#sh run enable secret 5 $1$mERr$9cTjUTEqNGurQiFU.ZeCil enable password cisco
R1(config)# service password-encryption R1(config)# exit R1#sh run enable secret 5 $1$mERr$9cTjUTEqNGurQiFU.ZeCil enable password 7 0822455D0A16
| cisco -> 암호화 되었다. |
| 암호 초기화 | (라우터를 클릭 후 physical 탭에서 라우터 전원을 껐다 켬) Ctrl+Break (CLI 모드에서 *******가 끝나기 전에….) Command “boot” aborted due to user interrupt rommon1> confreg 0x2142 (startup-config를 읽지 못하게) rommon2> reset (재부팅) rommon2> show version (아래 설정값이 0x2142로 변경) | 전원을 켠 후 CLI탭으로 이동하여 이미지 압축해제 메시지인 ‘*****’가 끝나기 전에 ‘Ctrl+Break’ 키를 눌러 롬몬(rommon) 모드로 들어 감 |
| 암호만 복구 | R1# copy startup-config running-config R1# conf t R1(config)# enable password cisco (새로운 암호 설정) R1(config)# enable secret class (새로운 암호 설정) R1(config)# config-register 0x2102 R1(config)# exit R1# copy running-config startup-config (NVRAM에 저장) R1# reload | - 0x2142 ◀ Flash booting startup-config 로딩안됨 - 0x2102 ◀ Flash booting startup-config 로딩됨 - 0x2141 ◀ Rom booting |
| show | R1# show flash R1# show history | 플래시 메모리에 대한 정보 관리자 모드에서 이전에 입력했던 명령어들 |