Net Eng

IPv6 - Static & RIPng 구성 본문

Network/실습

IPv6 - Static & RIPng 구성

欲心 2024. 6. 14. 03:35

RIPng(Next Generation 구성

- OSPF처럼 Process ID 사용
- RIPng 선언 이후 각 인터페이스별로 참여 여부 설정
- 라우팅 테이블 업데이트시 출발지 주소로 링크로컬 주소 사용
- 멀티캐스트 방식 업데이트(목적지 IP로 FF02::9 사용)
- 그 외 메트릭 요소로 홉 카운트 사요, 관리거리 값 120 사용
업데이트 주고 30초 등의 내용은 기존 RIP와 동일

선언 명령어

ipv6 router rip 1

 

IPv6 Stataic 구성

 

□ 라우터 & PC IP 주소 부여

 

R1

conf t
int fa0/0
ipv6 addr 2001:1:1:1::1/64
no sh
int s1/0
ipv6 addr 2001:12:12:12::1/64
no sh

 

R2

conf t
int s1/0
ipv6 addr 2001:12:12:12::2/64
no sh
int s1/1
ipv6 addr 2001:23:23:23::1/64
no sh
int s1/2
ipv6 addr 2001:24:24:24::1/64
no sh

 

R3

conf t
int s1/1
ipv6 addr 2001:23:23:23::2/64
no sh
int s1/3
ipv6 addr 2001:34:34:34::1/64
no sh

 

R4

conf t
int fa0/0
ipv6 addr 2001:4:4:4::1/64
no sh
int s1/2
ipv6 addr 2001:24:24:24::2/64
no sh
int s1/3
ipv6 addr 2001:34:34:34::2/64
no sh

 

PC1, 2

PC1
ip 2001:1:1:1::2/64 2001:1:1:1::1
PC2
ip 2001:4:4:4::2/64 2001:4:4:4::1

 

□ Static 라우팅 구성

 

R1

ipv6 unicast-routing
ipv6 route ::/0 s1/0

 

R2

ipv6 unicast-routing
ipv6 route 2001:1:1:1::/64 s1/0
ipv6 route 2001:34:34:34::/64 s1/1
ipv6 route 2001:34:34:34::/64 s1/2
ipv6 route 2001:4:4:4::/64 s1/2
ipv6 route 2001:4:4:4::/64 s1/1 25

 

R3

ipv6 unicast-routing
ipv6 route 2001:1:1:1::/64 s1/1
ipv6 route 2001:1:1:1::/64 s1/3 25
ipv6 route 2001:24:24:24::/64 s1/3
ipv6 route 2001:24:24:24::/64 s1/1
ipv6 route 2001:4:4:4::/64 s1/3
ipv6 route 2001:4:4:4::/64 s1/1 25
ipv6 route 2001:12:12:12::/64 s1/3 25
ipv6 route 2001:12:12:12::/64 s1/1

 

R4

ipv6 unicast-routing
ipv6 route 2001:12:12:12::/64 s1/2
ipv6 route 2001:12:12:12::/64 s1/3 25
ipv6 route 2001:23:23:23::/64 s1/3
ipv6 route 2001:23:23:23::/64 s1/2
ipv6 route 2001:1:1:1::/64 s1/3 25
ipv6 route 2001:1:1:1::/64 s1/2

 


설정 초기화

R1
conf t
no ipv6 route ::/0 Serial1/0

R2
conf t
no ipv6 route 2001:1:1:1::/64 Serial1/0
no ipv6 route 2001:4:4:4::/64 Serial1/2
no ipv6 route 2001:4:4:4::/64 Serial1/1 25
no ipv6 route 2001:34:34:34::/64 Serial1/1
no ipv6 route 2001:34:34:34::/64 Serial1/2

R3
conf t
no ipv6 route 2001:1:1:1::/64 Serial1/1
no ipv6 route 2001:1:1:1::/64 Serial1/3 25
no ipv6 route 2001:4:4:4::/64 Serial1/3
no ipv6 route 2001:4:4:4::/64 Serial1/1 25
no ipv6 route 2001:12:12:12::/64 Serial1/3 25
no ipv6 route 2001:12:12:12::/64 Serial1/1
no ipv6 route 2001:24:24:24::/64 Serial1/3
no ipv6 route 2001:24:24:24::/64 Serial1/1

R4
conf t
no ipv6 route 2001:1:1:1::/64 Serial1/2
no ipv6 route 2001:1:1:1::/64 Serial1/3 25
no ipv6 route 2001:12:12:12::/64 Serial1/2
no ipv6 route 2001:12:12:12::/64 Serial1/3 25
no ipv6 route 2001:23:23:23::/64 Serial1/3
no ipv6 route 2001:23:23:23::/64 Serial1/2

RIPng 라우팅 구성

 

RIPng 토폴로지

 

R1

conf t
ipv6 router rip 1
int fa0/0
ipv6 rip 1 enable
int s1/0
ipv6 rip 1 enable

 

R2

conf t
ipv6 router rip 1
int s1/0
ipv6 rip 1 enable
int s1/1
ipv6 rip 1 enable
int s1/2
ipv6 rip 1 enable

 

R3

conf t
ipv6 router rip 1
int s1/1
ipv6 rip 1 enable
int s1/3
ipv6 rip 1 enable

 

R4

conf t
ipv6 router rip 1
int fa0/0
ipv6 rip 1 enable
int s1/2
ipv6 rip 1 enable
int s1/3
ipv6 rip 1 enable

 

do sh ipv6 int s1/0

linklocal 와이어샤크 ripng => 도착지 멀티캐스트

 

R1에서 RIPng를 삭제 후 Static으로 재구성

no ipv6 router rip 1
ipv6 route ::/0 s1/0

 

R2

conf t
ipv6 route 2001:1:1:1::/64 s1/0

 

이제 R3, R4에서는 2001:1:1:1::/64 정보가 삭제되어 있을 것이며, R2에서 Static을 RIPng로 재분배 해서 경로 학습이 되도록 구성

 

R2

conf t
ipv6 router rip 1
redistribute static metric 1

 

RIPng 패킷 확인

 

R2 라우팅 테이블

'Network > 실습' 카테고리의 다른 글

IPv6 - Routing Protocol - EIGRPv2  (1) 2024.06.14
IPv6 - Routing Protocol - OSPFv3  (0) 2024.06.14
IPv6 - 재분배  (0) 2024.06.14
IPv6 구성  (0) 2024.06.14
Routing Protocol - EIGRP - (2)  (0) 2024.06.14