最佳答案
· 作为DHCPv6服务器的Switch A为网段1::1:0:0:0/96和1::2:0:0:0/96的客户端动态分配IPv6地址;
· Switch A的两个VLAN接口Vlan-interface10和Vlan-interface20的地址分别为1::1:0:0:1/96和1::2:0:0:1/96;
· 1::1:0:0:0/96网段内的地址租约时长为172800秒(2天),有效时长为345600秒(4天),域名后缀为***.***,DNS服务器地址为1::1:0:0:2/96;
· 1::2:0:0:0/96网段内的地址租约时长为432000秒(5天),有效时长为864000秒(10天),域名后缀为***.***,DNS服务器地址为1::2:0:0:2/96。
图2-5 DHCPv6组网图
缺省情况下,本设备的接口处于ADM(Administratively Down)状态,请根据实际需要在对应接口视图下使用undo shutdown命令开启接口。
(1) 配置DHCPv6 server各接口的IPv6地址。取消设备发布RA消息的抑制。配置被管理地址的配置标志位为1,即主机通过DHCPv6服务器获取IPv6地址。配置其他信息配置标志位为1,即主机通过DHCPv6服务器获取除IPv6地址以外的其他信息
<SwitchA> system-view
[SwitchA] interface vlan-interface 10
[SwitchA-Vlan-interface10] ipv6 address 1::1:0:0:1/96
[SwitchA-Vlan-interface10] undo ipv6 nd ra halt
[SwitchA-Vlan-interface10] ipv6 nd autoconfig managed-address-flag
[SwitchA-Vlan-interface10] ipv6 nd autoconfig other-flag
[SwitchA-Vlan-interface10] quit
[SwitchA] interface vlan-interface 20
[SwitchA-Vlan-interface20] ipv6 address 1::2:0:0:1/96
[SwitchA-Vlan-interface20] undo ipv6 nd ra halt
[SwitchA-Vlan-interface20] ipv6 nd autoconfig managed-address-flag
[SwitchA-Vlan-interface20] ipv6 nd autoconfig other-flag
[SwitchA-Vlan-interface20] quit
(2) 配置DHCPv6服务
# 配置接口Vlan-interface10和Vlan-interface20工作在DHCPv6服务器模式。
[SwitchA] interface vlan-interface 10
[SwitchA-Vlan-interface10] ipv6 dhcp select server
[SwitchA-Vlan-interface10] quit
[SwitchA] interface vlan-interface 20
[SwitchA-Vlan-interface20] ipv6 dhcp select server
[SwitchA-Vlan-interface20] quit
# 配置不参与自动分配的IPv6地址,以避免分配DNS服务器的地址。
[SwitchA] ipv6 dhcp server forbidden-address 1::1:0:0:2
[SwitchA] ipv6 dhcp server forbidden-address 1::2:0:0:2
# 配置DHCPv6地址池1,为1::1:0:0:0/96网段的客户端分配IPv6地址等参数。
[SwitchA] ipv6 dhcp pool 1
[SwitchA-dhcp6-pool-1] network 1::1:0:0:0/96 preferred-lifetime 172800 valid-lifetime 345600
[SwitchA-dhcp6-pool-1] domain-name ***.***
[SwitchA-dhcp6-pool-1] dns-server 1::1:0:0:2
[SwitchA-dhcp6-pool-1] quit
# 配置DHCPv6地址池2,为1::2:0:0:0/96网段的客户端分配IPv6地址等参数。
[SwitchA] ipv6 dhcp pool 2
[SwitchA-dhcp6-pool-2] network 1::2:0:0:0/96 preferred-lifetime 432000 valid-lifetime 864000
[SwitchA-dhcp6-pool-2] domain-name ***.***
[SwitchA-dhcp6-pool-2] dns-server 1::2:0:0:2
[SwitchA-dhcp6-pool-2] quit
配置完成后,1::1:0:0:0/96和1::2:0:0:0/96网段的客户端可以从DHCPv6服务器Switch A申请到相应网段的IPv6地址和网络配置参数。通过display ipv6 dhcp server ip-in-use命令可以查看DHCPv6服务器为客户端分配的IPv6地址。
(0)
参考DHCPV6文档:https://www.h3c.com/cn/d_202001/1267675_30005_0.htm
(0)
目前网络以存在ipv4网络,需要部分PC获取到IPV6的地址,地址池以配置,接口vlan也引用了 但是获取不到 [H3C-dhcp6-pool-1]dis th # ipv6 dhcp pool 1 network 2404:C40:62:112::/64 dns-server 2404:C40:62:112::1 gateway-list 2404:C40:62:112::1 # # interface Vlan-interface112 description Computer room ip address 10.10.12.254 255.255.255.0 dhcp server apply ip-pool 1 ipv6 address 2404:C40:62:112::1/64 PC无法自动获取地址
目前网络以存在ipv4网络,需要部分PC获取到IPV6的地址,地址池以配置,接口vlan也引用了 但是获取不到 [H3C-dhcp6-pool-1]dis th # ipv6 dhcp pool 1 network 2404:C40:62:112::/64 dns-server 2404:C40:62:112::1 gateway-list 2404:C40:62:112::1 # # interface Vlan-interface112 description Computer room ip address 10.10.12.254 255.255.255.0 dhcp server apply ip-pool 1 ipv6 address 2404:C40:62:112::1/64 PC无法自动获取地址
目前网络以存在ipv4网络,需要部分PC获取到IPV6的地址,地址池以配置,接口vlan也引用了 但是获取不到
[H3C-dhcp6-pool-1]dis th
#
ipv6 dhcp pool 1
network 2404:C40:62:112::/64
dns-server 2404:C40:62:112::1
gateway-list 2404:C40:62:112::1
#
#
interface Vlan-interface112
description Computer room
ip address 10.10.12.254 255.255.255.0
dhcp server apply ip-pool 1
ipv6 address 2404:C40:62:112::1/64
PC无法自动获取地址
(0)
您好,请知:
以下是DHCPV6的配置案例及链接,请参考:
组网说明:
本案例采用H3C HCL模拟器来模拟IPV6 DHCPv6典型组网配置。要求PC能够通过DHCP的方式获取到IPV6地址。
配置思路:
1、按照网络拓扑图正确配置IP地址
2、R1开启DHCP功能,并配置DHCPv6
R1:
<H3C>sys
System View: return to User View with Ctrl+Z.
[H3C]sysname R1
[R1]int gi 0/0
[R1-GigabitEthernet0/0]ipv6 address 1::1 64
[R1-GigabitEthernet0/0]undo ipv6 nd ra halt
[R1-GigabitEthernet0/0]ipv6 nd autoconfig managed-address-flag
[R1-GigabitEthernet0/0]ipv6 nd autoconfig other-flag
[R1-GigabitEthernet0/0]quit
[R1]ipv6 dhcp prefix-pool 1 prefix 1::/64 assign-len 64
[R1]ipv6 dhcp pool 1
[R1-dhcp6-pool-1]network 1::/64
[R1-dhcp6-pool-1]gateway-list 1::1
[R1-dhcp6-pool-1]prefix-pool 1 preferred-lifetime 86400 valid-lifetime 259200
[R1-dhcp6-pool-1]dns-server 2::1
[R1-dhcp6-pool-1]quit
[R1]int gi 0/0
[R1-GigabitEthernet0/0]ipv6 dhcp select server
[R1-GigabitEthernet0/0]ipv6 dhcp server allow-hint preference 255 rapid-commit
[R1-GigabitEthernet0/0]quit
查看R1的IPV6显示信息:
PC已通过DHCP获取到IPV6地址:
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明