Как DHCP v6 настроить на сервере Ubuntu 18.04 , чтобы он выделял локальные адреса?
Я пытаюсь настроить DHCP v6 версию на сервере. Получаю кажется ошибку множественности сетей на одном интерфейсе. Хотя в IPV6 это можно и очень много. В текущем состоянии адреса получаю с удалённого DHCP сервера, а нужно чтобы локальный сервер выделял внутренние адреса fd00:a000::/64 Как вообще DHCP v6 настроить на сервере Ubuntu 18.04 , чтобы он выделял локальные адреса?
В рабочем состоянии пишет такое
$ systemctl status isc-dhcp-server6.service
● isc-dhcp-server6.service - ISC DHCP IPv6 server
Loaded: loaded (/lib/systemd/system/isc-dhcp-server6.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2021-11-25 12:43:41 SAST; 9min ago
Docs: man:dhcpd(8)
Main PID: 28488 (dhcpd)
Tasks: 1 (limit: 4274)
CGroup: /system.slice/isc-dhcp-server6.service
└─28488 dhcpd -user dhcpd -group dhcpd -f -6 -pf /run/dhcp-server/dhcpd6.pid -cf /etc/dhcp/dhcpd6.conf enp2s0 enp3s0
Попытка добавить подсеть fd00:a000 DHCP серверу приводит к ошибке , и просто запись для выделения адресов 2a03:xxxx:xxxx:6666:ffff::/80 вообще не работает.
/etc/dhcp/dhcpd6.conf
subnet6 2a03:xxxx:xxxx:6666::/64 {
range6 2a03:xxxx:xxxx:6666:fffe::1 2a03:xxxx:xxxx:6666:fffe::fffe;
range6 2a03:xxxx:xxxx:6666:ffff::/80 temporary;
}
subnet6 fd00:a000::/64 {
# range6 fd00:a000:0:0:ffff::/80 ;
# range6 fd00:a000:0:0:fffe::/80 temporary;
}
/var/log/syslog
dhcpd[28454]: Internet Systems Consortium DHCP Server 4.3.5
dhcpd[28454]: Copyright 2004-2016 Internet Systems Consortium.
sh[28454]: Internet Systems Consortium DHCP Server 4.3.5
sh[28454]: Copyright 2004-2016 Internet Systems Consortium.
sh[28454]: All rights reserved.
sh[28454]: For info, please visit https://www.isc.org/software/dhcp/
dhcpd[28454]: All rights reserved.
dhcpd[28454]: For info, please visit https://www.isc.org/software/dhcp/
dhcpd[28454]: Config file: /etc/dhcp/dhcpd6.conf
sh[28454]: Config file: /etc/dhcp/dhcpd6.conf
sh[28454]: Database file: /var/lib/dhcp/dhcpd6.leases
sh[28454]: PID file: /run/dhcp-server/dhcpd6.pid
dhcpd[28454]: Database file: /var/lib/dhcp/dhcpd6.leases
dhcpd[28454]: PID file: /run/dhcp-server/dhcpd6.pid
sh[28454]: Wrote 1 NA, 0 TA, 0 PD leases to lease file.
dhcpd[28454]: Wrote 1 NA, 0 TA, 0 PD leases to lease file.
dhcpd[28454]: Interface enp2s0 matches multiple shared networks
sh[28454]: Interface enp2s0 matches multiple shared networks
sh[28454]: If you think you have received this message due to a bug rather
sh[28454]: than a configuration issue please read the section on submitting
sh[28454]: bugs on either our web page at www.isc.org or in the README file
sh[28454]: before submitting a bug. These pages explain the proper
sh[28454]: process and the information we find helpful for debugging..
sh[28454]: exiting.
dhcpd[28454]:
dhcpd[28454]: If you think you have received this message due to a bug rather
dhcpd[28454]: than a configuration issue please read the section on submitting
dhcpd[28454]: bugs on either our web page at www.isc.org or in the README file
dhcpd[28454]: before submitting a bug. These pages explain the proper
dhcpd[28454]: process and the information we find helpful for debugging..
dhcpd[28454]:
dhcpd[28454]: exiting.
systemd[1]: isc-dhcp-server6.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: isc-dhcp-server6.service: Failed with result 'exit-code'.
Эта сеть рабочая, настроена с помощью роутера Mikrotik и туннельного сервера.
ip ad -d
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether c8:60:00:61:62:c3 brd ff:ff:ff:ff:ff:ff promiscuity 0 numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535
inet 192.168.0.72/24 brd 192.168.0.255 scope global enp2s0
valid_lft forever preferred_lft forever
inet6 fd00:a000::ca60:ff:fe61:62c3/64 scope global dynamic mngtmpaddr noprefixroute
valid_lft 2591916sec preferred_lft 604716sec
inet6 2a03:xxxx:xxxx:6666:ca60:ff:fe61:62c3/64 scope global dynamic mngtmpaddr noprefixroute
valid_lft 2591916sec preferred_lft 604716sec
inet6 fd00:a000::6969/64 scope global
valid_lft forever preferred_lft forever
inet6 fe80::ca60:ff:fe61:62c3/64 scope link
valid_lft forever preferred_lft forever
/etc/default/isc-dhcp-server
INTERFACESv4="enp2s0 enp3s0"
INTERFACESv6="enp2s0 enp3s0"
/etc/netplan/50-cloud-init.yaml
network:
ethernets:
enp2s0:
addresses: [192.168.0.72/24 , "fd00:a000::6969/64" ]
nameservers:
addresses: [ 192.168.0.72 , "fe80::ca60:ff:fe61:62c3", 8.8.8.8, 8.8.4.4 , "2001:4860:4860::8888","2001:4860:4860::8844" ]
dhcp4: no
dhcp6: no
routes:
- to: 192.168.0.0/24
via: 192.168.0.1
metric: 100
version: 2