[Network] Maximum Paths

2024. 9. 22. 00:04·Network/Network[이론]

⭐️ Table of Contents

  • Tech 1. Maximum Paths
  • Tech 2. Maximum paths 예제

Tech 1. Maximum Paths

Maximum paths 는 주로 네트워크에서 하나의 출발점에서 도착점까지 갈 수 있는 경로 중 가장 긴 경로를 의미한다.

네트워크에서 라우터에서 라우터를 따라 이동할 때, 출발지에서 도착지까지 거칠 수 있는 최대 거리를 가지는 경로를 의미한다. 

 

Maximum paths의 주요 특징

  • 네트워크에서 시간이나 비용을 최소화하려면, Maximum paths를 통해 길이의 개수를 고칠 수 있다. 

Tech 2. Maximum paths 실습

이번 GNS3에서 실습을 통해 Maximum paths를 설정을 해볼 것이다. 

Step 1. 각 라우터 인터페이스 연결
Step 2. 인터페이스 연결 후, Rip 버전 1을 사용하여 라우팅을 설정

 

R1

R1> enable
R1# conf t
R1(config)# interface f0/0
R1(config-if)# ip address 211.204.10.1 255.255.255.0
R1(config-if)# no shutdown

R1(config-if)# interface s0/0
R1(config-if)# ip address 192.168.10.1 255.255.255.0
R1(config-if)# no shutdown

R1(config-if)# interface s0/1
R1(config-if)# ip address 192.168.11.1 255.255.255.0
R1(config-if)# no shutdown

R1(config-if)# interface s0/2
R1(config-if)# ip address 192.168.12.1 255.255.255.0
R1(config-if)# no shutdown

R1(config-if)# interface s0/3
R1(config-if)# ip address 192.168.13.1 255.255.255.0
R1(config-if)# no shutdown

R1(config-if)# interface s0/4
R1(config-if)# ip address 192.168.14.1 255.255.255.0
R1(config-if)# no shutdown

R1(config-if)# interface s0/5
R1(config-if)# ip address 192.168.15.1 255.255.255.0
R1(config-if)# no shutdown

# RIP 설정
R1(config)# router rip
R1(config-router)# network 211.204.10.0
R1(config-router)# network 192.168.10.0
R1(config-router)# network 192.168.11.0
R1(config-router)# network 192.168.12.0
R1(config-router)# network 192.168.13.0
R1(config-router)# network 192.168.14.0
R1(config-router)# network 192.168.15.0
R1(config-router)# exit

 

R2

R2> enable
R2# configure terminal
R2(config)# interface s0/0
R2(config-if)# ip address 192.168.10.2 255.255.255.0
R2(config-if)# no shutdown

R2(config-if)# interface s0/5
R2(config-if)# ip address 192.168.100.1 255.255.255.0
R2(config-if)# no shutdown

# RIP 설정
R2(config)# router rip
R2(config-router)# version 1
R2(config-router)# network 192.168.10.0
R2(config-router)# network 192.168.100.0
R2(config-router)# exit

 

R3

R3> enable
R3# conf t
R3(config)# interface s0/1
R3(config-if)# ip address 192.168.11.2 255.255.255.0
R3(config-if)# no shutdown

R3(config-if)# interface s0/4
R3(config-if)# ip address 192.168.110.1 255.255.255.0
R3(config-if)# no shutdown

# RIP 설정
R3(config)# router rip
R3(config-router)# version 1
R3(config-router)# network 192.168.11.0
R3(config-router)# network 192.168.110.0
R3(config-router)# exit

 

R4

R4> enable
R4# conf t
R4(config)# interface s0/2
R4(config-if)# ip address 192.168.12.2 255.255.255.0
R4(config-if)# no shutdown

R4(config-if)# interface s0/3
R4(config-if)# ip address 192.168.120.1 255.255.255.0
R4(config-if)# no shutdown

# RIP 설정
R4(config)# router rip
R4(config-router)# version 1
R4(config-router)# network 192.168.12.0
R4(config-router)# network 192.168.120.0
R4(config-router)# exit

 

R5

R5> enable
R5# conf t
R5(config)# interface s0/3
R5(config-if)# ip address 192.168.13.2 255.255.255.0
R5(config-if)# no shutdown

R5(config-if)# interface s0/2
R5(config-if)# ip address 192.168.130.1 255.255.255.0
R5(config-if)# no shutdown

# RIP 설정
R5(config)# router rip
R5(config-router)# version 1
R5(config-router)# network 192.168.13.0
R5(config-router)# network 192.168.130.0
R5(config-router)# exit

 

R6

R6> enable
R6# conf t
R6(config)# interface s0/4
R6(config-if)# ip address 192.168.14.2 255.255.255.0
R6(config-if)# no shutdown

R6(config-if)# interface s0/1
R6(config-if)# ip address 192.168.140.1 255.255.255.0
R6(config-if)# no shutdown

# RIP 설정
R6(config)# router rip
R6(config-router)# version 1
R6(config-router)# network 192.168.14.0
R6(config-router)# network 192.168.140.0
R6(config-router)# exit

 

R7

R7> enable
R7# configure terminal
R7(config)# interface s0/5
R7(config-if)# ip address 192.168.15.2 255.255.255.0
R7(config-if)# no shutdown

R7(config-if)# interface s0/0
R7(config-if)# ip address 192.168.150.1 255.255.255.0
R7(config-if)# no shutdown

# RIP 설정
R7(config)# router rip
R7(config-router)# version 1
R7(config-router)# network 192.168.15.0
R7(config-router)# network 192.168.150.0
R7(config-router)# exit

 

R8

R8> enable
R8# configure terminal
R8(config)# interface f0/0
R8(config-if)# ip address 211.204.100.1 255.255.255.0
R8(config-if)# no shutdown

R8(config-if)# interface s0/0
R8(config-if)# ip address 192.168.10.3 255.255.255.0
R8(config-if)# no shutdown

R8(config-if)# interface s0/1
R8(config-if)# ip address 192.168.11.3 255.255.255.0
R8(config-if)# no shutdown

R8(config-if)# interface s0/2
R8(config-if)# ip address 192.168.12.3 255.255.255.0
R8(config-if)# no shutdown

R8(config-if)# interface s0/3
R8(config-if)# ip address 192.168.13.3 255.255.255.0
R8(config-if)# no shutdown

R8(config-if)# interface s0/4
R8(config-if)# ip address 192.168.14.3 255.255.255.0
R8(config-if)# no shutdown

R8(config-if)# interface s0/5
R8(config-if)# ip address 192.168.15.3 255.255.255.0
R8(config-if)# no shutdown

# RIP 설정
R8(config)# router rip
R8(config-router)# version 1
R8(config-router)# network 211.204.100.0
R8(config-router)# network 192.168.10.0
R8(config-router)# network 192.168.11.0
R8(config-router)# network 192.168.12.0
R8(config-router)# network 192.168.13.0
R8(config-router)# network 192.168.14.0
R8(config-router)# network 192.168.15.0
R8(config-router)# exit

 

여기까지 각 라우터의 인터페이스 연결과 Rip 설정을 해주었다. 

그림을 보면 R1에서 R8을 통신을 시킬 때 R2 ~ 7까지의 경로가 있다. 

여기서 Maximum-paths를 사용하면 네트워크 경로의 개수를 설정해줄 수 있다. 

 

먼저 RIP 프로토콜에서 maximum paths의 기본값을 확인해볼 것이다. 

1. maximum paths 기본값 확인방법

R1# show ip protocols

maximum-paths의 기본값이 5로 설정되어 있어, R1에서 R7으로 가는 경로에서 라우팅이 되지 않는 것을 볼 수 있다.

 

2. maximum paths 설정하는 방법

R1> enable
R1# configure terminal
R1(config)# router rip
R1(config-router)# maximum-paths 10

maximum paths는 경로를 16개까지 설정해줄 수 있다. 실습에서는 10개로 설정을 해주었다. 이렇게 하면 R1에서  R7으로 가는 경로가 연결이 된다. 테이블에서는 R7의 인터페이스 주소 192.168.15.2도 출력이 될 것이다. 

저작자표시 비영리 변경금지 (새창열림)

'Network > Network[이론]' 카테고리의 다른 글

[Network] EIGRP - 우선순위  (0) 2024.09.22
[Network] RIP - Distance (AD)  (0) 2024.09.22
[Network] 재분배(Redistribute) | default-information originate  (0) 2024.09.20
[Network] 축약(summarization)  (0) 2024.09.20
[Network]가상 인터페이스(Interface Loopback)  (0) 2024.09.20
'Network/Network[이론]' 카테고리의 다른 글
  • [Network] EIGRP - 우선순위
  • [Network] RIP - Distance (AD)
  • [Network] 재분배(Redistribute) | default-information originate
  • [Network] 축약(summarization)
Kouji
Kouji
Journey to Becoming a Data & Server Engineer
  • Kouji
    Kouji's Data & Server Journey
    Kouji
  • 전체
    오늘
    어제
    • 분류 전체보기
      • Programming
        • Python
        • SQL
      • Data & AI
        • Data Analysis
        • Ai
      • Cloud(AWS)
      • OS
        • Linux
        • Docker
        • Jenkins
        • Ubuntu
        • Window
        • Kubernates
        • Ansible
      • Network
        • NVIDIA
        • Network[이론]
        • Network[GNS3, Packet]
        • Network[On-Premise]
        • Network [L2, L3]
      • 트러블 슈팅
      • Life
        • My Career Stories
        • Personal
      • 개발 + OS 지식 함양
  • 블로그 메뉴

    • 홈
    • 관리 페이지
    • 글쓰기
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    티스토리챌린지
    알고리즘
    시스템엔지니어
    L3
    오블완
    AWS
    네트워크엔지니어
    인프라
    네트워크엔지니어링
    Linux
    도커
    네트워크관리사
    웹
    IT
    네트워크
    서버엔지니어
    리눅스
    라우팅
    클라우드엔지니어
    보안
    OS
    dns
    스위치
    ubuntu
    서버
    CISCO
    docker
    인프라엔지니어
    화이팅
    VMware
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
Kouji
[Network] Maximum Paths
상단으로

티스토리툴바