IPV6试验-华为

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/x503809622/article/details/79542704

华为试验:

IPV6配置:

AR3:
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname AR3
[AR3]ipv6 
[AR3]interface GigabitEthernet 0/0/0
[AR3-GigabitEthernet0/0/0]ipv6 enable
[AR3-GigabitEthernet0/0/0]ipv6 address FE80::3 link-local
[AR3-GigabitEthernet0/0/0]ipv6 address 2001:13:1:::3/64
[AR3-GigabitEthernet0/0/0]quit 
[AR3]display ipv6 interface GigabitEthernet 0/0/0
GigabitEthernet0/0/0 current state : UP 
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::3
  Global unicast address(es):
    2001:13:1::3, subnet is 2001:13:1::/64
  Joined group address(es):
    FF02::1:FF00:3
    FF02::2
    FF02::1
  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


AR1:
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname AR1
[AR1]ipv6
[AR1]interface GigabitEthernet 0/0/0
[AR1-GigabitEthernet0/0/0]ipv6 enable
[AR1-GigabitEthernet0/0/0]ipv6 address FE80::1 link-local
[AR1-GigabitEthernet0/0/0]ipv6 address 2001:13:1::1/64
[AR1-GigabitEthernet0/0/0]quit 



[AR1]ping ipv6 FE80::3 -i GigabitEthernet 0/0/0
  PING FE80::3 : 56  data bytes, press CTRL_C to break
    Reply from FE80::3 
    bytes=56 Sequence=1 hop limit=64  time = 80 ms
    Reply from FE80::3 
    bytes=56 Sequence=2 hop limit=64  time = 20 ms
    Reply from FE80::3 
    bytes=56 Sequence=3 hop limit=64  time = 20 ms
    Reply from FE80::3 
    bytes=56 Sequence=4 hop limit=64  time = 20 ms
    Reply from FE80::3 
    bytes=56 Sequence=5 hop limit=64  time = 20 ms
[AR1]ping ipv6 2001:13:1::3
  PING 2001:13:1::3 : 56  data bytes, press CTRL_C to break
    Reply from 2001:13:1::3 
    bytes=56 Sequence=1 hop limit=64  time = 50 ms
    Reply from 2001:13:1::3 
    bytes=56 Sequence=2 hop limit=64  time = 20 ms
    Reply from 2001:13:1::3 
    bytes=56 Sequence=3 hop limit=64  time = 20 ms
    Reply from 2001:13:1::3 
    bytes=56 Sequence=4 hop limit=64  time = 20 ms
    Reply from 2001:13:1::3 
    bytes=56 Sequence=5 hop limit=64  time = 20 ms


  --- 2001:13:1::3 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/26/50 ms


AR2:
<Huawei>sy
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sy
[Huawei]sysname AR2
[AR2]interface GigabitEthernet 0/0/0
[AR2-GigabitEthernet0/0/0]interface GigabitEthernet 0/0/1
[AR2-GigabitEthernet0/0/1]ipv6 enable 
[AR2-GigabitEthernet0/0/1]ipv6 address auto global default
[AR2-GigabitEthernet0/0/1]quit 
[AR2]display ipv6 interface GigabitEthernet 0/0/1
GigabitEthernet0/0/1 current state : UP 
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FEED:63E5
  Global unicast address(es):
    2001:1:1:0:2E0:FCFF:FEED:63E5,
    subnet is 2001:1:1::/64 [SLAAC 1970-01-01 00:19:32 2592000S]
  Joined group address(es):
    FF02::1:FFED:63E5
    FF02::2
    FF02::1
  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

IPv6的RIP

AR1:
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname AR1
[AR1]ipv6
[AR1]interface GigabitEthernet 0/0/0
[AR1-GigabitEthernet0/0/0]ipv6 enable 
[AR1-GigabitEthernet0/0/0]ipv6 address 2001:13:1:1::1/64
[AR1-GigabitEthernet0/0/0]ripng 1 enable
[AR1-GigabitEthernet0/0/0]quit
[AR1]interface GigabitEthernet 0/0/1
[AR1-GigabitEthernet0/0/1]ipv6 enable
[AR1-GigabitEthernet0/0/1]ipv6 address 2001:12:1:1::1/64
[AR1-GigabitEthernet0/0/1]ripng 1 enable
[AR1-GigabitEthernet0/0/1]quit
[AR1]interface LoopBack 0
[AR1-LoopBack0]ipv6 enable 
[AR1-LoopBack0]ipv6 address 1::1/128
[AR1-LoopBack0]ripng 1 enable 
[AR1-LoopBack0]quit 
[AR1]


AR2:
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname AR2
[AR2]ipv6 
[AR2]interface GigabitEthernet 0/0/1
[AR2-GigabitEthernet0/0/1]ipv6 enable
[AR2-GigabitEthernet0/0/1]ipv6 address 2001:12:1:1::2/64
[AR2-GigabitEthernet0/0/1]ripng 1 enable 
[AR2-GigabitEthernet0/0/1]quit
[AR2]interface LoopBack 0
[AR2-LoopBack0]ipv6 enable 
[AR2-LoopBack0]ipv6 address 2::2/124
[AR2-LoopBack0]ripng 1 enable
[AR2-LoopBack0]quit 
[AR2]


AR3:
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname AR3
[AR3]ipv6
[AR3]interface GigabitEthernet 0/0/0
[AR3-GigabitEthernet0/0/0]ipv6 enable
[AR3-GigabitEthernet0/0/0]ipv6 address 2001:13:1:1::3/64
[AR3-GigabitEthernet0/0/0]ripng 1 enable 
[AR3-GigabitEthernet0/0/0]quit
[AR3]interface LoopBack 0
[AR3-LoopBack0]ipv6 enable 
[AR3-LoopBack0]ipv6 address 3::3/128
[AR3-LoopBack0]ripng 1 enable
[AR3-LoopBack0]quit 
[AR3]


查看
[AR3]display ipv6 routing-table protocol ripng 
Public Routing Table : RIPng
Summary Count : 3


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


 Destination  : 1::1                            PrefixLength : 128
 NextHop      : FE80::2E0:FCFF:FE92:2C39        Preference   : 100
 Cost         : 1                               Protocol     : RIPng
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/0            Flags        : D


 Destination  : 2::                             PrefixLength : 124
 NextHop      : FE80::2E0:FCFF:FE92:2C39        Preference   : 100
 Cost         : 2                               Protocol     : RIPng
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/0            Flags        : D


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


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

[AR3]


[AR3]ping ipv6 2::2
  PING 2::2 : 56  data bytes, press CTRL_C to break
    Request time out
    Reply from 2::2 
    bytes=56 Sequence=2 hop limit=63  time = 40 ms
    Reply from 2::2 
    bytes=56 Sequence=3 hop limit=63  time = 30 ms
    Reply from 2::2 
    bytes=56 Sequence=4 hop limit=63  time = 20 ms
    Reply from 2::2 
    bytes=56 Sequence=5 hop limit=63  time = 30 ms


  --- 2::2 ping statistics ---
    5 packet(s) transmitted
    4 packet(s) received
    20.00% packet loss
    round-trip min/avg/max = 20/30/40 ms

IPv6——ospf

AR1:
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname AR1
[AR1]ipv6
[AR1]ospfv3 
[AR1-ospfv3-1]router-id 1.1.1.1
[AR1-ospfv3-1]quit
[AR1]interface GigabitEthernet 0/0/0
[AR1-GigabitEthernet0/0/0]ipv6 enable
[AR1-GigabitEthernet0/0/0]ipv6 address 2001:13:1:1::1/64
[AR1-GigabitEthernet0/0/0]ospfv3 1 area 0.0.0.0
[AR1-GigabitEthernet0/0/0]quit
[AR1]interface GigabitEthernet 0/0/1
[AR1-GigabitEthernet0/0/1]ipv6 enable
[AR1-GigabitEthernet0/0/1]ipv6 address 2001:12:1:1::1/64
[AR1-GigabitEthernet0/0/1]ospfv3 1 area 0.0.0.0
[AR1-GigabitEthernet0/0/1]quit 
[AR1]interface LoopBack 0
[AR1-LoopBack0]ipv6 enable
[AR1-LoopBack0]ipv6 address 1::1/128
[AR1-LoopBack0]ospfv3 1 area 0.0.0.0
[AR1-LoopBack0]quit 
[AR1]


AR2:
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname AR2
[AR2]ipv6
[AR2]ospfv3 
[AR2-ospfv3-1]router-id 2.2.2.2
[AR2-ospfv3-1]quit
[AR2]interface GigabitEthernet 0/0/1
[AR2-GigabitEthernet0/0/1]ipv6 enable
[AR2-GigabitEthernet0/0/1]ipv6 address 2001:12:1:1::2/64
[AR2-GigabitEthernet0/0/1]ospfv3 1 area 0.0.0.0
[AR2-GigabitEthernet0/0/1]quit 
[AR2]interface LoopBack 0
[AR2-LoopBack0]ipv6 enable 
[AR2-LoopBack0]ipv6 address 2::2/128
[AR2-LoopBack0]ospfv3 1 area 0.0.0.0
[AR2-LoopBack0]quit 
[AR2]


AR3:
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname AR3
[AR3]ipv6
[AR3]ospfv3 
[AR3-ospfv3-1]router-id 3.3.3.3
[AR3-ospfv3-1]quit
[AR3]interface GigabitEthernet 0/0/0
[AR3-GigabitEthernet0/0/0]ipv6 enable
[AR3-GigabitEthernet0/0/0]ipv6 address 2001:13:1:1::3/64
[AR3-GigabitEthernet0/0/0]ospfv3 1 area 0.0.0.0
[AR3-GigabitEthernet0/0/0]quit
[AR3]interface LoopBack 0
[AR3-LoopBack0]ipv6 enable 
[AR3-LoopBack0]ipv6 address 3::3/128
[AR3-LoopBack0]ospfv3 1 area 0.0.0.0
[AR3-LoopBack0]quit 
[AR3]


[AR3]display ipv6 routing-table protocol ospfv3 
Public Routing Table : OSPFv3
Summary Count : 5


OSPFv3 Routing Table's Status : < Active >
Summary Count : 3 


 Destination  : 1::1                            PrefixLength : 128
 NextHop      : FE80::2E0:FCFF:FE92:2C39        Preference   : 10
 Cost         : 1                               Protocol     : OSPFv3
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/0            Flags        : D


 Destination  : 2::2                            PrefixLength : 128
 NextHop      : FE80::2E0:FCFF:FE92:2C39        Preference   : 10
 Cost         : 2                               Protocol     : OSPFv3
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/0            Flags        : D


 Destination  : 2001:12:1:1::                   PrefixLength : 64
 NextHop      : FE80::2E0:FCFF:FE92:2C39        Preference   : 10
 Cost         : 2                               Protocol     : OSPFv3
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/0            Flags        : D


OSPFv3 Routing Table's Status : < Inactive >
Summary Count : 2


 Destination  : 3::3                            PrefixLength : 128
 NextHop      : ::                              Preference   : 10
 Cost         : 0                               Protocol     : OSPFv3
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : LoopBack0                       Flags        :  


 Destination  : 2001:13:1:1::                   PrefixLength : 64
 NextHop      : ::                              Preference   : 10
 Cost         : 1                               Protocol     : OSPFv3
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/0            Flags        :  


[AR3]




[AR3]ping ipv6 2::2
  PING 2::2 : 56  data bytes, press CTRL_C to break
    Request time out
    Reply from 2::2 
    bytes=56 Sequence=2 hop limit=63  time = 30 ms
    Reply from 2::2 
    bytes=56 Sequence=3 hop limit=63  time = 40 ms
    Reply from 2::2 
    bytes=56 Sequence=4 hop limit=63  time = 30 ms
    Reply from 2::2 
    bytes=56 Sequence=5 hop limit=63  time = 30 ms


  --- 2::2 ping statistics ---
    5 packet(s) transmitted
    4 packet(s) received
    20.00% packet loss
    round-trip min/avg/max = 30/32/40 ms

DHCPv6

R1:server
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname AR1
[AR1]ipv6
[AR1]interface GigabitEthernet 0/0/0
[AR1-GigabitEthernet0/0/0]ipv6 enable
[AR1-GigabitEthernet0/0/0]ipv6 address 2001:12:1:1::1/64
[AR1-GigabitEthernet0/0/0]quit
[AR1]dhcp enable 
Info: The operation may take a few seconds. Please wait for a moment.done.
[AR1]dhcpv6 duid ll
Warning: The DHCP unique identifier should be globally-unique and stable. Are yo
u sure to change it? [Y/N]Y
[AR1]dhcpv6 pool pool1
[AR1-dhcpv6-pool-pool1]address prefix 2001:12:1:1::/64
[AR1-dhcpv6-pool-pool1]dns-server 2001:12:1:1::1
[AR1-dhcpv6-pool-pool1]excluded-address 2001:12:1:1::1
[AR1-dhcpv6-pool-pool1]quit
[AR1]interface GigabitEthernet 0/0/0
[AR1-GigabitEthernet0/0/0]dhcpv6 server pool1
[AR1-GigabitEthernet0/0/0]quit 
[AR1]


R2:client
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname AR2
[AR2]ipv6 
[AR2]dhcp enable 
Info: The operation may take a few seconds. Please wait for a moment.done.
[AR2]interface GigabitEthernet 0/0/0
[AR2-GigabitEthernet0/0/0]ipv6 enable 
[AR2-GigabitEthernet0/0/0]ipv6 address auto link-local 
[AR2-GigabitEthernet0/0/0]ipv6 address auto dhcp
[AR2-GigabitEthernet0/0/0]quit 




[AR2]display ipv6 interface GigabitEthernet 0/0/0
GigabitEthernet0/0/0 current state : UP 
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FEC8:4E38
  Global unicast address(es):
    2001:12:1:1::2, subnet is 2001:12:1:1::2/128
  Joined group address(es):
    FF02::1:FF00:2
    FF02::2
    FF02::1
    FF02::1:FFC8:4E38
  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
[AR2]






猜你喜欢

转载自blog.csdn.net/x503809622/article/details/79542704