특정 라우팅 프로토콜을 다른 프로토콜로 전환시켜 라우팅 업데이트가 가능하도록 하는 작업
단, 종단의 라우터 같은 경우는 전달 하지 않아도 된다.(디폴트 게이트웨이를 사용하기 때문)
그래도 종단에서 나오는 라우팅은 전달 해줘야함.
ex) RIP <-> OSPF
+
① 네트워크 규모가 확장되어 2개 이상의 서로 다른 라우팅 환경을 사용하는 회사들이 합병되는 경우
② 지원되는 라우팅 프로토콜이 서로 다른 장비간에 연결되는 경우 경우 [v]
③ Distance Vector 라우팅 프로토콜인 RIP 환경을 Link-State 환경으로 라우팅 업데이트가 필요한 경우
④ 특정 라우팅 프로토콜만 사용하여 다른 환경과의 새로운 정책을 구현하는 경우
⑤ MPLS VPN 구현시 IGP 라우팅 정보와 BGP 라우팅 정보를 교환하는 경우
라우팅 프로토콜 메트릭 단위
실습
[실습 구성]
# 기본 환경 설정
@R1
conf t
int lo0
ip addr 1.1.1.1 255.255.255.0
no ip ospf network point-to-point
!
int f0/0
ip addr 10.10.10.10 255.255.255.0
no shut
!
int lo5
ip addr 5.5.5.5 255.255.255.0
no ip ospf network point-to-point
!
int lo7
ip addr 7.7.7.7 255.255.255.0
no ip ospf network point-to-point
end
@R2
conf t
int lo 0
ip addr 2.2.2.2 255.255.255.0
no ip ospf network point-to-point
end
@R3
conf t
int lo 0
ip addr 3.3.3.3 255.255.255.0
no ip ospf network point-to-point
end
sh ip int br
@R4
conf t
int lo 0
ip addr 4.4.4.4 255.255.255.0
no ip ospf network point-to-point
end
sh ip int br
# OSPF 설정
@R1
conf t
router ospf 1
router-id 1.1.1.1
network 1.1.12.0 0.0.0.255 area 1 // 광고해야할 네트워크
@R2
conf t
router ospf 1
router-id 2.2.2.2
network 2.2.2.0 0.0.0.255 area 1
network 1.1.12.0 0.0.0.255 area 1
network 1.1.23.0 0.0.0.255 area 1
@R3
conf t
router ospf 1
router-id 3.3.3.3
network 3.3.3.0 0.0.0.255 area 1
network 1.1.23.0 0.0.0.255 area 1
@R1,R2,R3
sh ip route
sh ip ospf neighbor
# Connected 재분배
1) Connected 재분배(ex: ospf)
router ospf 1
redistribute connected subnets
2) 루트맵을 이용한 Connected 재분배
route-map Loop0 permit 10
match int lo0
!
router ospf 1
redistribute connected subnets route-map Loop0
3) 정적 경로 재분배
// rip
router rip
version 2
redistribute static metric 3
// eigrp
router eigrp 100
redistribute static metric 1544 2000 255 1 1500 // 대역폭,딜레이,신뢰도,로드,MTU
// ospf
router ospf 1
redistribute static subnets
4) RIPv1/v2 재분배
// ospf -> rip
router rip
version 2
redistribute ospf 1 metric 3
// eigrp -> rip
router rip
version 2
redistribute eigrp 100 metric 3
5) EIGRP 재분배
router eigrp 100
redistribute ospf 1 metric 1544 2000 255 1 1500
6) OSPF 재분배
// rip -> ospf
router ospf 1
redistribute rip subnets
// eigrp -> ospf
router ospf 1
redistribute eigrp 100 subnets [metric-type 1 metric 200]
7) BGP 재분배
router bgp 13
redistribute ospf 1 match internal external
# Connected 재분배 설정
(ㄱ) R2, R3에서 라우팅 테이블 확인
@R2,R3
sh ip route
-> 5.5.5.0/24, 7.7.7.0/24 내용 없어야 함.
(ㄴ) R1에서 connected 재분배 설정
@R1
conf t
router ospf 1
redistribute connected subnets
(ㄷ) R2, R3에서 라우팅 테이블 확인
@R2,R3
sh ip route
-> 5.5.5.0/24, 7.7.7.0/24 내용이 있어야 함.
# 정적 경로 재분배 설정
(ㄱ) R4 디폴트 라우트 설정(R3으로만 보내주면 R3테이블에 나머지 경로가 있기때문에 연결 가능)
@R4
conf t
ip route 0.0.0.0 0.0.0.0 1.1.34.3
(ㄴ) R3 스태틱 라우팅 설정
@R3
conf t
ip route 4.4.4.0 255.255.255.0 1.1.34.4(아직 R3 <-> R4 사이만 통신 가능한 상태)
(ㄷ) R4에서 ping 테스트
ping 4.4.4.4 (R1 --> R4 X)
ping 4.4.4.4 (R2 --> R4 X)
(ㄹ) 정적 경로 재분배
@R3
conf t
router ospf 1
redistribute static subnets
end
(ㅁ) R4에서 ping 테스트
ping 4.4.4.4 (R1 --> R4 O)
ping 4.4.4.4 (R2 --> R4 O)
@R1,R2
sh ip route
1) RIPv1/v2 재분배
// ospf -> rip
router rip
version 2
redistribute ospf 1 metric 3
// eigrp -> rip
router rip
version 2
redistribute eigrp 100 metric 3
2) EIGRP 재분배
router eigrp 100
redistribute ospf 1 metric 1544 2000 255 1 1500
(ㄱ) 정리 작업 - 이전 실습
@R1,R2
conf t
no router ospf 1
@R3
conf t
no router ospf 1
no ip route 4.4.4.0 255.255.255.0 1.1.34.4
@R4
conf t
no router ospf 1
no ip route 0.0.0.0 0.0.0.0 1.1.34.3
(ㄴ) EIGRP 설정
@R1
conf t
router eigrp 10
eigrp router-id 1.1.1.1
no auto-summary
network 1.1.1.0 0.0.0.255
network 5.5.5.0 0.0.0.255
network 7.7.7.0 0.0.0.255
network 10.10.10.0 0.0.0.255
network 1.1.12.0 0.0.0.255
end
@R2
conf t
router eigrp 10
eigrp router-id 2.2.2.2
no auto-summary
network 2.2.2.0 0.0.0.255
network 1.1.12.0 0.0.0.255
end
(ㄷ) RIP 설정
@R2
conf t
router rip
version 2
no auto-summary
network 1.1.23.0
end
@R3
conf t
router rip
version 2
no auto-summary
network 1.1.23.0
network 3.3.3.0
network 1.1.34.0
end
@R4
conf t
router rip
version 2
no auto-summary
network 4.4.4.0
network 1.1.34.0
end
(ㄹ) EIGRP AS 10 구간 확인, RIPv2 구간 확인
@R1,R2
sh ip eigrp neighbor
sh ip route eigrp
@R2,R3,R4
sh ip route rip
(ㅁ) EIGRP - RIP 재분배 설정
@R2
// EIGRP -> RIP
conf t
router rip
version 2
redistribute eigrp 10 metric 3
end
// RIP -> EIGRP
conf t
router eigrp 10
redistribute rip metric 1544 2000 255 1 1500
end
(ㅂ) 라우팅 확인
@R1,R2,R3,R4
sh ip route
R1# ping 4.4.4.4
R4# ping 1.1.1.1
1) RIPv1/v2 재분배
// ospf -> rip
router rip
version 2
redistribute ospf 1 metric 3
2) EIGRP 재분배
router eigrp 100
redistribute ospf 1 metric 1544 2000 255 1 1500
3) OSPF 재분배
// rip -> ospf
router ospf 1
redistribute rip subnets
[실습] RIP - EIGRP - OSPF
(ㄱ) 이전 실습 제거 및 추가
@R1
conf t
no int lo5
no int lo7
end
@R5
conf t
int lo0
ip addr 5.5.5.5 255.255.255.0
end
@R6
conf t
int lo0
ip addr 6.6.6.6 255.255.255.0
int lo1
ip addr 60.1.1.1 255.255.255.0
end
(ㄴ) RIP 설정
@R1
conf t
router rip
version 2
no auto-summary
network 1.1.1.0
network 10.10.10.0
network 1.1.12.0
end
@R2
conf t
router rip
version 2
no auto-summary
network 1.1.12.0
end
(ㄷ) EIGRP 설정
@R2
conf t
router eigrp 10
no auto-summary
network 2.2.2.0 0.0.0.255
network 1.1.23.0 0.0.0.255
end
@R3
conf t
router eigrp 10
no auto-summary
network 1.1.23.0 0.0.0.255
network 3.3.3.0 0.0.0.255
end
(ㄹ) OSPF Area 0, Area 1
// Area 0
@R3
conf t
router ospf 1
router-id 3.3.3.3
network 1.1.34.0 0.0.0.255 area 0
end
@R4
conf t
router ospf 1
router-id 4.4.4.4
network 1.1.34.0 0.0.0.255 area 0
network 4.4.4.0 0.0.0.255 area 0
network 1.1.45.0 0.0.0.255 area 0
end
// Area 1
@R5
conf t
router ospf 1
router-id 5.5.5.5
network 1.1.56.0 0.0.0.255 area 1
network 5.5.5.0 0.0.0.255 area 1
network 1.1.45.0 0.0.0.255 area 0
end
@R6
conf t
router ospf 1
router-id 6.6.6.6
network 1.1.56.0 0.0.0.255 area 1
network 6.6.6.0 0.0.0.255 area 1
network 60.1.1.0 0.0.0.255 area 1
end
(ㅁ) 설정 확인
@R1-R2 구간 확인
sh ip route
@R2-R3 구간 확인
sh ip route
sh ip eigrp neighbor
@R3-R6 구간 확인
sh ip route
sh ip ospf neighbor
(ㅂ) R2에서 RIP - EIGRP 재분배
@R2
conf t
router eigrp 10
redistribute rip metric 1544 2000 255 1 1500
!
router rip
version 2
redistribute eigrp 10 metric 3
end
(ㅅ) R3에서 EIGRP - OSPF 재분배
@R3
conf t
router ospf 1
redistribute eigrp 10 subnets
!
router eigrp 10
redistribute ospf 1 metric 1544 2000 255 1 1500
end
(ㅇ) 정보 확인
R1# ping 6.6.6.6
R6# ping 1.1.1.1