2023. 8. 29. 15:55ㆍ네트워크
라우팅
Routing: 서로 다른 네트워크의 통신
1. 경로학습: 주소광고 + 주소학습
1.1 static routing: 장점: 불필요한 정보가 없다, 필요한 정보만 있다 / 단점: 라우팅 수렴이 X
1.1.1 정적 static: 목적지로 가는 경로가 하나
1.1.2 동적 static[AD(admin distance) 경로우선값, 선호도] = floating static
목적지로 가는 경로가 복수개 있을 때
1.1.3 default route: stub network: 0.0.0.0 0.0.0.0 0.0.0.0/0
1.2 dynamic routing: 장점: 수렴 O / 단점: 불필요한 정보(라우팅 업데이트 정보, 네트워크 정보)
> 경로필터링, 조정, 요약, 인증
1.2.1 IGP 동일 조직[라우팅 정책이 같은 것들의 통신] 간의 통신: RIP*, EIGRP, OSPF, ISIS, PIM
1.2.2 EGP 다른 조직 간의 통신: BGP, MSDP, ...
2. 최적경로 연산
2.1 distributed bellman ford algorithm > distance vector routing protocol RIP
2.2 diijkstra algorithm: link state
2.3 DUAL(diffusing update algorithm) > advanced distance vector: EIGRP
3. routing lookup
실습
-default routing-
S1
conf t
ip route 0.0.0.0 0.0.0.0 fa 0/0 [conneted interface]
ip route 0.0.0.0 0.0.0.0 11.1.1.254 [next-hop-ip]
-정적 static-
R1
conf t
ip route 22.1.1.0 255.255.255.0 1.1.12.2
ip route 33.1.1.0 255.255.255.0 1.1.12.2
ip route 44.1.1.0 255.255.255.0 1.1.12.2
ip route 55.1.1.0 255.255.255.0 1.1.12.2
ip route 66.1.1.0 255.255.255.0 1.1.12.2
R2
conf t
ip route 11.1.1.0 255.255.255.0 1.1.12.1
R5
conf t
ip route 66.1.1.0 255.255.255.0 1.1.56.6
R6
conf t
ip route 22.1.1.0 255.255.255.0 1.1.56.5
ip route 33.1.1.0 255.255.255.0 1.1.56.5
ip route 44.1.1.0 255.255.255.0 1.1.56.5
ip route 55.1.1.0 255.255.255.0 1.1.56.5
ip route 11.1.1.0 255.255.255.0 1.1.56.5
show run | in ip route
show ip route static
-floating static-
1. longest match rule
2. ad(admin distance) = 우선 순위값
R2
ip route 33.1.1.0 255.255.255.0 1.1.23.3
ip route 33.1.0.0 255.255.255.0 1.1.27.7
ip route 44.1.1.0 255.255.255.0 1.1.23.3
ip route 44.1.0.0 255.255.255.0 1.1.27.7
ip route 55.1.1.0 255.255.255.0 1.1.27.7
ip route 55.1.0.0 255.255.255.0 1.1.23.3
ip route 66.1.1.0 255.255.255.0 1.1.27.7
ip route 66.1.0.0 255.255.255.0 1.1.23.3
R3
ip route 11.1.1.0 255.255.255.0 1.1.23.2
ip route 11.1.0.0 255.255.255.0 1.1.37.7
ip route 22.1.1.0 255.255.255.0 1.1.23.2
ip route 22.1.0.0 255.255.255.0 1.1.37.7
ip route 44.1.1.0 255.255.255.0 1.1.34.4
ip route 44.1.0.0 255.255.255.0 1.1.37.7
ip route 55.1.1.0 255.255.255.0 1.1.37.7
ip route 55.1.0.0 255.255.255.0 1.1.34.4
ip route 66.1.1.0 255.255.255.0 1.1.37.7
ip route 66.1.0.0 255.255.255.0 1.1.34.4
R4
ip route 11.1.1.0 255.255.255.0 1.1.47.7
ip route 11.1.0.0 255.255.255.0 1.1.34.3
ip route 22.1.1.0 255.255.255.0 1.1.47.7
ip route 22.1.0.0 255.255.255.0 1.1.34.3
ip route 33.1.1.0 255.255.255.0 1.1.34.3
ip route 33.1.0.0 255.255.255.0 1.1.47.7
ip route 55.1.1.0 255.255.255.0 1.1.45.5
ip route 55.1.0.0 255.255.255.0 1.1.47.7
ip route 66.1.1.0 255.255.255.0 1.1.45.5
ip route 66.1.0.0 255.255.255.0 1.1.47.7
R5
ip route 11.1.1.0 255.255.255.0 1.1.57.7
ip route 11.1.0.0 255.255.255.0 1.1.45.4
ip route 22.1.1.0 255.255.255.0 1.1.57.7
ip route 22.1.0.0 255.255.255.0 1.1.45.4
ip route 33.1.1.0 255.255.255.0 1.1.57.7
ip route 33.1.0.0 255.255.255.0 1.1.45.4
ip route 44.1.1.0 255.255.255.0 1.1.45.4
ip route 44.1.0.0 255.255.255.0 1.1.57.7
R7
ip route 11.1.1.0 255.255.255.0 1.1.27.2
ip route 11.1.0.0 255.255.255.0 1.1.37.3
ip route 22.1.1.0 255.255.255.0 1.1.27.2
ip route 22.1.0.0 255.255.255.0 1.1.37.3
ip route 33.1.1.0 255.255.255.0 1.1.37.3
ip route 33.1.0.0 255.255.255.0 1.1.27.2
ip route 44.1.1.0 255.255.255.0 1.1.47.4
ip route 44.1.0.0 255.255.255.0 1.1.57.5
ip route 55.1.1.0 255.255.255.0 1.1.57.5
ip route 55.1.0.0 255.255.255.0 1.1.47.4
ip route 66.1.1.0 255.255.255.0 1.1.57.5
ip route 66.1.0.0 255.255.255.0 1.1.47.7