标签:
sudo apt-get install dhcp3-server
* check syslog for diagnostics.
注意,这个星号:他是红色的。
接着,会提示启动失败。
不用管它,我们已经安装成功了;但是还没有配置他,所以无法启动。
首先,运行ifconfig(Ubuntu)
/sbin/ifconfig
at91@ubuntu:~$ /sbin/ifconfig eth0 Link encap:Ethernet HWaddr 00:0c:29:97:e5:30 inet addr:192.168.63.128 Bcast:192.168.63.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fe97:e530/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:72 errors:0 dropped:0 overruns:0 frame:0 TX packets:94 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:22481 (22.4 KB) TX bytes:20325 (20.3 KB) Interrupt:18 Base address:0x2000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:124 errors:0 dropped:0 overruns:0 frame:0 TX packets:124 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:9956 (9.9 KB) TX bytes:9956 (9.9 KB)
sudo gedit /etc/dhcp3/dhcpd.conf
subnet 192.168.63.0 netmask 255.255.255.0 { range 192.168.63.2 192.168.63.254; option routers 192.168.63.1; }
保存退出。
sudo /etc/init.d/dhcp3-server start
参考文章:
1. 《Starting DHCP server: dhcpd3check syslog for diagnostics》
标签:
原文地址:http://blog.csdn.net/xiaobin_hlj80/article/details/43678289