前言
懒….反正就是云筏KVM分配公网IPv6给KVM的实现方式,zkeys不支持IPv6所以我们只能自己来了…
宿主机配置
网卡配置
共网网桥 2a01:4f8:212:1c60::1/128 网关为公网网关
内网网桥 2a01:4f8:212:1c60::1/64 网关留空
路由配置
简单来说2a01:4f8:212:1c60::1/64全部走内网网桥,其余流量走公网网桥
ip -6 route自己看看del还是add
安装和配置DHCP服务
yum install dhcp -y
cp /usr/share/doc/dhcp-4.2.5/dhcpd6.conf.example /etc/dhcp/dhcpd6.conf
#覆盖掉
然后就是配置DHCPv6的网段了,先看看官方给的例子:
[root@HPC-FSN1-M103 ~]# cat /etc/dhcp/dhcpd6.conf
# Server configuration file example for DHCPv6
# From the file used for TAHI tests.
# IPv6 address valid lifetime
# (at the end the address is no longer usable by the client)
# (set to 30 days, the usual IPv6 default)
default-lease-time 2592000;
# IPv6 address preferred lifetime
# (at the end the address is deprecated, i.e., the client should use
# other addresses for new connections)
# (set to 7 days, the usual IPv6 default)
preferred-lifetime 604800;
# T1, the delay before Renew
# (default is 1/2 preferred lifetime)
# (set to 1 hour)
option dhcp-renewal-time 3600;
# T2, the delay before Rebind (if Renews failed)
# (default is 3/4 preferred lifetime)
# (set to 2 hours)
option dhcp-rebinding-time 7200;
# Enable RFC 5007 support (same than for DHCPv4)
allow leasequery;
# Global definitions fo