3个回答
2011-06-30
展开全部
多作用域配置,建议你先看下日志吧/var/log/messages
看你的配置文件也没找出什么问题,另外我配了下没什么问题,你可以看下配置,#表示注释行:
[root@localhost ~]# cat /etc/dhcpd.conf
ddns-update-style interim;
ignore client-updates;
subnet 192.168.81.0 netmask 255.255.255.0 {
option routers 192.168.81.1;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.81.1;
option time-offset -18000; # Eastern Standard Time
range dynamic-bootp 192.168.81.128 192.168.81.254;
default-lease-time 21600;
max-lease-time 43200;
# we want the nameserver to appear at a fixed address
# host ns {
# next-server marvin.redhat.com;
# hardware ethernet 12:34:56:78:AB:CD;
# fixed-address 207.175.42.254;
# }
}
subnet 172.16.0.0 netmask 255.255.0.0 {
option routers 172.16.1.1;
option subnet-mask 255.255.0.0;
option domain-name-servers 192.168.81.1;
option time-offset -18000; # Eastern Standard Time
range dynamic-bootp 172.16.1.100 172.16.1.200;
default-lease-time 21600;
max-lease-time 43200;
# we want the nameserver to appear at a fixed address
# host ns {
# next-server marvin.redhat.com;
# hardware ethernet 12:34:56:78:AB:CD;
# fixed-address 207.175.42.254;
# }
}
[root@localhost ~]#
看你的配置文件也没找出什么问题,另外我配了下没什么问题,你可以看下配置,#表示注释行:
[root@localhost ~]# cat /etc/dhcpd.conf
ddns-update-style interim;
ignore client-updates;
subnet 192.168.81.0 netmask 255.255.255.0 {
option routers 192.168.81.1;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.81.1;
option time-offset -18000; # Eastern Standard Time
range dynamic-bootp 192.168.81.128 192.168.81.254;
default-lease-time 21600;
max-lease-time 43200;
# we want the nameserver to appear at a fixed address
# host ns {
# next-server marvin.redhat.com;
# hardware ethernet 12:34:56:78:AB:CD;
# fixed-address 207.175.42.254;
# }
}
subnet 172.16.0.0 netmask 255.255.0.0 {
option routers 172.16.1.1;
option subnet-mask 255.255.0.0;
option domain-name-servers 192.168.81.1;
option time-offset -18000; # Eastern Standard Time
range dynamic-bootp 172.16.1.100 172.16.1.200;
default-lease-time 21600;
max-lease-time 43200;
# we want the nameserver to appear at a fixed address
# host ns {
# next-server marvin.redhat.com;
# hardware ethernet 12:34:56:78:AB:CD;
# fixed-address 207.175.42.254;
# }
}
[root@localhost ~]#
展开全部
修改你的/etc/dhcpd.conf文件,配置你的服务器网络
更多追问追答
追问
你看我的配置对吗ddns-update-style none;
ignore clinet-updates;
subnet 192.168.1.0 netmask 255.255.255.0{
#----default gateway
option routers 192.168.1.1;
option subnet-make 255.255.255.0;
option domaic-name-servers 192.168.1.1;
range dynamic-bootp 192.168.1.128 192.168.1.254
default-lease-time 21600;
max-lease-time 43200;
}
追答
这行后面应该有个分号——range dynamic-bootp 192.168.1.128 192.168.1.254
你分的ip不能和你现在网段上用的ip冲突,你再试试
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
但是重启是好的对不对。
去杀掉一些锁住的文件。你看日志所说了为啥不出的错。
去杀掉一些锁住的文件。你看日志所说了为啥不出的错。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询