ÁP DỤNG IPV6 CHO CÁC TỔNG DÀI

17 547 1
ÁP DỤNG IPV6 CHO CÁC TỔNG DÀI

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

IPV6 ngày nay đã và đang được ứng dụng rộng rãi trong cuộc sống, trông công việc, đặc biệt là trong ứng dụng IoTs , cụ thể là các thiết bị thông minh hiện nay. Nếu các bạn muốn nâng cao sự hiểu biết, cũng như nâng cao thu nhập, nâng cao kiến thức thì tài liệu này rất hữu ích. Bạn có thể ứng dụng để làm luận văn, đồ án. Để tìm hiểu thêm về nhiều thông tin, cách áp dụng và cả những ứng dụng IPV6 cho các tổng đài. Cách cấu hình mạng IPV6 để liên thông mạng và kết nối tích cực đến các mạng khác. Các bạn nên tham khảo tài liệu này!

1.1 CẤU HÌNH ĐỊNH TUYẾN RIP TRÊN IPv6 Các bước thực thiện: Đặt địa IP cho Host, giao diện command PC: ip 3eee:a00:a18:3::10/64 ip 3eee:a00:a18:3::11/64 ip 3eee:a00:a18:5::10/64 ip 3eee:a00:a18:6::10/64 Bật chế định tuyến unicast cho IPv6 router Hub để hai Spoke ping nhau: R1(config)#ipv6 unicast-routing Giống với RIPv2, để cấu hình định tuyến router, thực cho cổng cần thiết router tham gia định tuyến Khác với RIPv2, RIPng không sử dụng lệnh “network” mode cấu hình định tuyến để add cổng vào tiến trình mà thực bật RIP cổng mà ta muốn cho tham gia định tuyến Câu lệnh để bật định tuyến cổng với RIPng: R(config-if)#ipv6 rip Tên_tiến_trình_RIP enable Một điểm khác biệt RIPng với RIPv2 tiến trình RIPng đặt tên gọi cấu hình liên quan đến hoạt động tiến trình RIPng phải tham chiếu đến tên gọi Đặt IP giao diện router: Trên Router R1: R1# R1#configure terminal R1(config)# ipv6 unicast-routing R1(config)#interface f0/0 R1(config-if)#ipv6 address 3eee:a00:a18:1::1/64 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#interface f1/0 R1(config-if)#ipv6 address 3eee:a00:a18:3::1/64 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#interface f1/1 R1(config-if)#ipv6 address 3eee:a00:a18:2::1/64 R1(config-if)#no shutdown R1(config-if)#exit Trên Router R2: R2# R2#configure terminal R2(config)# ipv6 unicast-routing R2(config)#interface f0/0 R2(config-if)#ipv6 address 3eee:a00:a18:2::2/64 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface f1/0 R2(config-if)#ipv6 address 3eee:a00:a18:5::2/64 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface f1/1 R2(config-if)#ipv6 address 3eee:a00:a18:4::2/64 R2(config-if)#no shutdown R2(config-if)#exit Trên Router R3: R3# R3#configure terminal R3(config)# ipv6 unicast-routing R3(config)#interface f0/0 R3(config-if)#ipv6 address 3eee:a00:a18:4::3/64 R3(config-if)#no shutdown R3(config-if)#exit R3(config)#interface f1/0 R3(config-if)#ipv6 address 3eee:a00:a18:6::3/64 R3(config-if)#no shutdown R3(config-if)#exit Trên Router ISP: ISP# ISP#configure terminal ISP(config)# ipv6 unicast-routing ISP(config)#interface f0/0 ISP(config-if)#ipv6 address 3eee:a00:a18:1::4/64 ISP(config-if)#no shutdown ISP(config-if)#exit Cấu hình định tuyến RIPv6 cho Router: Router R1: R1# R1#configure terminal R1(config)# ipv6 router rip ripv6 R1(config-rtr)# interface f1/0 R1(config-if)# ipv6 rip ripv6 enable R1(config-if)# exit R1(config-rtr)# interface f1/1 R1(config-if)# ipv6 rip ripv6 enable R1(config-if)# exit Router R2: R2# R2#configure terminal R2(config)# ipv6 router rip ripv6 R2(config-rtr)# interface f0/0 R2(config-if)# ipv6 rip ripv6 enable R2(config-if)# exit R2(config-rtr)# interface f1/0 R2(config-if)# ipv6 rip ripv6 enable R2(config-if)# exit R2(config-rtr)# interface f1/1 R2(config-if)# ipv6 rip ripv6 enable R2(config-if)# exit Router R3: R3# R3#configure terminal R3(config)# ipv6 router rip ripv6 R3(config-rtr)# interface f1/0 R3(config-if)# ipv6 rip ripv6 enable R3(config-if)# exit R3(config-rtr)# interface f1/1 R3(config-if)# ipv6 rip ripv6 enable R3(config-if)# exit Cấu hình RIPv6 cho sơ đồ Lab xong, tiến hành kiểm tra bảng định tuyến router: Router#ping 3eee:a00:a18:5::10 Type escape sequence to abort Sending 5, 100-byte ICMP Echos to 3EEE:A00:A18:5::10, timeout is seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 64/83/104 ms VPCS> ping 3eee:a00:a18:5::10 3eee:a00:a18:5::10 icmp6_seq=1 ttl=60 time=102.022 ms 3eee:a00:a18:5::10 icmp6_seq=2 ttl=60 time=90.763 ms 3eee:a00:a18:5::10 icmp6_seq=3 ttl=60 time=171.106 ms 3eee:a00:a18:5::10 icmp6_seq=5 ttl=60 time=133.221 ms VPCS> ping 3eee:a00:a18:3::10 3eee:a00:a18:3::10 icmp6_seq=1 ttl=64 time=1.096 ms 3eee:a00:a18:3::10 icmp6_seq=3 ttl=64 time=9.767 ms 3eee:a00:a18:3::10 icmp6_seq=4 ttl=64 time=0.292 ms 3eee:a00:a18:3::10 icmp6_seq=5 ttl=64 time=0.297 ms 1.2 CẤU HÌNH ĐỊNH TUYẾN EIGRP TRÊN IPv6 Các thiết lập cấu sơ đồ Lab cũ EIGRPv6 giao thức định tuyến IPv6 đưa vào Cisco IOS hệ điều hành 12.4T EIGRPv6 sử dụng thuật toán có tính giống với IPv4 EIGRPv6 sử dụng giá trị AD internal external giống EIGRPv4 (90 170) Khác với EIGRPv4, để sử dụng EIGRPv6, trước hết, cần phải vào mode cấu hình tiến trình định tuyến thực “no shutdown” tiến trình này: R(config)#ipv6 router eigrp AS_Number R(config-rtr)#no shutdown EIGRPv6 sử dụng giá trị router – id để định danh cho router tham gia định tuyến EIGRPv6 Giá trị router – id này, giống OSPFv3 sử dụng định dạng địa IPv4 mặc định tiến trình tự động lấy địa IPv4 cao interface active, ưu tiên cổng loopback Với sơ đồ túy IPv6 lab khảo sát đây, cần phải cấu hình tĩnh giá trị router – id cho router: R(config)#ipv6 router eigrp AS_Number R(config-rtr)#router-id A.B.C.D Khi chạy EIGRPv6, router giá trị router – id, tiến trình không chạy mà không báo lỗi Do đó, để EIGRPv6 chạy thông suốt, cần phải cấu hình giá trị router – id cho router sơ đồ lab Cấu hình định tuyến EIGRPv6 cho router: Router R1: R1# R1#configure terminal R1(config)#ipv6 router eigrp 100 R1(config-rtr)#router-id 1.1.1.1 R1(config-rtr)#exit R1(config)#interface f1/0 R1(config-if)#ipv6 eigrp 100 R1(config-if)#exit R1(config)#interface f1/1 R1(config-if)#ipv6 eigrp 100 R1(config-if)#exit Router R2: R2# R2#configure terminal R2(config)#ipv6 router eigrp 100 R2(config-rtr)#router-id 2.2.2.2 R2(config-rtr)#exit R2(config)#interface f0/0 R2(config-if)#ipv6 eigrp 100 R2(config-if)#exit R2(config)#interface f1/0 R2(config-if)#ipv6 eigrp 100 R2(config-if)#exit R2(config)#interface f1/1 R2(config-if)#ipv6 eigrp 100 R2(config-if)#exit R3# R3#configure terminal R3(config)#ipv6 router eigrp 100 R3(config-rtr)#router-id 3.3.3.3 R3(config-rtr)#exit R3(config)#interface f0/0 R3(config-if)#ipv6 eigrp 100 R3(config-if)#exit R3(config)#interface f1/0 R3(config-if)#ipv6 eigrp 100 R3(config-if)#exit Định tuyến cho router xong, tiến hành kiểm tra bảng định tuyến : Router#ping 3eee:a00:a18:5::10 Type escape sequence to abort Sending 5, 100-byte ICMP Echos to 3EEE:A00:A18:5::10, timeout is seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 64/83/104 ms VPCS> ping 3eee:a00:a18:5::10 3eee:a00:a18:5::10 icmp6_seq=1 ttl=60 time=102.022 ms 3eee:a00:a18:5::10 icmp6_seq=2 ttl=60 time=90.763 ms 3eee:a00:a18:5::10 icmp6_seq=3 ttl=60 time=171.106 ms 3eee:a00:a18:5::10 icmp6_seq=5 ttl=60 time=133.221 ms VPCS> ping 3eee:a00:a18:3::10 3eee:a00:a18:3::10 icmp6_seq=1 ttl=64 time=1.096 ms 3eee:a00:a18:3::10 icmp6_seq=3 ttl=64 time=9.767 ms 3eee:a00:a18:3::10 icmp6_seq=4 ttl=64 time=0.292 ms 3eee:a00:a18:3::10 icmp6_seq=5 ttl=64 time=0.297 ms 1.3 CẤU HÌNH ĐỊNH TUYẾN OSPFv3 TRÊN IPv6 Các bước thực Bước 1: Đặt địa IP cho máy PC PC1> ip 3eee:a00:a18:3::10/64 PC2> ip 3eee:a00:a18:3::11/64 PC3> ip 3eee:a00:a18:5::10/64 PC4> ip 3eee:a00:a18:6::10/64 Bước 2: Cấu hình địa IPv6 cho router Trên ISP: ISP# conf t ISP(config)#ipv6 unicast-routing ISP(config)#int f0/0 ISP(config-if)#ipv6 add 3eee:a00:a18:1::4/64 ISP(config-if)#no shutdown Trên R1: R1# conf t R1(config)#ipv6 unicast-routing R1(config)#int f0/0 R1(config-if)#ipv6 add 3eee:a00:a18:3::1/64 R1(config-if)#no shutdown R1(config-if)#int f1/0 R1(config-if)#ipv6 add 3eee:a00:a18:2::1/64 R1(config-if)#no shutdown R1(config-if)#int f0/1 R1(config-if)#ipv6 add 3eee:a00:a18:1::1/64 R1(config-if)#no shutdown Trên R2: R2# conf t R2(config)#ipv6 unicast-routing R2(config)#int f0/0 R2(config-if)#ipv6 add 3eee:a00:a18:2::2/64 R2(config-if)#no shutdown R2(config-if)#int f1/0 R2(config-if)#ipv6 add 3eee:a00:a18:5::2/64 R2(config-if)#no shutdown R2(config-if)#int f0/1 R2(config-if)#ipv6 add 3eee:a00:a18:4::2/64 R2(config-if)#no shutdown Trên R3: R3# conf t R3(config)#ipv6 unicast-routing R3(config)#int f0/0 R3(config-if)#ipv6 add 3eee:a00:a18:6::3/64 R3(config-if)#no shutdown R3(config-if)#int f0/1 R3(config-if)#ipv6 add 3eee:a00:a18:4::3/64 R3(config-if)#no shutdown Kiểm tra địa gán thành công hay chưa Trên ISP: ISP#show ipv6 int brief FastEthernet0/0 [up/up] FE80::C201:DFF:FEA4:0 3EEE:A00:A18:1::4 Trên R1: R1#show ipv6 int brief FastEthernet0/0 [up/up] FE80::C201:DFF:FEA4:0 3EEE:A00:A18:3::1 FastEthernet0/1 [up/up] FE80::C201:DFF:FEA4:1 3EEE:A00:A18:1::1 FastEthernet1/0 [up/up] FE80::C201:DFF:FEA4:10 3EEE:A00:A18:2::1 10 Trên R2: R2#show ipv6 int brief FastEthernet0/0 [up/up] FE80::C202:1FFF:FE34:0 3EEE:A00:A18:2::2 FastEthernet0/1 [up/up] FE80::C202:1FFF:FE34:1 3EEE:A00:A18:4::2 FastEthernet1/0 [up/up] FE80::C202:1FFF:FE34:10 3EEE:A00:A18:5::2 Trên R3: R3#show ipv6 int brief FastEthernet0/0 [up/up] FE80::C202:1FFF:FE34:0 3EEE:A00:A18:4::3 FastEthernet0/1 [up/up] FE80::C202:1FFF:FE34:1 3EEE:A00:A18:6::3 Bước 3: Cấu hình OSPFv3 cho router R1, R2, R3 Trên R1: R1(config)#ipv6 router ospf R1(config-rtr)#router-id 1.1.1.1 R1(config-rtr)#exit R1(config)#interface f0/0 R1(config-if)#ipv6 ospf area R1(config-if)# interface f0/1 R1(config-if)#ipv6 ospf area R1(config-if)# interface f1/0 R1(config-if)#ipv6 ospf area 11 Trên R2: R2(config)#ipv6 router ospf R2(config-rtr)#router-id 2.2.2.2 R2(config-rtr)#exit R2(config)#interface f0/0 R2(config-if)#ipv6 ospf area R2(config-if)# interface f0/1 R2(config-if)#ipv6 ospf area R2(config-if)# interface f1/0 R2(config-if)#ipv6 ospf area Trên R3: R3(config)#ipv6 router ospf R3(config-rtr)#router-id 3.3.3.3 R3(config-rtr)#exit R3(config)#interface f0/0 R3(config-if)#ipv6 ospf area R3(config-if)# interface f0/1 R3(config-if)#ipv6 ospf area Bước 4: Định tuyến tĩnh router ISP R1 Trên ISP: ISP(config)#ipv6 route 3eee:a00:a18:1::/64 :: Trên R1: R1(config)#ipv6 route ::/0 3eee:a00:a18:1::4 Bước 5: Kiểm tra định tuyến OSPF router R1, R2, R3 Trên R1: R1#show ipv6 ospf neighbor Neighbor ID 2.2.2.2 Pri State Dead Time Interface ID FULL/DR 00:00:31 12 Interface FastEthernet0/0 Trên R2: R2#show ipv6 ospf neighbor Neighbor ID Pri State Dead Time Interface ID Interface 1.1.1.1 FULL/BDR 00:00:34 FastEthernet0/0 3.3.3.3 FULL/DR FastEthernet0/1 00:00:34 Trên R3: R3#show ipv6 ospf neighbor R1#show ipv6 ospf neighbor Neighbor ID 2.2.2.2 Pri State Dead Time Interface ID FULL/DR 00:00:31 FastEthernet0/0 1.4 CẤU HÌNH Manual IPv6 Tunnel 1.4.1 Mô hình Lap Hình 4.3 Mô hình Lap Manual IPv6 Tunnel 13 Interface 1.4.2 Các bước thực Bước 1: Cấu hình địa IPv6 cho router Trên R1: R1# conf t R1(config)#int f0/1 R1(config-if)#ip add 192.168.12.1 255.255.255.0 R1(config-if)#no shutdown Trên R2: R2# conf t R2(config)#int f0/0 R2(config-if)#ip add 192.168.12.2 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#int f0/1 R2(config-if)#ip add 192.168.23.2 255.255.255.0 R2(config-if)#no shutdown Trên R3: R3# conf t R3(config)#int f0/0 R3(config-if)#ip add 192.168.23.3 255.255.255.0 R3(config-if)#no shutdown Bước 2: Cấu hình định tuyến RIP router R1, R2, R3 Trên R1: R1(config)#router rip R1(config-router)#ver R1(config-router)#network 192.168.12.0 R1(config-router)#no auto-summary Trên R2: R2(config)#router rip R2(config-router)#ver R2(config-router)#network 192.168.12.0 R2(config-router)#network 192.168.23.0 R2(config-router)#no auto-summary 14 Trên R3: R3(config)#router rip R3(config-router)#ver R3(config-router)#network 192.168.23.0 R3(config-router)#no auto-summary Bước 3: Cấu hình Tunnel R1 R3 Trên R1: R1(config)#int tunnel0 R1(config-if)#tunnel mode ipv6ip R1(config-if)#ipv6 add fec0::13:1/112 R1(config-if)#tunnel source f0/1 R1(config-if)#tunnel destination 192.168.23.3 Trên R3: R3(config)#int tunnel0 R3(config-if)#tunnel mode ipv6ip R3(config-if)#ipv6 add fec0::13:3/112 R3(config-if)#tunnel source f0/0 R3(config-if)#tunnel destination 192.168.12.1 Bước 4: Kiểm tra Trên R1: R1#ping fec0::13:3 Type escape sequence to abort Sending 5, 100-byte ICMP Echos to FEC0::13:3, timeout is seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 76/236/864 ms 15 Trên R3: R3#ping fec0::13:1 Type escape sequence to abort Sending 5, 100-byte ICMP Echos to FEC0::13:1, timeout is seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 60/172/596 ms 16 17 [...]... FULL/DR 4 FastEthernet0/1 00:00:34 Trên R3: R3#show ipv6 ospf neighbor R1#show ipv6 ospf neighbor Neighbor ID 2.2.2.2 Pri State Dead Time Interface ID 1 FULL/DR 00:00:31 4 FastEthernet0/0 1.4 CẤU HÌNH Manual IPv6 Tunnel 1.4.1 Mô hình Lap Hình 4.3 Mô hình Lap Manual IPv6 Tunnel 13 Interface 1.4.2 Các bước thực hiện Bước 1: Cấu hình địa chỉ IPv6 cho các router Trên R1: R1# conf t R1(config)#int f0/1 R1(config-if)#ip... f0/1 R2(config-if) #ipv6 ospf 1 area 0 R2(config-if)# interface f1/0 R2(config-if) #ipv6 ospf 1 area 0 Trên R3: R3(config) #ipv6 router ospf 1 R3(config-rtr)#router-id 3.3.3.3 R3(config-rtr)#exit R3(config)#interface f0/0 R3(config-if) #ipv6 ospf 1 area 0 R3(config-if)# interface f0/1 R3(config-if) #ipv6 ospf 1 area 0 Bước 4: Định tuyến tĩnh giữa router ISP và R1 Trên ISP: ISP(config) #ipv6 route 3eee:a00:a18:1::/64... R1(config) #ipv6 router ospf 1 R1(config-rtr)#router-id 1.1.1.1 R1(config-rtr)#exit R1(config)#interface f0/0 R1(config-if) #ipv6 ospf 1 area 0 R1(config-if)# interface f0/1 R1(config-if) #ipv6 ospf 1 area 0 R1(config-if)# interface f1/0 R1(config-if) #ipv6 ospf 1 area 0 11 Trên R2: R2(config) #ipv6 router ospf 1 R2(config-rtr)#router-id 2.2.2.2 R2(config-rtr)#exit R2(config)#interface f0/0 R2(config-if) #ipv6. .. Trên ISP: ISP(config) #ipv6 route 3eee:a00:a18:1::/64 :: Trên R1: R1(config) #ipv6 route ::/0 3eee:a00:a18:1::4 Bước 5: Kiểm tra định tuyến OSPF trên các router R1, R2, R3 Trên R1: R1#show ipv6 ospf neighbor Neighbor ID 2.2.2.2 Pri State Dead Time Interface ID 1 FULL/DR 00:00:31 12 4 Interface FastEthernet0/0 Trên R2: R2#show ipv6 ospf neighbor Neighbor ID Pri State Dead Time Interface ID Interface 1.1.1.1... auto-summary Bước 3: Cấu hình Tunnel giữa R1 và R3 Trên R1: R1(config)#int tunnel0 R1(config-if)#tunnel mode ipv6ip R1(config-if) #ipv6 add fec0::13:1/112 R1(config-if)#tunnel source f0/1 R1(config-if)#tunnel destination 192.168.23.3 Trên R3: R3(config)#int tunnel0 R3(config-if)#tunnel mode ipv6ip R3(config-if) #ipv6 add fec0::13:3/112 R3(config-if)#tunnel source f0/0 R3(config-if)#tunnel destination 192.168.12.1... R2#show ipv6 int brief FastEthernet0/0 [up/up] FE80::C202:1FFF:FE34:0 3EEE:A00:A18:2::2 FastEthernet0/1 [up/up] FE80::C202:1FFF:FE34:1 3EEE:A00:A18:4::2 FastEthernet1/0 [up/up] FE80::C202:1FFF:FE34:10 3EEE:A00:A18:5::2 Trên R3: R3#show ipv6 int brief FastEthernet0/0 [up/up] FE80::C202:1FFF:FE34:0 3EEE:A00:A18:4::3 FastEthernet0/1 [up/up] FE80::C202:1FFF:FE34:1 3EEE:A00:A18:6::3 Bước 3: Cấu hình OSPFv3 cho. .. 4: Kiểm tra Trên R1: 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 = 76/236/864 ms 15 Trên R3: 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... 192.168.23.2 255.255.255.0 R2(config-if)#no shutdown Trên R3: R3# conf t R3(config)#int f0/0 R3(config-if)#ip add 192.168.23.3 255.255.255.0 R3(config-if)#no shutdown Bước 2: Cấu hình định tuyến RIP trên các router R1, R2, R3 Trên R1: R1(config)#router rip R1(config-router)#ver 2 R1(config-router)#network 192.168.12.0 R1(config-router)#no auto-summary Trên R2: R2(config)#router rip R2(config-router)#ver ... R1(config)# ipv6 router rip ripv6 R1(config-rtr)# interface f1/0 R1(config-if)# ipv6 rip ripv6 enable R1(config-if)# exit R1(config-rtr)# interface f1/1 R1(config-if)# ipv6 rip ripv6 enable R1(config-if)#... R2(config)# ipv6 router rip ripv6 R2(config-rtr)# interface f0/0 R2(config-if)# ipv6 rip ripv6 enable R2(config-if)# exit R2(config-rtr)# interface f1/0 R2(config-if)# ipv6 rip ripv6 enable R2(config-if)#... R2(config-if)# ipv6 rip ripv6 enable R2(config-if)# exit Router R3: R3# R3#configure terminal R3(config)# ipv6 router rip ripv6 R3(config-rtr)# interface f1/0 R3(config-if)# ipv6 rip ripv6 enable

Ngày đăng: 23/03/2016, 08:57

Mục lục

    1.1 cấu hình định tuyến rip trên ipv6

    1.2 cấu hình định tuyến eigrp trên ipv6

    1.3 Cấu hình định tuyến ospfv3 trên ipv6

    1.4 Cấu hình Manual ipv6 Tunnel

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

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan