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

边栏推荐
- 研发效能度量框架解读
- 91. (cesium chapter) cesium rocket launch simulation
- Unity xlua co process packaging
- Onenet Internet of things platform - mqtt product equipment upload data points
- [Yu Yue education] financial management reference materials of Ningbo University of Finance and Economics
- Mechanism and type of CPU context switch
- Neo4j Chinese developer monthly - issue 202206
- 邻接矩阵无向图(一) - 基本概念与C语言
- [Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 2
- 【datawhale202206】pyTorch推荐系统:召回模型 DSSM&YoutubeDNN
猜你喜欢

Binary stack (I) - principle and C implementation
![[Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 6](/img/0e/0900e386f3baeaa506cc2c1696e22a.jpg)
[Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 6

研发效能度量框架解读

陈珙:微服务,它还那么纯粹吗?

Exposure: a white box photo post processing framework reading notes
![[Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 4](/img/4f/bc6c39ef4f2d1c4bdad8420f7badac.jpg)
[Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 4

Istio、eBPF 和 RSocket Broker:深入研究服务网格

Onenet Internet of things platform - mqtt product equipment upload data points

The Missing Semester
![Wechat applet reports an error: [rendering layer network layer error] pages/main/main Local resource pictures in wxss cannot be obtained through wxss. You can use network pictures, Base64, or < image/](/img/6a/fe448ca635690bc5260436546b588e.jpg)
Wechat applet reports an error: [rendering layer network layer error] pages/main/main Local resource pictures in wxss cannot be obtained through wxss. You can use network pictures, Base64, or < image/
随机推荐
C serialization simple experiment
Is it safe for Huatai Securities to open an account online?
Comment Nike a - t - il dominé la première place toute l'année? Voici les derniers résultats financiers.
JPA and criteria API - select only specific columns - JPA & criteria API - select only specific columns
Istio, ebpf and rsocket Broker: in depth study of service grid
Abbirb120 industrial robot mechanical zero position
Talk about biological live broadcast - genovis Zhang Hongyan antibody specific enzyme digestion technology helps to characterize the structure of antibody drugs
基于IMDB评论数据集的情感分析
91. (chapitre Cesium) simulation de lancement de fusées cesium
陈珙:微服务,它还那么纯粹吗?
[20211129] jupyter notebook remote server configuration
[Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 7
使用set_handler过滤掉特定的SystemC Wraning &Error Message
Build yocto system offline for i.mx8mmini development board
[shell programming] - shell introductory learning
Understanding of MVVM and MVC
USB peripheral driver - cable connect/disconnect
Indefinite integral
【datawhale202206】pyTorch推荐系统:精排模型 DeepFM&DIN
Neo4j Chinese developer monthly - issue 202206