当前位置:网站首页>IPv6 experiment
IPv6 experiment
2022-07-04 01:37:00 【Hold the kitten】
Subject requirements :
1、 Two LANs are based on 6 to 4 tunnel Can be up to
2、R1 You can visit R3 The loopback of
First step : Establish topology
The second step : To configure IPv4 Public address
[r2]int g0/0/1
[r2-GigabitEthernet0/0/0]ip ad 23.1.1.1 24
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ip ad 23.1.1.2 24
[r3-GigabitEthernet0/0/0]int lo0
[r3-LoopBack0]ip ad 3.3.3.3 24
[r3-LoopBack0]int g0/0/1
[r3-GigabitEthernet0/0/1]ip ad 34.1.1.1 24
[r4]int g0/0/0
[r4-GigabitEthernet0/0/0]ip ad 34.1.1.2 24
[r2]ip route-static 0.0.0.0 0 23.1.1.2 # take R2 And R4 The default point of R3, Sure ping Access to the public network
[r4]ip route-static 0.0.0.0 0 34.1.1.1
The third step : To configure R1 And IP Address 、R2 The loopback of ,R1 And R2 build RIP Environmental Science
[r1]int lo0
[r1-LoopBack0]ip ad 192.168.1.1 25
[r1-LoopBack0]int lo1
[r1-LoopBack1]ip ad 192.168.1.129 25
[r1-LoopBack1]int g0/0/1
[r1-GigabitEthernet0/0/1]ip ad 192.168.0.1 30
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip ad 192.168.0.2 30
[r2-GigabitEthernet0/0/0]int lo0
[r2-LoopBack0]ip ad 192.168.2.1 24
[r1]rip 1
[r1-rip-1]ver 2
[r1-rip-1]network 192.168.1.0
[r1-rip-1]network 192.168.0.0
[r2]rip 1
[r2-rip-1]ver 2
[r2-rip-1]network 192.168.0.0
[r2-rip-1]network 192.168.2.0
# take R1 Loopback summary on
[r1]int g0/0/1
[r1-GigabitEthernet0/0/1]rip sum
[r1-GigabitEthernet0/0/1]rip summary-address 192.168.1.0 255.255.255.0
#R2 to R1 Send default
[r2]rip 1
[r2-rip-1]default-route originate
# stay R1 Make an empty interface to prevent the loop
[r1]ip route-static 192.168.1.0 24 NULL 0
# stay R2 Do on NAT,R1 You can go online
[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
Step four : take IPv4 The address of is converted into IPv6 The address of
23.1.1.1 --->2002:1701:0101::/48( Divide subnets 2002:1701:0101:0000::/64--2002:1701:0101:FFFF::/64)
R1 Upper IPv6 Address :2002:1701:0101:0000::/64
It is divided into :2002:1701:101::/65--2002:1701:101:0:8000::/65
[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-LoopBack1]int g0/0/1
[r1-GigabitEthernet0/0/1]ipv6 enable
[r1-GigabitEthernet0/0/1]ipv6 address 2002:1701:101:1::1 64
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ipv6 enable
[r2-GigabitEthernet0/0/0]ipv6 address 2002:1701:101:1::2 64
[r2-GigabitEthernet0/0/0]int lo0
[r2-LoopBack0]ipv6 enable
[r2-LoopBack0]ipv6 address 2002:1701:101:2::1 64
#R1 And R2 Communication needs to be in ripng Announce on
[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/1
[r1-GigabitEthernet0/0/1]ripng 1 enable
[r2]ripng 1
[r2-ripng-1]int lo0
[r2-LoopBack0]ripng 1 enable
[r2-LoopBack0]int g0/0/0
[r2-GigabitEthernet0/0/0]ripng 1 enable
# take R1 Summary of the two routes on
[r1]int g0/0/1
[r1-GigabitEthernet0/0/1]ripng summary-address 2002:1701:0101:0000:: 64
#R2 Send the default to R1
[r2]int g0/0/1
[r2-GigabitEthernet0/0/1]ripng default-route only
stay R2 To create a tunnel Interface , adopt 6to4 Lead to IPv6 Network segment
[r2]int t0/0/0
[r2-Tunnel0/0/0]ipv6 enable
[r2-Tunnel0/0/0]ipv6 ad 2002:1701:101:3::1 64
[r2-Tunnel0/0/0]tunnel-protocol ipv6-ipv4 6to4
#R2 Send route summary to IPv6 Environment
[r2]ipv6 route-static 2002:: 16 Tunnel 0/0/0
# stay R1 The upper shorting interface prevents the loop
[r1]ipv6 route-static 2002:1701:0101:0000:: 64 NULL 0
Step five : To configure R4/5/6/7/8 Of IPv6 Address
34.1.1.2 --->2002:2201:0102::/48
2002:2201:0102::/49 AS1
2002:2201:0102::/64 -- 2002:2201:0102:7FFF::/64
2002:2201:0102:8000::/49 AS2
2002:2201:0102:8000::/64 -- 2002:2201:0102:FFFF::/64
[r4]ipv6
[r4]int lo0
[r4-LoopBack0]ipv6 enable
[r4-LoopBack0]ipv6 ad 2002:2201:0102::1 64
[r4-LoopBack0]int g0/0/1
[r4-GigabitEthernet0/0/1]ipv6 enable
[r4-GigabitEthernet0/0/1]ipv6 ad 2002:2201:0102:1::1 64
[r5]ipv6
[r5]int g0/0/0
[r5-GigabitEthernet0/0/0]ipv6 enable
[r5-GigabitEthernet0/0/0]ipv6 ad 2002:2201:0102:1::2 64
[r5]int lo0
[r5-LoopBack0]ipv6 enable
[r5-LoopBack0]ipv6 ad 2002:2201:0102:8000::1 64
[r5-LoopBack0]int g0/0/1
[r5-GigabitEthernet0/0/1]ipv6 enable
[r5-GigabitEthernet0/0/1]ipv6 ad 2002:2201:0102:8001::1 64
[r6]ipv6
[r6]int g0/0/0
[r6-GigabitEthernet0/0/0]ipv6 enable
[r6-GigabitEthernet0/0/0]ipv6 ad 2002:2201:0102:8001::2 64
[r6-GigabitEthernet0/0/0]int lo0
[r6-LoopBack0]ipv6 enable
[r6-LoopBack0]ipv6 ad 2002:2201:0102:8002::1 64
[r6-LoopBack0]int g0/0/2
[r6-GigabitEthernet0/0/2]ipv6 enable
[r6-GigabitEthernet0/0/2]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 ad 2002:2201:0102:8003::2 64
[r7-GigabitEthernet0/0/0]int lo0
[r7-LoopBack0]ipv6 enable
[r7-LoopBack0]ipv6 ad 2002:2201:0102:8004::1 64
[r7-LoopBack0]int g0/0/1
[r7-GigabitEthernet0/0/1]ipv6 enable
[r7-GigabitEthernet0/0/1]ipv6 ad 2002:2201:0102:8005::1 64
[r8]ipv6
[r8]int g0/0/0
[r8-GigabitEthernet0/0/0]ipv6 enable
[r8-GigabitEthernet0/0/0]ipv6 ad 2002:2201:0102:8005::2 64
[r8-GigabitEthernet0/0/0]int lo0
[r8-LoopBack0]ipv6 enable
[r8-LoopBack0]ipv6 ad 2002:2201:0102:8006::1 64
Step six : To configure OSPF agreement
[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
[r6]ospfv3 1
[r6-ospfv3-1]router-id 6.6.6.6
[r6-ospfv3-1]int g0/0/0
[r6-GigabitEthernet0/0/0]ospfv3 1 area 0
[r6-GigabitEthernet0/0/0]int lo0
[r6-LoopBack0]ospfv3 1 area 0
[r6-LoopBack0]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 lo0
[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 lo0
[r8-LoopBack0]ospfv3 1 area 0
[r8-LoopBack0]int g0/0/0
[r8-GigabitEthernet0/0/0]ospfv3 1 area 0
Step seven : To configure BGP agreement
# The original neighbor building method
[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
# Create a new simple address to facilitate building neighbors
[r5-bgp]int lo0
[r5-LoopBack0]ipv6 ad 5::5 64
[r6]int lo0
[r6-LoopBack0]ipv6 ad 6::6 64
[r7]int lo0
[r7-LoopBack0]ipv6 ad 7::7 64
[r8]int lo0
[r8-LoopBack0]ipv6 ad 8::8 64
#BGP Ring back and build a neighbor
[r5]bgp 64512
[r5-bgp]peer 6::6 as-number 64512
# Because there are many on the loop IP Address , So you need to specify IP Jianlin
[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 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
[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
Step eight : Analyze the missing routes and add
[r4]int t0/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 Open a door to R5 Channel reception R5 Declared routes
[r4]ipv6 route-static 2002:: 16 t0/0/0
# stay R5 Write an empty interface and declare the route to R4
[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 Announce the route
[r4]bgp 1
[r4-bgp]ipv6-family
[r4-bgp-af-ipv6]network 2002:: 16
#R5 Need to modify the next hop ,R6 received R4 The announced route will be excellent
[r5-bgp-af-ipv6]peer 6::6 next-hop-local
# because R6 Will not route to R7, stay R6 Raise the reflector
[r6]bgp 64512
[r6-bgp]ipv6-family
[r6-bgp-af-ipv6]peer 7::7 reflect-client
The experiment is finished !
边栏推荐
- What are the advantages and disadvantages of data center agents?
- Experimental animal models - current market situation and future development trend
- Msp32c3 board connection MSSQL method
- 51 single chip microcomputer timer 2 is used as serial port
- Flutter local database sqflite
- LeetCode226. Flip binary tree
- Ka! Why does the seat belt suddenly fail to pull? After reading these pictures, I can't stop wearing them
- Writeup (real questions and analysis of ciscn over the years) of the preliminary competition of national college students' information security competition
- Typescript basic knowledge sorting
- Audio resource settings for U3D resource management
猜你喜欢
Hbuilder link Xiaoyao simulator
Huawei cloud micro certification Huawei cloud computing service practice has been stable
在寻求人类智能AI的过程中,Meta将赌注押向了自监督学习
Mobile asynchronous sending SMS verification code solution -efficiency+redis
MySQL - use of aggregate functions and group by groups
Solution to the problem that jsp language cannot be recognized in idea
Magical usage of edge browser (highly recommended by program ape and student party)
51 MCU external interrupt
Long article review: entropy, free energy, symmetry and dynamics in the brain
Who moved my code!
随机推荐
技術實踐|線上故障分析及解决方法(上)
Make drop-down menu
Mobile asynchronous sending SMS verification code solution -efficiency+redis
C import Xls data method summary IV (upload file de duplication and database data De duplication)
AI 助力艺术设计抄袭检索新突破!刘芳教授团队论文被多媒体顶级会议ACM MM录用
Idsia & supsi & usi | continuous control behavior learning and adaptive robot operation based on Reinforcement Learning
Flutter local database sqflite
Rearrangement of tag number of cadence OrCAD components and sequence number of schematic page
Gee: create a new feature and set corresponding attributes
MySQL deadly serial question 2 -- are you familiar with MySQL index?
Difference between value and placeholder
File contains vulnerability summary
Decompile and modify the non source exe or DLL with dnspy
Who moved my code!
Meta metauniverse female safety problems occur frequently. How to solve the related problems in the metauniverse?
技术实践|线上故障分析及解决方法(上)
C import Xls data method summary I (upload files and create Workbooks)
MySQL uses the view to report an error, explain/show can not be issued; lacking privileges for underlying table
51 MCU external interrupt
Feign implements dynamic URL