所有新聞群組討論區列表 風禹科技驗證有限公司 Web News Reader

目前新聞群組:tw.bbs.comp.ipv6

項目 內容
發文者 tony
日期 2011/6/29 上午 10:31:51
標題 [分享] DHCPv6 config on Freebsd 8.2
檔頭
220 104874 <56V6je$JmS@ptt.cc> article
Path: netnews!ctu-gate!news.nctu.edu.tw!news.ntu.edu.tw!ptt
From: tonyt1971.bbs@ptt.cc (tony)
Newsgroups: tw.bbs.comp.ipv6
Subject: [分享] DHCPv6 config on Freebsd 8.2
Date: 29 Jun 2011 02:31:51 +0000 (UTC)
Organization: 批踢踢實業
Lines: 68
Message-ID: <56V6je$JmS@ptt.cc>
NNTP-Posting-Host: 140.112.172.1
Mime-Version: 1.0
Content-Type: text/plain; charset=big5
Content-Transfer-Encoding: 8bit
X-Trace: news.ntu.edu.tw 1309315311 60466 140.112.172.1 (29 Jun 2011 02:41:51 GMT)
X-Complaints-To: usenet@news.ntu.edu.tw
NNTP-Posting-Date: Wed, 29 Jun 2011 02:41:51 +0000 (UTC)
X-Filename: IPv6/M.1309314712.A.A98
X-Auth-From: 60.250.185.125
Xref: netnews tw.bbs.comp.ipv6:104874
內文
FreeBSD 8.2-RELEASE (BSD)

cd /usr/ports/net/dhcp6/
make install

### /etc/rc.conf ###
#--- IPv6 Enable ---
ipv6_enable="YES"

#--- Network Interface ---
network_interfaces="em0 em1 em2 gif0"
ipv6_network_interfaces="em0 em1 em2 gif0"

#--- IPv4 configuration ---
defaultrouter="66.250.185.113"
hostname="em109.foo.net"
ifconfig_em0="inet 10.25.7.109  netmask 255.0.0.0"
ifconfig_em1="inet 66.250.185.119  netmask 255.255.255.240"
ifconfig_em2="inet 192.168.200.1  netmask 255.255.255.0"
sshd_enable="YES"


#--- Enable RA ---
ipv6_ifconfig_em2="2001:470:36:1c6::1 prefixlen 64"
ipv6_gateway_enable="YES"
ipv6_router_enable="YES"
ipv6_router="/usr/sbin/route6d"
ipv6_router_flags="-l"
rtadvd_enable="YES"

#--- Enable DHCP6S ----
dhcp6s_enable="YES"
dhcp6s_config="/usr/local/etc/dhcp6s.conf"
dhcp6s_interface="em2"

### /usr/local/etc/dhcp6s.conf ###
option domain-name-servers 2001:470:20::2;
option domain-name "foo.net.";
interface em2 {
        allow rapid-commit;
        preference 128;
        address-pool dhcpv6pool 3600 7200;
};

pool dhcpv6pool {
        range 2001:470:36:1c6::2 to 2001:470:36:1c6::30;
};

host foo123
{
        duid 00:03:00:01:11:22:33:44:55:66;
        prefix 2001:470:ec89::/48 3600 7200;
        address 2001:470:36:1c6::1000 3600 7200;
};










--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 60.250.185.125

基本條件

.Net 原始碼 | ASP.NET News Reader Beta 0.2.9

請參閱

個人資料 | 發表新文章 | 回覆 | 回信 | 轉寄 | 同標題 | 搜尋 | 列印 預覽 直接

重要訊息通知

2007/06/21 由於微軟新聞伺服器移除多數新聞群組 (newsgroup),目前遭移除之群組暫時改為隱藏純瀏覽,若狀況已定案時,將會將隱藏中的群組重新調整。[討論]