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

边栏推荐
- [MCU] [nixie tube] nixie tube display
- Chen Gong: Micro service, is it still so pure?
- 深入理解 grpc part1
- 使用set_handler过滤掉特定的SystemC Wraning &Error Message
- 谈思生物直播—GENOVIS张洪妍抗体特异性酶切技术助力抗体药物结构表征
- How does Nike dominate the list all the year round? Here comes the answer to the latest financial report
- STM32 project practice (1) introduction and use of photosensitive resistor
- 邻接矩阵无向图(一) - 基本概念与C语言
- Neo4j Chinese developer monthly - issue 202206
- [106] 360 check font - check whether the copyright of local Fonts is commercially available
猜你喜欢

【datawhale202206】pyTorch推荐系统:召回模型 DSSM&YoutubeDNN

ACLY与代谢性疾病

图的理论基础

如何看懂开发的查询语句

Machine learning - Data Science Library - day two

Onenet Internet of things platform - mqtt product devices send messages to message queues MQ

Adjacency matrix undirected graph (I) - basic concepts and C language

Summary of JFrame knowledge points 1

【20211129】Jupyter Notebook远程服务器配置

Chen Gong: Micro service, is it still so pure?
随机推荐
Seckill system 03 - redis cache and distributed lock
队列的链式存储
Sum of factor numbers of interval product -- prefix sum idea + fixed one shift two
使用set_handler过滤掉特定的SystemC Wraning &Error Message
uniapp 使用 uni-upgrade-center
二叉树的链式存储
[shell programming] - shell introductory learning
强大、好用、适合程序员/软件开发者的专业编辑器/笔记软件综合评测和全面推荐
[20211129] configuration du serveur distant du carnet de notes jupyter
241. Design priority for operational expressions: DFS application questions
Self organization is the two-way rush of managers and members
栈-------
【20211129】Jupyter Notebook遠程服務器配置
Adjacency matrix undirected graph (I) - basic concepts and C language
[20211129] jupyter notebook remote server configuration
JS reverse | m3u8 data decryption of a spring and autumn network
比特熊直播间一周年,英雄集结令!邀你来合影!
Technology sharing | MySQL: how about copying half a transaction from the database?
Uniapp uses uni upgrade Center
Le semester manquant