설정 명령어
enable/en | 관리자 모드로 --> Router# |
configure terminal/conf t | 관리자 모드에서 설정모드로 --> Router(config)# |
hostname 이름 | 호스트 이름 명명 |
login | 로그인 명령 |
exit | 이전모드로 돌아감 |
end | 무조건 관리자 모드로 돌아감 |
line console 0 | 콘솔라인 모드 전환 명령 |
line vty | 텔넷 등 가상 터미널 전환 명령 |
enable password 암호명 | 관리자모드로 엑세스할 때 암호 설정(암호화되지 않고 저장) |
enable secret 암호명 | 관리자모드로 엑세스할 때 암호 설정(암호화되어 저장) |
erase startup-config | 라우터 설정 명령을 지우고 초기화 |
clock set 시간 | 장비의 시간을 설정할 때 사용 |
exec-timeout 시간 | 콘솔 종료대기 시간변경(exec-timeout 0 0: 종료시간 없음) |
copy r s | 라우터 셋팅 내용을 NVRAM에 저장 |
확인 명령어
show clock | 라우터에 설정된 시간을 확인 |
show version | IOS의 버전정보 확인과 S/W, H/W정보 확인 |
show startup-config | NVRAM 정보 확인 |
show config | 라우터 장비설정의 저장내용을 확인하는 명령 |
show run | 설정된 인터페이스 확인 |
show ip interface brief | 인터페이스 정보 확인 |
show history | 사용했던 전체 명령어 확인 |
show ip route | 라우팅 테이블 확인 |
show flash | 플래쉬 확인 |
show process |
프로세스 정보확인 |
1. 라우터의 소프트웨어 버전, 인터페이스 종류, 설정되어 있는 시간 확인
Router>en
Router#show version
(중략)
Router#show clock
*0:0:28.384 UTC ? 3 1 1993
--> 관리자 모드에서 명령어 실행, conf t 하지 않는다는 것 주의
2. 라우터의 호스트명 변경작업
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R-1
R-1(config)#
3. 암호설정
(1) 콘솔 패스워드 설정
R-1(config)#line console 0
R-1(config-line)#login (패스워드 설정이 안되어 있으므로 로그인 안됨)
% Login disabled on line 0, until 'password' is set
R-1(config-line)#password Expassword
R-1(config-line)#login
R-1(config-line)#exit
R-1(config)#exit
(2) 텔넷 패스워드 설정
R-1(config)#line vty 0 4
R-1(config-line)#password Expassword
R-1(config-line)#login
(3) 관리자 모드(설정)에서 패스워드 설정1(암호화X)
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#enable password cisco
Router(config)#exit
+설정확인
Router#show run
(중략)
no service password-encryption
!
hostname Router
!
!
!
enable password cisco
(4) 관리자 모드(설정)에서 패스워드 설정2(암호화O)
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#enable secret cisco
Router(config)#exit
+설정확인
Router#show run
(중략)
no service password-encryption
!
hostname Router
!
!
!
enable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0
(4) 패스워드 암호화
R-1(config)#service password-encryption
R-1(config)#line console 0
R-1(config-line)#password hello
R-1(config-line)#login
R-1(config-line)#exit
R-1(config)#exit
+설정확인
service password-encryption
!
hostname R-1
!
!
!
enable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0
4. 배너설정
R-1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R-1(config)#banner motd 'Just registered user Access'
5. 인터페이스 설정, 활성화, ip 할당
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface fastethernet 0/0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
Router(config-if)#ip address 192.168.3.254 255.255.255.0
Router(config-if)#exit
Router(config)#exit
-> ip 할당할 때 인터페이스 모드인지 꼭 확인하기
6. 대역폭, 클럭 동기화
Router(config-if)#bandwidth 64
Router(config-if)#clock rate 64000
주의! bandwidth의 기본단위는 k이므로 000 안붙이고, clock rates는 000 붙인다.
+설정확인
Router#show interface
7. 라우터 경로 설정
(1) 정적경로 설정
형식 1. ip route [목적지 네트워크(ip주소)] [서브넷 마스크] [interface ip 주소]
형식 2. ip route [목적지 네트워크(ip주소)] [서브넷 마스크] [interface 이름]
예) ip route 192.130.12.0 255.255.255.0 s0
--> s0 인터페이스 경유하여 192.130.12.0 네트워크 연결하는 경로 설정
(2) 정적경로 확인
Route#show ip route
8. Description 설정
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface fa 0/0
Router(config-if)#description ICQA
Router(config-if)#exit
Router(config)#exit
+설정확인
Router#show run
(중략)
interface FastEthernet0/0
description ICQA
no ip address
duplex auto
speed auto
shutdown
!
9. 기본 게이트웨이 설정
Router(config)#ip default-gateway 192.168.0.10
10. 콘솔/텔넷 자동 종료 설정
Router(config)#line vty 0 4
Router(config-line)#exec-timeout 05 50
Router(config-line)#login
11. 도메인 네임 설정
Router(config)#ip domain-name AAA
12. DHCP 네트워크 설정
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip dhcp pool TEST
Router(dhcp-config)#network 192.168.1.0 255.255.255.0
Router(dhcp-config)#default-router 192.168.1.254
Router(dhcp-config)#exit
Router(config)#ip dhcp excluded-address 192.168.1.250 192.168.1.255
Router(config)#exit
Router#copy r s
아이비구육닷컴, 정훈희 저, 네트워크 관리사 2급 실기 자격증 종합 과정 참고
'What I Learned > Network' 카테고리의 다른 글
네트워크 관리사 2급 실기 정리 - 단답형 (0) | 2019.06.30 |
---|---|
네트워크 관리사 2급 실기 정리 - 랜 케이블링(LAN Cabling) (0) | 2019.06.27 |
네트워크 관리사 2급 실기 정리 - 리눅스(Linux) (0) | 2019.06.26 |
OSI 7 Layer & TCP/IP 4 Layer (OSI 7 계층 & TCP/IP 4 계층) (0) | 2019.05.08 |
네트워크 관리사 2급 필기 - 2014년도 2회 1과목(TCP/IP) (0) | 2019.05.07 |