当前位置:网站首页>Ipv6-6to4 experiment
Ipv6-6to4 experiment
2022-07-01 12:12:00 【Caker】
IPV6—6to4 experiment
The experimental requirements
The experimental steps
1.IP planning
Because the title is not specific IP planning , So for the convenience of routing summary, I plan the address as follows .
Public network part
23.1.1.0 24
34.1.1.0 24
3.3.3.3 24
IPV4/V6 part
IPV4 part
192.168.1.0 25 Two loops
192.168.0.0 30 Backbone links
192.168.2.1 24 AR The loopback of
IPV6 part
Because the title requires 6to4tunnel, So pass ipv4 Address conversion generation .
23.1.1.1 turn 16 Into the system for
0001 0111 0000 0001 0000 0001 0000 0001
1701:0101 Finally, fill in 2002 And prefix generation ipv6 Address
2002:1701:0101::/48
borrow 16 position
2002:1701:0101:0000::64——2002:1701:0101:FFFF::64
Because there are two loopbacks, another bit is allocated to loopback
2002:1701:0101:0000:0000 0000 0000 0000::/65
2002:1701:0101:1000:0000 0000 0000 0000::/65
It is reduced to
2002:1701:101::/65
2002:1701:101:0:8000::/65
On the right IPV6 part
adopt IPV4 Address 34.1.1.2 Make a conversion
2002:2201:0102::/48
Borrow one
2002:2201:0102::/49 AS1
Borrow again 16 position
2002:2201:0102::/64——2002:2201:0102:7FFF::/64
2002:2201:0102:8000::/49 AS2
Borrow again 16 position
2002:2201:0102:8000::/64——2002:2201:0102:FFFF::/64
After planning, the topology is shown in the figure
2. Configure the public network part
First of all, it is necessary to realize the whole network accessibility of the public network
With AR2 For example
[r2]int g0/0/1
[r2-GigabitEthernet0/0/1]ip address 23.1.1.1 255.255.255.0
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip address 192.168.0.2 30
[r2]int lo0
[r2-LoopBack0]ip address 192.168.2.1 255.255.255.0
Use ospf The protocol can reach the whole network , With AR3 For example
[r3]ospf 1 router-id 3.3.3.3
[r3-ospf-1]area 0
[r3-ospf-1-area-0.0.0.0]network 23.1.1.0 0.0.0.255
[r3-ospf-1-area-0.0.0.0]network 34.1.1.0 0.0.0.255
[r3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
Test connectivity
3. To configure IPV4/V6 part
IPV4 part
[r1]int lo0
[r1-LoopBack0]ip address 192.168.1.1 25
[r1]int lo1
[r1-LoopBack0]ip address 192.168.1.129 25
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip address 192.168.0.1 30
Use rip The protocol can reach the whole network
[r1]rip 1
[r1-rip-1]undo summary
[r1-rip-1] version 2
[r1-rip-1]network 192.168.1.0
[r1-rip-1]network 192.168.0.0
Aggregate routing
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]rip summary-address 192.168.1.0 255.255.255.0
Set the air interface anti ring
[r1]ip route-static 192.168.1.0 24 NULL 0
stay AR2 Yes AR1 Send a default
[r2]rip 1
[r2-rip-1]default-route originate
Use ACL send AR1 I can surf the Internet normally
[r2]acl 2000
[r2-acl-basic-2000]rule permit source 192.168.0.0 0.0.255.255
[r2-acl-basic-2000]int g0/0/0
[r2-GigabitEthernet0/0/1]nat outbound 2000
Test connectivity
IPV6 part
[r1]ipv6
[r1]int lo0
[r1-LoopBack0]ipv6 enable
[r1-LoopBack0]ipv6 address 2002:1701:101::1 65
[r1-LoopBack0]int lo1
[r1-LoopBack1]ipv6 enable
[r1-LoopBack1]ipv6 address 2002:1701:101:0:8000::1 65
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ipv6 enable
[r1-GigabitEthernet0/0/0]ipv6 address 2002:1701:0101:1::1 64
Use RIPNG The whole network can reach
[r1]ripng 1
[r1-ripng-1]int lo0
[r1-LoopBack0]ripng 1 enable
[r1-LoopBack0]int lo1
[r1-LoopBack1]ripng 1 enable
[r1-LoopBack1]int g0/0/0
[r1-GigabitEthernet0/0/0]ripng 1 enable
After configuration, you can use display ipv6 routing-table protocol ripng
Command view
Aggregate routing
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]rip
[r1-GigabitEthernet0/0/0]ripng summary-address 2002:1701:101:: 64
Set the air interface anti ring
[r1]ip route-static 2002:1701:0101:0000::64 NULL 0
stay AR2 Yes AR1 Send a default
Use ipv6 The default time of sending is The interface between the border router and the intranet On the configuration
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ripng default-route only
To configure 6to4tunnel
[r2]int Tunnel 0/0/0
[r2-Tunnel0/0/0]ipv6 enable
[r2-Tunnel0/0/0]ipv6 address 2002:1701:0101:3::1 64
[r2-Tunnel0/0/0]tunnel-protocol ipv6-ipv4 6to4
[r2-Tunnel0/0/0]source 23.1.1.1
notes : To configure tunnel Pay attention to the use of conversion ipv6 Address of the ipv4 Address
[r2]ipv6 route-static 2002:: 16 Tunnel 0/0/0
Set up exits
4. To configure IPV6 part
Configure the basic part
AS1 in
[r4]ipv6
[r4]int lo0
[r4-LoopBack0]ipv6 address 2002:2201:0102::1 64
[r4]int g0/0/1
[r4-GigabitEthernet0/0/1]ipv6 enable
[r4-GigabitEthernet0/0/1]ipv6 address 2002:2201:0102:1::1 64
AS2 China and Israel AR5 For example
[r5]ipv6
[r5]int lo0
[r5-LoopBack0]ipv6 address 2002:2201:102:8000::1
[r5]int g0/0/0
[r5-GigabitEthernet0/0/0]ipv6 enable
[r5-GigabitEthernet0/0/0]ipv6 address 2002:2201:102:1::2
[r5]int g0/0/1
[r5-GigabitEthernet0/0/1]ipv6 enable
[r5-GigabitEthernet0/0/1]ipv6 address 2002:2201:102:8001::1
OSPFv3 part
Use ospfv3 Realization AS2 Network wide accessibility
With AR5 For example
[r5]ospfv3 1
[r5-ospfv3-1]router-id 5.5.5.5
[r5-ospfv3-1]int lo0
[r5-LoopBack0]ospfv3 1 area 0
[r5-LoopBack0]int g0/0/1
[r5-GigabitEthernet0/0/1]ospfv3 1 area 0
After configuring all routers, you can use display ospfv3 peer
Command to view neighbors
BGP part
AR4 And AR5 Configuration between EBGP Neighborhood
[r4]bgp 1
[r4-bgp]router-id 4.4.4.4
[r4-bgp]peer 2002:2201:102:1::2 as-number 2
[r4-bgp]ipv6-family
[r4-bgp-af-ipv6]peer 2002:2201:102:1::2 enable
[r5]bgp 64512
[r5-bgp]router-id 5.5.5.5
[r5-bgp]confederation id 2
[r5-bgp]peer 2002:2201:102:1::1 as-number 1
[r5-bgp]ipv6-family
[r5-bgp-af-ipv6]peer 2002:2201:102:1::1 enable
In the configuration AR5-AR8 Router bgp Neighbor time , Because you need to use loopback to establish neighbors , But their loopback address is more complex , In order to facilitate future management , We can use private addresses as loopback addresses to establish neighbors .
[r5]int lo0
[r5-LoopBack0]ipv6 address 5::5 64
[r6]int lo0
[r6-LoopBack0]ipv6 address 6::6 64
[r7]int lo0
[r7-LoopBack0]ipv6 address 7::7 64
[r8]int lo0
[r8-LoopBack0]ipv6 address 8::8 64
establish IBGP neighbor
With AR5 And AR7 For example
[r5]bgp 64512
[r5-bgp]peer 6::6 as-number 64512
[r5-bgp]peer 6::6 connect-interface LoopBack 0 5::5
notes : If you do not add a loopback address after the loopback interface, the neighbor will be established with the default first loopback address
[r5-bgp]ipv6-family
[r5-bgp-af-ipv6]peer 6::6 enable
[r7]bgp 64512
[r7-bgp]router-id 7.7.7.7
[r7-bgp]confederation id 2
[r7-bgp]confederation peer-as 64513
[r7-bgp]peer 6::6 as-number 64512
[r7-bgp]peer 6::6 connect-interface LoopBack 0 7::7
[r7-bgp]peer 8::8 as-number 64513
[r7-bgp]peer 8::8 connect-interface LoopBack 0 7::7
[r7-bgp]peer 8::8 ebgp-max-hop 2
[r7-bgp]ipv6-family
[r7-bgp-af-ipv6]peer 6::6 enable
[r7-bgp-af-ipv6]peer 8::8 enable
Realization AS1 And AS2 The whole network can reach , And excellent
[r4]bgp 1
notes : stay ipv6 in ,bgp The announcement must be made in ipv6 In the family model
[r4-bgp]ipv6-family
[r4-bgp-af-ipv6]network 2002:: 16
Summary AS2 The routing
[r5]ipv6 route-static 2002:2201:0102:8000:: 49 NULL 0
[r5]bgp 64512
notes : stay ipv6 in ,bgp The announcement must be made in ipv6 In the family model
[r5-bgp]ipv6-family
[r5-bgp-af-ipv6]network 2002:2201:0102:8000:: 49
[r5]bgp 64512
[r5-bgp]ipv6-family
[r5-bgp-af-ipv6]peer 6::6 next-hop-local
Modify the next jump
[r6]bgp 64512
[r6-bgp]ipv6-family
[r6-bgp-af-ipv6]peer 7::7 reflect-client
Set the reflector
To configure 6to4tunnel
[r4]int Tunnel 0/0/0
[r4-Tunnel0/0/0]ipv6 enable
[r4-Tunnel0/0/0]ipv6 address 2002:2201:0101:2::1 64
[r4-Tunnel0/0/0]tunnel-protocol ipv6-ipv4 6to4
[r4-Tunnel0/0/0]source 34.1.1.2
notes : To configure tunnel Pay attention to the use of conversion ipv6 Address of the ipv4 Address
[r4]ipv6 route-static 2002:: 16 Tunnel 0/0/0
Test connectivity
Use AR1pingAS2 Loopback in
边栏推荐
- The Missing Semester
- The operation process of using sugar to make a large data visualization screen
- 消息队列之监控退款任务批处理过程
- One year anniversary of bitbear live studio, hero rally order! I invite you to take a group photo!
- NOV Schedule for . Net to display and organize appointments and recurring events
- Explore the contour detection function findcontours() of OpenCV in detail with practical examples, and thoroughly understand the real role and meaning of each parameter and mode
- 91.(cesium篇)cesium火箭发射模拟
- 栈-------
- Personnaliser le plug - in GRPC
- Seckill system 03 - redis cache and distributed lock
猜你喜欢
Huawei HMS core joins hands with hypergraph to inject new momentum into 3D GIS
【单片机】【数码管】数码管显示
Mechanism and type of CPU context switch
Machine learning - Data Science Library Day 3 - Notes
Istio、eBPF 和 RSocket Broker:深入研究服务网格
[20211129] configuration du serveur distant du carnet de notes jupyter
双链表有关操作
栈-------
自组织是管理者和成员的双向奔赴
The operation process of using sugar to make a large data visualization screen
随机推荐
指纹浏览器工作原理、使用场景以及重要性简单讲解
基于IMDB评论数据集的情感分析
GID: open vision proposes a comprehensive detection model knowledge distillation | CVPR 2021
迅为i.MX8Mmini开发板离线构建Yocto系统
[Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 2
[shell programming] - shell introductory learning
Binary stack (I) - principle and C implementation
LeetCode力扣(剑指offer 31-35)31. 栈的压入弹出序列32I.II.III.从上到下打印二叉树33. 二叉搜索树的后序遍历序列34. 二叉树中和为某一值的路径35. 复杂链表的复制
Summary of JFrame knowledge points 2
Theoretical basis of graph
MySQL data table creation
Sum of factor numbers of interval product -- prefix sum idea + fixed one shift two
耐克如何常年霸榜第一名?最新财报答案来了
伸展树(一) - 概念和C实现
研发效能度量框架解读
Typora adds watermarks to automatically uploaded pictures
华为HMS Core携手超图为三维GIS注入新动能
[Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 8
力扣首页简介动画
Extended tree (I) - concept and C implementation