[PacketTracer 활용] 라우터와 스위치의 기본 설정 실습 #1
[콘솔 접속]
--- System Configuration Dialog ---
Would you like to enter the initial configuration dialog? [yes/no]: no
Press RETURN to get started!
Router>enable
Router#conf t // Router# 특권실행모드
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#exit // Router(config) 전역설정모드
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#exit
Router con0 is now available
Press RETURN to get started.
Router>
* 전역설정모드에서 실행되는 명령어를 특권모드 실행모드에 입력하거나, 특권 실행 모드 명령어를 전역 설정모드에 입력하면 안되는 것이다. 단 명령어 do를 이용하면 실행 가능
[Hostname(장치 이름) 설정]
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1 // 라우터의 이름을 R1
[장치의 암호 설정]
* 콘솔 로그인 시 콘솔 암호(Console Password)
. 콘솔 암호는 CLI 사용자 실행 모드에 접속하기 위한 암호
* 특권 설정 모두 진입 시 필요한 활성화 암호(Enable Password)
. 활성화 암호는 특권 실행 모드에 접속하기 위한 암호
* Telnet 접속 시 필요한 가상 터미널 암호(Telnet Password)
. 원격 접속 시 사용되는 암호
--------------< 콘솔 암호 : Console Password>------------------
R1(config)#line console 0
R1(config-line)#password cisco
R1(config-line)#login
--------------<활성화 암호 : Enable Password>------------------
R1(config)#enable password cisco // 암호가 평문
또는
R1(config)#enable secret cisco // 암호가 암호화됨
* 장치에 입려되는 암호 모두의 저장박식을 MD5로 설정할 수 있음.
R1(config)#enable password-encryption
--------------< 텔넷 암호 : Telnet Password>------------------
R1(config)#line vty 0 ? // IOS에 따라서 지원하는 가상 터미널 수가 다르기 때문에 확인
<1-15> Last Line number
<cr>
R1(config)#line vty 0 15 // 최대 16개의 가상 터미널을 지원함
R1(config-line)#password cisco
R1(config-line)#login
--------------< 설정 내용 확인 및 저장>------------------
R1(config-line)#do show running-config
Building configuration...
Current configuration : 699 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R1
!
!
!
enable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0
enable password cisco
no ip cef
no ipv6 cef
spanning-tree mode pvst
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Vlan1
no ip address
shutdown
!
ip classless
!
ip flow-export version 9
!
line con 0
password cisco
login
!
line aux 0
!
line vty 0 4
password cisco
login
line vty 5 15
password cisco
login
!
!
!
end
:
:
R1#wr // 저장
Building configuration...
[OK]
또는
R1#write memory
Building configuration...
[OK]
R1#
[참고 자료] 정보기기운용기능사 실기시험 완전정복, 유인태, 경희대학교 출판문화원