Linux 上 DHCP Server 的問題 .....??



贊助商連結


Protech
2001-09-18, 03:36 AM
我用 2 片網路卡安裝 DHCP Server

1 片 eth0 是分配真實 IP ---> 一切正常 ....
1 片 eth1 準備用來分配內部的虛擬 IP ,

設定完後 Run dhcpd 沒有錯誤訊息 ...

不過我把工作站接上去都沒辦法自動分配 , 會有

Error

DHCP Server Unavailable Renewing adapter 的訊息 ....

我是用 Winipcfg 去看的 ...

不知道是那裡設錯了 ....

下面是我用 webmin 設的設定檔

shared-network protech {
option routers 61.218.xxx.xxx;
option subnet-mask 255.255.255.248;

option domain-name "protech.net.tw";
option domain-name-servers 61.218.xxx.xxx, 168.95.1.2;
option broadcast-address 61.218.xxx.xxx;
option host-name "protech";

subnet 61.218.xxx.xxx netmask 255.255.255.248 {
option routers 61.218.xxx.xxx;
option subnet-mask 255.255.255.248;

option domain-name "protech.net.tw";
option domain-name-servers 61.218.xxx.xxx, 168.95.1.2;
option broadcast-address 61.218.xxx.xxx;
option host-name "protech";
option time-offset -5;
range dynamic-bootp 61.218.xxx.xxx 61.218.xxx.xxx;

default-lease-time 21600;
max-lease-time 43200;

# we want the nameserver to appear at a fixed address
host ns {
next-server protech.net.tw;
hardware ethernet 00:10:B5:88:BE:63;
fixed-address 61.218.xxx.xxx;
}
}

subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;

option domain-name "protech.net.tw";
option domain-name-servers 61.218.xxx.xxx, 168.95.1.2;

option broadcast-address 192.168.0.255;
option host-name "protech";
option time-offset -5;
range dynamic-bootp 192.168.0.8 192.168.0.168;

default-lease-time 21600;
max-lease-time 43200;

# we want the nameserver to appear at a fixed address
host ns {
next-server protech.net.tw;
hardware ethernet 00:10:B5:88:BE:63;
fixed-address 61.218.xxx.xxx;
}
}
}