一.先做v4网络
1.缺省指向r3(ISP)
[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
- 私网访问公网(nat和缺省)
[r1]ip route-static 0.0.0.0 0 192.168.1.2
[r2]acl 2000
[r2-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[r2]int g0/0/1
[r2-GigabitEthernet0/0/1]nat outbound 2000
测试[r1]ping 34.1.1.2
二.ipv6网络
基于6to4tunnel,ipv4换算ipv6
ipv4 23.1.1.1 /24(32位4段,每段8位)
ipv6 2002:1701:0101::/48(128位8段每段16位)
子网划分 2002:1701:0101:0::/64
2002:1701:0101:1::/64
2002:1701:0101:2::/64
2002:1701:0101:3::/64
2002:1701:0101:0::/64 在划2个给R1环回用
环回1 2002:1701:0101::/65
原因 2002:1701:0101:0000:0000 0000 0000 0000::/65
环回2 2002:1701:0101:0000:8000::/65
原因2002:1701:0101:0000:1000 0000 0000 0000 ::/65
左边
1.配地址
r1
ipv6 必须先在设备上开启IPV6服务
interface LoopBack0
ipv6 enable 再在接口上激活IPV6服务,才能配置ipv6地址配置ipv6地址
ipv6 address 2002:1701:101::1/65
interface LoopBack1
ipv6 enable
ipv6 address 2002:1701:101:0:8000::1/65
interface GigabitEthernet0/0/0
ip address 192.168.1.1 255.255.255.0
ipv6 enable
ipv6 address 2002:1701:101:1::1/64
r2
ipv6
interface LoopBack0
ipv6 enable
ipv6 address 2002:1701:101:2::1/64
interface GigabitEthernet0/0/0
ipv6 enable
ip address 192.168.1.2 255.255.255.0
ipv6 address 2002:1701:101:1::2/64

本文详细介绍了IPv6网络的配置过程,包括6to4隧道的建立,IPv4到IPv6的转换,以及RIPng、BGP等路由协议的配置。通过实验,展示了如何实现不同AS之间的IPv6路由通信。
最低0.47元/天 解锁文章
705

被折叠的 条评论
为什么被折叠?



