Hcip学习日志(十六)IPV6实验

题干以及实验内容:

在这里插入图片描述

实验拓扑图:

因为这个实验router机无法完成,我在重装系统之后仍无法开启AR机,所以就只能停留在理论部分了
在这里插入图片描述

实验步骤:

1.配置公网,配置r1部分的ipv4私网 并配置缺省

在这里插入图片描述
缺省配置:
[r2]ip route-static 0.0.0.0 0 23.1.1.2
[r2]ip route-static 192.168.2.0 24 192.168.1.1
[r2]acl 2000
[r2-acl-basic-2000]rule permit source 192.168.0.0 0.0.255.255
[r2-acl-basic-2000]int e0/0/1
[r2-Ethernet0/0/1]nat outbound 2000

[r1]ip route-static 0.0.0.0 0 192.168.1.2
[r4]ip route-static 0.0.0.0 0 34.1.1.1
测试连通性:
在这里插入图片描述

2.r1 r2上配置ipv6

R1:
[r1]ipv6
[r1]int e0/0/0
[r1-Ethernet0/0/0]ipv6 enable
[r1-Ethernet0/0/0]ipv6 address 2002:1701:0101:1::1/64
[r1]int lo0
[r1-LoopBack0]ipv6 enable
[r1-LoopBack0]ipv6 address 2002:1701:0101::1/65
[r1]int lo1
[r1-LoopBack1]ipv6 enable
[r1-LoopBack1]ipv6 address 2002:1701:0101:0000:8000::1/65

R2:
[r2]ipv6
[r2]int lo0
[r2-LoopBack0]ipv6 e
[r2-LoopBack0]ipv6 enable
[r2-LoopBack0]ipv6 add 2002:1701:0101:2::1/64
[r2-Ethernet0/0/0]ipv6 enable
[r2-Ethernet0/0/0]ipv6 add 2002:1701:0101:1::2/64

配置RIPNG(该实验步骤未能完成,因为router不支持ripng)

[r1]ripng 1
[r1-LoopBack0]ripng 1 enable
[r1-LoopBack0]int lo1
[r1-LoopBack1]rip 1 enable
[r1]int e0/0/0
[r1-Ethernet0/0/0]ripng 1 enable
[r1-Ethernet0/0/0]ripng summary-address 2002:1701:0101:: 64

[r2]ripng 1
[r2-ripng-1]q
[r2]int lo0
[r2-LoopBack0]ripng 1 enable
[r2-LoopBack0]int e0/0/0
[r2-Ethernet0/0/0]ripng 1 enable

r2上配置tunnel

[r2]int t0/0/0
[r2-Tunnel0/0/0]ipv6 enable
[r2-Tunnel0/0/0]ipv6 add 2002:1701:0101:0003::1/64
[r2-Tunnel0/0/0]tunnel-protocol ipv6-ipv4 6to4
[r2-Tunnel0/0/0]source 23.1.1.1
[r2-Tunnel0/0/0]int e0/0/0
[r2]ipv6 route-static 2002:: 16 Tunnel 0/0/0
[r2-Ethernet0/0/0]ripng default-route only

3.r4-r8上进行ipv6配置

R4:
[r4]ipv6
[r4]int lo0
[r4-LoopBack0]ipv6 enable
[r4-LoopBack0]ipv6 add 2002:2201:0102::1/64
[r4-LoopBack0]int g0/0/1
[r4-Ethernet0/0/1]ipv6 enable
[r4-Ethernet0/0/1]ipv6 add 2002:2201:0102:1::1/64
R5:
[r5]ipv6
[r5-Ethernet0/0/0]ipv6 enable
[r5-Ethernet0/0/0]ipv6 add 2002:2201:0102:0001::2/64
[r5-LoopBack0]ipv6 enable
[r5-LoopBack0]ipv6 add 2002:2201:0102:8000::1/64
[r5-LoopBack0]ipv6 add 5::5/64
[r5-Ethernet0/0/1]ipv6 enable
[r5-Ethernet0/0/1]ipv6 add 2002:2201:0102:8001::1/64
R6:
[r6]ipv6
[r6]int g0/0/0
[r6-Ethernet0/0/0]ipv6 enable
[r6-Ethernet0/0/0]ipv6 add 2002:2201:0102:8001::2/64
[r6-LoopBack0]ipv6 enable
[r6-LoopBack0]ipv6 add 2002:2201:0102:8002::1/64
[r6-LoopBack0]ipv6 add 6::6/64
[r6-Ethernet0/0/1]ipv6 enable
[r6-Ethernet0/0/1]ipv6 add 2002:2201:0102:8003::1/64
R7:
[r7]ipv6
[r7]int g0/0/0
[r7-Ethernet0/0/0]ipv6 enable
[r7-Ethernet0/0/0]ipv6 add 2002:2201:0102:8003::2/64
[r7-Ethernet0/0/0]int lo0
[r7-LoopBack0]ipv6 enable
[r7-LoopBack0]ipv6 add 2002:2201:0102:8004::1/64
[r7-LoopBack0]ipv6 add 7::7/64
[r7-LoopBack0]int g0/0/1
[r7-Ethernet0/0/1]ipv6 enable
[r7-Ethernet0/0/1]ipv6 add 2002:2201:0102:8005::1/64
R8:
[r8]ipv6
[r8]int g0/0/0
[r8-Ethernet0/0/0]ipv6 enable
[r8-Ethernet0/0/0]ipv6 add 2002:2201:0102:8005::2/64
[r8-Ethernet0/0/0]int lo0
[r8-LoopBack0]ipv6 enable
[r8-LoopBack0]ipv6 add 2002:2201:0102:8006::1/64
[r8-LoopBack0]ipv6 add 8::8/64

4.配置OSPFV3

R5
[r5]ospfv3
[r5-ospfv3-1]router-id 5.5.5.5
[r5-ospfv3-1]int g0/0/1
[r5-Ethernet0/0/1]ospfv3 1 a 0
[r5-Ethernet0/0/1]int lo0
[r5-LoopBack0]ospfv3 1 a 0
R6
[r6]ospfv3
[r6-ospfv3-1]router-id 6.6.6.6
[r6-ospfv3-1]int g0/0/0
[r6-Ethernet0/0/0]ospfv3 1 a 0
[r6-Ethernet0/0/0]int lo0
[r6-LoopBack0]ospfv3 1 a 0
[r6-LoopBack0]int g0/0/1
[r6-GigabitEthernet0/0/1]ospfv3 1 a 0
R7
[r7]ospfv3
[r7-ospfv3-1]router-id 7.7.7.7
[r7-ospfv3-1]int g0/0/0
[r7-Ethernet0/0/0]ospfv3 1 a 0
[r7-Ethernet0/0/0]int lo0
[r7-LoopBack0]ospfv3 1 a 0
[r7-LoopBack0]int g0/0/1
[r7-Ethernet0/0/1]ospfv3 1 a 0
R8
[r8]ospfv3
[r8-ospfv3-1]router-id 8.8.8.8
[r8-ospfv3-1]q
[r8]int g0/0/0
[r8-Ethernet0/0/0]ospfv3 1 a 0
[r8-Ethernet0/0/0]int lo0
[r8-LoopBack0]ospfv3 1 a 0

5.进行BGP配置

R4
[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
[r4-bgp]ipv6-family
[r4-bgp-af-ipv6]peer 2002:2201:102:1::2 enable
R5
[r5]bgp 64512
[r5-bgp]confederation id 2
[r5-bgp]router-id 5.5.5.5
[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
[r5-bgp]peer 6::6 as-number 64512
[r5-bgp]peer 6::6 connect-interface LoopBack 0
[r5-bgp]ipv6
[r5-bgp]ipv6-family
[r5-bgp-af-ipv6]peer 6::6 enable
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 lo0
[r6-bgp]peer 7::7 as-number 64512
[r6-bgp]peer 7::7 connect-interface lo0
[r6-bgp]ipv6-family
[r6-bgp-af-ipv6]peer 5::5 enable
[r6-bgp-af-ipv6]peer 7::7 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]peer 6::6 connect-interface lo0
[r7-bgp]peer 8::8 as-number 64513
[r7-bgp]peer 8::8 connect-interface lo0
[r7-bgp]peer 8::8 ebgp-max-hop 2
[r7-bgp]ipv6
[r7-bgp]ipv6-family
[r7-bgp-af-ipv6]peer 6::6 enable
[r7-bgp-af-ipv6]peer 8::8 enable
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 lo0
[r8-bgp]peer 7::7 ebgp-max-hop 2
[r8-bgp]ipv6-family
[r8-bgp-af-ipv6]peer 7::7 enable

最后在R4配置Tunnel

r4
[r4]int t0/0/0
[r4-Tunnel0/0/0]ipv6 enable
[r4-Tunnel0/0/0]ipv6 add 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]ipv6 route-static 2002:: 16 Tunnel 0/0/0
[r4]bgp 1
[r4-bgp]ipv6-family
[r4-bgp-af-ipv6]net 2002:: 16
r5
[r5]ipv6 route-static 2002:2201:0102:8000:: 49 null 0
[r5]bgp 64512
[r5-bgp]ipv6-family
[r5-bgp-af-ipv6]net 2002:2201:0102:8000:: 49
[r5-bgp-af-ipv6]peer 6::6 next-hop-local
r6
[r6-bgp-af-ipv6]peer 7::7 reflect-client

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值