国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

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

這篇具有很好參考價值的文章主要介紹了IPV6(IPV6,RIPng的配置以及手工配置IPV4隧道)。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

目錄

實驗一:IPv6的基本配置

實驗二:RIPng基本配置

RIPng

RIPng的工作機(jī)制

實驗三:手工配置IPV4隧道


實驗一:IPv6的基本配置

案例如下:?

IPV6(IPV6,RIPng的配置以及手工配置IPV4隧道),網(wǎng)絡(luò)拓?fù)?網(wǎng)絡(luò),智能路由器

各部分配置如下?

IPV6(IPV6,RIPng的配置以及手工配置IPV4隧道),網(wǎng)絡(luò)拓?fù)?網(wǎng)絡(luò),智能路由器

配置路由器RTA?

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname RTA
[RTA]ipv6
#配置連接計算機(jī)端口的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 地址,但是每個接口只能有一個鏈路本地地址。
#鏈路本地地址用于鄰居發(fā)現(xiàn)協(xié)議和無狀態(tài)自動配置過程中鏈路本地上節(jié)點之間的通信
#配置自動生成鏈路本地地址。
[RTA-GigabitEthernet0/0/2]ipv6 address auto link-local
#查看當(dāng)前接口的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
#查看配置結(jié)果
[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進(jìn)行通信?

[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,需要配置路由器靜態(tài)路由和默認(rèn)路由

?RTA

<RTA>sys
Enter system view, return user view with Ctrl+Z.
#配置到PC-20-1所在網(wǎng)段的IPV6靜態(tài)路由
[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間可以進(jìn)行互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協(xié)議(RIP next generation),它是對原來的IPv4網(wǎng)絡(luò)中RIP-2協(xié)議的擴(kuò)展。大多數(shù)RIP的概念都可以用于RIPng。

為了在IPv6網(wǎng)絡(luò)中應(yīng)用,RIPng對原有的RIP協(xié)議進(jìn)行了如下修改:

?UDP端口號:使用UDP的521端口發(fā)送和接收路由信息。
?組播地址:使用FF02::9作為鏈路本地范圍內(nèi)的RIPng路由器組播地址。
?前綴長度:目的地址使用128比特的前綴長度。
?下一跳地址:使用128比特的IPv6地址。
?源地址:使用鏈路本地地址FE80::/10作為源地址發(fā)送RIPng路由信息更新報文。

RIPng的工作機(jī)制

RIPng協(xié)議是基于距離矢量(Distance-Vector)算法的協(xié)議。它通過UDP報文交換路由信息,使用的端口號為521。

RIPng使用跳數(shù)來衡量到達(dá)目的地址的距離(也稱為度量值或開銷)。在RIPng中,從一個路由器到其直連網(wǎng)絡(luò)的跳數(shù)為0,通過與其相連的路由器到達(dá)另一個網(wǎng)絡(luò)的跳數(shù)為1,其余以此類推。當(dāng)跳數(shù)大于或等于16時,目的網(wǎng)絡(luò)或主機(jī)就被定義為不可達(dá)。

RIPng每30秒發(fā)送一次路由更新報文。如果在180秒內(nèi)沒有收到網(wǎng)絡(luò)鄰居的路由更新報文,RIPng將從鄰居學(xué)到的所有路由標(biāo)識為不可達(dá)。如果再過120秒內(nèi)仍沒有收到鄰居的路由更新報文,RIPng將從路由表中刪除這些路由。

為了提高性能并避免形成路由環(huán)路,RIPng既支持水平分割也支持毒性逆轉(zhuǎn)。此外,RIPng還可以從其它的路由協(xié)議引入路由。

每個運(yùn)行RIPng的路由器都管理一個路由數(shù)據(jù)庫,該路由數(shù)據(jù)庫包含了到所有可達(dá)目的地的路由項,這些路由項包含下列信息:

?目的地址:主機(jī)或網(wǎng)絡(luò)的IPv6地址。
?下一跳地址:為到達(dá)目的地,需要經(jīng)過的相鄰路由器的接口IPv6地址。
?出接口:轉(zhuǎn)發(fā)IPv6報文通過的出接口。
?度量值:本路由器到達(dá)目的地的開銷。
?路由時間:從路由項最后一次被更新到現(xiàn)在所經(jīng)過的時間,路由項每次被更新時,路由時間重置為0。
?路由標(biāo)記(Route Tag):用于標(biāo)識外部路由,以便在路由策略中根據(jù)Tag對路由進(jìn)行靈活的控制。關(guān)于路由策略的詳細(xì)信息,請參見“IP路由分冊”中的“路由策略配置”。


以上內(nèi)容記錄自:?http://t.csdn.cn/UZXi2?如果想知道更多詳細(xì)的信息,可以看這篇文章


案例如下:

IPV6(IPV6,RIPng的配置以及手工配置IPV4隧道),網(wǎng)絡(luò)拓?fù)?網(wǎng)絡(luò),智能路由器

各部分配置如下

IPV6(IPV6,RIPng的配置以及手工配置IPV4隧道),網(wǎng)絡(luò)拓?fù)?網(wǎng)絡(luò),智能路由器

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.
#創(chuàng)建RIPng進(jìn)程,進(jìn)程號取值范圍是1~65535,默認(rèn)值是1
[RTA]ripng 1
[RTA-ripng-1]qu
[RTA]int g0/0/0
#為端口配置RIPng
#ripng enable命令用來使能一個端口的RIPng路由
#默認(rèn)情況下,接口上未使能RIPng路由協(xié)議
[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

?檢查配置結(jié)果

#查看RIPng進(jìn)程當(dāng)前運(yùn)行狀態(tài)及配置信息
[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發(fā)布數(shù)據(jù)庫的所有激活路由。這些路由以RIPng更新報文的形式發(fā)送
[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

#查看所有從其他路由學(xué)來的RIPng路由信息,以及與每條路由相關(guān)的不同定時器的值
[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路由表詳細(xì)信息
[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端口進(jìn)行抓包

IPV6(IPV6,RIPng的配置以及手工配置IPV4隧道),網(wǎng)絡(luò)拓?fù)?網(wǎng)絡(luò),智能路由器

?RIPng的具體信息如下

IPV6(IPV6,RIPng的配置以及手工配置IPV4隧道),網(wǎng)絡(luò)拓?fù)?網(wǎng)絡(luò),智能路由器

Respnse報文:

這里只出現(xiàn)了Response包,作為更新報文周期性地發(fā)出

但是Response報文還可能在以下兩種情況下出現(xiàn):

1.對某個Request報文進(jìn)行響應(yīng)

2.在路由發(fā)生變化時觸發(fā)更新
收到Response報文的路由器會更新自己的RIPng路由表。為了保證路由的準(zhǔn)確性,RIPng路由器會對收到的Response報文進(jìn)行有效性檢查,比如源IPv6地址是否是鏈路本地地址,端口號是否正確等,沒有通過檢查的報文會被忽略。

Request報文:

當(dāng)RIPng路由器啟動后或者需要更新部分路由表項時,便會發(fā)出Request報文,向鄰居請求需要的路由信息。通常情況下以組播方式發(fā)送Request報文。

收到Request報文的RIPng路由器會對其中的RTE進(jìn)行處理。如果Request報文中只有一項RTE,且IPv6前綴和前綴長度都為0,度量值為16,則表示請求鄰居發(fā)送全部路由信息,被請求路由器收到后會把當(dāng)前路由表中的全部路由信息,以Response報文形式發(fā)回給請求路由器。如果Request報文中有多項RTE,被請求路由器將對RTE逐項處理,更新每條路由的度量值,最后以Response報文形式返回給請求路由器。
?

實驗三:手工配置IPV4隧道

案例如下:

IPV6(IPV6,RIPng的配置以及手工配置IPV4隧道),網(wǎng)絡(luò)拓?fù)?網(wǎng)絡(luò),智能路由器

各部分配置如下:

IPV6(IPV6,RIPng的配置以及手工配置IPV4隧道),網(wǎng)絡(luò)拓?fù)?網(wǎng)絡(luò),智能路由器

IPV6(IPV6,RIPng的配置以及手工配置IPV4隧道),網(wǎng)絡(luò)拓?fù)?網(wǎng)絡(luò),智能路由器

?配置路由器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靜態(tài)路由

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網(wǎng)絡(luò)的IPV6靜態(tài)路由
[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網(wǎng)絡(luò)的IPV6靜態(tài)路由
[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靜態(tài)路由
[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.
#配置隧道接口,隧道接口編號格式為槽位號/子卡號/端口號
#隧道接口編號只具有本地意義,隧道兩端配置的端口號可以不同
#配置協(xié)議類型為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
#查看當(dāng)前接口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. 

#查看當(dāng)前接口的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的信息

IPV6(IPV6,RIPng的配置以及手工配置IPV4隧道),網(wǎng)絡(luò)拓?fù)?網(wǎng)絡(luò),智能路由器



若有錯誤或遺漏,請佬們賜教,感謝佬們?。???????文章來源地址http://www.zghlxwxcb.cn/news/detail-728452.html

到了這里,關(guān)于IPV6(IPV6,RIPng的配置以及手工配置IPV4隧道)的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進(jìn)行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包