Lab 2– Manual IPv6 Tunnel

Một phần của tài liệu Tổng quan về địa chỉ IPv6 và triển khai IPv6 trên cơ sở hạ tầng mạng IPv4 (Trang 80 - 84)

Mô hình Lab :

Hình 3.3 Mô hình Lab 2 – Manual IPv6 Tunnel. Mục tiêu :

 Cấu hình EIGRP cho mạng IPv4.

 Tạo một Manual IPv6 tunnel.

 Cấu hình OSPFv3 thông qua tunnel.

Các bước thực hiện :

Bƣớc 1 : Cấu hình địa chỉ cho các interface vật lý và loopback.

R1(config)# interface loopback0

R1(config-if)# ip address 10.1.1.1 255.255.255.0 R1(config-if)# ipv6 address FEC0::1:1/112

R1(config-if)# interface serial 0/0

R1(config-if)# ip address 172.16.12.1 255.255.255.0 R1(config-if)# clockrate 64000

R1(config-if)# no shutdown R2(config)# interface loopback0

R2(config-if)# ip address 10.1.2.1 255.255.255.0 R2(config-if)# interface serial 0/0

R2(config-if)# ip address 172.16.12.2 255.255.255.0 R2(config-if)# no shutdown

R2(config-if)# interface serial 0/1

R2(config-if)# ip address 172.16.23.2 255.255.255.0 R2(config-if)# clockrate 64000

R2(config-if)# no shutdown R3(config)# interface loopback0

R3(config-if)# ip address 10.1.3.1 255.255.255.0 R3(config-if)# ipv6 address FEC0::3:1/112

R3(config-if)# interface serial 0/1

R3(config-if)# ip address 172.16.23.3 255.255.255.0 R3(config-if)# no shutdown

Bƣớc 2 : Cấu hình EIGRP cho mạng IPv4.

R1(config)# router eigrp 1

R1(config-router)# no auto-summary R1(config-router)# network 10.0.0.0 R1(config-router)# network 172.16.0.0 R2(config)# router eigrp 1

R2(config-router)# no auto-summary R2(config-router)# network 10.0.0.0 R2(config-router)# network 172.16.0.0 R3(config)# router eigrp 1

R3(config-router)# no auto-summary R3(config-router)# network 10.0.0.0 R3(config-router)# network 172.16.0.0

Bƣớc 3 : Cấu hình Manual IPv6 Tunnel.

logic giữa 2 điểm đầu và cuối. Chính vì vậy, inerface tunnel bắt buộc phải đƣợc gán địa chỉ ở 2 điểm đầu và cuối. Bên cạnh đó phải chỉ rõ điểm nguồn và điểm đích của kết nối.

R1(config)# int tunnel0

R1(config-if)# tunnel mode ipv6ip R1(config-if)# ipv6 add FEC0::13:1/112 R1(config-if)# tunnel source s0/0

R1(config-if)# tunnel destination 172.16.23.3 R3(config)# int tunnel0

R3(config-if)# tunnel mode ipv6ip R3(config-if)# ipv6 add FEC0::13:3/112 R3(config-if)# tunnel source s0/1 (adsbygoogle = window.adsbygoogle || []).push({});

R3(config-if)# tunnel destination 172.16.12.1

Kiểm tra lại kết nối giữa router R1 và R3 thông qua đƣờng hầm vừa mới tạo bằng câu lệnh ping.

R1#ping FEC0::13:3

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to FEC0::13:3, timeout is 2 seconds: !!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 64/66/68 ms

R3#ping FEC0::13:1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to FEC0::13:1, timeout is 2 seconds: !!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 64/66/68 ms

Bƣớc 4 : Cấu hình OSPFv3 thông qua Tunnel.

R1(config)# ipv6 unicast-routing R1(config)# interface loopback0 R1(config-if)# ipv6 ospf 1 area 0 R1(config-if)# interface tunnel0 R1(config-if)# ipv6 ospf 1 area 0 R3(config)# ipv6 unicast-routing R3(config)# interface loopback0 R3(config-if)# ipv6 ospf 1 area 0

R3(config-if)# interface tunnel0 R3(config-if)# ipv6 ospf 1 area 0

Kiểm tra lại cấu hình OSPFv3

R1#show ipv6 ospf neighbor

Neighbor ID Pri State Dead Time Interface ID Interface

10.1.3.1 1 FULL/ - 00:00:37 18 Tunnel0 R3#show ipv6 ospf neighbor

Neighbor ID Pri State Dead Time Interface ID Interface

10.1.1.1 1 FULL/ - 00:00:37 21 Tunnel0 R1#ping FEC0::3:1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to FEC0::3:1, timeout is 2 seconds: !!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 64/64/68 ms

R3#ping FEC0::1:1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to FEC0::1:1, timeout is 2 seconds: !!!!!

Một phần của tài liệu Tổng quan về địa chỉ IPv6 và triển khai IPv6 trên cơ sở hạ tầng mạng IPv4 (Trang 80 - 84)