4일차

4일차

홈으로 돌아가기
pc3 까지 연결하기

1.1.1.0/30 : 255.255.255.252 -> 0~3 -> 0 1 2 3 -> 처음과 끝 제외 1,2
=> 1.1.1.1 , 1.1.1.2

5번째 그룹 번호 찾기
1. 0~3
2. 4~7
3. 8~11
4. 12~15
5. 16~19

라우터에 ip넣기
R1추가
config t
interface serial1/0
ip address 1.1.1.37 255.255.255.252
no shutdown
exit
ip route 192.168.2.0 255.255.0 1.1.1.38
exit
show running-config
show ip interface brief

R2추가
config t
interface serial1/0
ip address 1.1.1.38 255.255.255.252
no shutdown
exit
ip route 192.168.1.0 255.255.255.0 1.1.1.37
ip route 192.168.0.0 255.255.255.0 1.1.1.37
exit
show ip interface brief

라우팅 테이블 작성
: 네트워크의 목적지 작성
ex) ip route 192.168.1.0 255.255.255.0 1.1.1.2

정적 라우팅 테이블 작성하기

라우터 1번
config t
hostname KHH
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
ip route 192.168.1.0 255.255.255.0 1.1.1.2
exit
show ip interface brief

짝수 라우터
config t
interface serial1/0
ip address 13.13.13.2 255.255.255.252
no shutdown
exit
interface serial1/1
ip address 14.14.14.1 255.255.255.252
no shutdown
exit
ip route 192.168.1.0 255.255.255.0 14.14.14.2
ip route 192.168.0.0 255.255.255.0 13.13.13.1
exit
show ip interface brief

홀수 라우터
config t
interface serial1/1
ip address 10.10.10.2 255.255.255.252
no shutdown
exit
interface serial1/0
ip address 11.11.11.1 255.255.255.252
no shutdown
exit
ip route 192.168.1.0 255.255.255.0 11.11.11.2
ip route 192.168.0.0 255.255.255.0 10.10.10.1
exit
show ip interface brief

라우터16
config t
hostname KHH
interface fastethernet0/0
ip address 192.168.1.254 255.255.255.0
no shutdown
exit
interface serial1/0
ip address 15.15.15.2 255.255.255.252
no shutdown
exit
ip route 192.168.0.0 255.255.255.0 15.15.15.1
exit
show ip interface brief

RIP : 중소 규모에서 사용, 동적 라우팅, 작은 네트워크
동적 라우팅
거리백터라우팅프로토콜(라우터-라우터)
라우터끼리 알아서 정보를 주고 받음

상태링크라우팅프로토콜

config t
hostname R5
interface fastethernet0/0
ip address 192.168.1.254 255.255.255.0
no shutdown
exit

RIP설정
config t
router rip
version 2
network 192.168.0.0
network 1.1.1.0

1
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 1.1.1.0
network 192.168.0.0

2
config t
interface serial1/1
ip address 2.2.2.1 255.255.255.252
no shutdown
exit
interface serial1/0
ip address 1.1.1.2 255.255.255.252
no shutdown
exit
router rip
version 2
network 1.1.1.0
network 2.2.2.0
3
config t
interface serial1/1
ip address 3.3.3.1 255.255.255.252
no shutdown
exit
interface serial1/0
ip address 2.2.2.2 255.255.255.252
no shutdown
exit
router rip
version 2
network 3.3.3.0
network 2.2.2.0

4
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
exit
router rip
version 2
network 3.3.3.0
network 4.4.4.0

5
config t
hostname R5
interface fastethernet0/0
ip address 192.168.1.254 255.255.255.0
no shutdown
interface serial1/0
ip address 4.4.4.2 255.255.255.252
no shutdown
exit
router rip
version 2
network 4.4.4.0
network 192.168.1.0

거리벡터라우팅프로토콜
RIP1
RIP2
상태링크라우팅프로토콜
OSPF
중대규모 네트워크에 가장 많이 사용됨
라우팅 정보 업데이트 224.0.0.5와 224.0.0.6의 멀티캐스트 주소 사용
프로토콜 번호 89번 사용
경로 상태에 변화가 생기면 변화된 부분만 업데이트 진행함
업데이트할 내용이 없더라도 30분 간격으로 링크 상태 재생 기능을 통해 주기적으로 라우팅 업데이트 정보를 교환함