一:实验要求
二:配置IP与环回
在2,4,上配置缺省路由
R2:ip route-static 0.0.0.0 0 14.0.0.2
R4:ip route-static 0.0.0.0 0 15.0.0.1
测试:使用R2去pingR4的环回
三:在R1和R2上启动rip和ripng
rip
R1:
rip 1
ver 2
network 1.0.0.0
betwork 2.0.0.0
network 12.0.0.0
R2:
rip 1
ver 2
network 12.0.0.0
network 3.0.0.0
ripng
R1:
ripng 1 enable
int lo1
ripng 1 enable
int g0/0/0
ripng 1 enable
R2:ripng 1 enable
int lo0
ripng 1 enable
四:R4,R5,R6,R7,R8配置BGP,通过6to4tunnel完成要求1、2在5、6、7、8上启动OSPFv3
在R4、R5、R6、R7、R8上启动BGP
然后在R5,R7上设置本地下一跳
R5:
peer 7::7 next-hop-local
peer 8::8 next-hop-local
R7:
peer 7::7 next-hop-local
peer 6::6 next-hop-local
宣告AS1和AS2中的所有网段
R4:
network 5:: 64
network 16:: 64
R5:
network 6:: 64
network 17:: 64
network 18:: 64
network 19:: 64
R6:
network 7:: 64
R7:
network 8::64
R8:
network 9:: 64
在R2和R4上启动6to4tunnel
R2:ipv6 router-static 2002:: 16 tunnel 0/0/0
R4:ipv6 route-static 2002:: 16 tunnel 0/0/0
五:静态路由
1:
ipv6 route-static :: 0 12::2
2:
ipv6 route-static :: 0 2002:f00:2::1
ipv6 route-static :: 0 2002:e00:1:1
在r4重发布
default-route imported
六:在R1中添加v4的缺省路由,在R2上做nat
R1:ip route-static 0.0.0.0 0 12.0.0.2
R2 nat:
rule permit source 12.0.0.0 0.0.0.255
int g0/0/1
nat outbound 2000