- 论坛徽章:
- 0
|
eth0 Link encap:Ethernet HWaddr 52:54:AB:38:5E:82
inet addr:192.168.111.1 Bcast:192.168.111.1 Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:1320 (1.2 Kb)
Interrupt:9 Base address:0x7000
自设192.168.111.1网关
eth1 Link encap:Ethernet HWaddr 00:88:CC:21:25:29
inet addr:192.168.0.251 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2747 errors:0 dropped:0 overruns:0 frame:0
TX packets:1132 errors:0 dropped:0 overruns:0 carrier:0
collisions:6 txqueuelen:100
RX bytes:231467 (226.0 Kb) TX bytes:142151 (138.8 Kb)
Interrupt:5 Base address:0x240
接192.168.0.201(网关) 可以上网
路由
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.111.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.111.1 0.0.0.0 UG 0 0 0 eth0
0.0.0.0 192.168.0.201 0.0.0.0 UG 0 0 0 eth1
DHCPD.CONF设置如下
ddns-update-style
default-lease-time 1200;
max-lease-time 87600;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.111.255;
option routers 192.168.111.1;
option domain-name-servers 202.96.128.110,202.96.128.68;
option domain-name "gdcdtp.net";
subnet 192.168.111.0 netmask 255.255.255.0
{
range 192.168.111.10 192.168.111.100;
range 192.168.111.150 192.168.111.200;
启动
/etc/init.d/dhcpd start
Starting dhcpd: Internet Software Consortium DHCP Server V3.0pl1
Copyright 1995-2001 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
/etc/dhcpd.conf line 2: unknown value
default-lease-time
^
/etc/dhcpd.conf line 2: expecting a parameter or declaration
default-lease-time 1200;
^
Configuration file errors encountered -- exiting
If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.
If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.
Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.
exiting.
[FAILED]
上面为出错信息
dhcpd.conf dhcp.leases
都在/etc 下
请问如果解决 出错的问题 |
|