当前位置:网站首页>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 

边栏推荐
- 【20220605】文献翻译——虚拟现实中的可视化:一个系统的回顾
- 迅为i.MX8Mmini开发板离线构建Yocto系统
- Want to ask, is there a discount for opening a securities account? Is it safe to open a mobile account?
- GID: open vision proposes a comprehensive detection model knowledge distillation | CVPR 2021
- S7-1500plc simulation
- 指定的服务已标记为删除
- Onenet Internet of things platform - mqtt product devices send messages to message queues MQ
- 241. Design priority for operational expressions: DFS application questions
- USB peripheral driver - cable connect/disconnect
- [20211129] jupyter notebook remote server configuration
猜你喜欢

91.(cesium篇)cesium火箭发射模拟

Acly and metabolic diseases

MQ prevent message loss and repeated consumption

LeetCode力扣(剑指offer 31-35)31. 栈的压入弹出序列32I.II.III.从上到下打印二叉树33. 二叉搜索树的后序遍历序列34. 二叉树中和为某一值的路径35. 复杂链表的复制

91. (chapitre Cesium) simulation de lancement de fusées cesium

C serialization simple experiment

About keil compiler, "file has been changed outside the editor, reload?" Solutions for

Consolidate -c operator

用实际例子详细探究OpenCV的轮廓检测函数findContours(),彻底搞清每个参数、每种模式的真正作用与含义

Message queue monitoring refund task batch process
随机推荐
JPA and criteria API - select only specific columns - JPA & criteria API - select only specific columns
Theoretical basis of graph
usb peripheral 驱动 - cable connect/disconnect
JS reverse | m3u8 data decryption of a spring and autumn network
Adjacency matrix undirected graph (I) - basic concepts and C language
Message queue monitoring refund task batch process
Joint Time-Frequency and Time Domain Learning for Speech Enhancement
Botu V15 add GSD file
MQ-防止消息丢失及重复消费
巩固-C#运算符
伸展树(一) - 概念和C实现
Deep understanding of grpc part1
241. Design priority for operational expressions: DFS application questions
leetcode 406. Queue Reconstruction by Height(按身高重建队列)
Leetcode (Sword finger offer) - 58 - ii Rotate string left
Use set_ Handler filters out specific SystemC wrapping & error messages
[shell programming] - shell introductory learning
基于IMDB评论数据集的情感分析
【语音信号处理】3语音信号可视化——prosody
Powerful, easy-to-use, professional editor / notebook software suitable for programmers / software developers, comprehensive evaluation and comprehensive recommendation