当前位置:网站首页>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
边栏推荐
- 【20211129】Jupyter Notebook远程服务器配置
- Self organization is the two-way rush of managers and members
- Indefinite integral
- 强大、好用、适合程序员/软件开发者的专业编辑器/笔记软件综合评测和全面推荐
- S7-1500plc simulation
- [20211129] configuration du serveur distant du carnet de notes jupyter
- 耐克如何常年霸榜第一名?最新财报答案来了
- [speech signal processing] 3 speech signal visualization -- prosody
- 队列操作---
- The operation process of using sugar to make a large data visualization screen
猜你喜欢
Use of easyexcel
消息队列之监控退款任务批处理过程
uniapp 使用 uni-upgrade-center
Self organization is the two-way rush of managers and members
[classic example] classic list questions @ list
On recursion and Fibonacci sequence
Machine learning - Data Science Library - day two
Indefinite integral
【datawhale202206】pyTorch推荐系统:多任务学习 ESMM&MMOE
Harbor webhook from principle to construction
随机推荐
Understanding of MVVM and MVC
Istio, ebpf and rsocket Broker: in depth study of service grid
CPU 上下文切换的机制和类型 (CPU Context Switch)
Custom grpc plug-in
研发效能度量框架解读
[Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 6
GID:旷视提出全方位的检测模型知识蒸馏 | CVPR 2021
Seckill system 03 - redis cache and distributed lock
[MCU] [nixie tube] nixie tube display
Harbor webhook from principle to construction
Uniapp uses uni upgrade Center
C summary of knowledge points 1
GID: open vision proposes a comprehensive detection model knowledge distillation | CVPR 2021
Neo4j Chinese developer monthly - issue 202206
【20220605】文献翻译——虚拟现实中的可视化:一个系统的回顾
【单片机】【数码管】数码管显示
用实际例子详细探究OpenCV的轮廓检测函数findContours(),彻底搞清每个参数、每种模式的真正作用与含义
自定義 grpc 插件
Is it safe for Huatai Securities to open an account online?
[Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 7