fractal Posted June 16, 2016 Пытаюсь настроить dhcp6 relay на ubuntu, перед этим выполнил настройку dhcp4 relay ubuntu, она работает, DHCP крутиться на windows server 2012. сделал так, создал isc-dhcp6-relay в /etc/default/ # Defaults for isc-dhcp6-relay initscript # sourced by /etc/init/isc-dhcp6-relay.conf # # This is a POSIX shell fragment # # What interfaces should the DHCP relay forward requests to? [color="#FFFF00"]тут интерфейс который смотрит на клиента UPPER_INTERFACES="enp0s3"[/color] # On what interfaces should the DHCP relay (dhrelay) serve DHCP requests? [color="#FFFF00"]тут у меня туннель ipv6 over ipv4[/color] LOWER_INTERFACES="win6to4" # Additional options that are passed to the DHCP relay daemon? OPTIONS="" создал /etc/init.d/isc-dhcp6-relay #!/bin/sh # # ### BEGIN INIT INFO # Provides: isc-dhcp6-relay # Required-Start: $remote_fs $network # Required-Stop: $remote_fs $network # Should-Start: $local_fs # Should-Stop: $local_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: DHCP relay # Description: Dynamic Host Configuration Protocol Relay ### END INIT INFO # It is not safe to start if we don't have a default configuration... if [ ! -f /etc/default/isc-dhcp6-relay ]; then echo "/etc/default/isc-dhcp6-relay does not exist! - Aborting..." echo "Run 'dpkg-reconfigure isc-dhcp6-relay' to fix the problem." exit 1 fi # Source init functions . /lib/lsb/init-functions # Read init script configuration (interfaces the daemon should listen on # and the DHCP server we should forward requests to.) [ -f /etc/default/isc-dhcp6-relay ] && . /etc/default/isc-dhcp6-relay # Build command line for interfaces (will be passed to dhrelay below.) IFCMD="" if test "$INTERFACES" != ""; then for I in $INTERFACES; do IFCMD=${IFCMD}"-i "${I}" " done fi DHCRELAYPID=/var/run/dhcrelay6.pid case "$1" in start) start-stop-daemon --start --quiet --pidfile $DHCRELAYPID \ --exec /usr/sbin/dhcrelay -- -q $OPTIONS $IFCMD $SERVERS ;; stop) start-stop-daemon --stop --quiet --pidfile $DHCRELAYPID ;; restart | force-reload) $0 stop sleep 2 $0 start ;; *) echo "Usage: /etc/init.d/isc-dhcp6-relay {start|stop|restart|force-reload}" exit 1 esac exit 0 при старте [....] Starting isc-dhcp6-relay (via systemctl): isc-dhcp6-relay.serviceFailed to start isc-dhcp6-relay.service: Unit isc-dhcp6-relay.service not found. failed! вот текущая топология в скрине Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
stalker86 Posted June 18, 2016 ! что бросилсо ьв глаза. Вы уверены чт оу Вас есть интерфейс с таким имененм на сервере LOWER_INTERFACES="win6to4" ? показывайте вывод ip link li ну и 2 - не уверен что 2 dhcp сервера на 1 сервере могут быть как таковые, по кр мере на 1 и тех же интерфейсах. Вернее уверен,что не могут быть Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
zhenya` Posted June 18, 2016 у вас системд.. а вы какие то обычные иниты пихаете ) неверно это один в4 и один в6 вполне нормальная конфигурация. Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
stalker86 Posted June 18, 2016 Кстати да..в даннм случае можно попробовать /etc/init.d/isc-dhcp6-relay start Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
fractal Posted June 19, 2016 Интерфейс такой есть, это туннель до сервера windows через который ходит ipv6. Стартовал именно через unit.d Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
zhenya` Posted June 19, 2016 Какие инитд блин. Если системд. Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
fractal Posted June 19, 2016 Какие инитд блин. Если системд. /etc/init.d/isc-dhcp-relay start - так у меня релей для ipv4 запускается, для версии 6 разве должен по другому стартовать? Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
zhenya` Posted June 19, 2016 В случае системд твоя команда преобразуется в systemctl start blabla. И юнита (скрипта инит.д недостаточно). Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
myth Posted June 19, 2016 Достаточно Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
stalker86 Posted June 19, 2016 Достаточно. у меня вот не воркстейшене не дял всех сервисов етсь нативные юнит-файлы и однако же эьти сервисы как-то стартуют. Системд если нет нативного юнита дёргает init скрипты спокойно Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
fractal Posted June 19, 2016 Достаточно. у меня вот не воркстейшене не дял всех сервисов етсь нативные юнит-файлы и однако же эьти сервисы как-то стартуют. Системд если нет нативного юнита дёргает init скрипты спокойно можете показать настройки? Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
stalker86 Posted June 19, 2016 Настройки чего? Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
fractal Posted June 19, 2016 Настройки чего? ну я думал мне подскажут как правильно настроить dhcpv6 relay Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
stalker86 Posted June 19, 2016 wide-dhcpv6-relay не то что Вам нужно? wide-dhcpv6-relay - DHCPv6 relay for automatic IPv6 hosts configuration Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
fractal Posted June 19, 2016 Нужно не автоматический конфиг, необходимо раздавать нужную подсеть, шлюз, днс Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
stalker86 Posted June 20, 2016 Ммм...я бы попробовал дял начала запустить dhcprelay не инит-скриптом/системд юнитом а руками в консоли и посмотреть на что будет ругань и будет ли вообще Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...