CCNA/RIP

[CCNA] RIP v1,v2의 차이점 & lab

아직은버틸수있다 2008. 6. 25. 19:11


---- .net config -------------------

autostart = false
[localhost]
workingdir = C:\Virtual LAB\RIP\working

[[2691]]
image = c:\ios\c2691-advsecurityk9-mz.124-6.T.bin
ram = 128
slot1 = NM-4T
idlepc =  0x60b7cbec


[[router R1]]
model = 2691
console = 2001
s1/0 = R2 s1/0
idlepc =  0x60b7cbec


[[router R2]]
model = 2691
console = 2002
s1/1 = R3 s1/1
idlepc =  0x60b7cbec


[[router R3]]
model = 2691
console = 2003
idlepc = 0x60b7cbec

-------------------------------------------------------------------------------------


------------------IP setting-----------------------


R1)
int s1/0
ip add 192.168.12.1 255.255.255.0
band 64
clock rate 64000
no sh
int lo0
ip add 1.1.1.1 255.255.255.0


R2)
int s1/0
ip add 192.168.12.2 255.255.255.0
band 64
clock rate 64000
no sh
int s1/1
ip add 192.168.23.2 255.255.255.0
band 64
clock rate 64000
no sh
int lo0
ip add 2.2.2.2 255.255.255.0


R3)
int s1/1
ip add 192.168.23.3 255.255.255.0
band 64
clock rate 64000
no sh
int lo0
ip add 3.3.3.3 255.255.255.0

----------------------------------------------------------
------------초! 간단한 설명

RIP v1
서브넷 마스크 정보가 없는 라우팅 정보를 전송하는 클래스풀 라우팅 프로토콜
RIP v2
서브넷 마스크 정보를 전송하는 클래스리스 프로토콜

둘다 디스턴스 벡터(DISTANCE VECTOR) 라우팅 프로토콜

쉽게 말해서 RIP v1은

1.1.1.0/24
1.1.0.0/16
1.1.1.23/32
이라도 모두 1.0.0.0/8 로

RIP v2는 그나마 똑똑해서

/24 , /16 정보를 넘겨주는것

-----------------------------------------------------------
설정 방법
router rip
network X.X.X.X(라우터에 붙어있는 인접 포트 전부다.라고 일단생각하자)

Lab 에서는


R1)
router rip
network 1.1.1.1
network 192.168.12.1


R2)
router rip
network 2.2.2.2
network 192.168.12.2
network 192.168.23.2


R3)
router rip
network 3.3.3.3
network 192.168.23.3

------------------------------------------------------------
-------------RIP 라우팅 테이블 확인


show ip route


R1)

C    192.168.12.0/24 is directly connected, Serial1/0
     1.0.0.0/24 is subnetted, 1 subnets
C       1.1.1.0 is directly connected, Loopback0
R    2.0.0.0/8 [120/1] via 192.168.12.2, 00:00:14, Serial1/0
R    3.0.0.0/8 [120/2] via 192.168.12.2, 00:00:14, Serial1/0
R    192.168.23.0/24 [120/1] via 192.168.12.2, 00:00:14, Serial1/0


R2)

C    192.168.12.0/24 is directly connected, Serial1/0
R    1.0.0.0/8 [120/1] via 192.168.12.1, 00:00:21, Serial1/0
     2.0.0.0/24 is subnetted, 1 subnets
C       2.2.2.0 is directly connected, Loopback0
R    3.0.0.0/8 [120/1] via 192.168.23.3, 00:00:15, Serial1/1
C    192.168.23.0/24 is directly connected, Serial1/1


R3)

R    192.168.12.0/24 [120/1] via 192.168.23.2, 00:00:00, Serial1/1
R    1.0.0.0/8 [120/2] via 192.168.23.2, 00:00:00, Serial1/1
R    2.0.0.0/8 [120/1] via 192.168.23.2, 00:00:00, Serial1/1
     3.0.0.0/24 is subnetted, 1 subnets
C       3.3.3.0 is directly connected, Loopback0
C    192.168.23.0/24 is directly connected, Serial1/1

--------------------------------------------------------------------
-----------RIP v2 설정법
각 라우터에 R1),R2),R3)

router rip
version 2
no auto-summary (자동 요약 취소)

RIP v2의 라우팅 테이블


R1)

C    192.168.12.0/24 is directly connected, Serial1/0
     1.0.0.0/24 is subnetted, 1 subnets
C       1.1.1.0 is directly connected, Loopback0
     2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
R       2.2.2.0/24 [120/1] via 192.168.12.2, 00:00:24, Serial1/0
R       2.0.0.0/8 is possibly down,
          routing via 192.168.12.2, Serial1/0
     3.0.0.0/24 is subnetted, 1 subnets
R       3.3.3.0 [120/2] via 192.168.12.2, 00:00:24, Serial1/0
R    192.168.23.0/24 [120/1] via 192.168.12.2, 00:00:24, Serial1/0


R2)


C    192.168.12.0/24 is directly connected, Serial1/0
     1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
R       1.1.1.0/24 [120/1] via 192.168.12.1, 00:00:26, Serial1/0
R       1.0.0.0/8 [120/1] via 192.168.12.1, 00:01:23, Serial1/0
     2.0.0.0/24 is subnetted, 1 subnets
C       2.2.2.0 is directly connected, Loopback0
     3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
R       3.3.3.0/24 [120/1] via 192.168.23.3, 00:00:20, Serial1/1
R       3.0.0.0/8 [120/1] via 192.168.23.3, 00:02:37, Serial1/1
C    192.168.23.0/24 is directly connected, Serial1/1


R3)

R    192.168.12.0/24 [120/1] via 192.168.23.2, 00:00:04, Serial1/1
     1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
R       1.1.1.0/24 [120/2] via 192.168.23.2, 00:00:04, Serial1/1
R       1.0.0.0/8 [120/2] via 192.168.23.2, 00:00:04, Serial1/1
     2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
R       2.2.2.0/24 [120/1] via 192.168.23.2, 00:00:04, Serial1/1
R       2.0.0.0/8 [120/1] via 192.168.23.2, 00:02:51, Serial1/1
     3.0.0.0/24 is subnetted, 1 subnets
C       3.3.3.0 is directly connected, Loopback0
C    192.168.23.0/24 is directly connected, Serial1/1

------------------------------------------------------------------
v1 과 v2 테이블 비교

11111111111111111111111111111111111111111111111111111111111111111111


R1) v1

C    192.168.12.0/24 is directly connected, Serial1/0
     1.0.0.0/24 is subnetted, 1 subnets
C       1.1.1.0 is directly connected, Loopback0
R    2.0.0.0/8 [120/1] via 192.168.12.2, 00:00:14, Serial1/0
R    3.0.0.0/8 [120/2] via 192.168.12.2, 00:00:14, Serial1/0
R    192.168.23.0/24 [120/1] via 192.168.12.2, 00:00:14, Serial1/0


11111111111111111111111111111111111111111111111111111111111111111111

22222222222222222222222222222222222222222222222222222222222222222222


R1) v2

C    192.168.12.0/24 is directly connected, Serial1/0
     1.0.0.0/24 is subnetted, 1 subnets
C       1.1.1.0 is directly connected, Loopback0
     2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
R       2.2.2.0/24 [120/1] via 192.168.12.2, 00:00:24, Serial1/0
R       2.0.0.0/8 is possibly down,
          routing via 192.168.12.2, Serial1/0
     3.0.0.0/24 is subnetted, 1 subnets
R       3.3.3.0 [120/2] via 192.168.12.2, 00:00:24, Serial1/0
R    192.168.23.0/24 [120/1] via 192.168.12.2, 00:00:24, Serial1/0


22222222222222222222222222222222222222222222222222222222222222222222


이것만 보아도 훨씬 자세히 볼 수 있다는 것을 알 수 있다.