DHCP的設定問題 - BBS

Table of Contents

※ 引述《vu0 (idler)》之銘言:
: 想請問各位我主機上有NAT,目前要設置DHCP功能,在dhcpd.conf中要設置
: option routers要設置預設路由,我看了兩個網站,在網域和遮罩部分都各為
: 192.168.1.0 255.255.255.0
: 但是option routers的部分
: 一個設定192.168.1.1,
: 一個設定192.168.1.254,
: 請問這所指的預設router是指什麼??就是指預設閘道嗎?如果我有NAT就是指
: 對內網卡的IP位置嗎??

是的 只要設定一個IP就可以了

當然如果你有兩台的話也可以多設

: 謝謝。

option domain-name-servers 168.95.1.1;
default-lease-time 600;
max-lease-time 7200;
ddns-update-style none;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.199;
option routers 192.168.1.99;
}

以上是我的dhcpd.conf 別懷疑就只有這幾行 :)

--

All Comments