1.yum install dhcp
2.vim /etc/sysconfig/network-scripts/ifcfg-ens33
DEVICE=ens33
ONBOOT=yes
NM_CONTROLLED=no
TYPE=Ethernet
NETMASK=255.255.255.0
IPADDR=192.168.3.10
GATEWAY=192.168.3.1
BOOTPROTO=static
IPV6INIT=yes
IPV6ADDR=2018:4:10:ffff::2/64
IPV6_AUTOCONF=no
IPV6_DEFAULTGW=2018:4:10:ffff::1
3.systemctl restart network
systemctl stop firewalld.service
4.1.Edit dhcpd6.conf
vim /etc/dhcp/dhcpd6.conf
# DHCPv6 Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd6.conf.example
# see dhcpd.conf(5) man page
default-lease-time 2592000;
preferred-lifetime 604800;
option dhcp-renewal-time 3600;
option dhcp-rebinding-time 7200;
allow leasequery;
option dhcp6.info-refresh-time 21600;
dhcpv6-lease-file-name "/var/lib/dhcpd/dhcpd6.leases";
subnet6 2018:4:10:ffff::/64 {
range6 2018:4:10:ffff::10 2018:4:10:ffff::1000;
option dhcp6.bootfile-url
"tftp://[2018:4:10:ffff::2]/bootx64.efi ;
}
5. service network restart
/usr/sbin/dhcpd -6 -d -cf /etc/dhcp/dhcpd6.conf ens33
沒有留言:
張貼留言