DHCPv6配置

1、DHCPv6客户端配置:

[S6800-1]interface Vlan-interface 5
[S6800-1-Vlan-interface5]dis this
#
interface Vlan-interface5
 ip address 5.1.1.1 255.255.255.0
 ipv6 address dhcp-alloc rapid-commit option-group 1
#
return


2、DHCPv6 中继配置:

在接口下配置:

[M9016-V1-Route-Aggregation2]undo ipv6 nd ra halt
[M9016-V1-Route-Aggregation2]ipv6 nd autoconfig managed-address-flag
[M9016-V1-Route-Aggregation2]ipv6 nd autoconfig other-flag
[M9016-V1-Route-Aggregation2]ipv6 dhcp select relay
[M9016-V1-Route-Aggregation2]ipv6 dhcp  relay server-address 5:2::1
 

DHCPv6服务器配置:

接口下配置:

[S6800-2-Vlan-interface2]dis this
#
interface Vlan-interface2
 ipv6 dhcp select server
 ipv6 address 5:2::1/64
 ipv6 nd autoconfig managed-address-flag
 ipv6 nd autoconfig other-flag
 undo ipv6 nd ra halt
#
return


DHCPv6地址池配置:

[S6800-2]ipv6 dhcp pool 1
[S6800-2-dhcp6-pool-1]dis this
#
ipv6 dhcp pool 1
 network 5:1::/64 preferred-lifetime 60 valid-lifetime 864000
#
return
///// preferred-lifetime:指定地址池中分配的IPv6非临时地址的首选生命周期,缺省为604800(7天);

//// valid-lifetime:指定地址池中分配的IPv6非临时地址的有效生命周期。缺省为2592000(30天),valid-lifetime必须大于等于preferred-lifetime天。

你可能感兴趣的:(三层技术-IP业务,安全,经验分享)