当前位置:网站首页>IPv6 comprehensive experiment
IPv6 comprehensive experiment
2022-07-06 04:40:00 【AlexFFeng】
Subject requirements
1、 Two LANs are based on 6to4tunnel Can be up to
2、R1 You can visit R3 The loopback of
According to the title requirements :
Ideas
Do the public network and the left first V4 Part of :
Finish and then pass the default and nat Visit the public network
Do it last V6
Left
IPV4 part
[r2]int g0/0/1
[r2-GigabitEthernet0/0/1]ip ad
[r2-GigabitEthernet0/0/1]ip address 23.1.1.1 24
[r2-GigabitEthernet0/0/1]q
[r2]ip route-static 0.0.0.0 0 23.1.1.2
[r2]
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ip address 23.1.1.2 24
[r3-GigabitEthernet0/0/0]int l0
[r3-LoopBack0]ip address 3.3.3.3 24
[r3-LoopBack0]int g0/0/1
[r3-GigabitEthernet0/0/1]ip address 34.1.1.1 24
[r4]int g0/0/0
[r4-GigabitEthernet0/0/0]ip address 34.1.1.2 24
[r4]ip route-static 0.0.0.0 0 34.1.1.1
[r4]
[r1]int l0
[r1-LoopBack0]ip address 192.168.1.1 25
[r1-LoopBack0]int l1
[r1-LoopBack1]ip address 192.168.1.129 25
[r1-LoopBack1]int g0/0/1
[r1-GigabitEthernet0/0/1]ip address 192.168.0.1 30
[r1-GigabitEthernet0/0/1]q
[r1]rip 1
[r1-rip-1]ver 2
[r1-rip-1]network 192.168.1.0
[r1-rip-1]network 192.168.0.0
[r1-rip-1]
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip address 192.168.0.2 30
[r2-GigabitEthernet0/0/0]int l0
[r2-LoopBack0]ip address 192.168.2.1 24
[r2-LoopBack0]q
[r2]
[r2]rip 1
[r2-rip-1]ver 2
[r2-rip-1]network 192.168.0.0
[r2-rip-1]network 192.168.2.0
R1 Summary + Empty interface R2 Publish default
[r1]int g0/0/1
[r1-GigabitEthernet0/0/1]rip summary-address 192.168.1.0 255.255.255.0
[r1-GigabitEthernet0/0/1]q
[r1]ip route-static 192.168.1.0 24 NULL 0
[r1]
[r2]rip 1
[r2-rip-1]default-route originate
Online NAT
[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/1
[r2-GigabitEthernet0/0/1]nat outbound 2000
R1 You can go online , Now? V4 Part of it is all done , Go get it V6 part
1、 Make sure the IP
23.1.1.1
2002:1701:0101::/48
2002:1701:0101:0000::/64 ~2002:1701:0101:FFFF::/64
2002:1701:0101:0000::/64
2002:1701:0101:0000:0000 0000 0000 0000::/65
2002:1701:0101:0000:1000 0000 0000 0000::/65
2002:1701:0101:0000:8000::/65
2002:1701:0101:0000::/64
Give to the 1 The first network segment of the two loops of
1 Of 1 Loop back 2002:1701:101::/65
1 Of 2 Loop back 2002:1701:101:0:8000::/65
The second network segment in a row
2002:1701:0101:1::1 64
2002:1701:0101:1::2 64
Give to the 2 Loop back to the third network segment
2002:1701:0101:2::1 64
On the left IPV6
[r1]ipv6
[r1]int l0
[r1-LoopBack0]ipv6 enable
[r1-LoopBack0]ipv6 address 2002:1701:101::1 65
[r1-LoopBack0]int l1
[r1-LoopBack1]ipv6 enable
[r1-LoopBack1]ipv6 address 2002:1701:101:0:8000::1 65
[r1-LoopBack1]int g0/0/1
[r1-GigabitEthernet0/0/1]ipv6 enable
[r1-GigabitEthernet0/0/1]ipv6 address 2002:1701:0101:1::1 64
[r2]ipv6
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ipv6 enable
[r2-GigabitEthernet0/0/0]ipv6 address 2002:1701:0101:1::2 64
[r2-GigabitEthernet0/0/0]int l0
[r2-LoopBack0]ipv6 enable
[r2-LoopBack0]ipv6 address 2002:1701:0101:2::1 64
R1R2 Between 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/1
[r1-GigabitEthernet0/0/1]ripng 1 enable
[r2]ripng 1
[r2-ripng-1]int l0
[r2-LoopBack0]ripng 1 enable
[r2-LoopBack0]int g0/0/0
[r2-GigabitEthernet0/0/0]ripng 1 enable
R1R2 Optimize :
R1 Loopback summary and empty interface
[r1-GigabitEthernet0/0/1]ripng summary-address 2002:1701:0101:0000:: 64
[r1]ipv6 route-static 2002:1701:0101:0000:: 64 NULL 0
R2 Publish default : On the interface between the border router and the intranet
[r2-GigabitEthernet0/0/0]ripng default-route only
Now? R2 Can come out , Want to go R4 You have to build a bridge , Get out yes V6 Headlines , carry V4 Headlines , Source IP yes 23.1.1.1 The goal is IP Is your V6 The address is calculated V4ip, So is 6to4
do 6to4tunnel mouth
[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
[r2-Tunnel0/0/0]q
[r2]ipv6 route-static 2002:: 16 Tunnel 0/0/0
Right
up to now , The environment on the left has been set up , Now go to the right :
34.1.1.2
2002:2201:0102::/48
On the right is AS Divide , There is one 2 individual AS
2002:2201:0102::/49 AS1
2002:2201:0102:8000::/49 AS2
Then divide inward
2002:2201:0102::/64 ~2002:2201:0102:7fff::/64 AS1
2002:2201:0102:8000::/64 ~2002:2201:0102:ffff::/64 AS2
IPV6 part
[r4]ipv6
[r4]int g0/0/1
[r4-LoopBack0]ipv6 enable
[r4-LoopBack0]ipv6 address 2002:2201:0102::1 64
[r4-LoopBack0]int g0/0/1
[r4-GigabitEthernet0/0/1]ipv6 enable
[r4-GigabitEthernet0/0/1]ipv6 address 2002:2201:0102:1::1 64
[r5]int l0
[r5-LoopBack0]ipv6 enable
[r5-LoopBack0]ipv6 address 2002:2201:0102:8000::1 64
[r5-LoopBack0]int g0/0/1
[r5-GigabitEthernet0/0/1]ipv6 enable
[r5-GigabitEthernet0/0/1]ipv6 address 2002:2201:0102:8001::1 64
[r6-GigabitEthernet0/0/0]ipv6 address 2002:2201:0102:8001::2 64
[r6-GigabitEthernet0/0/0]int l0
[r6-LoopBack0]ipv6 enable
[r6-LoopBack0]ipv6 address 2002:2201:0102:8002::1 64
[r6-LoopBack0]int g0/0/1
[r6-GigabitEthernet0/0/1]ipv6 enable
[r6-GigabitEthernet0/0/1]ipv6 address 2002:2201:0102:8003::1 64
[r7]ipv6
[r7]int g0/0/0
[r7-GigabitEthernet0/0/0]ipv6 enable
[r7-GigabitEthernet0/0/0]ipv6 address 2002:2201:0102:8003::2 64
[r7-GigabitEthernet0/0/0]int l0
[r7-LoopBack0]ipv6 enable
[r7-LoopBack0]ipv6 address 2002:2201:0102:8004::1 64
[r7-LoopBack0]int g0/0/1
[r7-GigabitEthernet0/0/1]ipv6 enable
[r7-GigabitEthernet0/0/1]ipv6 address 2002:2201:0102:8005::1 64
[r8]ipv6
[r8]int g0/0/0
[r8-GigabitEthernet0/0/0]ipv6 enable
[r8-GigabitEthernet0/0/0]ipv6 address 2002:2201:0102:8005::2 64
[r8-GigabitEthernet0/0/0]int l0
[r8-LoopBack0]ipv6 enable
[r8-LoopBack0]ipv6 address 2002:2201:0102:8006::1 64
OSPFV3
[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/1
[r5-GigabitEthernet0/0/1]ospfv3 1 area 0
[r5-GigabitEthernet0/0/1]
[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
[r6-GigabitEthernet0/0/1]
[r7]ospfv3 1
[r7-ospfv3-1]router-id 7.7.7.7
[r7-ospfv3-1]int l0
[r7-LoopBack0]ospfv3 1 area 0
[r7-LoopBack0]int g0/0/0
[r7-GigabitEthernet0/0/0]ospfv3 1 area 0
[r7-GigabitEthernet0/0/0]int g0/0/1
[r7-GigabitEthernet0/0/1]ospfv3 1 area 0
[r7-GigabitEthernet0/0/1]
[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/0
[r8-GigabitEthernet0/0/0]ospfv3 1 area 0
[r8-GigabitEthernet0/0/0]
After allocation, start building neighbors , Look at the neighborhood table
see R5 After the routing table is complete, start BGP
R4R5 Between EBGP
BGP
[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
But this configuration is too troublesome , This leads to the local site , The concept of majority groups , A loopback can have multiple V6 Address
[r5-LoopBack0]ipv6 address 5::5 64
[r6-LoopBack0]ipv6 address 6::6 64
[r7-LoopBack0]ipv6 address 7::7 64
[r8-LoopBack0]ipv6 address 8::8 64
Come again
[r5]bgp 64512
[r5-bgp]peer 6::6 as-number 64512
[r5-bgp]peer 6::6 connect-interface LoopBack 0 5::5
[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 LoopBack 0 6::6
[r6-bgp]peer 7::7 as-number 64512
[r6-bgp]peer 7::7 connect-interface LoopBack 0 6::6
[r6-bgp]ipv6-family
[r6-bgp-af-ipv6]peer 5::5 enable
[r6-bgp-af-ipv6]peer 7::7 enable
[r6-bgp-af-ipv6]
[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
[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 LoopBack 0 8::8
[r8-bgp]peer 7::7 ebgp-max-hop 2
[r8-bgp]ipv6-family
[r8-bgp-af-ipv6]peer 7::7 enable
Now let's think about , Which routes are still missing ,R4 One is missing to the left 6to4tunnel, And a way 2002:: /16 Default
R4 To the right , Need to learn the whole AS2, And he learned AS2 Can only rely on BGP, therefore 4 You need one on the right BGP Lead in
5678 The interior is neat , Just one to 2002:: /16 Of , Point to 4
Let's do it first 4
[r4]int Tunnel 0/0/0
[r4-Tunnel0/0/0]ipv6 enable
[r4-Tunnel0/0/0]ipv6 address 2002:2201:0102:2::1 64
[r4-Tunnel0/0/0]tunnel-protocol ipv6-ipv4 6to4
[r4-Tunnel0/0/0]source 34.1.1.2
[r4]ipv6 route-static 2002:: 16 Tunnel 0/0/0
Summary 5678 2002:2201:0102:8000:: 49 NULL 0
[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
R4 Declare default
[r4]bgp 1
[r4-bgp]ipv6-family
[r4-bgp-af-ipv6]network 2002:: 16
Route to 5 EBGP Relationship , So excellent ,5 Pass to 6 Not good , because IBGP Relationship , So change the next hop
[r5]bgp 64512
[r5-bgp]ipv6-family
[r5-bgp-af-ipv6]peer 6::6 next-hop-local
6 The best will be passed to 7 Do you ? Can't , because IBGP Horizontal segmentation , Adjust a reflector
[r6]bgp 64512
[r6-bgp]ipv6-family
[r6-bgp-af-ipv6]peer 7::7 reflect-client
test :
The experiment is finished !
边栏推荐
- P3500 [poi2010]tes intelligence test (two points & offline)
- How does vs change the project type?
- ue5 小知识 FreezeRendering 查看视锥内渲染的物体
- VPP性能测试
- Hashlimit rate control
- 2328. Number of incremental paths in the grid graph (memory search)
- Ue5 small knowledge freezerendering view rendered objects in the cone
- Can CDC pull the Oracle table in full
- Etcd database source code analysis -- etcdserver bootstrap initialization storage
- Can Flink SQL read multiple topics at the same time. How to write in with
猜你喜欢
Yyds dry inventory automatic lighting system based on CC2530 (ZigBee)
捷码赋能案例:专业培训、技术支撑,多措并举推动毕业生搭建智慧校园毕设系统
Solutions: word coverage restoration, longest serial number, Xiaoyu buys stationery, Xiaoyu's electricity bill
The most detailed and comprehensive update content and all functions of guitar pro 8.0
Uva1592 Database
How does computer nail adjust sound
CADD课程学习(7)-- 模拟靶点和小分子相互作用 (柔性对接 AutoDock)
Visio draws Tai Chi
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
[Yu Yue education] reference materials of complex variable function and integral transformation of Northwestern Polytechnic University
随机推荐
Recommendation | recommendation of 9 psychotherapy books
Bubble sort
C. The third problem
Canal synchronizes MySQL data changes to Kafka (CentOS deployment)
[05-1, 05-02, 05-03] network protocol
Etcd database source code analysis -- etcdserver bootstrap initialization storage
[HBZ sharing] how to locate slow queries in cloud database
1008 circular right shift of array elements (20 points)
Fedora/rehl installation semanage
关于imx8mp的es8316的芯片调试
Project manager, can you draw prototypes? Does the project manager need to do product design?
729. 我的日程安排表 I(set or 动态开点线段树)
[Zhao Yuqiang] deploy kubernetes cluster with binary package
Meet diverse needs: jetmade creates three one-stop development packages to help efficient development
coreldraw2022新版本新功能介绍cdr2022
win10电脑系统里的视频不显示缩略图
Platformio create libopencm3 + FreeRTOS project
How to estimate the population with samples? (mean, variance, standard deviation)
English Vocabulary - life scene memory method
二叉树基本知识和例题