1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| confreg 0x2142 # reg 값 복구 모드로 변경
reset # 장비 재부팅
enable
conf t
config-register 0x2102
end
copy start run
conf t
no enable password/secret
lint console 0
no login local # 비번 없애기 적용
no enable password # 비번 없애기
end
copy run start # 불러온 내용 수정 후 다시 저장
# 재부팅
Router hostname 및 password 설정
Router hostname 설정class="highlight"> 1
2
| # global mode
hostname {HOST_NAME}
Router 관리자 비밀번호 설정class="highlight"> 1
2
3
4
| # global mode
enable password {PASSWORD}
enable secret {PASSWORD}
service password-encryption # 모두 암호화
Router 관리자 비밀번호 해제class="highlight"> 1
2
| # global mode
no enable password-encryption
저장 명령어class="highlight"> 1
2
3
| # privilege mode
copy running-config startup-config # 휘발성 메모리를 비휘발성 메모리에 복사
reload # 재부팅해서 확인
Router IP 설정
ip 설정class="highlight"> 1
2
3
4
5
6
7
8
9
| # user mode
enable
# privilege mode
conf t
# global mode
int fa0/0 # ip 설정 할 인터페이스에 진입
# config-interface
ip add {IP} {NETMASK} # ip와 netmask 입력
no shut # 인터페이스 활성화
ip 자동 할당class="highlight"> 1
2
3
4
5
6
7
| # user mode
enable
# privilege mode
conf t
# global mode
int fa0/0 # ip 설정 할 인터페이스에 진입
ip add dhcp # ip 자동 할당
ip 설정 삭제class="highlight"> 1
2
3
4
5
6
7
8
9
| # user mode
enable
# privilege mode
conf t
# global mode
int fa0/0 # ip 삭제 할 인터페이스에 진입
# config-interface
no ip add # ip 삭제
no shut # 인터페이스 활성화
class="highlight"> 1
2
3
4
5
6
7
8
| # user mode
enable
# privilege mode
conf t
# global mode
int fa0/0 # ip 삭제할 인터페이스에 진입
# config-interface
shut # 비활성화
Router Console 설정
CDP(Cisco Discovery Protocol) 명령어- CDP
- 시스코 장비들이 동일 링크 상에 있는 다른 장비 등을 찾는 시스코 독점 프로토콜 (표준 프로토콜 : LLDP)
class="highlight"> 1
2
3
| # privilege mode
show cdp neighbors # 인접해있는 장비 확인 가능
show cdp entry * # cisco 장비의 인접해있는 장비를 자세히 보여줌
Console(장비) 설정- console mode 진입
class="highlight"> 1
2
| # global mode
line console 0
- 비밀번호 설정 여부 확인
class="highlight"> 1
2
| # line configuration mode
login
- Password 인증
class="highlight"> 1
2
3
| # line configuration mode
password {PASSWORD} # console 접속시 비밀번호 설정
login # 비밀번호 설정 적용
- Local 인증
class="highlight"> 1
2
3
4
| # global mode
username {USER_NAME} password {PASSWORD} # ID와 PW 설정
# line configuration mode
login local # config 모드에서 설정한 ID/PW 설정 적용
- 미인증
class="highlight"> 1
2
3
| # line configuration mode
no password
no login
- 오랜시간 자리를 비워도 세션이 끊기지 않도록 설정(분 초) ```shell # line configuration mode exec-timeout 0 0
- 명령어 입력 도중에 시스템 메시지 표시하지 않도록 설정
class="highlight"> 1
2
| # line configuration mode
logging synchronous
Telnet 설정- telnet 같은 서비스가 접속할 수 있는 가상포트 0~4(5개) 설정
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|