「DHCPv6」- 前缀代理(PD,Prefix Delegation)配置

  CREATED BY JENKINSBOT

华为网络设备

注意事项,这里仅记录关键配置及命名,非关键命名已省略;

DHCPv6 Server (PD)

[AR4-GigabitEthernet0/0/0]ipv6 address 3001::1/64
[AR4-GigabitEthernet0/0/0]undo ipv6 nd ra halt

[AR4]dhcp enable
[AR4]dhcpv6 pool pd01 
[AR4-dhcpv6-pool-pd01]prefix-delegation 3001:1::/64 64 

[AR4-GigabitEthernet0/0/0]dhcpv6 server pd01

DHCPv6 PD Client

[AR3-GigabitEthernet0/0/1]ipv6 address auto global default

[AR3-GigabitEthernet0/0/1]dhcpv6 client pd mypd                       # 作为 DP Client 运行

[AR3-GigabitEthernet0/0/1]display dhcpv6 client 
GigabitEthernet0/0/1 is in DHCPv6-PD client mode.
State is BOUND.
Preferred server DUID   : 0003000100E0FC0E52F0
  Reachable via address : FE80::2E0:FCFF:FE0E:52F0
IA PD IA ID 0x00000041 T1 43200 T2 69120
  Prefix name  : mypd
  Obtained     : 2022-02-07 17:14:08
  Renews       : 2022-02-08 05:14:08
  Rebinds      : 2022-02-08 12:26:08
  Prefix       : 3001:1::/64
    Lifetime valid 172800 seconds, preferred 86400 seconds
    Expires at 2022-02-09 17:14:08(172782 seconds left)

[AR3-GigabitEthernet0/0/0]ipv6 address auto link-local
[AR3-GigabitEthernet0/0/0]ipv6 address mypd ::3333 64                 # 通过 PD 获取地址

[AR3-GigabitEthernet0/0/0]undo ipv6 nd ra halt

[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::2E0:FCFF:FE64:E21
  Global unicast address(es):
    3001:1::3333, subnet is 3001:1::/64
  Joined group address(es):
    FF02::1:FF00:3333
    FF02::2
    FF02::1
    FF02::1:FF64:E21
  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
  ND advertised reachable time is 0 milliseconds
  ND advertised retransmit interval is 0 milliseconds
  ND router advertisement max interval 600 seconds, min interval 200 seconds
  ND router advertisements live for 1800 seconds
  ND router advertisements hop-limit 64
  ND default router preference medium
  Hosts use stateless autoconfig for addresses

DHCPv6 Client

[AR5-GigabitEthernet0/0/1]ipv6 address auto link-local
[AR5-GigabitEthernet0/0/1]ipv6 address auto global default