[IPv6][CentOS6] CentOS6でのDHCPv6サーバの設定方法。 #ipv6study

2013-04-02 10:25:26AIX、UNIX、LinuxCentOS, dhcp6, ipv6, network



% cat /etc/redhat-release
CentOS release 6.4 (Final)

1. サンプルの設定ファイルをコピーしてくる。

cp -p /usr/share/doc/dhcp*/dhcpd6.conf.sample /etc/dhcp/dhcpd6.conf

2. 必要のパラメータを抜き出して記載する。

% vi /etc/dhcp/dhcpd6.conf

# 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;

#   other addresses for new connections)
#  (set to 7 days, the  usual IPv6 default)
preferred-lifetime 3600;

#  (default is 1/2 preferred lifetime)
#  (set to 1 hour)
option dhcp-renewal-time 3600;

#  (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 for name server address(es) and domain search list
option dhcp6.name-servers <DNSのIPv6アドレス>, <DNSのIPv6アドレス>;
option dhcp6.domain-search "<設定するドメイン名>";

# Set preference to 255 (maximum) in order to avoid waiting for
# additional servers when there is only one
option dhcp6.preference 255;

# Server side command to enable rapid-commit (2 packet exchange)
option dhcp6.rapid-commit;

# The delay before information-request refresh
#  (minimum is 10 minutes, maximum one day, default is to not refresh)
#  (set to 6 hours)
option dhcp6.info-refresh-time 21600;

# The path of the lease file
dhcpv6-lease-file-name "/var/lib/dhcpd/dhcpd6.leases";

# The subnet where the server is attached
#  (i.e., the server has an address in this subnet)
subnet6 <配布するIPv6アドレスのネットワークアドレス> {
range6 <払い出しを開始するIPv6アドレス> <払い出しを終了するIPv6アドレス>;
ddns-domainname = "<設定するドメイン名>";

3. dhcpd6を起動する。

% /etc/init.d/dhcpd6 start
Starting dhcpd (DHCPv6):                                   [  OK  ]







じつはRouterboard User Group JPの中の人でもある。

Amazon欲しいものリスト / Arm板を恵んでくれる人募集中

2013-04-02 10:25:26AIX、UNIX、LinuxCentOS, dhcp6, ipv6, network