Jump to content
Калькуляторы

Настройка dhcpv6 relay ubuntu

Пытаюсь настроить 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!

 

вот текущая топология в скрине

post-127249-098118100 1466073956_thumb.png

Edited by fractal

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.