-------
라우팅에서 중요한것은 목적지IP를 기준으로 NextHop을 지정해주는게 중요
==> ip route d,IP subet NextHop
1번 3번이 서로 통신을 하기위해서는 가운데 2번 라우터를 무조건 거쳐가야하니 2번 라우터의 값을
1번 3번의 디폴트 라우팅을 2번으로 잡아놨다
R1
ip route 0.0.0.0(d.IP) 0.0.0.0(S/M) 1.1.1.2
R3 ip route 0.0.0.0 0.0.0.0 2.2.2.1
-------
라우터는 인터페이스마다 대역이 달라야함
라우터 이더넷에 할당하는값은 컴퓨터 게이트웨이값
-------
Topology_2
=== R1 설정 ===
1. Interface 주소 설정
(config)# int g 0/0
(config-if)# no shutdown
(config-if)# ip add 1.0.0.1 255.255.255.0
(config-if)# exit
(config)# int serial 0/0/0
(config-if)# no shutdown
(config-if)# clock rate 56000
(config-if)# ip add 2.0.0.1 255.255.255.252
2. Routing Table 설정
(config)# ip route 3.0.0.0 255.255.255.0 2.0.0.2
(config)# ip route 4.0.0.128 255.255.255.128 2.0.0.2
(config)# ip route 200.200.244.0 255.255.255.0 2.0.0.2
(config)# ip route 200.200.245.0 255.255.255.0 2.0.0.2
=== R2 설정 ===
1. Interface 주소 설정
(config)# int g 0/0
(config-if)# no shutdown
(config-if)# ip add 3.0.0.1 255.255.255.0
(config-if)# exit
(config)# int serial 0/0/0
(config-if)# no shutdown
(config-if)# clock rate 56000
(config-if)# ip add 2.0.0.5 255.255.255.252
2. Routing Table 설정
(config)# ip route 1.0.0.0 255.255.255.0 2.0.0.6
(config)# ip route 4.0.0.128 255.255.255.128 2.0.0.6
(config)# ip route 200.200.244.0 255.255.255.0 2.0.0.6
(config)# ip route 200.200.245.0 255.255.255.0 2.0.0.6
=== R3 설정 ===
1. Interface 주소 설정
(config)# int g 0/0
(config-if)# no shutdown
(config-if)# ip add 4.0.0.129 255.255.255.128
(config-if)# exit
(config)# int serial 0/0/0
(config-if)# no shutdown
(config-if)# clock rate 56000
(config-if)# ip add 2.0.0.9 255.255.255.252
2. Routing Table 설정
(config)# ip route 1.0.0.0 255.255.255.0 2.0.0.10
(config)# ip route 3.0.0.0 255.255.255.0 2.0.0.10
(config)# ip route 200.200.244.0 255.255.255.0 2.0.0.10
(config)# ip route 200.200.245.0 255.255.255.0 2.0.0.10
=== R4 설정 ===
1. Interface 주소 설정
(config)# int g 0/0
(config-if)# no shutdown
(config-if)# ip add 200.200.244.1 255.255.255.0
(config-if)# exit
(config)# int g 0/1
(config-if)# no shutdown
(config-if)# ip add 200.200.245.1 255.255.255.0
(config-if)# exit
(config)# int serial 0/0/0
(config-if)# no shutdown
(config-if)# clock rate 56000
(config-if)# ip add 2.0.0.13 255.255.255.252
2. Routing Table 설정
(config)# ip route 1.0.0.0 255.255.255.0 2.0.0.14
(config)# ip route 3.0.0.0 255.255.255.0 2.0.0.14
(config)# ip route 4.0.0.128 255.255.255.128 2.0.0.14
=== R5 설정 ===
1. Interface 주소 설정
(config)# int serial 0/0/0
(config-if)# no shutdown
(config-if)# clock rate 56000
(config-if)# ip add 2.0.0.2 255.255.255.252
(config-if)# exit
(config)# int serial 0/0/1
(config-if)# no shutdown
(config-if)# clock rate 56000
(config-if)# ip add 2.0.0.6 255.255.255.252
(config)# int serial 0/1/0
(config-if)# no shutdown
(config-if)# clock rate 56000
(config-if)# ip add 2.0.0.10 255.255.255.252
(config)# int serial 0/1/1
(config-if)# no shutdown
(config-if)# clock rate 56000
(config-if)# ip add 2.0.0.14 255.255.255.252
2. Routing Table 설정
(config)# ip route 1.0.0.0 255.255.255.0 2.0.0.1
(config)# ip route 3.0.0.0 255.255.255.0 2.0.0.5
(config)# ip route 4.0.0.128 255.255.255.128 2.0.0.9
(config)# ip route 200.200.244.0 255.255.254.0 2.0.0.13
=======
목적지를 모를때 라우팅 테이블의 값이 없을때
#ip route 0.0.0.0 0.0.0.0 ~
=> 디폴트 라우트 값
게이트웨이 = IP주소의 첫번째 ex) 3.0.0.0 = 3.0.0.1
길이 하나일땐 디폴트라우트값으로 라우팅 테이블을 줄일수있다.
=> # ip route 0.0.0.0 0.0.0.0 2.0.0.6
serial 지정 = 자기몸에 붙어있는 값
table = 자기몸에서 나간 도착한곳에 있는 값
UTP Cable
흰주 - 주 - 흰녹 - 청 - 흰청 - 주 - 흰갈 - 갈
흰녹
Direct Cable
= 이기종 (다른놈들끼리 연결할때) ex) 컴퓨터 - 스위치
568B-568B 방식 배열
흰주 - 주 - 흰녹 - 청 - 흰청 - 녹 - 흰갈 - 갈
Cross Cable
= 동기종 (같은놈들끼리 연결할때) ex) 컴 - 컴 , 컴 - 라우터
568B-568A 방식
흰녹 - 주 - 흰주 - 청 - 흰청 - 주 - 흰갈 - 갈
EIA-TIA 568 A방식 배열
1<->3 / 2<->6 끼리 맞트레이드
1번째<->3번째 / 2번째<->6번째끼리 맞트레이드
-------
슬슬 헷갈리기 시작한다...... 머리가 아프다..
복습한다고 자꾸 새벽에 자서 컨디션조절이 완전 실패한 한주였다.. 제발 일찍자자..