IPV6(IPV6,RIPng的配置以及手工配置IPV4隧道)

news2024/12/29 2:46:13

目录

实验一:IPv6的基本配置

实验二:RIPng基本配置

RIPng

RIPng的工作机制

实验三:手工配置IPV4隧道


实验一:IPv6的基本配置

案例如下: 

各部分配置如下 

配置路由器RTA 

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname RTA
[RTA]ipv6
#配置连接计算机端口的ipv6地址
[RTA]int g0/0/2
#在端口上使能ipv6功能,若去使能,使用undo ipv6 enable
[RTA-GigabitEthernet0/0/2]ipv6 enable
#配置端口的全球单播地址
[RTA-GigabitEthernet0/0/2]ipv6 address 2001:1::A 64
#每个IPv6端口必须要有本地链路地址。可以自动生成,也可以手工配置。
#可以为接口配置多个 IPv6 地址,但是每个接口只能有一个链路本地地址。
#链路本地地址用于邻居发现协议和无状态自动配置过程中链路本地上节点之间的通信
#配置自动生成链路本地地址。
[RTA-GigabitEthernet0/0/2]ipv6 address auto link-local
#查看当前接口的ipv6
[RTA-GigabitEthernet0/0/2]display this ipv6 interface
GigabitEthernet0/0/2 current state : UP 
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE6E:2CC5
  Global unicast address(es):
    2001:1::A, subnet is 2001:1::/64
  Joined group address(es):
    FF02::1:FF00:A
    FF02::2
    FF02::1
    FF02::1:FF6E:2CC5
  MTU is 1500 bytes
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds
  ND retransmit interval is 1000 milliseconds
  Hosts use stateless autoconfig for addresses
[RTA-GigabitEthernet0/0/2]qu
#配置连接路由器端口的IPV6地址
[RTA]int g0/0/0
#使能ipv6
[RTA-GigabitEthernet0/0/0]ipv6 enable
[RTA-GigabitEthernet0/0/0]ipv6 address 2400:6400:E:1::1 64
[RTA-GigabitEthernet0/0/0]display this ipv6 interface
GigabitEthernet0/0/0 current state : UP 
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE6E:2CC3
  Global unicast address(es):
    2400:6400:E:1::1, subnet is 2400:6400:E:1::/64
  Joined group address(es):
    FF02::1:FF00:1
    FF02::2
    FF02::1
    FF02::1:FF6E:2CC3
  MTU is 1500 bytes
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds
  ND retransmit interval is 1000 milliseconds
  Hosts use stateless autoconfig for addresses
[RTA-GigabitEthernet0/0/0]qu
#查看配置结果
[RTA]display ipv6 interface
GigabitEthernet0/0/0 current state : UP 
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE6E:2CC3
  Global unicast address(es):
    2400:6400:E:1::1, subnet is 2400:6400:E:1::/64
  Joined group address(es):
    FF02::1:FF00:1
    FF02::2
    FF02::1
    FF02::1:FF6E:2CC3
  MTU is 1500 bytes
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds
  ND retransmit interval is 1000 milliseconds
  Hosts use stateless autoconfig for addresses

GigabitEthernet0/0/2 current state : UP 
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE6E:2CC5
  Global unicast address(es):
    2001:1::A, subnet is 2001:1::/64
  Joined group address(es):
    FF02::1:FF00:A
    FF02::2

[RTA]display ipv6 interface brief
*down: administratively down
(l): loopback
(s): spoofing
Interface                    Physical              Protocol   
GigabitEthernet0/0/0         up                    up         
[IPv6 Address] 2400:6400:E:1::1
GigabitEthernet0/0/2         up                    up         
[IPv6 Address] 2001:1::A
[RTA]display ipv6 interface g0/0/2
GigabitEthernet0/0/2 current state : UP 
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE6E:2CC5
  Global unicast address(es):
    2001:1::A, subnet is 2001:1::/64
  Joined group address(es):
    FF02::1:FF00:A
    FF02::2
    FF02::1
    FF02::1:FF6E:2CC5
  MTU is 1500 bytes
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds
  ND retransmit interval is 1000 milliseconds
  Hosts use stateless autoconfig for addresses

[RTA]display ipv6 routing-table
Routing Table : Public
	Destinations : 6	Routes : 6

 Destination  : ::1                             PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : InLoopBack0                     Flags        : D

 Destination  : 2001:1::                        PrefixLength : 64
 NextHop      : 2001:1::A                       Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/2            Flags        : D

 Destination  : 2001:1::A                       PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/2            Flags        : D

 Destination  : 2400:6400:E:1::                 PrefixLength : 64
 NextHop      : 2400:6400:E:1::1                Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/0            Flags        : D


[RTA]display ipv6 neighbors

配置路由器RTB

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname RTB
[RTB]ipv6
[RTB]int g0/0/2
[RTB-GigabitEthernet0/0/2]ipv6 enable
[RTB-GigabitEthernet0/0/2]ipv6 address 2002:1::A 64
[RTB-GigabitEthernet0/0/2]ipv6 address auto link-local
[RTB-GigabitEthernet0/0/2]display this ipv6 interface
GigabitEthernet0/0/2 current state : UP 
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE5F:7A29
  Global unicast address(es):
    2002:1::A, subnet is 2002:1::/64
  Joined group address(es):
    FF02::1:FF00:A
    FF02::2
    FF02::1
    FF02::1:FF5F:7A29
  MTU is 1500 bytes
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds
  ND retransmit interval is 1000 milliseconds
  Hosts use stateless autoconfig for addresses
[RTB-GigabitEthernet0/0/2]qu
[RTB]int g0/0/0
[RTB-GigabitEthernet0/0/0]ipv6 enable
[RTB-GigabitEthernet0/0/0]ipv6 address 2400:6400:E:1::2 64
[RTB-GigabitEthernet0/0/0]display this ipv6 interface
GigabitEthernet0/0/0 current state : UP 
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE5F:7A27
  Global unicast address(es):
    2400:6400:E:1::2, subnet is 2400:6400:E:1::/64
  Joined group address(es):
    FF02::1:FF00:2
    FF02::2
    FF02::1
    FF02::1:FF5F:7A27
  MTU is 1500 bytes
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds
  ND retransmit interval is 1000 milliseconds
  Hosts use stateless autoconfig for addresses
[RTB-GigabitEthernet0/0/0]qu
[RTB]display ipv6 interface
GigabitEthernet0/0/0 current state : UP 
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE5F:7A27
  Global unicast address(es):
    2400:6400:E:1::2, subnet is 2400:6400:E:1::/64
  Joined group address(es):
    FF02::1:FF00:2
    FF02::2
    FF02::1
    FF02::1:FF5F:7A27
  MTU is 1500 bytes
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds
  ND retransmit interval is 1000 milliseconds
  Hosts use stateless autoconfig for addresses

GigabitEthernet0/0/2 current state : UP 
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE5F:7A29
  Global unicast address(es):
    2002:1::A, subnet is 2002:1::/64
  Joined group address(es):
    FF02::1:FF00:A
    FF02::2

[RTB]display ipv6 interface brief
*down: administratively down
(l): loopback
(s): spoofing
Interface                    Physical              Protocol   
GigabitEthernet0/0/0         up                    up         
[IPv6 Address] 2400:6400:E:1::2
GigabitEthernet0/0/2         up                    up         
[IPv6 Address] 2002:1::A
[RTB]display ipv6 interface g0/0/2
GigabitEthernet0/0/2 current state : UP 
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE5F:7A29
  Global unicast address(es):
    2002:1::A, subnet is 2002:1::/64
  Joined group address(es):
    FF02::1:FF00:A
    FF02::2
    FF02::1
    FF02::1:FF5F:7A29
  MTU is 1500 bytes
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds
  ND retransmit interval is 1000 milliseconds
  Hosts use stateless autoconfig for addresses
[RTB]display ipv6 routing-table
Routing Table : Public
	Destinations : 6	Routes : 6

 Destination  : ::1                             PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : InLoopBack0                     Flags        : D

 Destination  : 2002:1::                        PrefixLength : 64
 NextHop      : 2002:1::A                       Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/2            Flags        : D

 Destination  : 2002:1::A                       PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/2            Flags        : D

 Destination  : 2400:6400:E:1::                 PrefixLength : 64
 NextHop      : 2400:6400:E:1::2                Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/0            Flags        : D


[RTB]display ipv6 neighbors

此时PC-10-1能ping通RTA,不能ping通PC-20-1

PC>ping 2001:1::A

Ping 2001:1::a: 32 data bytes, Press Ctrl_C to break
From 2001:1::a: bytes=32 seq=1 hop limit=64 time=16 ms
From 2001:1::a: bytes=32 seq=2 hop limit=64 time=15 ms
From 2001:1::a: bytes=32 seq=3 hop limit=64 time=16 ms
From 2001:1::a: bytes=32 seq=4 hop limit=64 time<1 ms
From 2001:1::a: bytes=32 seq=5 hop limit=64 time<1 ms

--- 2001:1::a ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 0/9/16 ms

PC>ping 2002:1::B

Ping 2002:1::b: 32 data bytes, Press Ctrl_C to break
Request timeout!
Request timeout!
Request timeout!
Request timeout!
Request timeout!

 此时PC-20-1能ping通RTB,不能ping通PC-10-1

PC>ping 2002:1::A

Ping 2002:1::a: 32 data bytes, Press Ctrl_C to break
From 2002:1::a: bytes=32 seq=1 hop limit=64 time=16 ms
From 2002:1::a: bytes=32 seq=2 hop limit=64 time=15 ms
From 2002:1::a: bytes=32 seq=3 hop limit=64 time=16 ms
From 2002:1::a: bytes=32 seq=4 hop limit=64 time=15 ms
From 2002:1::a: bytes=32 seq=5 hop limit=64 time<1 ms

--- 2002:1::a ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 0/12/16 ms


PC>ping 2001:1::B

Ping 2001:1::b: 32 data bytes, Press Ctrl_C to break
Request timeout!
Request timeout!
Request timeout!
Request timeout!
Request timeout!

--- 2001:1::b ping statistics ---
  5 packet(s) transmitted
  0 packet(s) received
  100.00% packet loss

RTA能与RTB进行通信 

[RTA]ping ipv6 2400:6400:000E:0001::2
  PING 2400:6400:000E:0001::2 : 56  data bytes, press CTRL_C to break
    Reply from 2400:6400:E:1::2 
    bytes=56 Sequence=1 hop limit=64  time = 40 ms
    Reply from 2400:6400:E:1::2 
    bytes=56 Sequence=2 hop limit=64  time = 20 ms
    Reply from 2400:6400:E:1::2 
    bytes=56 Sequence=3 hop limit=64  time = 20 ms
    Reply from 2400:6400:E:1::2 
    bytes=56 Sequence=4 hop limit=64  time = 30 ms
    Reply from 2400:6400:E:1::2 
    bytes=56 Sequence=5 hop limit=64  time = 40 ms

  --- 2400:6400:000E:0001::2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/30/40 ms

至此,PC-10-1和PC-20-1还不能互ping,需要配置路由器静态路由和默认路由

 RTA

<RTA>sys
Enter system view, return user view with Ctrl+Z.
#配置到PC-20-1所在网段的IPV6静态路由
[RTA]ipv6 route-static 2002:1::0 64 2400:6400:000E:0001:2
                                    ^
Error: Wrong parameter found at '^' position.
[RTA]ipv6 route-static 2002:1::0 64 2400:6400:000E:0001::2
[RTA]display ipv6 routing-table
Routing Table : Public
	Destinations : 7	Routes : 7

 Destination  : ::1                             PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : InLoopBack0                     Flags        : D

 Destination  : 2001:1::                        PrefixLength : 64
 NextHop      : 2001:1::A                       Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/2            Flags        : D

 Destination  : 2001:1::A                       PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/2            Flags        : D

 Destination  : 2002:1::                        PrefixLength : 64
 NextHop      : 2400:6400:E:1::2                Preference   : 60
 Cost         : 0                               Protocol     : Static
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/0            Flags        : RD

RTB

<RTB>sys
Enter system view, return user view with Ctrl+Z.
[RTB]ipv6 route-static :: 0 2400:6400:000E:0001::1
[RTB]display ipv6 routing-table
Routing Table : Public
	Destinations : 7	Routes : 7

 Destination  : ::                              PrefixLength : 0
 NextHop      : 2400:6400:E:1::1                Preference   : 60
 Cost         : 0                               Protocol     : Static
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/0            Flags        : RD

 Destination  : ::1                             PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : InLoopBack0                     Flags        : D

 Destination  : 2002:1::                        PrefixLength : 64
 NextHop      : 2002:1::A                       Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/2            Flags        : D

 Destination  : 2002:1::A                       PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/2            Flags        : D

  ---- More ----

此时PC间可以进行互ping

PC>ping 2002:1::B

Ping 2002:1::b: 32 data bytes, Press Ctrl_C to break
From 2002:1::b: bytes=32 seq=1 hop limit=253 time=47 ms
From 2002:1::b: bytes=32 seq=2 hop limit=253 time=15 ms
From 2002:1::b: bytes=32 seq=3 hop limit=253 time=32 ms
From 2002:1::b: bytes=32 seq=4 hop limit=253 time=31 ms
From 2002:1::b: bytes=32 seq=5 hop limit=253 time=16 ms

--- 2002:1::b ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 15/28/47 ms

PC>ping 2001:1::B

Ping 2001:1::b: 32 data bytes, Press Ctrl_C to break
From 2001:1::b: bytes=32 seq=1 hop limit=253 time=15 ms
From 2001:1::b: bytes=32 seq=2 hop limit=253 time=31 ms
From 2001:1::b: bytes=32 seq=3 hop limit=253 time=32 ms
From 2001:1::b: bytes=32 seq=4 hop limit=253 time=31 ms
From 2001:1::b: bytes=32 seq=5 hop limit=253 time=31 ms

--- 2001:1::b ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 15/28/32 ms

实验二:RIPng基本配置

RIPng

RIPng又称为下一代RIP协议(RIP next generation),它是对原来的IPv4网络中RIP-2协议的扩展。大多数RIP的概念都可以用于RIPng。

为了在IPv6网络中应用,RIPng对原有的RIP协议进行了如下修改:

•UDP端口号:使用UDP的521端口发送和接收路由信息。
•组播地址:使用FF02::9作为链路本地范围内的RIPng路由器组播地址。
•前缀长度:目的地址使用128比特的前缀长度。
•下一跳地址:使用128比特的IPv6地址。
•源地址:使用链路本地地址FE80::/10作为源地址发送RIPng路由信息更新报文。

RIPng的工作机制

RIPng协议是基于距离矢量(Distance-Vector)算法的协议。它通过UDP报文交换路由信息,使用的端口号为521

RIPng使用跳数来衡量到达目的地址的距离(也称为度量值或开销)。在RIPng中,从一个路由器到其直连网络的跳数为0,通过与其相连的路由器到达另一个网络的跳数为1,其余以此类推。当跳数大于或等于16时,目的网络或主机就被定义为不可达。

RIPng每30秒发送一次路由更新报文。如果在180秒内没有收到网络邻居的路由更新报文,RIPng将从邻居学到的所有路由标识为不可达。如果再过120秒内仍没有收到邻居的路由更新报文,RIPng将从路由表中删除这些路由。

为了提高性能并避免形成路由环路,RIPng既支持水平分割也支持毒性逆转。此外,RIPng还可以从其它的路由协议引入路由。

每个运行RIPng的路由器都管理一个路由数据库,该路由数据库包含了到所有可达目的地的路由项,这些路由项包含下列信息:

目的地址:主机或网络的IPv6地址。
下一跳地址:为到达目的地,需要经过的相邻路由器的接口IPv6地址。
出接口:转发IPv6报文通过的出接口。
度量值:本路由器到达目的地的开销。
路由时间:从路由项最后一次被更新到现在所经过的时间,路由项每次被更新时,路由时间重置为0。
路由标记(Route Tag):用于标识外部路由,以便在路由策略中根据Tag对路由进行灵活的控制。关于路由策略的详细信息,请参见“IP路由分册”中的“路由策略配置”。


以上内容记录自: http://t.csdn.cn/UZXi2 如果想知道更多详细的信息,可以看这篇文章


案例如下:

各部分配置如下

RTA路由器的配置

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname 
Sep 25 2023 14:20:34-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[0]:Interface GigabitEt
hernet0/0/0 has turned into UP state.
[Huawei]sysname RTA
[RTA]ipv6
[RTA]int g0/0/2
[RTA-GigabitEthernet0/0/2]ipv6 enable
[RTA-GigabitEthernet0/0/2]ipv6 address 2001:1::A 64
[RTA-GigabitEthernet0/0/2]ipv6 address auto link-local
[RTA-GigabitEthernet0/0/2]display this ipv6 interface
GigabitEthernet0/0/2 current state : UP 
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE6E:2CC5
  Global unicast address(es):
    2001:1::A, subnet is 2001:1::/64
  Joined group address(es):
    FF02::1:FF00:A
    FF02::2
    FF02::1
    FF02::1:FF6E:2CC5
  MTU is 1500 bytes
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds
  ND retransmit interval is 1000 milliseconds
  Hosts use stateless autoconfig for addresses
[RTA-GigabitEthernet0/0/2]qu
[RTA]int g0/0/0
[RTA-GigabitEthernet0/0/0]ipv6 enable
[RTA-GigabitEthernet0/0/0]ipv6 address 2400:6400:000E:0001::1 64 
[RTA-GigabitEthernet0/0/0]display this ipv6 interface
GigabitEthernet0/0/0 current state : UP 
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE6E:2CC3
  Global unicast address(es):
    2400:6400:E:1::1, subnet is 2400:6400:E:1::/64
  Joined group address(es):
    FF02::1:FF00:1
    FF02::2
    FF02::1
    FF02::1:FF6E:2CC3
  MTU is 1500 bytes
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds
  ND retransmit interval is 1000 milliseconds
  Hosts use stateless autoconfig for addresses
[RTA-GigabitEthernet0/0/0]qu
[RTA]display ipv6 interface
GigabitEthernet0/0/0 current state : UP 
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE6E:2CC3
  Global unicast address(es):
    2400:6400:E:1::1, subnet is 2400:6400:E:1::/64
  Joined group address(es):
    FF02::1:FF00:1
    FF02::2
    FF02::1
    FF02::1:FF6E:2CC3
  MTU is 1500 bytes
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds
  ND retransmit interval is 1000 milliseconds
  Hosts use stateless autoconfig for addresses

GigabitEthernet0/0/2 current state : UP 
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE6E:2CC5
  Global unicast address(es):
    2001:1::A, subnet is 2001:1::/64
  Joined group address(es):
    FF02::1:FF00:A
    FF02::2


[RTA]display ipv6 interface brief
*down: administratively down
(l): loopback
(s): spoofing
Interface                    Physical              Protocol   
GigabitEthernet0/0/0         up                    up         
[IPv6 Address] 2400:6400:E:1::1
GigabitEthernet0/0/2         up                    up         
[IPv6 Address] 2001:1::A

[RTA]display ipv6 interface g0/0/2
GigabitEthernet0/0/2 current state : UP 
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE6E:2CC5
  Global unicast address(es):
    2001:1::A, subnet is 2001:1::/64
  Joined group address(es):
    FF02::1:FF00:A
    FF02::2
    FF02::1
    FF02::1:FF6E:2CC5
  MTU is 1500 bytes
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds
  ND retransmit interval is 1000 milliseconds
  Hosts use stateless autoconfig for addresses

[RTA]display ipv6 routing-table
Routing Table : Public
	Destinations : 6	Routes : 6

 Destination  : ::1                             PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : InLoopBack0                     Flags        : D

 Destination  : 2001:1::                        PrefixLength : 64
 NextHop      : 2001:1::A                       Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/2            Flags        : D

 Destination  : 2001:1::A                       PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/2            Flags        : D

 Destination  : 2400:6400:E:1::                 PrefixLength : 64
 NextHop      : 2400:6400:E:1::1                Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/0            Flags        : D


[RTA]display ipv6 neighbors
[RTA]

RTB路由器的配置

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname RTB
[RTB]ipv6 
[RTB]int g0/0/2
[RTB-GigabitEthernet0/0/2]ipv6 enable 
[RTB-GigabitEthernet0/0/2]ipv6 address 2002:1::A 64
[RTB-GigabitEthernet0/0/2]ipv6 address auto link-local
[RTB-GigabitEthernet0/0/2]display this ipv6 interface
GigabitEthernet0/0/2 current state : UP 
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE5F:7A29
  Global unicast address(es):
    2002:1::A, subnet is 2002:1::/64
  Joined group address(es):
    FF02::1:FF00:A
    FF02::2
    FF02::1
    FF02::1:FF5F:7A29
  MTU is 1500 bytes
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds
  ND retransmit interval is 1000 milliseconds
  Hosts use stateless autoconfig for addresses
[RTB-GigabitEthernet0/0/2]qu
[RTB]int g0/0/0
[RTB-GigabitEthernet0/0/0]ipv6 enable
[RTB-GigabitEthernet0/0/0]ipv6 address 2400:6400:000E:0002::1 64

[RTB-GigabitEthernet0/0/0]display this ipv6 interface
GigabitEthernet0/0/0 current state : UP 
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE5F:7A27
  Global unicast address(es):
    2400:6400:E:2::1, subnet is 2400:6400:E:2::/64
  Joined group address(es):
    FF02::1:FF00:1
    FF02::2
    FF02::1
    FF02::1:FF5F:7A27
  MTU is 1500 bytes
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds
  ND retransmit interval is 1000 milliseconds
  Hosts use stateless autoconfig for addresses
[RTB-GigabitEthernet0/0/0]qu

[RTB]display ipv6 interface
GigabitEthernet0/0/0 current state : UP 
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE5F:7A27
  Global unicast address(es):
    2400:6400:E:2::1, subnet is 2400:6400:E:2::/64
  Joined group address(es):
    FF02::1:FF00:1
    FF02::2
    FF02::1
    FF02::1:FF5F:7A27
  MTU is 1500 bytes
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds
  ND retransmit interval is 1000 milliseconds
  Hosts use stateless autoconfig for addresses

GigabitEthernet0/0/2 current state : UP 
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE5F:7A29
  Global unicast address(es):
    2002:1::A, subnet is 2002:1::/64
  Joined group address(es):
    FF02::1:FF00:A
    FF02::2

[RTB]display ipv6 interface brief
*down: administratively down
(l): loopback
(s): spoofing
Interface                    Physical              Protocol   
GigabitEthernet0/0/0         up                    up         
[IPv6 Address] 2400:6400:E:2::1
GigabitEthernet0/0/2         up                    up         
[IPv6 Address] 2002:1::A
[RTB]display ipv6 interface g0/0/2
GigabitEthernet0/0/2 current state : UP 
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE5F:7A29
  Global unicast address(es):
    2002:1::A, subnet is 2002:1::/64
  Joined group address(es):
    FF02::1:FF00:A
    FF02::2
    FF02::1
    FF02::1:FF5F:7A29
  MTU is 1500 bytes
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds
  ND retransmit interval is 1000 milliseconds
  Hosts use stateless autoconfig for addresses

[RTB]display ipv6 routing-table
Routing Table : Public
	Destinations : 6	Routes : 6

 Destination  : ::1                             PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : InLoopBack0                     Flags        : D

 Destination  : 2002:1::                        PrefixLength : 64
 NextHop      : 2002:1::A                       Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/2            Flags        : D

 Destination  : 2002:1::A                       PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/2            Flags        : D

 Destination  : 2400:6400:E:2::                 PrefixLength : 64
 NextHop      : 2400:6400:E:2::1                Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/0            Flags        : D


[RTB]display ipv6 neighbors

 RTC路由的配置

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname RTC
[RTC]ipv6
[RTC]int g0/0/0
[RTC-GigabitEthernet0/0/0]ipv6 enable
[RTC-GigabitEthernet0/0/0]ipv6 address 2400:6400:000E:0001::2 64
[RTC-GigabitEthernet0/0/0]display this ipv6 interface
GigabitEthernet0/0/0 current state : UP 
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE36:7EC
  Global unicast address(es):
    2400:6400:E:1::2, subnet is 2400:6400:E:1::/64
  Joined group address(es):
    FF02::1:FF00:2
    FF02::2
    FF02::1
    FF02::1:FF36:7EC
  MTU is 1500 bytes
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds
  ND retransmit interval is 1000 milliseconds
  Hosts use stateless autoconfig for addresses
[RTC-GigabitEthernet0/0/0]qu
[RTC]int g0/0/1
[RTC-GigabitEthernet0/0/1]ipv6 enable
[RTC-GigabitEthernet0/0/1]ipv6 address 2400:6400:000E:0002::2 64
[RTC-GigabitEthernet0/0/1]display this ipv6 interface
GigabitEthernet0/0/1 current state : UP 
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE36:7ED
  Global unicast address(es):
    2400:6400:E:2::2, subnet is 2400:6400:E:2::/64
  Joined group address(es):
    FF02::1:FF00:2
    FF02::2
    FF02::1
    FF02::1:FF36:7ED
  MTU is 1500 bytes
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds
  ND retransmit interval is 1000 milliseconds
  Hosts use stateless autoconfig for addresses
[RTC-GigabitEthernet0/0/1]qu

[RTC]display ipv6 interface 
GigabitEthernet0/0/0 current state : UP 
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE36:7EC
  Global unicast address(es):
    2400:6400:E:1::2, subnet is 2400:6400:E:1::/64
  Joined group address(es):
    FF02::1:FF00:2
    FF02::2
    FF02::1
    FF02::1:FF36:7EC
  MTU is 1500 bytes
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds
  ND retransmit interval is 1000 milliseconds
  Hosts use stateless autoconfig for addresses

GigabitEthernet0/0/1 current state : UP 
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE36:7ED
  Global unicast address(es):
    2400:6400:E:2::2, subnet is 2400:6400:E:2::/64
  Joined group address(es):
    FF02::1:FF00:2
    FF02::2

[RTC]display ipv6 interface brief
*down: administratively down
(l): loopback
(s): spoofing
Interface                    Physical              Protocol   
GigabitEthernet0/0/0         up                    up         
[IPv6 Address] 2400:6400:E:1::2
GigabitEthernet0/0/1         up                    up         
[IPv6 Address] 2400:6400:E:2::2
[RTC]display ipv6 interface g0/0/1
GigabitEthernet0/0/1 current state : UP 
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE36:7ED
  Global unicast address(es):
    2400:6400:E:2::2, subnet is 2400:6400:E:2::/64
  Joined group address(es):
    FF02::1:FF00:2
    FF02::2
    FF02::1
    FF02::1:FF36:7ED
  MTU is 1500 bytes
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds
  ND retransmit interval is 1000 milliseconds
  Hosts use stateless autoconfig for addresses

[RTC]display ipv6 routing-table
Routing Table : Public
	Destinations : 6	Routes : 6

 Destination  : ::1                             PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : InLoopBack0                     Flags        : D

 Destination  : 2400:6400:E:1::                 PrefixLength : 64
 NextHop      : 2400:6400:E:1::2                Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/0            Flags        : D

 Destination  : 2400:6400:E:1::2                PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/0            Flags        : D

 Destination  : 2400:6400:E:2::                 PrefixLength : 64
 NextHop      : 2400:6400:E:2::2                Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/1            Flags        : D


[RTC]display ipv6 neighbors

 配置各路由器的RIPng

RTA 

<RTA>sys
Enter system view, return user view with Ctrl+Z.
#创建RIPng进程,进程号取值范围是1~65535,默认值是1
[RTA]ripng 1
[RTA-ripng-1]qu
[RTA]int g0/0/0
#为端口配置RIPng
#ripng enable命令用来使能一个端口的RIPng路由
#默认情况下,接口上未使能RIPng路由协议
[RTA-GigabitEthernet0/0/0]ripng 1 enable
[RTA-GigabitEthernet0/0/0]qu
[RTA]int g0/0/2
[RTA-GigabitEthernet0/0/2]ripng 1 enable
[RTA-GigabitEthernet0/0/2]qu
[RTA]display ipv6 routing-table
Routing Table : Public
	Destinations : 6	Routes : 6

 Destination  : ::1                             PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : InLoopBack0                     Flags        : D

 Destination  : 2001:1::                        PrefixLength : 64
 NextHop      : 2001:1::A                       Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/2            Flags        : D

 Destination  : 2001:1::A                       PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/2            Flags        : D

 Destination  : 2400:6400:E:1::                 PrefixLength : 64
 NextHop      : 2400:6400:E:1::1                Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/0            Flags        : D

 RTB

<RTB>sys
Enter system view, return user view with Ctrl+Z.
[RTB]ripng 1
[RTB-ripng-1]qu
[RTB]int g0/0/0
[RTB-GigabitEthernet0/0/0]ripng 1 enable
[RTB-GigabitEthernet0/0/0]qu
[RTB]int g0/0/2
[RTB-GigabitEthernet0/0/2]ripng 1 enable
[RTB-GigabitEthernet0/0/2]qu
[RTB]display ipv6 routing-table
Routing Table : Public
	Destinations : 6	Routes : 6

 Destination  : ::1                             PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : InLoopBack0                     Flags        : D

 Destination  : 2002:1::                        PrefixLength : 64
 NextHop      : 2002:1::A                       Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/2            Flags        : D

 Destination  : 2002:1::A                       PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/2            Flags        : D

 Destination  : 2400:6400:E:2::                 PrefixLength : 64
 NextHop      : 2400:6400:E:2::1                Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/0            Flags        : D

RTC

<RTC>sys
Enter system view, return user view with Ctrl+Z.
[RTC]ripng 1
[RTC-ripng-1]qu
[RTC]int g0/0/0
[RTC-GigabitEthernet0/0/0]ripng 1 enable
[RTC-GigabitEthernet0/0/0]qu
[RTC]int g0/0/1
[RTC-GigabitEthernet0/0/1]ripng 1 enable
[RTC-GigabitEthernet0/0/1]qu
[RTC]display ipv6 routing-table
Routing Table : Public
	Destinations : 8	Routes : 8

 Destination  : ::1                             PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : InLoopBack0                     Flags        : D

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

 Destination  : 2002:1::                        PrefixLength : 64
 NextHop      : FE80::2E0:FCFF:FE5F:7A27        Preference   : 100
 Cost         : 1                               Protocol     : RIPng
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/1            Flags        : D

 Destination  : 2400:6400:E:1::                 PrefixLength : 64
 NextHop      : 2400:6400:E:1::2                Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/0            Flags        : D

 检查配置结果

#查看RIPng进程当前运行状态及配置信息
[RTA]display ripng
Public vpn-instance     
    RIPng process : 1
       Preference    : 100
       Checkzero     : Enabled
       Default-cost  : 0
       Maximum number of balanced paths : 8
       Update time   : 30 sec     Age time   : 180 sec 
       Garbage-collect time : 120 sec 
       Number of periodic updates sent : 16
       Number of trigger updates sent  : 3
       Number of routes in database    : 4
       Number of interfaces enabled    : 2
       Total number of routes : 2
       Total number of routes in ADV DB is : 4

  Total count for 1 process : 
       Number of routes in database : 4 
       Number of interfaces enabled : 2 
       Number of routes sendable in a periodic update : 8
       Number of routes sent in last periodic update : 6
[RTA]display ripng 1
Public vpn-instance     
    RIPng process : 1
       Preference    : 100
       Checkzero     : Enabled
       Default-cost  : 0
       Maximum number of balanced paths : 8
       Update time   : 30 sec     Age time   : 180 sec 
       Garbage-collect time : 120 sec 
       Number of periodic updates sent : 16
       Number of trigger updates sent  : 3
       Number of routes in database    : 4
       Number of interfaces enabled    : 2
       Total number of routes : 2
       Total number of routes in ADV DB is : 4
#查看Ripng的接口信息
[RTA]display ripng 1 interface g0/0/0
 GigabitEthernet0/0/0
    FE80::2E0:FCFF:FE6E:2CC3
    State : UP, Protocol : RIPNG, MTU : 1440
#查看Ripng的邻居信息
[RTA]display ripng 1 neighbor
 Neighbor : FE80::2E0:FCFF:FE36:7EC GigabitEthernet0/0/0 
    Protocol : RIPNG
#查看RIngP发布数据库的所有激活路由。这些路由以RIPng更新报文的形式发送
[RTA]display ripng 1 database
   2001:1::/64, 
        GigabitEthernet0/0/2, cost 0, RIPng-interface
   2002:1::/64, 
        via FE80::2E0:FCFF:FE36:7EC, GigabitEthernet0/0/0, cost 2
   2400:6400:E:1::/64, 
        GigabitEthernet0/0/0, cost 0, RIPng-interface
   2400:6400:E:2::/64, 
        via FE80::2E0:FCFF:FE36:7EC, GigabitEthernet0/0/0, cost 1

#查看所有从其他路由学来的RIPng路由信息,以及与每条路由相关的不同定时器的值
[RTA]display ripng 1 route
   Route Flags: R - RIPng
                A - Aging, G - Garbage-collect
 ----------------------------------------------------------------
 Peer FE80::2E0:FCFF:FE36:7EC on GigabitEthernet0/0/0
 Dest 2400:6400:E:2::/64, 
     via FE80::2E0:FCFF:FE36:7EC, cost  1, tag 0, RA, 23 Sec 
 Dest 2002:1::/64, 
     via FE80::2E0:FCFF:FE36:7EC, cost  2, tag 0, RA, 23 Sec 
[RTA]display ripng 1 statistics interface all
GigabitEthernet0/0/0(FE80::2E0:FCFF:FE6E:2CC3)
Statistical information          Last min        Last 5 min       Total
-----------------------------------------------------------------------
Periodic updates sent            1                1                12
Triggered updates sent           0                0                0
Response packets sent            1                1                13
Response packets received        0                0                8
Response packets ignored         0                0                0
Request packets sent             0                0                1
Request packets received         0                0                1
Request packets ignored          0                0                0
Bad packets received             0                0                0
Routes received                  0                0                18
Routes sent                      2                2                22
Bad routes received              0                0                0
Packet send failed               0                0                0

Neighbor FE80::2E0:FCFF:FE36:7EC statistics:
Statistical information          Last min        Last 5 min       Total
-----------------------------------------------------------------------
Request packets received         0                0                0
Request packets ignored          0                0                0
Response packets received        0                0                7
Response packets ignored         0                0                0
Bad packets received             0                0                0
Bad routes received              0                0                0

GigabitEthernet0/0/2(FE80::2E0:FCFF:FE6E:2CC5)
Statistical information          Last min        Last 5 min       Total
-----------------------------------------------------------------------
Periodic updates sent            1                1                10
Triggered updates sent           0                0                3
Response packets sent            1                1                13

[RTA]display ripng 1 statistics interface g0/0/0
GigabitEthernet0/0/0(FE80::2E0:FCFF:FE6E:2CC3)
Statistical information          Last min        Last 5 min       Total
-----------------------------------------------------------------------
Periodic updates sent            2                2                13
Triggered updates sent           0                0                0
Response packets sent            2                2                14
Response packets received        1                1                9
Response packets ignored         0                0                0
Request packets sent             0                0                1
Request packets received         0                0                1
Request packets ignored          0                0                0
Bad packets received             0                0                0
Routes received                  3                3                21
Routes sent                      4                4                24
Bad routes received              0                0                0
Packet send failed               0                0                0
[RTA]display ipv6 routing-table
Routing Table : Public
	Destinations : 8	Routes : 8

 Destination  : ::1                             PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : InLoopBack0                     Flags        : D

 Destination  : 2001:1::                        PrefixLength : 64
 NextHop      : 2001:1::A                       Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/2            Flags        : D

 Destination  : 2001:1::A                       PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/2            Flags        : D

 Destination  : 2002:1::                        PrefixLength : 64
 NextHop      : FE80::2E0:FCFF:FE36:7EC         Preference   : 100
 Cost         : 2                               Protocol     : RIPng
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/0            Flags        : D


#查看路由器IPV6路由表详细信息
[RTA]display ipv6 routing-table verbose
Routing Table : Public
	Destinations : 8	Routes : 8

 Destination  : ::1                             PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Neighbour    : ::                              ProcessID    : 0
 Label        : NULL                            Protocol     : Direct
 State        : Active NoAdv                    Cost         : 0
 Entry ID     : 3017740452                      EntryFlags   : 0x80010050
 Reference Cnt: 2                               Tag          : 0
 Priority     : high                            Age          : 939sec
 IndirectID   : 0x0                             
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : InLoopBack0                     Flags        : D

 Destination  : 2001:1::                        PrefixLength : 64
 NextHop      : 2001:1::A                       Preference   : 0
 Neighbour    : ::                              ProcessID    : 0
 Label        : NULL                            Protocol     : Direct
 State        : Active Adv                      Cost         : 0
 Entry ID     : 3017741124                      EntryFlags   : 0x80010000
 Reference Cnt: 2                               Tag          : 0
 Priority     : high                            Age          : 900sec
 IndirectID   : 0x0                             
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/2            Flags        : D


[RTA]display ipv6 routing-table statistics
Summary Prefixes : 8
Protocol   route       active      added       deleted     freed
DIRECT     6           6           6           0           0          
STATIC     0           0           0           0           0          
RIPng      2           2           2           0           0          
OSPFv3     0           0           0           0           0          
IS-IS      0           0           0           0           0          
BGP        0           0           0           0           0          
UNR        0           0           0           0           0          
Total      8           8           8           0           0          
[RTA]display ipv6 routing-table protocol ripng
Public Routing Table : RIPng
Summary Count : 2

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

 Destination  : 2002:1::                        PrefixLength : 64
 NextHop      : FE80::2E0:FCFF:FE36:7EC         Preference   : 100
 Cost         : 2                               Protocol     : RIPng
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/0            Flags        : D

 Destination  : 2400:6400:E:2::                 PrefixLength : 64
 NextHop      : FE80::2E0:FCFF:FE36:7EC         Preference   : 100
 Cost         : 1                               Protocol     : RIPng
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/0            Flags        : D

RIPng Routing Table's Status : < Inactive >
Summary Count : 0

两个PC终端互ping

PC-10-1 

PC>ping 2002:1::B

Ping 2002:1::b: 32 data bytes, Press Ctrl_C to break
From 2002:1::b: bytes=32 seq=1 hop limit=252 time=31 ms
From 2002:1::b: bytes=32 seq=2 hop limit=252 time=32 ms
From 2002:1::b: bytes=32 seq=3 hop limit=252 time=16 ms
From 2002:1::b: bytes=32 seq=4 hop limit=252 time=31 ms
From 2002:1::b: bytes=32 seq=5 hop limit=252 time=31 ms

--- 2002:1::b ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 16/28/32 ms

PC>tracert 2002:1::B

traceroute to 2002:1::b, 8 hops max, press Ctrl_C to stop
 1  2001:1::a   16 ms  15 ms  16 ms
 2  2400:6400:e:1::2   31 ms  16 ms  31 ms
 3  2400:6400:e:2::1   31 ms  16 ms  31 ms
 4  2002:1::b   16 ms  47 ms  31 ms

PC-20-1

PC>ping 2001:1::B

Ping 2001:1::b: 32 data bytes, Press Ctrl_C to break
From 2001:1::b: bytes=32 seq=1 hop limit=252 time=31 ms
From 2001:1::b: bytes=32 seq=2 hop limit=252 time=32 ms
From 2001:1::b: bytes=32 seq=3 hop limit=252 time=31 ms
From 2001:1::b: bytes=32 seq=4 hop limit=252 time=31 ms
From 2001:1::b: bytes=32 seq=5 hop limit=252 time=31 ms

--- 2001:1::b ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 31/31/32 ms

PC>tracert 2001:1::B

traceroute to 2001:1::b, 8 hops max, press Ctrl_C to stop
 1  2002:1::a   16 ms  <1 ms  15 ms
 2  2400:6400:e:2::2   16 ms  31 ms  16 ms
 3  2400:6400:e:1::1   31 ms  31 ms  32 ms
 4  2001:1::b   31 ms  16 ms  31 ms

 对RTB 的 g0/0/0端口进行抓包

 RIPng的具体信息如下

Respnse报文:

这里只出现了Response包,作为更新报文周期性地发出

但是Response报文还可能在以下两种情况下出现:

1.对某个Request报文进行响应

2.在路由发生变化时触发更新
收到Response报文的路由器会更新自己的RIPng路由表。为了保证路由的准确性,RIPng路由器会对收到的Response报文进行有效性检查,比如源IPv6地址是否是链路本地地址,端口号是否正确等,没有通过检查的报文会被忽略。

Request报文:

当RIPng路由器启动后或者需要更新部分路由表项时,便会发出Request报文,向邻居请求需要的路由信息。通常情况下以组播方式发送Request报文。

收到Request报文的RIPng路由器会对其中的RTE进行处理。如果Request报文中只有一项RTE,且IPv6前缀和前缀长度都为0,度量值为16,则表示请求邻居发送全部路由信息,被请求路由器收到后会把当前路由表中的全部路由信息,以Response报文形式发回给请求路由器。如果Request报文中有多项RTE,被请求路由器将对RTE逐项处理,更新每条路由的度量值,最后以Response报文形式返回给请求路由器。
 

实验三:手工配置IPV4隧道

案例如下:

各部分配置如下:

 配置路由器RTA

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname RTA
[RTA]ipv6 
[RTA]int g0/0/2
[RTA-GigabitEthernet0/0/2]ipv6 enable
[RTA-GigabitEthernet0/0/2]ipv6 address 2001:1::A 64
[RTA-GigabitEthernet0/0/2]ipv6 address auto link-local
[RTA-GigabitEthernet0/0/2]qu
[RTA]int g0/0/0
[RTA-GigabitEthernet0/0/0]ipv6 enable
[RTA-GigabitEthernet0/0/0]ipv6 address 2400:6400:000E:0001::1 64
[RTA-GigabitEthernet0/0/0]display this ipv6 interface
GigabitEthernet0/0/0 current state : UP 
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE55:44C1
  Global unicast address(es):
    2400:6400:E:1::1, subnet is 2400:6400:E:1::/64
  Joined group address(es):
    FF02::1:FF00:1
    FF02::2
    FF02::1
    FF02::1:FF55:44C1
  MTU is 1500 bytes
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds
  ND retransmit interval is 1000 milliseconds
  Hosts use stateless autoconfig for addresses
[RTA-GigabitEthernet0/0/0]qu

 配置路由器RTB

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname RTB
[RTB-GigabitEthernet0/0/2]ipv6
[RTB]int g0/0/2
[RTB-GigabitEthernet0/0/2]ipv6 enable
[RTB-GigabitEthernet0/0/2]ipv6 address 2002:1::A 64
[RTB-GigabitEthernet0/0/2]ipv6 address auto link-local
[RTB-GigabitEthernet0/0/2]qu
[RTB]int g0/0/0
[RTB-GigabitEthernet0/0/0]ipv6 enable
[RTB-GigabitEthernet0/0/0]ipv6 address 2400:6400:000E:0002::1 64
[RTB-GigabitEthernet0/0/0]qu
Sep 25 2023 16:48:27-08:00 RTB IPV6/2/IF_IPV6CHANGE:OID 16777216.50331648.100663
296.16777216.33554432.16777216.922746880.33554432.0.16777216 The status of the I
Pv6 Interface changed. (IfIndex=50331648, IfDescr=HUAWEI, AR Series, GigabitEthe
rnet0/0/0 Interface, IfOperStatus=16777216, IfAdminStatus=16777216) 

 配置路由器RTC

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname RTC
[RTC]ipv6
[RTC]interface g0/0/0
[RTC-GigabitEthernet0/0/0]ipv6 enable
[RTC-GigabitEthernet0/0/0]ipv6 address 2400:6400:000E:0001::2 64
[RTC-GigabitEthernet0/0/0]qu
[RTC]int g0/0/1
[RTC-GigabitEthernet0/0/1]ipv6 enable
[RTC-GigabitEthernet0/0/1]ipv6 address 2400:6400:000E:0002::2 64
[RTC-GigabitEthernet0/0/1]qu
[RTC]
Sep 25 2023 16:51:37-08:00 RTC IPV6/2/IF_IPV6CHANGE:OID 16777216.50331648.100663
296.16777216.33554432.16777216.922746880.33554432.0.16777216 The status of the I
Pv6 Interface changed. (IfIndex=67108864, IfDescr=HUAWEI, AR Series, GigabitEthe
rnet0/0/1 Interface, IfOperStatus=16777216, IfAdminStatus=16777216) 
[RTC]
Sep 25 2023 16:51:37-08:00 RTC %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
v6 on the interface GigabitEthernet0/0/1 has entered the UP state. 
[RTC]int g0/0/2
[RTC-GigabitEthernet0/0/2]ip address 10.2.10.1 24
Sep 25 2023 16:51:52-08:00 RTC %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP
 on the interface GigabitEthernet0/0/2 has entered the UP state. 
[RTC-GigabitEthernet0/0/2]qu

 配置路由器RTW 

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname RTW
[RTW]ipv6
[RTW]int g0/0/2
[RTW-GigabitEthernet0/0/2]ipv6 enable
[RTW-GigabitEthernet0/0/2]ipv6 address 2005:1::A 64
[RTW-GigabitEthernet0/0/2]ipv6 address auto link-local
[RTW-GigabitEthernet0/0/2]qu
[RTW]int g0/0/1
[RTW-GigabitEthernet0/0/1]ip address 10.5.10.1 24
Sep 25 2023 17:00:01-08:00 RTW %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
 on the interface GigabitEthernet0/0/1 has entered the UP state. 
[RTW-GigabitEthernet0/0/1]qu

 配置路由器RTH 

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname RTH
[RTH]int g0/0/2
[RTH-GigabitEthernet0/0/2]ip address 10.2.10.2 24
Sep 25 2023 17:01:47-08:00 RTH %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
 on the interface GigabitEthernet0/0/2 has entered the UP state. 
[RTH-GigabitEthernet0/0/2]qu
[RTH]int g0/0/1
[RTH-GigabitEthernet0/0/1]ip address 10.5.10.2 24
Sep 25 2023 17:02:04-08:00 RTH %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
 on the interface GigabitEthernet0/0/1 has entered the UP state. 
[RTH-GigabitEthernet0/0/1]qu

 配置路由器RIPng和IPv6,IPv4静态路由

RTA 

<RTA>sys
Enter system view, return user view with Ctrl+Z.
[RTA]ripng 1
[RTA-ripng-1]qu
[RTA]int g0/0/0
[RTA-GigabitEthernet0/0/0]ripng 1 enable
[RTA-GigabitEthernet0/0/0]qu
[RTA]int g0/0/2
[RTA-GigabitEthernet0/0/2]ripng 1 enable
[RTA-GigabitEthernet0/0/2]qu
#配置到PC-50-1所在IPV6网络的IPV6静态路由
[RTA]ipv6 route-static 2005:1::0 64 2400:6400:000E:0001::2
[RTA]display ipv6 routing-table
Routing Table : Public
	Destinations : 7	Routes : 7

 Destination  : ::1                             PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : InLoopBack0                     Flags        : D

 Destination  : 2001:1::                        PrefixLength : 64
 NextHop      : 2001:1::A                       Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/2            Flags        : D

 Destination  : 2001:1::A                       PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/2            Flags        : D

 Destination  : 2005:1::                        PrefixLength : 64
 NextHop      : 2400:6400:E:1::2                Preference   : 60
 Cost         : 0                               Protocol     : Static
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/0            Flags        : RD

  ---- More ----

RTB 

<RTB>sys
Enter system view, return user view with Ctrl+Z.
[RTB]ripng 1
[RTB-ripng-1]qu
[RTB]int g0/0/0
[RTB-GigabitEthernet0/0/0]ripng 1 enable
[RTB-GigabitEthernet0/0/0]qu
[RTB]int g0/0/2
[RTB-GigabitEthernet0/0/2]ripng 1 enable
[RTB-GigabitEthernet0/0/2]qu
[RTB]ipv6 route-static 2005:1::0 64 2400:6400:000E:0002::2
[RTB]display ipv6 routing-table
Routing Table : Public
	Destinations : 7	Routes : 7

 Destination  : ::1                             PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : InLoopBack0                     Flags        : D

 Destination  : 2002:1::                        PrefixLength : 64
 NextHop      : 2002:1::A                       Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/2            Flags        : D

 Destination  : 2002:1::A                       PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/2            Flags        : D

 Destination  : 2005:1::                        PrefixLength : 64
 NextHop      : 2400:6400:E:2::2                Preference   : 60
 Cost         : 0                               Protocol     : Static
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/0            Flags        : RD

  ---- More ----

RTC 

<RTC>sys
Enter system view, return user view with Ctrl+Z.
[RTC]ripng 1
[RTC-ripng-1]qu
[RTC]int g0/0/0
[RTC-GigabitEthernet0/0/0]ripng 1 enable
[RTC-GigabitEthernet0/0/0]qu
[RTC]int g0/0/1
[RTC-GigabitEthernet0/0/1]ripng 1 enable
[RTC-GigabitEthernet0/0/1]qu
[RTC]ipv6 route-static 2005:1::0 64 2400:6400:000E:0010::50
[RTC]ip route-static 10.5.10.0 255.255.255.0 10.2.10.2

[RTC]display ipv6 routing-table
Routing Table : Public
	Destinations : 8	Routes : 8

 Destination  : ::1                             PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : InLoopBack0                     Flags        : D

 Destination  : 2001:1::                        PrefixLength : 64
 NextHop      : FE80::2E0:FCFF:FE55:44C1        Preference   : 100
 Cost         : 1                               Protocol     : RIPng
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/0            Flags        : D

 Destination  : 2002:1::                        PrefixLength : 64
 NextHop      : FE80::2E0:FCFF:FEA2:7ED3        Preference   : 100
 Cost         : 1                               Protocol     : RIPng
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/1            Flags        : D

 Destination  : 2400:6400:E:1::                 PrefixLength : 64
 NextHop      : 2400:6400:E:1::2                Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/0            Flags        : D


[RTC]display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 8        Routes : 8        

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

      10.2.10.0/24  Direct  0    0           D   10.2.10.1       GigabitEthernet
0/0/2
      10.2.10.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/2
    10.2.10.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/2
      10.5.10.0/24  Static  60   0          RD   10.2.10.2       GigabitEthernet
0/0/2
      127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
127.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0

[RTC]

RTW 

<RTW>sys
Enter system view, return user view with Ctrl+Z.
[RTW]ripng 1
[RTW-ripng-1]qu
[RTW]int g0/0/2
[RTW-GigabitEthernet0/0/2]ripng 1 enable
[RTW-GigabitEthernet0/0/2]qu
#配置PC-10-1,PC-20-1所在IPV6网络的IPV6静态路由
[RTW]ipv6 route-static 2001:1::0 64 2400:6400:000E:0010::10
[RTW]ipv6 route-static 2002:1::0 64 2400:6400:000E:0010::10
#配置IPV4静态路由
[RTW]ip route-static 10.2.10.0 255.255.255.0 10.5.10.2
[RTW]display ipv6 routing-table
Routing Table : Public
	Destinations : 4	Routes : 4

 Destination  : ::1                             PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : InLoopBack0                     Flags        : D

 Destination  : 2005:1::                        PrefixLength : 64
 NextHop      : 2005:1::A                       Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/2            Flags        : D

 Destination  : 2005:1::A                       PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/2            Flags        : D

 Destination  : FE80::                          PrefixLength : 10
 NextHop      : ::                              Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : NULL0                           Flags        : D

[RTW]display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 8        Routes : 8        

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

      10.2.10.0/24  Static  60   0          RD   10.5.10.2       GigabitEthernet
0/0/1
      10.5.10.0/24  Direct  0    0           D   10.5.10.1       GigabitEthernet
0/0/1
      10.5.10.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
    10.5.10.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
      127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
127.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0

手工配置IPV4隧道 

路由器RTC 

<RTC>sys
Enter system view, return user view with Ctrl+Z.
#配置隧道接口,隧道接口编号格式为槽位号/子卡号/端口号
#隧道接口编号只具有本地意义,隧道两端配置的端口号可以不同
#配置协议类型为IPV6-IPV4(IPV4 over IPV4)
[RTC]interface tunnel 0/0/1
[RTC-Tunnel0/0/1]tunnel-protocol ipv6-ipv4
#配置隧道接口的IPV6地址,源接口,目的地址
[RTC-Tunnel0/0/1]ipv6 enable
[RTC-Tunnel0/0/1]ipv6 address 2400:6400:000E:0010::10 64
#查看当前接口IPV6信息
[RTC-Tunnel0/0/1]display this ipv6 interface
Tunnel0/0/1 current state : UP 
IPv6 protocol current state : DOWN
IPv6 is enabled, link-local address is FE80::FFFF:FFFF [TENTATIVE]
  Global unicast address(es):
    2400:6400:E:10::10, subnet is 2400:6400:E:10::/64 [TENTATIVE]
  Joined group address(es):
    FF02::1:FF00:10
    FF02::2
    FF02::1
    FF02::1:FFFF:FFFF
  MTU is 1500 bytes
  ND reachable time is 30000 milliseconds
  ND retransmit interval is 1000 milliseconds
  Hosts use stateless autoconfig for addresses
#配置隧道源地址(作为对端Tunnel接口的目的地址)
[RTC-Tunnel0/0/1]source 10.2.10.1
#隧道的源地址也可以为端口
[RTC-Tunnel0/0/1]source g0/0/2
#配置隧道的目的地址(为对端Tunnel接口的源地址)
[RTC-Tunnel0/0/1]destination 10.5.10.1
Sep 25 2023 18:58:02-08:00 RTC IPV6/2/IF_IPV6CHANGE:OID 16777216.50331648.100663
296.16777216.33554432.16777216.922746880.33554432.0.16777216 The status of the I
Pv6 Interface changed. (IfIndex=134217728, IfDescr=HUAWEI, AR Series, Tunnel0/0/
1 Interface, IfOperStatus=16777216, IfAdminStatus=16777216) 
[RTC-Tunnel0/0/1]
Sep 25 2023 18:58:02-08:00 RTC %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
v6 on the interface Tunnel0/0/1 has entered the UP state. 

#查看当前接口的IPV4信息
[RTC-Tunnel0/0/1]display this interface
Tunnel0/0/1 current state : UP
Line protocol current state : DOWN
Description:HUAWEI, AR Series, Tunnel0/0/1 Interface
Route Port,The Maximum Transmit Unit is 1500
Internet protocol processing : disabled
Encapsulation is TUNNEL, loopback not set
Tunnel source 10.2.10.1 (GigabitEthernet0/0/2), destination 10.5.10.1
Tunnel protocol/transport IPv6 over IPv4
Current system time: 2023-09-25 18:58:08-08:00
    300 seconds input rate 0 bits/sec, 0 packets/sec
    300 seconds output rate 0 bits/sec, 0 packets/sec
    0 seconds input rate 0 bits/sec, 0 packets/sec
    0 seconds output rate 0 bits/sec, 0 packets/sec
    0 packets input,  0 bytes
    0 input error
    0 packets output,  0 bytes
    0 output error
    Input bandwidth utilization  : --
    Output bandwidth utilization : --

[RTC-Tunnel0/0/1]qu

路由器RTW 

<RTW>sys
Enter system view, return user view with Ctrl+Z.
[RTW]int tunnel 0/0/1
[RTW-Tunnel0/0/1]tunnel-protocol ipv6-ipv4
[RTW-Tunnel0/0/1]ipv6 enable
[RTW-Tunnel0/0/1]ipv6 address 2400:6400:000E:0010::50 64
[RTW-Tunnel0/0/1]display this ipv6 interface
Tunnel0/0/1 current state : UP 
IPv6 protocol current state : DOWN
IPv6 is enabled, link-local address is FE80::FFFF:FFFF [TENTATIVE]
  Global unicast address(es):
    2400:6400:E:10::50, subnet is 2400:6400:E:10::/64 [TENTATIVE]
  Joined group address(es):
    FF02::1:FF00:50
    FF02::2
    FF02::1
    FF02::1:FFFF:FFFF
  MTU is 1500 bytes
  ND reachable time is 30000 milliseconds
  ND retransmit interval is 1000 milliseconds
  Hosts use stateless autoconfig for addresses
[RTW-Tunnel0/0/1]source 10.5.10.1
[RTW-Tunnel0/0/1]source g0/0/1
[RTW-Tunnel0/0/1]destination 10.2.10.1
Sep 25 2023 19:06:38-08:00 RTW IPV6/2/IF_IPV6CHANGE:OID 16777216.50331648.100663
296.16777216.33554432.16777216.922746880.33554432.0.16777216 The status of the I
Pv6 Interface changed. (IfIndex=134217728, IfDescr=HUAWEI, AR Series, Tunnel0/0/
1 Interface, IfOperStatus=16777216, IfAdminStatus=16777216) 
[RTW-Tunnel0/0/1]
[RTW-Tunnel0/0/1]
Sep 25 2023 19:06:38-08:00 RTW %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
v6 on the interface Tunnel0/0/1 has entered the UP state. 
[RTW-Tunnel0/0/1]display this interface 
Tunnel0/0/1 current state : UP
Line protocol current state : DOWN
Description:HUAWEI, AR Series, Tunnel0/0/1 Interface
Route Port,The Maximum Transmit Unit is 1500
Internet protocol processing : disabled
Encapsulation is TUNNEL, loopback not set
Tunnel source 10.5.10.1 (GigabitEthernet0/0/1), destination 10.2.10.1
Tunnel protocol/transport IPv6 over IPv4
Current system time: 2023-09-25 19:06:47-08:00
    300 seconds input rate 0 bits/sec, 0 packets/sec
    300 seconds output rate 0 bits/sec, 0 packets/sec
    0 seconds input rate 0 bits/sec, 0 packets/sec
    0 seconds output rate 0 bits/sec, 0 packets/sec
    0 packets input,  0 bytes
    0 input error
    0 packets output,  0 bytes
    0 output error
    Input bandwidth utilization  : --
    Output bandwidth utilization : --

[RTW-Tunnel0/0/1]qu

配置完隧道后,可以看到RTC与RTW可以相互通信

[RTC]ping 10.5.10.1
  PING 10.5.10.1: 56  data bytes, press CTRL_C to break
    Request time out
    Reply from 10.5.10.1: bytes=56 Sequence=2 ttl=254 time=70 ms
    Reply from 10.5.10.1: bytes=56 Sequence=3 ttl=254 time=40 ms
    Reply from 10.5.10.1: bytes=56 Sequence=4 ttl=254 time=30 ms
    Reply from 10.5.10.1: bytes=56 Sequence=5 ttl=254 time=30 ms

  --- 10.5.10.1 ping statistics ---
    5 packet(s) transmitted
    4 packet(s) received
    20.00% packet loss
    round-trip min/avg/max = 30/42/70 ms

在PC-10-1窗口测试能否与PC-20-1与PC-50-1通信

PC>ping 2002:1::B

Ping 2002:1::b: 32 data bytes, Press Ctrl_C to break
Request timeout!
From 2002:1::b: bytes=32 seq=2 hop limit=252 time=46 ms
From 2002:1::b: bytes=32 seq=3 hop limit=252 time=32 ms
From 2002:1::b: bytes=32 seq=4 hop limit=252 time=31 ms
From 2002:1::b: bytes=32 seq=5 hop limit=252 time=15 ms

--- 2002:1::b ping statistics ---
  5 packet(s) transmitted
  4 packet(s) received
  20.00% packet loss
  round-trip min/avg/max = 0/31/46 ms

PC>ping 2005:1::B

Ping 2005:1::b: 32 data bytes, Press Ctrl_C to break
From 2005:1::b: bytes=32 seq=1 hop limit=252 time=31 ms
From 2005:1::b: bytes=32 seq=2 hop limit=252 time=47 ms
From 2005:1::b: bytes=32 seq=3 hop limit=252 time=47 ms
From 2005:1::b: bytes=32 seq=4 hop limit=252 time=47 ms
From 2005:1::b: bytes=32 seq=5 hop limit=252 time=31 ms

--- 2005:1::b ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 31/40/47 ms

PC>tracert 2002:1::B

traceroute to 2002:1::b, 8 hops max, press Ctrl_C to stop
 1  2001:1::a   15 ms  <1 ms  16 ms
 2  2400:6400:e:1::2   16 ms  15 ms  16 ms
 3  2400:6400:e:2::1   15 ms  31 ms  16 ms
 4  2002:1::b   31 ms  16 ms  16 ms

PC>tracert 2005:1::b

traceroute to 2005:1::b, 8 hops max, press Ctrl_C to stop
 1  2001:1::a   16 ms  15 ms  <1 ms
 2  2400:6400:e:1::2   16 ms  31 ms  <1 ms
 3  2400:6400:e:10::50   32 ms  31 ms  31 ms
 4  2005:1::b   47 ms  31 ms  31 ms

 在PC-50-1测试能否与PC-10-1通信

PC>ping 2001:1::B

Ping 2001:1::b: 32 data bytes, Press Ctrl_C to break
Request timeout!
From 2001:1::b: bytes=32 seq=2 hop limit=252 time=47 ms
From 2001:1::b: bytes=32 seq=3 hop limit=252 time=31 ms
From 2001:1::b: bytes=32 seq=4 hop limit=252 time=31 ms
From 2001:1::b: bytes=32 seq=5 hop limit=252 time=47 ms

--- 2001:1::b ping statistics ---
  5 packet(s) transmitted
  4 packet(s) received
  20.00% packet loss
  round-trip min/avg/max = 0/39/47 ms

PC>tracert 2001:1::B

traceroute to 2001:1::b, 8 hops max, press Ctrl_C to stop
 1  2005:1::a   16 ms  <1 ms  15 ms
 2  2400:6400:e:10::10   32 ms  31 ms  31 ms
 3  2400:6400:e:1::1   31 ms  32 ms  46 ms
 4  2001:1::b   32 ms  31 ms  31 ms

用PC-10-1 ping PC-50-1,对RTH的g0/0/1端口抓包,可以看到IPV6与IPV4的信息



若有错误或遗漏,请佬们赐教,感谢佬们!!💖💖💖 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/1054053.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

【论文笔记】DiffusionTrack: Diffusion Model For Multi-Object Tracking

原文链接&#xff1a;https://arxiv.org/abs/2308.09905 1. 引言 多目标跟踪通常分为两阶段的检测后跟踪&#xff08;TBD&#xff09;和一阶段的联合检测跟踪&#xff08;JDT&#xff09;。TBD对单帧进行目标检测后&#xff0c;使用跟踪器跨帧关联相同物体。使用的跟踪器包括使…

【STM32基础 CubeMX】外部中断

文章目录 前言一、中断是什么二、使用CubeMX配置你的第一个中断三、代码分析CubeMX四、中断函数按键中断点灯示例代码总结 前言 当涉及到STM32基础的外部中断时&#xff0c;我们进入了一个引人入胜的领域&#xff0c;它允许微控制器与外部世界进行互动并实时响应各种事件。外部…

【论文阅读】通过3D和2D网络的交叉示教实现稀疏标注的3D医学图像分割(CVPR2023)

目录 前言方法标注3D-2D Cross Teaching伪标签选择Hard-Soft Confidence Threshold Consistent Prediction Fusion 结论 论文&#xff1a;3D Medical Image Segmentation with Sparse Annotation via Cross-Teaching between 3D and 2D Networks 代码&#xff1a;https://githu…

2023年中国艺术涂料市场发展历程及趋势分析:艺术涂料市场规模将进一步扩大[图]

艺术涂料是一种用于绘画和装饰&#xff0c;具有各种纹理或通过涂装手段后具有高装饰性的新型涂料。由于具有高度饱和的颜色、良好的遮盖力和可塑性&#xff0c;呈现立体装饰效果好、色彩搭配适当、风格独具特色的特点&#xff0c;而使得涂装出的饰面自然贴合、更加美观漂亮&…

Centos7环境下安装MySQL8详细教程

目录 一、Xftp7下载二、MySQL8安装包的下载三、将MySQL8安装包上传至服务器四、解压mysql8安装包五、rpm包的安装六、依次安装下列文件七、对MySQL进行初始化和授权八、查看数据库初始密码九、启动MySQL服务十、使用初始密码登录MySQL关于MySQL的卸载 一、Xftp7下载 关于Xftp7…

力扣 -- 718. 最长重复子数组

解题步骤&#xff1a; 参考代码&#xff1a; class Solution { public:int findLength(vector<int>& nums1, vector<int>& nums2) {int m nums1.size();int n nums2.size();//多开一行&#xff0c;多开一列vector<vector<int>> dp(m 1, ve…

华为云云耀云服务器L实例评测 | 搭建企业级 Registry 服务器 Harbor

文章目录 您需要了解Harbor介绍Harbor特性和优势系统设置关闭防火墙安装Docker安装Docker Compose配置镜像加速器 Habor安装传包并解压配置Harbor安装Horbor登录Harbor 测试创建项目推送镜像拉取镜像 您需要了解 本次搭建采用 华为云耀云服务器 &#xff0c;一键部署、快速搭建…

Visual Studio 代码显示空格等空白符

1.VS2010: 快捷键&#xff1a;CtrlR,W 2.VS2017、VS2019、VS2022&#xff1a; 工具 -> 选项 -> 文本编辑器 -> 显示 -> 勾选查看空白

RWA分析通过10个问题。不要让数字和视觉欺骗您!(文章很长,请仔细阅读)

已经有30个小伙伴加入我们的星球了&#xff0c;如果你不介意的话&#xff0c;可以加入 我的知识星球主要分享 1. 分享区块链各种有价值的内容 2. 一起攻读一些有用的书籍 3. 财富密码&#xff08;不敢保证&#xff09; 4. 一些自我的感悟 1.什么是现实世界资产&#xff08;RWA&…

【Flutter】Flutter Web 开发 如何从 URL 中获取参数值

【Flutter】Flutter Web 开发 如何从 URL 中获取参数值 文章目录 一、前言二、Flutter Web 中的 URL 处理三、如何从 URL 中获取参数四、实际业务中的用法五、完整示例六、总结 一、前言 大家好&#xff01;我是小雨青年&#xff0c;今天我想和大家分享一下在 Flutter Web 开发…

【C++历险记】国庆专辑---探索多态迷宫的代码之旅!

本篇目录 一、什么是多态&#xff1f;二、多态的定义及其实现2.1多态构成的条件2.2虚函数2.3虚函数的重写2.3.1析构函数的重写 2.4C11 override 和 final2.5重载、覆盖(重写)、隐藏(重定义)的对比2.6为什么不能是子类的指针或者引用呢&#xff1f;2.7为什么不能是父类对象呢&am…

【大家的项目】NFS FUSE: 为什么我们用Rust实现了自己的NFS服务器

乐观地看FUSE 我喜欢文件。每个计算机系统都理解文件。每个程序都知道如何读取和写入文件。这是一个真正通用的API。因此&#xff0c;我喜欢FUSE的想法。FUSE的名字来源于Filesystem in Userspace&#xff0c;也就是“用户态文件系统”&#xff0c;是一套允许用户模式程序定义文…

gwas数据根据eaf Z 和N 求beta和se

https://www.nature.com/articles/s41590-023-01588-w#Sec10

基于Java的汽车票网上预订系统设计与实现(源码+lw+部署文档+讲解等)

文章目录 前言具体实现截图论文参考详细视频演示为什么选择我自己的网站自己的小程序&#xff08;小蔡coding&#xff09;有保障的售后福利 代码参考源码获取 前言 &#x1f497;博主介绍&#xff1a;✌全网粉丝10W,CSDN特邀作者、博客专家、CSDN新星计划导师、全栈领域优质创作…

【计算机网络】应用层协议原理

文章目录 网络应用程序体系结构客户-服务器体系结构P2P体系结构 进程通信客户和服务器进程进程与计算机网络之间的接口进程寻址 可供应用程序使用的运输服务可靠数据传输吞吐量定时安全性 因特网提供的运输服务TCP服务面向连接的服务可靠数据传输服务TCP安全 UDP服务因特网运输…

Redis实现API访问频率限制

&#x1f337;&#x1f341; 博主猫头虎&#xff08;&#x1f405;&#x1f43e;&#xff09;带您 Go to New World✨&#x1f341; &#x1f984; 博客首页——&#x1f405;&#x1f43e;猫头虎的博客&#x1f390; &#x1f433; 《面试题大全专栏》 &#x1f995; 文章图文…

phpstudy_pro高效率建一个属于自己的网站

1.下载phpStudy_32 2.下载wordpress-6.3-zh_CN 安装好phpstudy后启动phpstudy中对应的服务&#xff0c;并在网站中配置好对一个的应用的路径 ps:根目录中的路径是你想要通过phpstudy部署应用的路径 这里以wordpress为例 将下载wordpress的压缩包解压后&#xff0c;需要修改…

Python海洋专题六之Cartopy画地形水深图

Python海洋专题六之Cartopy画地形水深图 海洋与大气科学 上期读取nc水深文件&#xff0c;并出图 但是存在一些不完美&#xff0c;本期修饰 本期内容 1&#xff1a;使用Cartopy画出范围图 导入函数包 import matplotlib.pyplot as plt import cartopy.crs as ccrs import c…

上机实验一 顺序表的基本操作和简单程序 西安石油大学数据结构

上机一 实验名称&#xff1a;顺序表的基本操作和简单程序 题目&#xff1a;设计一个有序顺序表&#xff0c;实现以下操作&#xff1a; 1.将元素x插入表中并保持有序&#xff1b; 2.查找值为x的元素&#xff0c;若找到则将其删除&#xff1b; 3.输出表中所有元素。 要求&a…

当面试被问到jvm(Java虚拟机)时,如何将面试官引入自己的节奏?

本文目录 前言快问快答抛砖引玉锦上添花好书推荐总结 前言 作为一名Java开发工程师&#xff0c;不管是校招还是社招jvm一定是必问必会的知识点。虽然说真正开发中用到的不多&#xff0c;甚至可以说用不到&#xff08;对于刚入行或者Java初级&#xff09;&#xff0c;但是当面试…