[KEDUIT] 클라우드 컴퓨팅과 보안솔루션을 활용한 DC 엔지니어 양성교육 - Day81
1. 서론
오늘은 Router와 Switch의 Console에 연결하여 Enable Password를 초기화 하는 법과 IOS를 업데이트 및 백업, 복구하는 방법을 배워보았다.
2. 본론
1. Cisco IOS
1. Router
Configuration register value is a special register that is used to control the booting process. You can check current configuration register value with "show version" command from exec mode.
It is a four characters hexadecimal value, that can be changed from privileged mode.
Default value is 0x2102.
"0x" indicates that the characters that follow are in hexadecimal.
The third character in the configuration register can modify how the router loads the configuration file.
The fourth character in the configuration register is known as the boot field. Changing this value, will change booting process.
Setting of 0x2100 will always boot router in ROMMON mode.
Setting of 0x2101 will always boot router in RXBOOT mode. (Mini IOS in ROM)
Setting of 0x2102 to 0x210F will always load first valid IOS from flash.
values of 2 through F for the fourth character specify other IOS image files in flash.
Router keeps password in startup-config file that is stored in NVRAM.
The setting of 0x2142 causes the router to ignore the startup-config file in NVRAM and proceed without a configuration. Thus the setting of 0x2142 is used for password recovery process of router.
So far in this tutorial we have learned router booting components. In next section we will learn how these components are involved in router booting process.
//Reset Enable Password
Ctrl + Pause -> ROMMON
> confreg 0x2142
> reset
!
# en
# show version
!
# conf t
# enable password cisco
!
# config-register 0x2102
!
# copy r s
!
# reload
//Restore IOS
# show version
System image file is "blabla"
!
# delete flash:/blabla //IOS 날아간 상황 만들기
!
# dir
!
ctrl + pause -> ROMMON
> IP_ADDRESS=192.168.100.254 //자동으로 장비의 첫 인터페이스에 할당
> IP_SUBNET_MASK=255.255.255.0
> DEFAULT_GATEWAY=192.168.100.1
> TFTP_SERVER=192.168.100.1
> TFTP_FILE=[파일명]
> tftpdnld
//공장초기화
# erase startup-config
# reload
2. Switch
//암호 초기화
: flash_init
: dir flash:/ //config.text파일이 없으면 암호설정 안된것
: cat >> flash:/config.text
: rename flash:/config.text flash:/backup
: boot
> en
# copy backup config.text
!
# conf t
# enable password cisco
# dir flash:/
# copy r s
3. 결론
오늘은 중요하지만 되도록 쓸일이 없었으면 하는 부분들에 대해 배워보았다.
4. 참고자료
1. Cisco Docs
- ARP
- CDP / VLAN
- Frame Relay
- Static Routing
- VLAN
- VTP
- Routed Port
- AD
- Route Selection
- FHRP
- HSRP
- DHCP
- DNS
- STP
- NAT
- EtherChannel
- DTP
- RIP
- NTP
- Offset List
- Password Encryption
- ACL
- CAR Attack
- Broadcast
- Port Assignments
- IPv6 Static Routing
- HSRP for IPv6
- Clock Rate
- DHCPv6 Guard
- EIGRP
- Express Forwarding
- Routing and Switching
- Load Balancing
- Ping, Traceroute
- Load Balancing
- Fast Switching
- CEF
- DNS
- SSH
- Regular Expression
- OSPF
- EIGRP’s SIA
- NSSA
- AAA
- Understand the Zone-Based Policy Firewall Design
- The Cisco SD-WAN Solution
- Understand the Zone-Based Policy Firewall Design
- ASA cli
- Defining Strategies to Protect Against TCP SYN Denial of Service Attacks
- Configuring Firewall TCP SYN Cookie
- ASA 방화벽에서 NAT 및 ACL 구성
- Configuring Network Object NAT
- Configuring Twice NAT
- 모든 라우터의 컨피그레이션 레지스터 사용 이해
- Storing Data In USB
2. Linux
- rhel9’s docs
- Linux Directory Structure
- File Types in Linux
- fstab
- Vim Cheat Sheet
- Protecting GRUB with a password
- SELinux
- DNS
- Samba as a server
- DHCP
- NFS
- SSH
- VNC
- heredoc
- docker vs podman + buildqh + skopeo
- Docker란?
- Linux 컨테이너란?
- Container vs VM
- 컨테이너화란?
- container
- 컨테이너 오케스트레이션이란?
- 쿠버네티스란?
- 쿠버네티스 아키텍처 소개
- 쿠버네티스 기본 사항 학습
- 쿠버네티스 클러스터란?
- Ansible과 Puppet: 알아야 할 사항
3. Docker / k8s
- nextcloud
- cadvisor
- Dangling Image
- Swarm
- Install Docker Engine on Ubuntu
- Install kubdadm
- container-runtimes
- kubectl cheat sheet
4. Web
- HTML’s Elements
- Emmet
- JavaScript
- Anchor Tag
- Post, Get
- Block, Inline Elements
- Semantic Web
- Semantic Elements
- CSS
- Viewport_meta_tag
- Media_queries
- JavaScript
5. DB
클라우드 엔지니어를 꿈꾸며 공부를 시작한 초보 엔지니어입니다. 틀린점 또는 조언해주실 부분이 있으시면 친절하게 댓글 부탁드립니다. 방문해 주셔서 감사합니다 :)
댓글남기기