当前位置:网站首页>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 !
边栏推荐
- DMA use of stm32
- Introduction of several RS485 isolated communication schemes
- Sorting out the latest Android interview points in 2022 to help you easily win the offer - attached is the summary of Android intermediate and advanced interview questions in 2022
- 最高法院,离婚案件判决标准
- 【Try to Hack】john哈希破解工具
- VNCTF2022 WriteUp
- Complete list of common functions of turtle module
- Digital children < daily question> (Digital DP)
- 二叉树基本知识和例题
- C. The Third Problem(找规律)
猜你喜欢
Sqlserver query results are not displayed in tabular form. How to modify them
Easyrecovery靠谱不收费的数据恢复电脑软件
English Vocabulary - life scene memory method
A blog to achieve embedded entry
One question per day (Mathematics)
比尔·盖茨晒18岁个人简历,48年前期望年薪1.2万美元
How do programmers teach their bosses to do things in one sentence? "I'm off duty first. You have to work harder."
CADD course learning (7) -- Simulation of target and small molecule interaction (flexible docking autodock)
Is the mode of education together - on campus + off campus reliable
During pycharm debugging, the view is read only and pause the process to use the command line appear on the console input
随机推荐
CADD课程学习(8)-- 化合物库虚拟筛选(Virtual Screening)
P3500 [poi2010]tes intelligence test (two points & offline)
MySQL reported an error datetime (0) null
hashlimit速率控制
Case of Jiecode empowerment: professional training, technical support, and multiple measures to promote graduates to build smart campus completion system
[Yu Yue education] reference materials of complex variable function and integral transformation of Northwestern Polytechnic University
【HBZ分享】ArrayList的增删慢查询快的原因
电脑钉钉怎么调整声音
Database - MySQL storage engine (deadlock)
[detailed steps of FreeRTOS shift value for the first time]
View 工作流程
Solve the compilation problem of "c2001: line breaks in constants"
Redis 排查大 key 的4種方法,優化必備
A blog to achieve embedded entry
Uva1592 Database
Can CDC pull the Oracle table in full
Implementation of knowledge consolidation source code 2: TCP server receives and processes half packets and sticky packets
Implementation of knowledge consolidation source code 1: epoll implementation of TCP server
程序员在互联网行业的地位 | 每日趣闻
Crawler notes: improve data collection efficiency! Use of proxy pool and thread pool