step1. # vim /etc/init.d/dhcpd
step2. 將daemon --pidfile=$pidfile $exec $DHCPDARGS 2>/dev/null 改成 daemon --pidfile=$pidfile $exec eth0 $DHCPDARGS 2>/dev/null
(主要是加上了eth0, 這樣一來,DHCP server在派送ip只會對這個interface(eth0)做,而不會對eth1做。這樣做的理由為假設兩張網卡為不同網段,這樣就可以避掉eth1這個網段的其他電腦來要ip)
step3. # service dhcpd restart
資料來源:
1. http://go-linux.blogspot.com/2006/12/dhcp-server.html
2. http://www.csie.nctu.edu.tw/~tsaiwn/course/introcs/history/linux/linux.tnc.edu.tw/techdoc/dhcp.htm
全站熱搜
留言列表