컴퓨터/네트워크

라우터 배우기01 - 시작

하늘치 2008. 1. 24. 10:58
반응형
1. 라우터 설정 삭제하기
- erase startup-config (또는 erase start)
- reload
Router(boot)#erase startup-config
[OK]
Router(boot)#reload

System configuration has been modified. Save? [yes/no]:
% Please answer 'yes' or 'no'.

System configuration has been modified. Save? [yes/no]: no
Proceed with reload? [confirm]

.
.
.




2. 라우터 호스트 이름 변경.
Router>enable
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#host R54
R54(config)#



3. 텔넷 접속시 환영 메시지. ( banner motd #환영메시지(only english)# )
R54(config)#banner motd #Welcome to the R54-Networld!!!#
R54(config)#

R54(config)#exit
R54#
%SYS-5-CONFIG_I: Configured from console by console
R54#exit

-> exit 하면 재시작되면서 입력한 인사말이 나옴, 아래처럼...
---------------------------------------------------
R54 con0 is now available

Press RETURN to get started.

Welcome to the R54-Networld!!!
R54>
---------------------------------------------------



4. 인터페이스 설정
Welcome to the R54-Networld!!!
R54>en
R54#conf t
Enter configuration commands, one per line.  End with CNTL/Z.

R54(config)#interface serial 0
-> 만약에 안되면 interface serial 0/0 으로 해준다.

R54(config-if)#
R54(config)#interface serial 0
R54(config-if)#description ###To Seoul From Busan###
-> 설명, 주석을 다는 것.

* 설정 후, end 로 나가준다!
R54(config-if)#description ###To Seoul From Busan###
R54(config-if)#end
R54#
%SYS-5-CONFIG_I: Configured from console by console
R54#
R54#



5. 지금까지 설정한 것 확인하기 - show running-config
R54#show running-config

Building configuration...

Current configuration:
!
version 11.2
no service password-encryption
no service udp-small-servers
no service tcp-small-servers
!
hostname R54
!
!
!
interface Ethernet0
 no ip address
 shutdown
!
interface Serial0
 description ###To Seoul From Busan###
 no ip address
 shutdown
 no fair-queue
!
interface Serial1
 no ip address
 shutdown
!
interface BRI0
 no ip address
 shutdown
!
no ip classless
!
banner motd ^CWelcome to the R54-Networld!!!^C
!
line con 0
line aux 0
line vty 0 4
 login
!
end

R54#



6. 패스워드 설정하기
R54#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R54(config)#
R54(config)#line console 0
R54(config-line)#pass
R54(config-line)#password cisco
R54(config-line)#login
R54(config-line)#end
R54#
%SYS-5-CONFIG_I: Configured from console by console
R54#



7. 설정한 password 부분 다시 확인.
R54#show running-config
Building configuration...

Current configuration:
!
version 11.2
no service password-encryption
no service udp-small-servers
no service tcp-small-servers
!
hostname R54
!
!
!
interface Ethernet0
 no ip address
 shutdown
!
interface Serial0
 description ###To Seoul From Busan###
 no ip address
 shutdown
 no fair-queue
!
interface Serial1
 no ip address
 shutdown
!
interface BRI0
 no ip address
 shutdown
!
no ip classless
!
banner motd ^CWelcome to the R54-Networld!!!^C
!
line con 0
 password cisco
 login
line aux 0
line vty 0 4
 login
!
end

R54#



8. 다시 나가서 암호 설정한 것 확인. - 이 때 패스워드는 입력내용이 보이지 않는다.
R54#exit

R54 con0 is now available


Press RETURN to get started.


Welcome to the R54-Networld!!!

User Access Verification

Password:
R54>

그런데, show running-config 를 입력하면 누구나 암호를 바로 확인할 수 있다.
이걸 막기 위해...

R54#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R54(config)#
R54(config)#enable secret cisco
R54(config)#end
R54#
%SYS-5-CONFIG_I: Configured from console by console
R54#



9. 다시 확인.
R54#show running-config
Building configuration...

Current configuration:
!
version 11.2
no service password-encryption
no service udp-small-servers
no service tcp-small-servers
!
hostname R54
!
enable secret 5 $1$mw30$x4tCGHa2dhCX3vs.Pxznt.
!
!
interface Ethernet0
 no ip address
 shutdown
!
interface Serial0
 description ###To Seoul From Busan###
 no ip address
 shutdown
 no fair-queue
!
interface Serial1
 no ip address
 shutdown
!
interface BRI0
 no ip address
 shutdown
!
no ip classless
!
banner motd ^CWelcome to the R54-Networld!!!^C
!
line con 0
 password cisco
 login
line aux 0
line vty 0 4
 login
!
end

R54#



10. 비번 암호화는 되었지만(첫번째 붉은색), 여전히 보인다(두번째 붉은색);;
암튼, 이 때 no password cisco 를 친다..
R54#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R54(config)#line console 0
R54(config-line)#no password cisco
R54(config-line)#login
R54(config-line)#end
R54#
%SYS-5-CONFIG_I: Configured from console by console
R54#



11.
R54#show running-config
Building configuration...

Current configuration:
!
version 11.2
no service password-encryption
no service udp-small-servers
no service tcp-small-servers
!
hostname R54
!
enable secret 5 $1$mw30$x4tCGHa2dhCX3vs.Pxznt.
!
!
interface Ethernet0
 no ip address
 shutdown
!
interface Serial0
 description ###To Seoul From Busan###
 no ip address
 shutdown
 no fair-queue
!
interface Serial1
 no ip address
 shutdown
!
interface BRI0
 no ip address
 shutdown
!
no ip classless
!
banner motd ^CWelcome to the R54-Networld!!!^C
!
line con 0
*** 사라진 password 자리 ***
 login
line aux 0
line vty 0 4
 login
!
end

R54#




12. 지금까지 한 것, 저장하기.
R54#copy running-config startup-config
Building configuration...
[OK]
R54#



반응형