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

目录

实验一: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的信息



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

相关推荐
ProcessOn官方账号8 分钟前
如何绘制网络拓扑图?附详细分类解说和用户案例!
网络·职场和发展·流程图·拓扑学
Ven%32 分钟前
如何在防火墙上指定ip访问服务器上任何端口呢
linux·服务器·网络·深度学习·tcp/ip
神的孩子都在歌唱1 小时前
TCP/IP 模型中,网络层对 IP 地址的分配与路由选择
网络·tcp/ip·智能路由器
阿雄不会写代码1 小时前
ubuntu安装nginx
linux·服务器·网络
starstarzz2 小时前
计算机网络实验四:Cisco交换机配置VLAN
网络·计算机网络·智能路由器·vlan·虚拟局域网
网安墨雨3 小时前
常用网络协议
网络·网络协议
Tlzns3 小时前
Linux网络——UDP的运用
linux·网络·udp
黑客老陈3 小时前
新手小白如何挖掘cnvd通用漏洞之存储xss漏洞(利用xss钓鱼)
运维·服务器·前端·网络·安全·web3·xss
HSunR5 小时前
计算机网络
网络·计算机网络
ZoeLandia5 小时前
WebSocket | 背景 概念 原理 使用 优缺点及适用场景
网络·websocket·网络协议