IPV6下的子网划分, ripng,ospfv3,bgpv4+的配置及IPV4和IPV6共存;

1)测试
在这里插入图片描述
在这里插入图片描述
一:IP地址规划
IPV4 IPV6
R1: 环回 192.168.1.0/24 2002:1701:0101:1::/64
192.168.1.1 /25 2002:1701:0101:1:0::1/65
192.168.1.129/25 2002:1701:0101:1:8000::1/65

骨干 192.168.3.1/24 2002:1701:0101:3::1/64
R2: 环回 192.168.2.1 /24 2002:1701:0101:2::1/64
骨干 192.168.3.2 /24 2002:1701:0101:3::2/64

          23.1.1.1         0001 0111 0000 0001 0000 0001 0000 0001
                 2002:1701:0101::/48  
                 2002:1701:0101:0000::/64   -------  2002:1701:0101:ffff::/64

R3 : 环回 3.3.3.3
骨干 23.1.1.2
34.1.1.1

R4: 环回 2002:2201:0102:4::1/64
骨干 34.1.1.2 0010 0010 0000 0001 0000 0001 0000 0010
2002:2201:0102::/48
2002:2201:0102:0000::/64-------2002:2201:0102:ffff::/64
2002:2201:0102:9::1/64

R5: 环回 2002:2201:0102:5::1/64
骨干 2002:2201:0102:9::2/64
2002:2201:0102:10::1/64

R6: 环回 2002:2201:0102:6::1/64
骨干 2002:2201:0102:10::2/64
2002:2201:0102:11::1/64

R7: 环回 2002:2201:0102:7::1/64
骨干 2002:2201:0102:11::2/64
2002:2201:0102:12::1/64

R8: 环回 2002:2201:0102:8::1/64
骨干 2002:2201:0102:12::2/64

二:实验拓扑及要求
在这里插入图片描述

三、配置思路
1、配置IPV4地址,公网起IPV4动态路由协议
R1:
interface Loopback0
ip address 192.168.1.1 255.255.255.128
interface Loopback1
ip address 192.168.1.129 255.255.255.128
interface Serial3/1
ip address 192.168.3.1 255.255.255.0
R2:
interface Loopback0
ip address 192.168.2.1 255.255.255.0
interface Serial3/0
ip address 192.168.3.2 255.255.255.0
interface Serial3/1
ip address 23.1.1.1 255.255.255.0
router eigrp 90
network 23.0.0.0
no auto-summary
R3
interface Loopback0
ip address 3.3.3.3 255.255.255.255
interface Serial3/0
ip address 23.1.1.2 255.255.255.0
interface Serial3/1
ip address 34.1.1.1 255.255.255.0
router eigrp 90
network 3.0.0.0
network 23.0.0.0
network 34.0.0.0
no auto-summary
R4:
interface Serial3/0
ip address 34.1.1.2 255.255.255.0
router eigrp 90
network 34.0.0.0
no auto-summary

2、配置IPV6地址,私网起IPV6的IGP协议
R1
ipv6 unicast-routing
interface Loopback0
ipv6 address 2002:1701:0101:1:0::1/65

ipv6 rip a enable
interface Loopback1
ipv6 address 2002:1701:0101:1:0::1/65
ipv6 rip a enable
interface Serial3/1
ipv6 address 2002:1701:0101:3::1/64
ipv6 rip a enable
ipv6 rip a summary-address 2002:1701:0101:1::/64
ipv6 router rip a
R2
ipv6 unicast-routing
interface Loopback0
ipv6 address 2002:1701:0101:2::1/64
ipv6 rip a enable
interface Serial3/0
ipv6 address 2002:1701:0101:3::2/64
ipv6 rip a enable
ipv6 rip a default-information only
ipv6 router rip a
R4
ipv6 unicast-routing
interface Loopback0
ipv6 address 2002:2201:102:4::1/64
interface Serial3/1
ipv6 address 2002:2201:0102:9::1/64
R5
ipv6 unicast-routing
interface Loopback0
ipv6 address 2002:2201:102:5::1/64
ipv6 ospf 1 area 0
interface Serial3/0
ipv6 address 2002:2201:0102:9::2/64
interface Serial3/1
ipv6 address 2002:2201:0102:10::1/64
ipv6 ospf 1 area 0
ipv6 router ospf 1
router-id 5.5.5.5
R6
ipv6 unicast-routing
interface Loopback0
ipv6 address 2002:2201:102:6::1/64
ipv6 ospf 1 area 0
interface Serial3/0
ipv6 address 2002:2201:0102:10::2/64
ipv6 ospf 1 area 0
interface Serial3/1
ipv6 address 2002:2201:0102:11::1/64
ipv6 ospf 1 area 0
ipv6 router ospf 1
router-id 6.6.6.6
R7
ipv6 unicast-routing
interface Loopback0
ipv6 address 2002:2201:102:7::1/64
ipv6 ospf 1 area 0
interface Serial3/0
ipv6 address 2002:2201:0102:11::2/64
ipv6 ospf 1 area 0
interface Serial3/1
ipv6 address 2002:2201:0102:12::1/64
ipv6 ospf 1 area 0
ipv6 router ospf 1
router-id 7.7.7.7
R8
ipv6 unicast-routing
interface Loopback0
ipv6 address 2002:2201:102:8::1/64
ipv6 ospf 1 area 0
interface Serial3/0
ipv6 address 2002:2201:0102:12::2/64
ipv6 ospf 1 area 0
ipv6 router ospf 1
router-id 8.8.8.8

3、私网起IPV6的EGP(BGP)协议

R4
router bgp 1
bgp router-id 4.4.4.4
neighbor 2002:2201:0102:9::2 remote-as 2
address-family ipv6
neighbor 2002:2201:0102:9::2 activate
network 2002:2201:102:4::/64

R5
router bgp 64512
bgp router-id 5.5.5.5
bgp confederation identifier 2
neighbor 2002:2201:0102:9::1 remote-as 1
neighbor 2002:2201:102:6::1 remote-as 64512
neighbor 2002:2201:102:6::1 update-source Loopback0
address-family ipv6
neighbor 2002:2201:0102:9::1 activate
neighbor 2002:2201:102:6::1 activate
neighbor 2002:2201:102:6::1 next-hop-self
network 2002:2201:102:5::/64

R6
router bgp 64512
bgp router-id 6.6.6.6
bgp confederation identifier 2
neighbor 2002:2201:102:5::1 remote-as 64512
neighbor 2002:2201:102:5::1 update-source Loopback0
neighbor 2002:2201:102:7::1 remote-as 64512
neighbor 2002:2201:102:7::1 update-source Loopback0
address-family ipv6
neighbor 2002:2201:102:5::1 activate
neighbor 2002:2201:102:7::1 activate
neighbor 2002:2201:102:7::1 route-reflector-client
network 2002:2201:102:6::/64

R7
router bgp 64512
bgp router-id 7.7.7.7
bgp confederation identifier 2
bgp confederation peers 64513
neighbor 2002:2201:102:6::1 remote-as 64512
neighbor 2002:2201:102:6::1 update-source Loopback0
neighbor 2002:2201:102:8::1 remote-as 64513
neighbor 2002:2201:102:8::1 ebgp-multihop 2
neighbor 2002:2201:102:8::1 update-source Loopback0
address-family ipv6
neighbor 2002:2201:102:6::1 activate
neighbor 2002:2201:102:8::1 activate
network 2002:2201:102:7::/64
R8
router bgp 64513
bgp router-id 8.8.8.8
bgp confederation identifier 2
bgp confederation peers 64512
neighbor 2002:2201:102:7::1 remote-as 64512
neighbor 2002:2201:102:7::1 ebgp-multihop 2
neighbor 2002:2201:102:7::1 update-source Loopback0
address-family ipv6
neighbor 2002:2201:102:7::1 activate
network 2002:2201:102:8::/64

4、IPV4全网可通(静态及NAT)
R1
ip route 0.0.0.0 0.0.0.0 Serial3/1
R2
ip route 0.0.0.0 0.0.0.0 Serial3/1
ip route 192.168.1.0 255.255.255.0 Serial3/0
ip nat inside source list 1 interface Serial3/1 overload
access-list 1 permit 192.168.0.0 0.0.255.255
interface Serial3/0
ip nat inside
interface Serial3/1
ip nat outside
5、IPV6全网可通(6to4 Tunnel)
R2
interface Tunnel0
ipv6 enable
tunnel source Serial3/1
tunnel mode ipv6ip 6to4
ipv6 route 2002::/16 Tunnel0
R4
interface Tunnel0
ipv6 enable
tunnel source Serial3/0
tunnel mode ipv6ip 6to4
ipv6 route 2002::/16 Tunnel0
R5
ipv6 route ::/0 Serial3/0
R6
ipv6 route ::/0 Serial3/0
R7
ipv6 route ::/0 Serial3/0
R8
ipv6 route ::/0 Serial3/0

四、测试
两个局域网基于6to4 Tunnel可达(R1环回可IPV6 Ping通R8环回)
且R1可访问R3的环回
在这里插入图片描述
在这里插入图片描述

发布了35 篇原创文章 · 获赞 4 · 访问量 2312

猜你喜欢

转载自blog.csdn.net/qq_38891369/article/details/98490981