0
Tải bản đầy đủ (.pdf) (60 trang)

Lab 2– Cấu hình OSPFv3 cho IPv6

Một phần của tài liệu BÁO CÁO THỰC TẬP TỐT NGHIỆP TẠI TRUNG TÂM CÔNG NGHỆ MẠNG NEWSTAR (Trang 46 -46 )

Mục tiêu:

 Cấu hình địa chỉ IPv6 cho các interface  Thay đổi địa link-local mặc định.

 Cấu hình địa chỉ kiểu EUI-64 cho interface.  Cấu hình OSPFv3 đơn vùng.

Hình 4.3: Mô hình lab 2  Cấu hình địa chỉ IPv6 Interface loopback

R1(config)#ipv6 unicast-routing R1(config)#int loopback0

R1(config-if)#ipv6 add fec0::1:1/112 R1(config-if)#no shut

R1(config-if)#exit

R2(config)#ipv6 unicast-routing R2(config)#int loopback0

R2(config-if)#ipv6 add fec0::2:1/112 R2(config-if)#no shut

R3(config)#ipv6 unicast-routing R3(config)#int loopback0

R3(config-if)#ipv6 add fec0::3:1/112 R3(config-if)#no shut

R3(config-if)#exit

Cấu hình địa chỉ IPv6 cho các cổng Serial

R1(config)#int s0/0

R1(config-if)#ipv6 add fec0::12:1/112 R1(config-if)#clock rate 64000

R1(config-if)#no shut R1(config-if)#exit R1(config)#int s0/1

R1(config-if)#ipv6 add fec0::13:1/112 R1(config-if)#clock rate 64000

R1(config-if)#no shut R1(config-if)#exit R2(config)#int s0/0

R2(config-if)#ipv6 add fec0::12:2/112 R2(config-if)#clock rate 64000

R2(config-if)#no shut R2(config-if)#exit R3(config)#int s0/0

R3(config-if)#ipv6 add fec0::13:3/112 R3(config-if)#clock rate 64000

R3(config-if)#no shut R3(config-if)#exit

Thay đổi đỉa chỉ link – local mặc định

Địa chỉ link-local mặc định tự sinh ra trên tất cả interface nhằm duy trì kết nối với các thiết bị khác trên cùng link. Địa chỉ link-local đƣợc tạo nên từ 64 bit định danh interface và một prefix đƣợc quy định sẵn là FE80::/10. Sử dụng câu lệnh show

R1#sh ipv6 int s0/0

Serial0/0 is up, line protocol is up

IPv6 is enabled, link-local address is FE80::FFFF:FE10:45C5

Global unicast address(es):

FEC0::12:1, subnet is FEC0::12:0/112

R2#sh ipv6 int s0/0

Serial0/0 is up, line protocol is up

IPv6 is enabled, link-local address is FE80::CE01:CFF:FEEC:10

Global unicast address(es):

FEC0::12:2, subnet is FEC0::12:0/112

 Sử dụng câu lệnh ipv6 address address link-local để thay đổi giá trị mặc định

của địa chỉ link-local trên các interface.

R1(config-if)#int s0/0

R1(config-if)#ipv6 add fe80::1 link-local R1(config-if)#exit

R2(config-if)#int s0/0

R2(config-if)#ipv6 add fe80::2 link-local R2(config-if)#exit

Kiểm tra lại địa chỉ Link-local

R1#sh ipv6 int s0/0

Serial0/0 is up, line protocol is up

IPv6 is enabled, link-local address is FE80::1

Global unicast address(es):

FEC0::12:1, subnet is FEC0::12:0/112 R2#sh ipv6 int s0/0

Serial0/0 is up, line protocol is up

IPv6 is enabled, link-local address is FE80::2

Global unicast address(es):

Cấu hình địa chỉ IPv6 EUI-64

R2(config)#int f1/0

R2(config-if)#ipv6 add fec0:23::/64 eui-64

R2(config-if)#no shut R2(config-if)#exit R3(config)#int f1/0

R3(config-if)#ipv6 add fec0:23::/64 eui-64

R3(config-if)#no shut R3(config-if)#exit

Kiểm tra lại địa chỉ IPv6 cấu hình EUI-64

R2#sh ipv6 int f1/0

FastEthernet1/0 is up, line protocol is up

IPv6 is enabled, link-local address is FE80::CE01:CFF:FEEC:10 Global unicast address(es):

FEC0:23::CE01:CFF:FEEC:10, subnet is FEC0:23::/64 [EUI]

R3#sh ipv6 int f1/0

FastEthernet1/0 is up, line protocol is up

IPv6 is enabled, link-local address is FE80::CE02:CFF:FEEC:10 Global unicast address(es):

FEC0:23::CE02:CFF:FEEC:10, subnet is FEC0:23::/64 [EUI]

Định tuyến giữa các router sử dụng giao thức OSPFv3 đơn vùng

R1(config)#ipv6 router ospf 1 R1(config-rtr)#router-id 1.1.1.1 R1(config-rtr)#exit

R1(config)#int loopback0

R1(config-if)#ipv6 ospf 1 area 0 R1(config-if)#exit

R1(config)#int s0/0

R1(config-if)#ipv6 ospf 1 area 0 R1(config-if)#exit

R1(config)#int s0/1

R1(config-if)#ipv6 ospf 1 area 0 R1(config-if)#exit

R2(config)#ipv6 router ospf 1 R2(config-rtr)#router-id 2.2.2.2 R2(config-rtr)#exit

R2(config)#int loopback0

R2(config-if)#ipv6 ospf 1 area 0 R2(config-if)#exit

R2(config)#int s0/0

R2(config-if)#ipv6 ospf 1 area 0 R2(config-if)#exit

R2(config)#int f1/0

R2(config-if)#ipv6 ospf 1 area 0 R2(config-if)#exit

R3(config)#ipv6 router ospf 1 R3(config-rtr)#router-id 3.3.3.3 R3(config-rtr)#exit

R3(config)#int loopback0

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

R3(config)#int s0/0

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

R3(config)#int f1/0

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

Kiểm tra lại thông tin láng giềng

R1#sh ipv6 ospf nei

Neighbor ID Pri State Dead Time Interface ID Interface 3.3.3.3 1 FULL/ - 00:00:34 4 Serial0/1

2.2.2.2 1 FULL/ - 00:00:37 4 Serial0/0

R2#sh ipv6 ospf nei

Neighbor ID Pri State Dead Time Interface ID Interface 1.1.1.1 1 FULL/ - 00:00:32 4 Serial0/0

R3#sh ipv6 ospf nei

Neighbor ID Pri State Dead Time Interface ID Interface 2.2.2.2 1 FULL/DR 00:00:39 8 FastEthernet1/0 1.1.1.1 1 FULL/ - 00:00:35 5 Serial0/0

Kiểm tra bảng định tuyến

R1#sh ipv6 route ospf

IPv6 Routing Table - 11 entries

Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP U - Per-user Static route

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

O FEC0::2:1/128 [110/64] via FE80::2, Serial0/0 O FEC0::3:1/128 [110/64]

via FE80::CE02:21FF:FED4:10, Serial0/1 O FEC0:23::/64 [110/65]

via FE80::CE02:21FF:FED4:10, Serial0/1 via FE80::2, Serial0/0

R2#sh ipv6 route ospf

IPv6 Routing Table - 11 entries

Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP U - Per-user Static route

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

O FEC0::1:1/128 [110/64] via FE80::1, Serial0/0 O FEC0::3:1/128 [110/1]

via FE80::CE02:21FF:FED4:10, FastEthernet1/0 O FEC0::13:0/112 [110/65]

R3#sh ipv6 route ospf

IPv6 Routing Table - 11 entries

Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP U - Per-user Static route

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

O FEC0::1:1/128 [110/64]

via FE80::FFFF:FE10:45C5, Serial0/0 O FEC0::2:1/128 [110/1]

via FE80::CE01:21FF:FED4:10, FastEthernet1/0 O FEC0::12:0/112 [110/65]

via FE80::CE01:21FF:FED4:10, FastEthernet1/0

Tiến hành kiểm tra sự thông mạng

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 = 16/23/44 ms R2#ping fec0::1:1

Type escape sequence to abort.

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

Success rate is 100 percent (5/5), round-trip min/avg/max = 12/40/88 ms R3#ping fec0::2:1

Type escape sequence to abort.

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

Một phần của tài liệu BÁO CÁO THỰC TẬP TỐT NGHIỆP TẠI TRUNG TÂM CÔNG NGHỆ MẠNG NEWSTAR (Trang 46 -46 )

×