네트워크 기초

20210526 (수) rip, eigrp

gusalstm 2021. 5. 26. 16:30
반응형

 

9:32 review

 

dynamic routing

 autonomous system 

 

Routing

 IGP (Interior Gateway Protocol)

 AS 내에서 사용되는 라우팅 프로토콜

  : RIP, IGRP, EIGRP, OSPF, IS-IS

 

 EGP Exterior Gateway Protocol

  AS와 AS 간 경계에서 사용되는 라우팅 프로토콜 

  :

 Distance Vector Routing Protocol

   Distance (Hop Count), Vector 로 라우팅을 수행하는 프로토콜

   라우터가 관리하는 모든 네트워크를 이웃하는 라우터에게 전달하여 라우팅 정보를 교환

   일정 주기마다 라우팅 정보를 교환

   대표적인 라우팅 프로토콜 :  RIP

 Link State Routing Protocol

   링크 상태정보를 교환하여 라우팅 테이블을 구성하는 라우팅 프로토콜

   링크 상태가 변동될 때 링크 상태 정보를 교환

   대표적인 라우팅 프로토콜 : OSPF

 Hybrid Routing Protocol

   Link State 와 Distance Vector의 장점 모두 가진 라우팅 프로토콜

   대표적인 라우팅 프로토콜 : EIGRP

 

 Adminstartion Distance (관리 거리)

   여러 방식에 의해서 라우팅이 될 때 가장 신뢰할 수 있는 라우팅 경로 결정하기 위한 우선 순위

   → 상황에 따라 변경할 수 있지만 보통은 디폴트 값으로 사용함.

 

Routing Source Administarative Distance
Connected  0
Static 1
EIGRP(Internal) 90
IGRP 100
OSPF 110
RIP 120
EIGRP(External) 170

 

 

rip 실습

 

R3#show ip protocols 
Routing Protocol is "rip"
Sending updates every 30 seconds, next due in 24 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Redistributing: rip
Default version control: send version 1, receive any version
  Interface             Send  Recv  Triggered RIP  Key-chain
  Serial0/1/0           1     2 1   
  Serial0/1/1           1     2 1   
Automatic network summarization is not in effect
Maximum path: 4
Routing for Networks:
210.10.129.0
210.10.131.0
Passive Interface(s):
Routing Information Sources:
Gateway         Distance      Last Update
210.10.131.1         120      00:00:20
210.10.129.1         120      00:00:25
Distance: (default is 120)

 

R3#debug ip rip
RIP protocol debugging is on
R3#RIP: sending  v1 update to 255.255.255.255 via Serial0/1/0 (210.10.129.2) →브로드캐스트 주소, v1 / 인터페이스(se0/1/0) 등의 정보를 볼 수 있다.
RIP: build update entries
      network 192.168.11.0 metric 2
      network 192.168.12.0 metric 3
      network 210.10.131.0 metric 1
      network 210.25.64.0 metric 2
RIP: sending  v1 update to 255.255.255.255 via Serial0/1/1 (210.10.131.2)
RIP: build update entries
      network 210.10.128.0 metric 2
      network 210.10.129.0 metric 1
RIP: received v1 update from 210.10.131.1 on Serial0/1/1
      192.168.11.0 in 1 hops
      192.168.12.0 in 2 hops
      210.10.128.0 in 2 hops
      210.10.130.0 in 1 hops
      210.25.64.0 in 1 hops
RIP: received v1 update from 210.10.129.1 on Serial0/1/0
      192.168.11.0 in 2 hops
      192.168.12.0 in 3 hops
      210.10.128.0 in 1 hops
      210.10.130.0 in 1 hops
      210.25.64.0 in 2 hops

 

각 라우터간 통신에서 RIPv1, v2 가 다른경우 서로 정보를 교환할 수 없음.

따라서 라우팅이 되지 않음. (라우팅 테이블에 올라오지 않음)

R1#debug ip rip
RIP protocol debugging is on
R1#RIP: ignored v1 packet from 210.10.129.2 (illegal version)

 

패시브 인터페이스

내부 로컬망으로 라우팅프로토콜을 보낼 필요가 없음 

보낸다면, 패킷, 대역폭의 낭비를 불러오게 됨

이경우 아래의 명령어로 패시브 인터페이스가 가능

passive-interface [interface NUMBER]

R1(config-router)#passive-interface fa1/1

 

----------------------------------

 

EIGRP 

 - Hybrid routing protocol

 - Cisco 전용 routing : 시스코 장비간에만 사용 가능

 - Classless routing protocol

 - Partial Update 기능

 - DUAL (Diffusing Update ALgorithm)

 

 EIGRP 메트릭

  If K5 = 0, 

  Metric = ([k1 * bandwidth + (k2 * bandwidth)/(256 - load) + k3 * delay]) * 256

  If K5 ≠ 0,

  Metric = [K1 * Bandwidth + (K2 * bandwidth)/(256 - Load) + K3* delay] * [K5/(Reliability+K4)] * 256 (K=0인경우)

  Metric = (Bandwidth + Delay) * 256

 

Default K 상수값

 K1 = 1 , K2 = 0 , K3 = 1 , K4 = 0 , K5 = 0

 

 FD (Feasible Distance)

    출발지부터 목적지까지 메트릭의 합

    (Feasible distance is the best metric along a path to a destination network, including the metric to the neighbor advertising that path)

 

 AD (Advertised Distance = RD reported distance) 

    인접라우터부터 목적지까지 메트릭의 합

    (Reported distance is the total metric along a path to a destination network as advertised by an upstream neighbor)

 

 Successor

    EIGRP 프로토콜에서 목적지로 가기 위한 최적의 경로 

 

 Feasible Successor

    EIGRP 프로토콜에서 목적지로 가기위한 대체 경로

 

 

EIGRP 패킷 종류

    - Hello packet : 이웃(neighbor)을 구성하고 유지하기 위한 패킷, 주기적으로 Hello packet을 전송함.

  ※  Hello packet에 응답하지 못하는 경우 Hello Packet 전송주기 3배만큼 기다린 후 해당 경로를 라우팅 테이블에서 제거하고 이웃(neighbor)에서 제거

    - Update Packet : 라우팅 정보 전송 시, 사용하는 패킷. 경우에 따라 Unicast 와 Multicast 주소를 사용하여 전송함

    - Query Packet : 자신의 Routing Table 경로가 다운되거나 Feasible Successor (대체 경로)가 없는 경우 해당 경로에 대한 정보를 요청하는 패킷

    - Reply Packet : Query Packet을 수신한 라우터가 요청받은 라우팅 정보를 전송할 때 사용

    - Acknowledgement Packet : Update packet, Query Packet, Reply Packet을 정상 수신하였는지 확인하는 패킷

 

 ※ Acknowledgement Packet, Hello Packet 은 수신을 확인하지 않음

 

   

 

 

 

EIGRP 테스트 (autonomous = 100)

각 라우터 마다 autonomous system number는 동일하게 입력하지 않으면 통신이 불가하다.

 

R1(config)#router eigrp ?
  <1-65535>  Autonomous system number
R1(config)#router eigrp 100

R1(config-router)#network 172.26.10.0
R1(config-router)#network 30.0.0.0
R1(config-router)#end

R1#show running-config

router eigrp 100

network 172.26.0.0

network 30.0.0.0

…R2, R3 도 동일하게 네트워크 입력

…생략…

 

R1#show ip route

Gateway of last resort is not set

     30.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C       30.0.0.0/24 is directly connected, Serial0/3/1
L       30.0.0.1/32 is directly connected, Serial0/3/1
     40.0.0.0/24 is subnetted, 1 subnets
D       40.0.0.0/24 [90/2681856] via 30.0.0.2, 00:01:22, Serial0/3/1
     172.26.0.0/16 is variably subnetted, 2 subnets, 2 masks
C       172.26.10.0/24 is directly connected, GigabitEthernet0/0
L       172.26.10.254/32 is directly connected, GigabitEthernet0/0
D    192.168.20.0/24 [90/2682112] via 30.0.0.2, 00:00:43, Serial0/3/1

   ※ 2681856, 26582112 = routing metric

R1#show ip protocols
Routing Protocol is "eigrp  100 " 

…생략…

R1#show ip eigrp topology
IP-EIGRP Topology Table for AS 100/ID(172.26.10.254)

Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
       r - Reply status

P 30.0.0.0/24, 1 successors, FD is 2169856
         via Connected, Serial0/3/1
P 40.0.0.0/24, 1 successors, FD is 2681856
         via 30.0.0.2 (2681856/2169856), Serial0/3/1
P 172.26.10.0/24, 1 successors, FD is 2816
         via Connected, GigabitEthernet0/0
P 192.168.20.0/24, 1 successors, FD is 2682112
         via 30.0.0.2 (2682112/2170112), Serial0/3/1

 

 

 

 

728x90