当前位置:网站首页>IPv6 experiment
IPv6 experiment
2022-07-06 13:13:00 【Confused classmate Z】

1、 Two LANs are based on 6to4tunnel Can be up to
2、R1 You can visit R3 The loopback of
One 、 To configure ipv4, Connect the public network first and then the private network
[r2]ipv6
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip ad 23.1.1.1 24
[r3]int g0/0/1
[r3-GigabitEthernet0/0/1]ip add 23.1.1.2 24
[r3-GigabitEthernet0/0/1]int l0
[r3-LoopBack0]ip add 3.3.3.3 24
[r3-LoopBack0]int g0/0/0
[r3-GigabitEthernet0/0/0]ip add 34.1.1.1 24
[r4]int g0/0/1
[r4-GigabitEthernet0/0/1]ip add 34.1.1.2 24
[r2]ip route-static 0.0.0.0 0 23.1.1.2
[r4]ip route-static 0.0.0.0 0 34.1.1.1
[r1]int l0
[r1-LoopBack0]ip add 192.168.1.1 25
[r1-LoopBack0]int l1
[r1-LoopBack1]ip add 192.168.1.129 25
[r1-LoopBack1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 192.168.0.1 30
[r2]int g0/0/1
[r2-GigabitEthernet0/0/1]ip add 192.168.0.2 30
[r2-GigabitEthernet0/0/1]int l0
[r2-LoopBack0]ip add 192.168.2.1 24
If you want private Netcom here, you can use static / dynamic , I use static here
[r1]ip route-static 0.0.0.0 0 192.168.0.2
[r2]ip route-static 192.168.1.0 24 192.168.0.1
[r2]acl 2000
[r2-acl-basic-2000]rule permit source 192.168.0.0 0.0.255.255
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]nat out
[r2-GigabitEthernet0/0/0]nat outbound 2000
Two 、ipv6 To configure ripng
23.1.1.1 Conversion to ipv6 The address is 2002:1701:0101::/48 On this basis, the subnet is divided
[r1]ipv6
[r1]int l0
[r1-LoopBack0]ipv6 enable
[r1-LoopBack0]ipv6 add 2002:1701:0101::1 65
[r1-LoopBack0]int l1
[r1-LoopBack1]ipv6 enable
[r1-LoopBack1]ipv6 add 2002:1701:0101::8000::1 65
[r1-LoopBack1]int g0/0/0
[r1-GigabitEthernet0/0/0]ipv6 enable
[r1-GigabitEthernet0/0/0]ipv6 add 2002:1701:0101:0001::1 64
[r2]ipv6
[r2]int g0/0/1
[r2-GigabitEthernet0/0/1]ipv6 enable
[r2-GigabitEthernet0/0/1]ipv6 add 2002:1701:0101:0001::2 64
[r2-GigabitEthernet0/0/1]int l0
[r2-LoopBack0]ipv6 enable
[r2-LoopBack0]ipv6 add 2002:1701:0101:0002::1 64
rise r1 and r2 Of ripng
[r1]ripng 1
[r1-ripng-1]int l0
[r1-LoopBack0]ripng 1 enable
[r1-LoopBack0]int l1
[r1-LoopBack1]ripng 1 enable
[r1-LoopBack1]int g0/0/0
[r1-GigabitEthernet0/0/0]ripng 1 enable
[r2]ripng 1
[r2-ripng-1]int l0
[r2-LoopBack0]ripng 1 enable
[r2-LoopBack0]int g0/0/1
[r2-GigabitEthernet0/0/1]ripng 1 enable
Let's do it here ip Optimize the address , take r1 and r2 The loopback of
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ripng summary-address 2002:1701:0101:0000:: 64
here r1 and r2 Learned each other's loopback
Internal dependence 6to4tunnel get out
[r2]int t0/0/0
[r2-Tunnel0/0/0]ipv6 enable
[r2-Tunnel0/0/0]ipv6 add 2002:1701:0101:0003::1 64
[r2-Tunnel0/0/0]tunnel-protocol ipv6-ipv4 6to4
[r2-Tunnel0/0/0]source g0/0/0
meanwhile r2 There must be a route on
[r2]ipv6 route-static 2002:: 16 t0/0/0
Now is 1 There is no route to the outside , Give Way 2 to 1 Send a default
[r2]int g0/0/1
[r2-GigabitEthernet0/0/1]ripng default-route only

3、 ... and 、ipv6 Internal subnet
34.1.1.2 Conversion to ipv6 by 2002:2201:0110::/ 48, On this basis, the subnet is divided
[r4]ipv6
[r4]int g0/0/0
[r4-GigabitEthernet0/0/0]ipv6 enable
[r4-GigabitEthernet0/0/0]ipv6 add 2002:2201:0102:001::1 64
[r4-GigabitEthernet0/0/0]int l0
[r4-LoopBack0]ipv6 enable
[r4-LoopBack0]ipv6 add 2002:2201:0102::1 64
[r5]ipv6
[r5]int g0/0/1
[r5-GigabitEthernet0/0/1]ipv6 enable
[r5-GigabitEthernet0/0/1]ipv6 add 2002:2201:0102:001::2 64
[r5-GigabitEthernet0/0/1]int l0
[r5-LoopBack0]ipv6 enable
[r5-LoopBack0]ipv6 add 2002:2201:0102:8000::1 64
[r5-LoopBack0]int g0/0/0
[r5-GigabitEthernet0/0/0]ipv6 enable
[r5-GigabitEthernet0/0/0]ipv6 add 2002:2201:0102:8001::2 64
[r6]ipv6
[r6]int g0/0/1
[r6-GigabitEthernet0/0/1]ipv6 enable
[r6-GigabitEthernet0/0/1]ipv6 add 2002:2201:0102:8001::2 64
[r6-GigabitEthernet0/0/1]int l0
[r6-LoopBack0]ipv6 enable
[r6-LoopBack0]ipv6 add 2002:2201:0102:8002::1 64
[r6-LoopBack0]int g0/0/0
[r6-GigabitEthernet0/0/0]ipv6 enable
[r6-GigabitEthernet0/0/0]ipv6 add 2002:2201:0102:8003::1 64
[r7]ipv6
[r7]int g0/0/1
[r7-GigabitEthernet0/0/1]ipv6 enable
[r7-GigabitEthernet0/0/1]ipv6 add 2002:2201:0102:8003::2 64
[r7-GigabitEthernet0/0/1]int l0
[r7-LoopBack0]ipv6 enable
[r7-LoopBack0]ipv6 add 2002:2201:0102:8004::1 64
[r7-LoopBack0]int g0/0/0
[r7-GigabitEthernet0/0/0]ipv6 enable
[r7-GigabitEthernet0/0/0]ipv6 add 2002:2201:0102:8005::1 64
[r8]ipv6
[r8]int g0/0/1
[r8-GigabitEthernet0/0/1]ipv6 enable
[r8-GigabitEthernet0/0/1]ipv6 add 2002:2201:0102:8005::2 64
[r8-GigabitEthernet0/0/1]int l0
[r8-LoopBack0]ipv6 enable
[r8-LoopBack0]ipv6 add 2002:2201:0102:8006::1 64
The following is the running agreement , Run first igp, Then get up bgp
[r5]ospfv3 1
[r5-ospfv3-1]router-id 5.5.5.5
[r5-ospfv3-1]int l0
[r5-LoopBack0]ospfv3 1 area 0
[r5-LoopBack0]int g0/0/0
[r5-GigabitEthernet0/0/0]ospfv3 1 area 0
[r5-GigabitEthernet0/0/0]int g0/0/1
[r5-GigabitEthernet0/0/1]ospfv3 1 area 0
[r6]ospfv3 1
[r6-ospfv3-1]router-id 6.6.6.6
[r6-ospfv3-1]int l0
[r6-LoopBack0]ospfv3 1 area 0
[r6-LoopBack0]int g0/0/0
[r6-GigabitEthernet0/0/0]ospfv3 1 area 0
[r6-GigabitEthernet0/0/0]int g0/0/1
[r6-GigabitEthernet0/0/1]ospfv3 1 area 0
[r7]ospfv3 1
[r7-ospfv3-1]router-id 7.7.7.7
[r7-ospfv3-1]int g0/0/0
[r7-GigabitEthernet0/0/0]ospfv3 1 area 0
[r7-GigabitEthernet0/0/0]int l0
[r7-LoopBack0]ospfv3 1 area 0
[r7-LoopBack0]int g0/0/1
[r7-GigabitEthernet0/0/1]ospfv3 1 area 0
[r8]ospfv3 1
[r8-ospfv3-1]router-id 8.8.8.8
[r8-ospfv3-1]int l0
[r8-LoopBack0]ospfv3 1 area 0
[r8-LoopBack0]int g0/0/1
[r8-GigabitEthernet0/0/1]ospfv3 1 area 0
Here, check whether the neighbors have established 

[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
[r5-LoopBack0]ipv6 add 5::5 64
[r6-LoopBack0]ipv6 add 6::6 64
[r7-LoopBack0]ipv6 add 7::7 64
[r8-LoopBack0]ipv6 add 8::8 64
[r5]bgp 64512
[r5-bgp]peer 6::6 as-number 64512
[r5-bgp]peer 6::6 connect-interface l0
[r5-bgp]ipv6-family
[r5-bgp-af-ipv6]peer 6::6 enable
[r6]bgp 64512
[r6-bgp]router-id 6.6.6.6
[r6-bgp]confederation id 2
[r6-bgp]peer 5::5 as-number 64512
[r6-bgp]peer 5::5 connect-interface l0
[r6-bgp]ipv6-family
[r6-bgp-af-ipv6]peer 5::5 enable

[r5-bgp]peer 6::6 connect-interface l0 5::5
[r6-bgp]peer 5::5 connect-interface l0 6::6
[r6-bgp]peer 7::7 as-number 64512
[r6-bgp]peer 7::7 connect-interface l0 6::6
[r6-bgp]ipv6-family
[r6-bgp-af-ipv6]peer 7::7 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 l0 7::7
[r7-bgp]peer 8::8 as-number 64513
[r7-bgp]peer 8::8 connect-interface l0 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
[r8]bgp 64513
[r8-bgp]router-id 8.8.8.8
[r8-bgp]confederation id 2
[r8-bgp]confederation peer-as 64512
[r8-bgp]peer 7::7 as-number 64512
[r8-bgp]peer 7::7 connect-interface l0 8::8
[r8-bgp]peer 7::7 ebgp-max-hop 2
[r8-bgp]ipv6-family
[r8-bgp-af-ipv6]peer 7::7 enable

hit tunnel Give Way r4 You can go out
[r4]int t0/0/0
[r4-Tunnel0/0/0]ipv6 enable
[r4-Tunnel0/0/0]ipv6 add 2002:2201:0102:2::1 64
[r4-Tunnel0/0/0]tunnel-protocol ipv6-ipv4 6to4
[r4-Tunnel0/0/0]source g0/0/1
[r4]ipv6 route-static 2002:: 16 t0/0/0
igp The route from the internal network to the external network
[r4]bgp 1
[r4-bgp]ipv6-family
[r4-bgp-af-ipv6]network 2002:: 16
[r5]ipv6 route-static 2002:2201:0102:8000:: 49 NULL 0
[r5]bgp 64512
[r5-bgp]ipv6-family
[r5-bgp-af-ipv6]network 2002:2201:0102:8000:: 49
[r5]bgp 64512
[r5-bgp]ipv6
[r5-bgp]ipv6-family
[r5-bgp-af-ipv6]peer 6::6 next-hop-local
6 Not to 7 Make a reflector here
[r6]bgp 64512
[r6-bgp]ipv6-family
[r6-bgp-af-ipv6]peer 7::7 reflect-client
Check the routing table 




test result , The experiment is finished 
边栏推荐
- Application architecture of large live broadcast platform
- 阿里云微服务(二) 分布式服务配置中心以及Nacos的使用场景及实现介绍
- [algorithme] swordfinger offer2 golang question d'entrevue 2: addition binaire
- 系统设计学习(三)Design Amazon‘s sales rank by category feature
- 一文搞定 UDP 和 TCP 高频面试题!
- TYUT太原理工大学2022数据库之关系代数小题
- 面试必备:聊聊分布式锁的多种实现!
- [untitled]
- 系统设计学习(一)Design Pastebin.com (or Bit.ly)
- Sharing ideas of on-chip transplantation based on rtklib source code
猜你喜欢

【无标题】

TYUT太原理工大学2022数据库大题之E-R图转关系模式
![[algorithm] sword finger offer2 golang interview question 10: subarray with sum K](/img/63/7422489d09a64ec9f0e79378761bf1.png)
[algorithm] sword finger offer2 golang interview question 10: subarray with sum K

2年经验总结,告诉你如何做好项目管理
![[untitled]](/img/b1/9a2bebebb24132a405fc4e7d854e51.png)
[untitled]

Rt-ppp test using rtknavi

Counter attack of flour dregs: redis series 52 questions, 30000 words + 80 pictures in detail.

MYSQL索引钟B-TREE ,B+TREE ,HASH索引之间的区别和应用场景

十分钟彻底掌握缓存击穿、缓存穿透、缓存雪崩

记录:初次cmd启动MySQL拒接访问之解决
随机推荐
初识C语言(下)
[算法] 剑指offer2 golang 面试题8:和大于或等于k的最短子数组
如何保障 MySQL 和 Redis 的数据一致性?
Music playback (toggle & playerprefs)
Error: sorting and subscript out of bounds
错误: 找不到符号
Chromatic judgement bipartite graph
【快趁你舍友打游戏,来看道题吧】
Record: the solution of MySQL denial of access when CMD starts for the first time
[algorithm] sword finger offer2 golang interview question 8: the shortest subarray with a sum greater than or equal to K
[GNSS] robust estimation (robust estimation) principle and program implementation
What are the advantages of using SQL in Excel VBA
[algorithm] sword finger offer2 golang interview question 10: subarray with sum K
MySQL 30000 word essence summary + 100 interview questions, hanging the interviewer is more than enough (Collection Series
[algorithme] swordfinger offer2 golang question d'entrevue 2: addition binaire
TYUT太原理工大学2022软工导论考试题型大纲
MySQL 三万字精华总结 + 面试100 问,吊打面试官绰绰有余(收藏系列
Alibaba cloud microservices (II) distributed service configuration center and Nacos usage scenarios and implementation introduction
Fgui project packaging and Publishing & importing unity & the way to display the UI
阿里云一面:并发场景下的底层细节 - 伪共享问题