当前位置:网站首页>IPv6 experiment
IPv6 experiment
2022-07-03 19:26:00 【ᴅRᴇᴀM】
Experimental content
Experimental Topology
To configure IP And loopback
First, configure the public network ipv4 Address , Because there's going to be 6to4tunnel Calculate IPV6 Address , So we need to match it first v4 Address .
Configure interface address and loopback address
[R1]int lo0
[R1-LoopBack0]ip ad 192.168.2.1 25
[R1-LoopBack1]int g0/0/1
[R1-GigabitEthernet0/0/1]ip ad 192.168.3.1 30
[R1-GigabitEthernet0/0/1]int lo1
[R1-LoopBack1]ip ad 192.168.2.129 25
[R2]int g0/0/1
[R2-GigabitEthernet0/0/1]ip ad 23.1.1.1 24
[R2]int lo0
[R2-LoopBack0]ip ad 192.168.1.1 24
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip ad 192.168.3.2 30
[R3]int g0/0/0
[R3-GigabitEthernet0/0/0]ip ad 23.1.1.2 24
[R3-GigabitEthernet0/0/0]int g0/0/1
[R3-GigabitEthernet0/0/1]ip ad 34.1.1.1 24
[R3-GigabitEthernet0/0/1]int lo0
[R3-LoopBack0]ip ad 3.3.3.3 24
[R4]int g0/0/0
[R4-GigabitEthernet0/0/0]ip ad 34.1.1.2 24
Configure the public network part
stay R2 R4 Configure one pointing to R3 The default route for
[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
To configure R1 and R2 Between partial LAN and WAN
1.ipv4 part
The default route points to 2
[R1]ip route-static 0.0.0.0 0 192.168.3.2
Static de R1 The loopback of
[R2]ip route-static 192.168.1.1 24 192.168.3.1
do nat address translation , Enable LAN to access the public network
[R2]acl 2000
[R2-acl-basic-2000]rule permit source 192.168.0.0 0.0.255.255
[R2-acl-basic-2000]q
[R2]interface Serial 4/0/1
[R2-Serial4/0/1]nat
[R2-Serial4/0/1]nat ou
[R2-Serial4/0/1]nat outbound 2000
2.ipv6 part
At both ends of the public network , LAN connects to the end of the public network , Use ipv4 The address is calculated as ipv6 The address of
23.1.1.1
2002:1701:0101:0000::/64----2002:1701:0101:FFFF::/64
R1 Loopback 1:2002:1701:0101:0000::1/65
Loopback 2:2002:1701:0101:0000:8000::1/65
R1-R2
2002:1701:0101:1::1/64
2002:1701:0101:1::2/64
R2 Exchange for :
2002:1701:0101:2::1/64
Use ripng send R1-R2 To communicate with each other
R1:
[R1]ripng 1
[R1-ripng-1]q
[R1]interface LoopBack 0
[R1-LoopBack0]ripng 1 enable
[R1-LoopBack1]ripng 1 enable
[R1-LoopBack1]q
[R1]interface Serial 4/0/1
[R1-Serial4/0/1]ripng 1 enable
R2:
[R2]ripng 1
[R2-ripng-1]q
[R2]interface LoopBack 0
[R2-LoopBack0]ripng 1 enable
[R2-LoopBack0]q
[R2]interface Serial 4/0/0
[R2-Serial4/0/0]ripng 1 enable
Use ipv6 The address leads to the Internet , Use 6to4tunnel
[R2]interface Tunnel 0/0/0
[R2-Tunnel0/0/0]ipv6 en
[R2-Tunnel0/0/0]ipv6 enable
[R2-Tunnel0/0/0]ipv6 address 2002:1701:0101:1::2/64
[R2-Tunnel0/0/0]tunnel-protocol ipv6-ipv4 6to4
[R2-Tunnel0/0/0]source Serial 4/0/1
The goal is not written , Because the goal is to pass ipv4 Calculate the address
Write another static route , go tunnel mouth
[R2]ipv6 route-static 2002:: 16 Tunnel 0/0/0
Just go 2002 All network segments go tunnel mouth
At this point, let R1 I also learned that R2tunnel: static state 、 Reissue 、 stay R2 Write a note on ripng default
Use ripng Send default
[R2]interface Serial 4/0/0
[R2-Serial4/0/0]ripng default-route only
At this point, you can do some optimization , take R1 Two article ipv6 Routes are aggregated into one
[R1]interface Serial 4/0/1
[R1-Serial4/0/1]ripng summary-address 2002:1701:101:: 64
Configure the right public network BGP part
take 34.1.1.2 Calculated as ipv6 Address
2002::2201:0102::/48
Divided into two , Two for each AS
AS1: 2002:2201:0102::/49
2002:2201:0102:0000::/64——2002:2201:0102:7FFF::/49
AS2: 2002:2201:0102:8000::/49
2002:2201:0102:8000::/64——2002:2201:0102:FFFF::/64
R4 Loopback :2002:2201:0102:0000::1/64
R4-R5:2002:2201:0102:0001::1/64 2002:2201:0102:0001::2/64
R5 Loopback :2002:2201:0102:8000::1/64
R5-R6:2002:2201:0102:8001::1/64 2002:2201:0102:8001::2/64
R6 Loopback : 2002:2201:0102:8002::1/64
R6-R7: 2002:2201:0102:8003::1/64 2002:2201:0102:8003::2/64
R7 Loopback : 2002:2201:0102:8004::1/64
R7-R8: 2002:2201:0102:8005::1/64 2002:2201:0102:8005::2/64
R8 Loopback : 2002:2201:0102:8006::1/64
1.R5R6R7R8 Configuration between IGP part ----ospfv3
R5:
[R5]ospfv3
[R5-ospfv3-1]router-id 5.5.5.5
[R5-ospfv3-1]q
[R5]interface LoopBack 0
[R5-LoopBack0]ospfv3 1 area 0
[R5-LoopBack0]q
[R5]interface Serial 4/0/1
[R5-Serial4/0/1]ospfv3 1 area 0
2.R4-R5 establish EBGP Neighborhood R5R6R7R8 establish IBGP Neighborhood
R4 And R5
[R4]bgp 1
[R4-bgp]router-id 4.4.4.4
[R4-bgp]peer 2002:2201:0102:0001::2 as-number 2
[R4-bgp]ipv6-family
[R4-bgp-af-ipv6]peer 2002:2201:0102:0001::2 enable
[R5]bgp 64512
[R5-bgp]router-id 5.5.5.5
[R5-bgp]confederation id 2
[R5-bgp]peer 2002:2201:0102:0001::1 as-number 1
[R5-bgp]ipv6-family
[R5-bgp-af-ipv6]peer 2002:2201:0102:0001::1 enable
R5R6R7R8 establish IBGP
R5:
[R5]bgp 64512
[R5-bgp]peer 6::6 as-number 64512
[R5-bgp]peer 6::6 connect-interface LoopBack 0
[R5-bgp]ipv6-family
[R5-bgp-af-ipv6]peer 6::6 enable
[R5-bgp]peer 6::6 connect-interface LoopBack 0 5::5
R6:
[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 7::7 enable
[R6-bgp-af-ipv6]peer 5::5 enable
R7:
[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]ipv6-family
[R7-bgp-af-ipv6]peer 6::6 enable
[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]ipv6-family
[R7-bgp-af-ipv6]peer 8::8 enable
[R7-bgp]peer 8::8 ebgp-max-hop
R8:
[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
[R8-bgp]ipv6-family
[R8-bgp-af-ipv6]peer 7::7 enable
BGP Partial 6to4tunnel
Summarize routes , Make an air connection anti ring route
[R5]ipv6 route-static 2002:2201:0102:8000:: 49 NULL 0
Declare
[R5]bgp 64512
[R5-bgp]iopv
[R5-bgp]ip
[R5-bgp]ipv4-family
[R5-bgp]ipv6-family
[R5-bgp-af-ipv6]net
[R5-bgp-af-ipv6]network 2002:2201:0102:8000:: 49
[R4]interface Tunnel 0/0/0
[R4-Tunnel0/0/0]ipv6 enable
[R4-Tunnel0/0/0]ipv6 address 2002:2201:0102:0002::1/64
[R4-Tunnel0/0/0]tunnel-protocol ipv6-ipv4 6to4
[R4-Tunnel0/0/0]source Serial 4/0/0
Give Way 2002:: Network segment walking tunnel mouth
Handwriting static
[R4]ipv6 route-static 2002:: 16 Tunnel 0/0/0
Make the right R5R6R7R8 Learning to 2002:: , stay BGP Make an announcement in
[R4]bgp 1
[R4-bgp]ipv6-family
[R4-bgp-af-ipv6]network 2002:: 16
R6 Routing entries are not good ,R5 Modify the next jump
Change the local address to the next hop address :
[R5]bgp 64512
[R5-bgp]ipv6-family
[R5-bgp-af-ipv6]peer 6::6 next-hop-local
IBGP Horizontal segmentation
[R6]bgp 64512
[R6-bgp]ipv6-family
[R6-bgp-af-ipv6]peer 5::5 reflect-client
test
边栏推荐
- 【光学】基于matlab介电常数计算【含Matlab源码 1926期】
- Difference between surface go1 and surface GO2 (non professional comparison)
- 第二章:求a,b的最大公约与最小公倍数经典求解,求a,b的最大公约与最小公倍数常规求解,求n个正整数的的最大公约与最小公倍数
- Web Security (VII) specific process of authentication with session cookie scheme
- Chapter 1: extend the same code decimal sum s (D, n)
- How to build an efficient information warehouse
- [free sharing] kotalog diary2022 plan electronic manual ledger
- Strict data sheet of new features of SQLite 3.37.0
- PR 2021 quick start tutorial, how to create a new sequence and set parameters?
- 第一章:求n的阶乘n!
猜你喜欢
Chapter 1: seek common? Decimal and S (D, n)
[leetcode] [SQL] notes
2022-06-27 网工进阶(十二)IS-IS-开销类型、开销计算、LSP的处理机制、路由撤销、路由渗透
Chapter 2: find the box array, complete number in the specified interval, and improve the complete number in the specified interval
Driveseg: dynamic driving scene segmentation data set
Streaming media server (16) -- figure out the difference between live broadcast and on-demand
Chapter 2: 4-digit Kaplan number, search even digit Kaplan number, search n-digit 2-segment sum square number, m-digit ingenious square number without 0, specify the number to form a 7-digit square nu
Summary of composition materials for 2020 high-frequency examination center of educational resources
[new year job hopping season] test the technical summary of interviewers' favorite questions (with video tutorials and interview questions)
This Chinese numpy quick look-up table is too easy!
随机推荐
Strict data sheet of new features of SQLite 3.37.0
Think of new ways
Driveseg: dynamic driving scene segmentation data set
How to build an efficient information warehouse
2022-06-25 网工进阶(十一)IS-IS-三大表(邻居表、路由表、链路状态数据库表)、LSP、CSNP、PSNP、LSP的同步过程
我們做了一個智能零售結算平臺
[leetcode] [SQL] notes
Chapitre 1: le roi de shehan a mal calculé
math_ Taylor formula
第一章:三位阶乘和数,图形点扫描
EGO Planner代碼解析bspline_optimizer部分(1)
第一章:拓广同码小数和s(d, n)
Foundation of ActiveMQ
【数学建模】基于matlab船舶三自由度MMG模型【含Matlab源码 1925期】
This Chinese numpy quick look-up table is too easy!
CMD implements the language conversion of locale non Unicode programs
Pecan — Overview
How does if ($variable) work? [repeat] - how exactly does if ($variable) work? [duplicate]
Ego planner code parsing Bspline_ Optimizer section (1)
Chapter 1: recursively find the factorial n of n!