전체적인 네트워크 구성도
1) 동적 라우팅으로 연결하기
[R1] config t hostname R1 interface fastethernet0/0 ip address 192.168.0.254 255.255.255.0 no shutdown exit interface serial1/0 ip address 1.1.1.1 255.255.255.252 no shutdown exit router rip version 2 network 192.168.0.0 network 1.1.1.0 [R2] config t interface serial1/0 ip address 1.1.1.2 255.255.255.252 no shutdown exit interface serial1/1 ip address 2.2.2.1 255.255.255.252 no shutdown router rip version 2 network 1.1.1.0 network 2.2.2.0 [R3] config t interface serial1/0 ip address 3.3.3.1 255.255.255.252 no shutdown exit interface serial1/1 ip address 2.2.2.2 255.255.255.252 no shutdown router rip version 2 network 2.2.2.0 network 3.3.3.0 [R4] config t interface serial1/0 ip address 3.3.3.2 255.255.255.252 no shutdown exit interface serial1/1 ip address 4.4.4.1 255.255.255.252 no shutdown router rip version 2 network 3.3.3.0 network 4.4.4.0 [R5] config t hostname R1 interface fastethernet0/0 ip address 192.168.1.254 255.255.255.0 no shutdown exit interface serial1/1 ip address 4.4.4.2 255.255.255.252 no shutdown exit router rip version 2 network 192.168.1.0 network 4.4.4.0
위에서 보이는 정적 라우팅 연결 명령어를 입력하면 다음과 같이 연결이 된다.
주요 사실
-
거리벡터 라우팅 프로토콜
RIP1
RIP2
링크상태 라우팅 프로토콜
OSPF
- 중대규모 네트워크에 가장 많이 사용
- 라우팅 정보 업데이트 224.0.0.5와 224.0.0.6의 멀티캐스트
- 프로토콜 번호 89번 사용
- 경로 상태에 변화가 생기면 변화된 부분만 업데이트 진행
- 업데이트할 내용이 없더라도 30분 간격으로 링크 상태 재생 기능을 통해 주기적으로 라우팅 업데이트 정보를 교환함