HCIP2------ipv6

这篇博客详细介绍了IPv6的配置步骤,包括设备的IPv6地址设置、路由协议(OSPFv3和BGP)配置、6to4隧道建立,以及不同AS间的互联。通过实例展示了如何在R1、R2、R3、R4、R5、R6和R7路由器上进行配置,确保IPv6网络的连通性。
摘要由CSDN通过智能技术生成

在这里插入图片描述
在这里插入图片描述

配置思路:
Ipv4:公网地址(2和4缺省指向3)–左边ipv4地址(1缺省指向2,2静态指向1,2做nat)
Ipv6:左边ipv6地址 23.1.1.1-----2002:1701:0101::/48
2002:1701:0101:0000::64–2001:1701:0101:ffff::/64
R1环回:2002:1701:0101:0000::1/65
2002:1701:0101:0000:8000::1/65
1—2 2001:1701:0101:0001::/64
R2环回:2001:1701:0101:0002::1/64
6 to 4 tunnel—右边ipv6地址:34.1.1.2-----2002:2201:0102::/48
AS1:2002:2201:0102::/49
AS2:2001:2201:0102:8000::/49
Ospfv3–bgp–多宿主–建邻 联邦–6 to 4 tunnel
The device is running!

[r1-LoopBack0]ip add 192.168.1.1 25
[r1-LoopBack1]ip add 192.168.1.129 25
[r1-GigabitEthernet0/0/0]ip add 192.168.0.1 30
[r1]ip route-static 0.0.0.0 0 192.168.0.2
[r1]ping 3.3.3.3
PING 3.3.3.3: 56 data bytes, press CTRL_C to break
Reply from 3.3.3.3: bytes=56 Sequence=1 ttl=254 time=50 ms
Reply from 3.3.3.3: bytes=56 Sequence=2 ttl=254 time=30 ms
Reply from 3.3.3.3: bytes=56 Sequence=3 ttl=254 time=30 ms
Reply from 3.3.3.3: bytes=56 Sequence=4 ttl=254 time=30 ms
Reply from 3.3.3.3: bytes=56 Sequence=5 ttl=254 time=50 ms

— 3.3.3.3 ping statistics —
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 30/38/50 ms

[r1]ipv6
[r1]int loo0
[r1-LoopBack0]ipv6 enable
[r1-LoopBack0]ipv6 add 2002:1701:0101:0000::1/65
[r1-LoopBack0]int loo1
[r1-LoopBack1]ipv6 enable
[r1-LoopBack1]ipv6 add 2002:1701:0101:0000:8000::1/65
[r1-LoopBack1]int g0/0/0
[r1-GigabitEthernet0/0/0]ipv6 enable
[r1-GigabitEthernet0/0/0]ipv6 add 2002:1701:0101:1::1/64
[r1]ripng 1
[r1-ripng-1]int loo0
[r1-LoopBack0]ripng 1 enable
[r1-LoopBack0]int loo1
[r1-LoopBack1]ripng 1 enable
[r1-LoopBack1]int g0/0/0
[r1-GigabitEthernet0/0/0]ripng 1 enable
[r1]display ipv6 routing-table protocol ripng
Public Routing Table : RIPng
Summary Count : 2

RIPng Routing Table’s Status : < Active >
Summary Count : 2

Destination : 2001:1701:101:1:: PrefixLength : 64
NextHop : FE80::2E0:FCFF:FEAC:2E1D Preference : 100
Cost : 1 Protocol : RIPng
RelayNextHop : :: TunnelID : 0x0
Interface : GigabitEthernet0/0/0 Flags : D

Destination : 2002:1701:101:2:: PrefixLength : 64

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值