Net Eng

Routing Protocol - OSPF - 3 본문

Network/실습

Routing Protocol - OSPF - 3

欲心 2024. 6. 14. 03:33

■ Ping test
- 표준 ping의 경우 출발지 주소는 패킷이 나가는 인터페이스를 기준으로 함
- 확장 ping의 경우 출발지 주소를 해당 라우터의 인터페이스 가운데 특정할 수 있으며
packet size, 횟수(repeat count), timeout 시간 등을 조정할 수 았다.

Metric : 경로 비용을 계산하는 요소
Cost : Metric 구성요소로 계산된 경로 비용

Metric 구성요소는 라우팅 프로토콜에 따라 다름
 - RIP : hop
 - OSPF : BW
 - EIGRP : BW, DLY
 => RIP와 OSPF는 동등비용 부하분산 지원
 => EIGRP는 비동등비용 부하분산 지원
 * AD관리거리 외우기
 
■ OSPF 경로 요약
 R1에 10.0.32.0/16 ~ 10..0.35.0/16까지의 네트워크 추가 구성
 ※ OSPF는 ABR 또는 ASBR에서만 경로 요약이 가능

OSPF 3 토폴로지

 

■ IP 설정 & OSPF 설정

 

R1 라우터

conf t
int L0
ip addr 192.168.1.1 255.255.255.0
int s1/0
ip addr 192.168.12.1 255.255.255.0
no sh
router ospf 1
net 192.168.1.0 0.0.0.255 area 1
net 192.168.12.0 0.0.0.255 area 1

 

R2 라우터

conf t
int s1/0
ip addr 192.168.12.2 255.255.255.0
no sh
int s1/1
ip addr 192.168.23.1 255.255.255.0
no sh
int s1/2
ip addr 192.168.24.1 255.255.255.0
no sh
router ospf 1
net 192.168.12.0 0.0.0.255 area 1
net 192.168.23.0 0.0.0.255 area 0
net 192.168.24.0 0.0.0.255 area 0

 

R3 라우터

conf t
int s1/1
ip addr 192.168.23.2 255.255.255.0
no sh
int s1/3
ip addr 192.168.34.1 255.255.255.0
no sh
router ospf 1
net 192.168.23.0 0.0.0.255 area 0
net 192.168.34.0 0.0.0.255 area 0

 

R4 라우터

conf t
int s1/0
ip addr 192.168.45.1 255.255.255.0
no sh
int s1/2
ip addr 192.168.24.2 255.255.255.0
no sh
int s1/3
ip addr 192.168.34.2 255.255.255.0
no sh
router ospf 1
net 192.168.45.0 0.0.0.255 area 2
net 192.168.34.0 0.0.0.255 area 0
net 192.168.24.0 0.0.0.255 area 0

 

R5 라우터

conf t
int L0
ip addr 192.168.5.1 255.255.255.0
int s1/0
ip addr 192.168.45.2 255.255.255.0
no sh
router ospf 1
net 192.168.5.0 0.0.0.255 area 2
net 192.168.45.0 0.0.0.255 area 2

 

→ R2, R3, R4 구간은 순환 구조로 연결된 잉여 경로를 가지고 있는 상태이다. 이런 경우 Metric값을 조정하여 트래픽의 방향을 바꿀 수 있는데,
OSPF는 BW를 기반으로 Metric값을 산정하므로 각 출력 인터페이스의 BW값을 수정하여 라우팅 테이블의 정보를 수정해 본다.

 

- Metric : 경로 비용을 계산하는 요소
- Cost : Metric구성요소로 계산된 경로 비용

Metric구성요소는 라우팅 프로토콜에 따라 다름
- RIP :  hop
- OSPF : BW
- EIGRP : BW, DLY
                 [120/5]

 

 R2, R4에서 양방향 부하 분산 설정

 

R2 라우터

int s1/2
bandwith 500
do sh int s1/2

 

R1 라우터

trace 192.168.5.1

OSPF 3-1 토폴로지

 

■ Default-information originate구성

 

R5오른쪽에 R6추가 구성
추가된 네트워크는 공중망으로 구분.

→ R5는 ASBR의 역활을 수행하는 라우터이며 이 라우터의 뒤쪽에 연결된 라우터에게 기본 경로를 제공하여 통신이 가능하도록 구성

 

R5 라우터

conf t
ip route 0.0.0.0 0.0.0.0 s1/1
int s1/1
ip addr 200.0.1.1 255.255.255.0
no sh

 

R6 라우터

conf t
int s1/1
ip addr 200.0.1.2 255.255.255.0
no sh
exit
ip route 0.0.0.0 0.0.0.0 s1/1

 

R5 라우터

conf t
ip route 0.0.0.0 0.0.0.0 s1/1
int s1/1
ip addr 200.0.1.1 255.255.255.0
no sh

 

R6 라우터

conf t
int s1/1
ip addr 200.0.1.2 255.255.255.0
no sh
exit
ip route 0.0.0.0 0.0.0.0 s1/1

 

R5 라우터

conf t
router ospf 1
default-information originate

 

[참고]

 

OSPF 경로요약 명령어

area 1 range 10.32.0.0 255.252.0.0

 

RIP 인증 과정

conf t
key-chain ccna
key 10
key-string 1234
int s1/0
ip rip authentication key-chain ccna
ip rip authentication mode md5

 

OSPF 인증 과정

conf t
int s1/0
ip ospf authentication message-digest
ip ospf message-digest-key 10 md5 cisco

'Network > 실습' 카테고리의 다른 글

Routing Protocol - EIGRP - (2)  (0) 2024.06.14
Routing Protocol - EIGRP - (1)  (0) 2024.06.14
Routing Protocol - OSPF - 2  (0) 2024.06.14
Routing Protocol - OSPF - 1  (0) 2024.06.14
Routing Protocol - RIP  (0) 2024.06.14