[KEDUIT] 클라우드 컴퓨팅과 보안솔루션을 활용한 DC 엔지니어 양성교육 - Day41
1. 서론
오늘은 EIGRP에서 Default-Route 구성과 SIA, OSPF 설정에 대하여 배워보았다.
2. 본론
1. Front-End
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML TEXT Basic Page</title>
</head>
<body>
<p id="top"></p>
<!--anchor 태그를 이용한 hyperlink 구성, anchor는 inline element이기에 <br>로 구분해주는게 가시성이 좋음-->
<a href="https://keduit.co.kr">한국정보교육원</a><br>
<a href="https://naver.com">네이버</a><br>
<a href="https://daum.net" target="_blank">다음</a><br>
<!--anchor 태그와 id를 이용해 페이지내 이동을 위한 hyperlink 구성-->
<a href="#alpha">Alpha 부분</a>
<a href="#beta">Beta 부분</a>
<a href="#gamma">Gamma 부분</a>
<!--hr(horizontal rule)-->
<hr>
<!--Head에 id 부여-->
<!--b for bold, 굵게 표시-->
<h1 id="alpha"><b>Alpha</b></h1>
<p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Expedita vel ut ipsam dolor rerum sequi incidunt odio similique consectetur, deserunt culpa eos sapiente ipsum, omnis magnam. Qui quae commodi perferendis?
Animi quo velit quidem</p>
<!--i for italic 이탤릭체 적용-->
<h1 id="beta"><i>Beta</i></h1>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Asperiores minus recusandae reiciendis facere consequuntur ullam blanditiis, architecto excepturi iusto sit dolorem laboriosam voluptatem fugit magnam necessitatibus delectus deleniti suscipit repudiandae.
Numquam</p>
<h1 id="gamma">Gamma</h1>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt obcaecati nobis quas? Alias velit enim fugit sapiente. Hic, pariatur fugiat maxime iste, deleniti et perspiciatis non iure molestiae placeat vero?
Minima fugit odit eaque.</p>
<!--i for inserted, 밑줄 적용-->
<h1><ins>INS</ins></h1>
<!--del for deleted, 취소선 적용-->
<h1><del>DEL</del></h1>
<!--small, 덧붙이는 글이나, 저작권과 법률 표기 등의 작은 텍스트를 나타냄-->
<h1><small>SMALL</small></h1>
<!--sub for subscript text, 아래첨자-->
<h1>SUB<sub>sub</sub></h1>
<!--sup for superscipt text, 윗첨자-->
<h1>SUP<sup>sup</sup></h1>
<a href="#top">TOP</a>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<!--ul for unordered list-->
<ul>
<li>사과</li>
<li>바나나</li>
<li>오렌지</li>
</ul>
<!--ol for ordered list-->
<ol>
<li>사과</li>
<li>바나나</li>
<li>오렌지</li>
</ol>
<!--ul with ol-->
<ul>
<li>
<b>과일</b>
<ol>
<li>사과</li>
<li>바나나</li>
<li>오렌지</li>
</ol>
</li>
<li>
<b>채소</b>
<ol>
<li>토마토</li>
<li>상추</li>
<li>감자</li>
</ol>
</li>
</ul>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<!--border를 통해 table의 경계선 생성-->
<table border="1">
<!--thead를 통해 row header 설정-->
<thead>
<tr>
<!--th을 쓰면 저절로 bold-->
<th></th>
<th>월</th>
<th>화</th>
<th>수</th>
<th>목</th>
<th>금</th>
</tr>
</thead>
<tbody>
<tr>
<td>1교시</td>
<td>국</td>
<td>수</td>
<td>사</td>
<td>과</td>
<td>영</td>
</tr>
<tr>
<td>2교시</td>
<td>국</td>
<td>수</td>
<td>사</td>
<td>과</td>
<td>영</td>
</tr>
<tr>
<td>3교시</td>
<td>국</td>
<td>수</td>
<td>사</td>
<td>과</td>
<td>영</td>
</tr>
</tbody>
</table>
<table border="1">
<!--thead를 통해 row header 설정-->
<thead>
<tr>
<!--th을 쓰면 저절로 bold-->
<th></th>
<th>월</th>
<th>화</th>
<th>수</th>
<th>목</th>
<th>금</th>
</tr>
</thead>
<tbody>
<tr>
<td>1교시</td>
<td>국</td>
<td>수</td>
<td>사</td>
<!--같은행 셀 병합-->
<td colspan="2">과</td>
</tr>
<tr>
<td>2교시</td>
<td>국</td>
<!--같은열 셀 병합-->
<td rowspan="2">수</td>
<td>사</td>
<td>과</td>
<td>영</td>
</tr>
<tr>
<td>3교시</td>
<td>국</td>
<td>사</td>
<td>과</td>
<td>영</td>
</tr>
</tbody>
</table>
<!--table>(thead>tr>th*2)(tbody>tr*8>td*2) 를통해 아래와 같은 형태의 table 간단하게 생성 가능-->
<table border="1">
<!--thead를 통해 row header 설정-->
<thead>
<tr>
<th colspan="2">지역별 홍차</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="3">중국</td>
<td>정산소종</td>
</tr>
<tr>
<td>기문</td>
</tr>
<tr>
<td>운남</td>
</tr>
<td rowspan="5">인도 및 스리랑카</td>
<tr>
<td>아삼</td>
</tr>
<tr>
<td>실론</td>
</tr>
<tr>
<td>다질링</td>
</tr>
<tr>
<td>닐기리</td>
</tr>
</tbody>
</table>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<img
src="image.png"
alt="no image"
width="500"
/>
<img src="nothing" alt="no image exist" />
<!--타입을 아래처럼 여러개 지정해주면, 위에서부터 읽어나가면서 해당 확장자를 지원하지 않으면 아래쪽 타입으로 넘어가서 실행-->
<auto controls>
<source src="Kalimba.ogg" type="audio/mp3" />
<source src="Kalimba.ogg" type="audio/ogg" />
</auto>
<!--poster를 통해 썸네일 지정 가능-->
<video
width="400"
playsinline
muted
controls
autoplay
loop
poster="wildlife.png"
>
<source src="Wildlife.mp4" type="video/mp4" />
<source src="Wildlife.webm" type="video/webm" />
</video>
<!--poster를 통해 썸네일 지정 가능-->
<video
width="400"
controls
poster="http://placehold.it/640x360"
>
<source src="Wildlife.mp4" type="video/mp4" />
<source src="Wildlife.webm" type="video/webm" />
</video>
</body>
</html>
2. Cisco IOS
2-1. EIGRP
1. Common
# conf t
# no ip domain look
!
# line c 0
# logging sync
!
# int s1/0
# no sh
# clock rate 64000
# encap fram
# no fram inverse
2. Mapping
//R1
# int lo0
# ip add 4.4.1.1 255.255.255.0
!
# int s1/0
# ip add 4.4.12.1 255.255.255.0
# fram map ip 4.4.12.2 102 br
//R2
# int lo0
# ip add 4.4.2.2 255.255.255.0
!
# int s1/0.12 m
# ip add 4.4.12.2 255.255.255.0
# fram map ip 4.4.12.1 201 br
!
# int s1/0.23 m
# ip add 4.4.23.2 255.255.255.0
# fram map ip 4.4.23.3 203 br
//R3
# int lo0
# ip add 4.4.3.3 255.255.255.0
!
# int s1/0.23 m
# ip add 4.4.23.3 255.255.255.0
# fram map ip 4.4.23.2 302 br
!
# int s1/0.34 p
# ip add 4.4.34.3 255.255.255.0
# fram inter 304
//R4
# int lo0
# ip add 4.4.4.4 255.255.255.0
!
# int s1/0.34 p
# ip add 4.4.34.4 255.255.255.0
# fram inter 403
3. EIGRP
//R1
# rotuer eigrp 4
# eigrp router-id 4.4.1.1
# network 4.4.1.1 0.0.0.0
# network 4.4.12.1 0.0.0.0
# no auto
# pass lo0
//R2
# rotuer eigrp 4
# eigrp router-id 4.4.2.2
# network 4.4.2.2 0.0.0.0
# network 4.4.12.2 0.0.0.0
# network 4.4.23.2 0.0.0.0
# no auto
# pass lo0
//R3
# rotuer eigrp 4
# eigrp router-id 4.4.3.3
# network 4.4.3.3 0.0.0.0
# network 4.4.23.3 0.0.0.0
# network 4.4.34.3 0.0.0.0
# no auto
# pass lo0
//R4
# rotuer eigrp 4
# eigrp router-id 4.4.4.4
# network 4.4.4.4 0.0.0.0
# network 4.4.34.4 0.0.0.0
# no auto
# pass lo0
4. Add Networks / Summary
//R2
# int lo5
# ip add 5.5.0.1 255.255.255.0
# ip add 5.5.1.1 255.255.255.0 sec
# ip add 5.5.2.1 255.255.255.0 sec
# ip add 5.5.3.1 255.255.255.0 sec
!
# router eigrp 4
# network 5.5.0.0 0.0.3.255
!
# int s1/0.12
# ip summary-address eigrp 4 5.5.0.0 255.255.252.0 //ip route를 통해 5.5.0.0/22 to null0(AD값 5)가 생긴것 확인가능(루프방지)
!
# int s1/0.23
# ip summary-address eigrp 4 0.0.0.0 0.0.0.0
!
# no int lo5
!
# router eigrp 4
# no network 5.5.0.0 0.0.3.255
5. 축약 문제점 확인
//R1
# int s1/0
# ip summary-address eigrp 4 0.0.0.0 0.0.0.0
//R2
# int s1/0.23
# ip summary-address eigrp 4 0.0.0.0 0.0.0.0
//R3
# int s1/0.34
# ip summary-address eigrp 4 0.0.0.0 0.0.0.0
//R4
# int s1/0.34
# ip summary-address eigrp 4 0.0.0.0 0.0.0.0
//위의 설정을 통해 summary 해주는 해당 라우터에는 AD값 5인 루트가 남고, 받는 라우터에는 AD값 90으로 받는다. 이에 따라 생긴 문제점 확인
6. 축약 문제점 수정
//R2
# int s1/0.23
# no ip summary-address eigrp 4 0.0.0.0 0.0.0.0
# ip summary-address eigrp 4 0.0.0.0 0.0.0.0 100
//R3
# int s1/0.34
# no ip summary-address eigrp 4 0.0.0.0 0.0.0.0
# ip summary-address eigrp 4 0.0.0.0 0.0.0.0 100
7. Debug EIGRP's update
//R1
# int lo0
# sh
!
# debug eigrp packets update
!
# int lo0
# no sh
8. Debug EIGRP's query
//successsor에 문제 + feasible successor가 없을 때
# debug eigrp packets query
!
# int lo0
# sh
9. Debug EIGRP's reply
# int lo0
# no sh
!
# debug eigrp packets reply
!
# int lo0
# sh
10. SIA(Stuck In Active)
//SIA 상태는 EIGRP 라우터가 할당된 시간(약 3분) 내에 하나 이상의 네이버로부터 쿼리에 대한 응답을 받지 못했음을 의미
//R1
# ip access-list extended NO-EIGRP
# deny eigrp host 4.4.12.2 any
# permit ip any any
!
# int s1/0
# ip access-group NO-EIGRP in
!
# debug eigrp packets query reply
2-2. OSPF
1. Common
# conf t
# no ip domain look
!
# line c 0
# logging sync
!
# int s1/0
# no sh
# clock rate 64000
# encap fram
# no fram inverse
2. Mapping
//R1
# int lo0
# ip add 4.4.1.1 255.255.255.0
!
# int s1/0
# ip add 4.4.12.1 255.255.255.0
# fram map ip 4.4.12.2 102 br
//R2
# int lo0
# ip add 4.4.2.2 255.255.255.0
!
# int s1/0.12 m
# ip add 4.4.12.2 255.255.255.0
# fram map ip 4.4.12.1 201 br
!
# int s1/0.23 m
# ip add 4.4.23.2 255.255.255.0
# fram map ip 4.4.23.3 203 br
//R3
# int lo0
# ip add 4.4.3.3 255.255.255.0
!
# int s1/0.23 m
# ip add 4.4.23.3 255.255.255.0
# fram map ip 4.4.23.2 302 br
!
# int s1/0.34 p
# ip add 4.4.34.3 255.255.255.0
# fram inter 304
//R4
# int lo0
# ip add 4.4.4.4 255.255.255.0
!
# int s1/0.34 p
# ip add 4.4.34.4 255.255.255.0
# fram inter 403
3. OSPF
//R1
# router ospf 4
# router-id 4.4.1.1
# network 4.4.1.1 0.0.0.0 area 0
# network 4.4.12.1 0.0.0.0 area 0
//R2
# router ospf 4
# router-id 4.4.2.2
# network 4.4.2.2 0.0.0.0 area 0
# network 4.4.12.2 0.0.0.0 area 0
# network 4.4.23.2 0.0.0.0 area 0
//R3
# router ospf 4
# router-id 4.4.3.3
# network 4.4.3.3 0.0.0.0 area 0
# network 4.4.12.3 0.0.0.0 area 0
# network 4.4.23.3 0.0.0.0 area 0
//R4
# router ospf 4
# router-id 4.4.4.4
# network 4.4.4.4 0.0.0.0 area 0
# network 4.4.23.4 0.0.0.0 area 0
3-1. Interface type에 따라 neighbor 구성 안됨 확인
//R1
# sh ip ospf int s1/0 //verify NBMA
//R2
# sh ip ospf int s1/0.12
3-2. neighbor troubleshooting
//R1
# router ospf 4
# neighbor 4.4.12.2 //네이버 수동설정. 한쪽에서만 해도 가능
# sh ip ospf nei
//R2
# int s1/0.23
# ip ospf network point-to-multi //위 사진에 따라 네이버 자동설정을 위해 네트워크 타입 변경
//R3
# int s1/0.23
# ip ospf network point-to-multi
or
//R1
# int s1/0
# ip ospf network point-to-point
//R2
# int s1/0.12
# ip ospf network point-to-point
# int s1/0.23
# ip ospf network point-to-multi
//R3
# int s1/0.23
# ip ospf network point-to-multi
3-3. DR 선출
//All OSPF routers continue to multicast HELLOS to 224.0.0.5, so they can keep track of their neighbors. DROTHERs will send multicast updates to 224.0.0.6 (DR/BDR listen). DR will flood multicast updates to DROthers on 224.0.0.5.
//R1
# int s1/0
# ip ospf network broadcast
# sh ip ospf neighbor
//R2
# int s1/0.12
# ip ospf network broadcast
# sh ip ospf neighbor
# clear ip ospf process
or
//R1
# int s1/0
# ip ospf priority 100 //priority를 설정하지 않으면 RID에 의해 DR 선출
3. 결론
새롭게 배우는 부분들이 재밌지만 영어로된 줄임말이 많아 헷갈린다.
4. 참고자료
1. 자료
- 문웅호, 정보통신망
2. 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
3. Linux
- rhel9’s docs
- Linux Directory Structure
- File Types in Linux
- fstab
- Vim Cheat Sheet
- Protecting GRUB with a password
- SELinux
- DNS
4. Web
클라우드 엔지니어를 꿈꾸며 공부를 시작한 초보 엔지니어입니다. 틀린점 또는 조언해주실 부분이 있으시면 친절하게 댓글 부탁드립니다. 방문해 주셔서 감사합니다 :)
댓글남기기