Router
IP Setting
Router> ← 사용자모드 라우터 콘솔 화면 Router> enable ← 사용자모드에서 특권모드로 변경하는 명령어 Router# ← 라우터 특권모드 화면 Router# configure termial (conf t) ← Global config 모드로 변경하는 명령어 Router(config)# interface serial 0 ← 하위 config 모드로 변경하는 명령어 Router(config-if)# ← 하위 I/F(serial0) config 모드 화면 Router(config-if)# no ip address ← 기존 ip address를 삭제하는 명령어 Router(config-if)# ip address 172.16.4.2 255.255.0.0 ← 해당 인터페이스에 IP설정 명령어 Router(config-if)# CTRL + Z 또는 exit ← config 모드에서 빠져나올 Router# disable ← 특권모드에서 사용자모드로 변경하는 명령어 Router> ← 사용자모드 라우터 콘솔 화면
모드 | 설명 |
---|---|
User 모드 | Router> 로 표시됨 제한된 명령어만을 이용할 수 있음 |
Previledged 모드 | Router# 로 표시됨 모든 명령이용, config file 조정 가능 |
Global configuration 모드 | Router(config)# 로 표시됨 라우터 전체에 영향 요소의 조정 |
하위 configuration 모드 | Router(config-??)# 로 표시됨 영역별 환경 설정 |
Setup 모드 | 초기 환경설정시 사용 Previledged mode에서 setup 명령 |
RXBOOT 모드 | 비밀번호를 잃어버렸거나 Flash의 OS가 지워지는 등의 경우 이용 |
암호설정
Router> ← 사용자모드 라우터 콘솔 화면 Router> enable ← 사용자모드에서 특권모드로 변경하는 명령어 Router# configure termial (conf t) ← Global config 모드로 변경하는 명령어 Router(config)# line console 0 ← 하위 config모드(Console)로 변경하는 명령 Router(config-line)# password [password] ← Console 암호설정 명령 Router(config-line)# login Router(config)# enable password [password] ← 특권모드 암호설정 명령 Router(config)# username admin2 password [password] ← "admin2" 의계정 암호 설정