Net Eng

IPv6 - 재분배 본문

Network/실습

IPv6 - 재분배

欲心 2024. 6. 14. 03:35

토폴로지

 

■ 라우터 IP 부여

 

R1 라우터

conf t
ipv6 unicast-routing
int s1/0
ipv6 addr 2001:12:12:12::1/64
no sh
int L0
ipv6 addr 2001:1:1:1::1/64

 

R2 라우터

conf t
ipv6 unicast-routing
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
int s1/3
ipv6 addr 2001:32:32:32::1/64
no sh

 

R3 라우터

conf t
ipv6 unicast-routing
int s1/1
ipv6 addr 2001:23:23:23::2/64
no sh
int s1/3
ipv6 addr 2001:32:32:32::2/64
no sh
int L0
ipv6 addr 2001:3:3:3::1/64

 

R4 라우터

conf t
ipv6 unicast-routing
int s1/2
ipv6 addr 2001:24:24:24::2/64
no sh
int s1/1
ipv6 addr 2001:45:45:45::1/64
no sh

 

R5 라우터

conf t
ipv6 unicast-routing
int s1/0
ipv6 addr 2001:45:45:45::2/64
no sh
int s1/1
ipv6 addr 2001:56:56:56::1/64
no sh

 

R6 라우터

conf t
ipv6 unicast-routing
int s1/1
ipv6 addr 2001:56:56:56::2/64
no sh
int s1/2
ipv6 addr 2001:67:67:67::1/64
no sh

 

R7 라우터

conf t
ipv6 unicast-routing
int s1/2
ipv6 addr 2001:67:67:67::2/64
no sh
int L0
ipv6 addr 2001:7:7:7::1/64

 

■ 라우팅 프로토콜 설정

 

□ Static & RIP

 

R1 라우터

ipv6 route ::/0 s1/0

 

R2 라우터

ipv6 route 2001:1:1:1::/64 s1/0
ipv6 route 2001:12:12:12::/64 s1/0
ipv6 router rip 1
int s1/2
ipv6 rip 1 enable

 

R4 라우터

ipv6 router rip 1
int s1/2
ipv6 rip 1 enable

 

□ OSPF

 

R4 라우터

ipv6 router ospf 1
router-id 4.4.4.4
int s1/1
ipv6 ospf 1 area 0

 

R5 라우터

ipv6 router ospf 1
router-id 5.5.5.5
int s1/0
ipv6 ospf 1 area 0
int s1/1
ipv6 ospf 1 area 1

 

R6 라우터

ipv6 router ospf 1
router-id 6.6.6.6
int s1/1
ipv6 ospf 1 area 1
int s1/2
ipv6 ospf 1 area 2

 

R7 라우터

ipv6 router ospf 1
router-id 7.7.7.7
int s1/2
ipv6 ospf 1 area 2
int L0
ipv6 ospf 1 area 2

 

□ EIGRP

 

R2 라우터

ipv6 router eigrp 100
router-id 2.2.2.2
no sh
int s1/1
ipv6 eigrp 100
int s1/3
ipv6 eigrp 100

 

R3 라우터

ipv6 router eigrp 100
router-id 3.3.3.3
no sh
int s1/1
ipv6 eigrp 100
int s1/3
ipv6 eigrp 100
int L0
ipv6 eigrp 100

 

■ 각각의 라우팅 프로토콜 재분배

 

▶ R2 라우터에서는 RIPng 구역에 Static과 EIGRP를 재분배 해주어야 하고 EIGRP 구역에는 Static과 RIPng를 재분배 해주어야 한다. 또한 코드 C로 되어 있는  2001:12:12:12::/64를 재분배 해주기 위해 각각에 Connected 명령어를 사용해 준다.

 

R2 라우터

ipv6 router rip 1
redistribute static metric 1
redistribute connected
redistribute eigrp 100 metric 1

ipv6 router eigrp 100
redistribute rip 1 metric 1544 2000 255 1 1500
redistribute static metric 1544 2000 255 1 1500
redistribute connected

 

▶ R4 라우터에서는 RIPng 구역에 OSPF를 재분배 해주어야 하고 OSPF 구역에는 RIPng를 재분배 해주어야 한다.

 

R4 라우터

ipv6 router rip 1
redistribute ospf 1 metric 1
redistribute connected

ipv6 router ospf 1
redistribute rip 1
redistribute connected

 

■ Virtual-Link 설정

 

Area2는 OSPF 규칙에 어긋나기 때문에 Virtual-Link를 설정해주어 정상적으로 학습하도록 설정해주어야 한다.

 

R5 라우터

ipv6 router ospf 1
area 1 virtual-link 6.6.6.6

 

R6 라우터

ipv6 router ospf 1
area 1 virtual-link 5.5.5.5

 

■ R3 라우터에서 Output은 S1/1만 사용하고, Input은 S1/3만을 사용하라는 규칙이 있기 때문에 인터페이스의 Delay 값을 수정하여 한곳으로만 트래픽이 이동하도록 설정한다.

 

R2 라우터

int s1/3
delay 1000

 

R3 라우터

int s1/1
delay 1000

 

■ OSPF DR/BDR 선정

 

▶ DR/BDR은 현재 설정되어 있는 Point to Point에서는 선정하지 않기 때문에 해당 Area의 네트워크 타입을 Broad cast로 변경하고 DR로 선정하기 위해 해당 라우터의 Priority 값을 올려준다.

 

R4 라우터

conf t
int s1/1
ipv6 ospf network broadcast

 

R5 라우터

conf t
int s1/0
ipv6 ospf network broadcast

 

R4 라우터

int s1/1
ip ospf priority 255

 

설정 이후 R4, R5에서 OSPF 프로세스 초기화

do clear ipv6 ospf process

 

R3 라우터에서 R7 라우터 루프백 인터페이스로 Ping test
R4 라우터 DR로 선정

 

▶ R3 라우팅 테이블

R3(config-if)#do sh ipv6 route
IPv6 Routing Table - 16 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
       U - Per-user Static route, M - MIPv6
       I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
       O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
       ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
       D - EIGRP, EX - EIGRP external
EX  2001:1:1:1::/64 [170/2425856]
     via FE80::C005:EFF:FEF4:0, Serial1/1
C   2001:3:3:3::/64 [0/0]
     via ::, Loopback0
L   2001:3:3:3::1/128 [0/0]
     via ::, Loopback0
EX  2001:7:7:7::1/128 [170/2425856]
     via FE80::C005:EFF:FEF4:0, Serial1/1
EX  2001:12:12:12::/64 [170/2425856]
     via FE80::C005:EFF:FEF4:0, Serial1/1
C   2001:23:23:23::/64 [0/0]
     via ::, Serial1/1
L   2001:23:23:23::2/128 [0/0]
     via ::, Serial1/1
EX  2001:24:24:24::/64 [170/2425856]
     via FE80::C005:EFF:FEF4:0, Serial1/1
C   2001:32:32:32::/64 [0/0]
     via ::, Serial1/3
L   2001:32:32:32::2/128 [0/0]
     via ::, Serial1/3
EX  2001:45:45:45::/64 [170/2425856]
     via FE80::C005:EFF:FEF4:0, Serial1/1
EX  2001:56:56:56::/64 [170/2425856]
     via FE80::C005:EFF:FEF4:0, Serial1/1
EX  2001:56:56:56::1/128 [170/2425856]
     via FE80::C005:EFF:FEF4:0, Serial1/1
EX  2001:56:56:56::2/128 [170/2425856]
     via FE80::C005:EFF:FEF4:0, Serial1/1
EX  2001:67:67:67::/64 [170/2425856]
     via FE80::C005:EFF:FEF4:0, Serial1/1
L   FF00::/8 [0/0]
     via ::, Null0

 

▶ R7 라우팅 테이블

R7(config-if)#do sh ipv6 route
IPv6 Routing Table - 15 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
       U - Per-user Static route, M - MIPv6
       I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
       O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
       ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
       D - EIGRP, EX - EIGRP external
OE2  2001:1:1:1::/64 [110/20]
     via FE80::C002:31FF:FE24:0, Serial1/2
OE2  2001:3:3:3::/64 [110/20]
     via FE80::C002:31FF:FE24:0, Serial1/2
C   2001:7:7:7::/64 [0/0]
     via ::, Loopback0
L   2001:7:7:7::1/128 [0/0]
     via ::, Loopback0
OE2  2001:12:12:12::/64 [110/20]
     via FE80::C002:31FF:FE24:0, Serial1/2
OE2  2001:23:23:23::/64 [110/20]
     via FE80::C002:31FF:FE24:0, Serial1/2
OE2  2001:24:24:24::/64 [110/20]
     via FE80::C002:31FF:FE24:0, Serial1/2
OE2  2001:32:32:32::/64 [110/20]
     via FE80::C002:31FF:FE24:0, Serial1/2
OI  2001:45:45:45::/64 [110/192]
     via FE80::C002:31FF:FE24:0, Serial1/2
OI  2001:56:56:56::/64 [110/128]
     via FE80::C002:31FF:FE24:0, Serial1/2
OI  2001:56:56:56::1/128 [110/128]
     via FE80::C002:31FF:FE24:0, Serial1/2
OI  2001:56:56:56::2/128 [110/64]
     via FE80::C002:31FF:FE24:0, Serial1/2
C   2001:67:67:67::/64 [0/0]
     via ::, Serial1/2
L   2001:67:67:67::2/128 [0/0]
     via ::, Serial1/2
L   FF00::/8 [0/0]
     via ::, Null0

 

■ 실습파일

IPv6-Integrity-1.7z
0.01MB

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

IPv6 - Routing Protocol - OSPFv3  (0) 2024.06.14
IPv6 - Static & RIPng 구성  (0) 2024.06.14
IPv6 구성  (0) 2024.06.14
Routing Protocol - EIGRP - (2)  (0) 2024.06.14
Routing Protocol - EIGRP - (1)  (0) 2024.06.14