2010年8月16日 星期一

DHCP relay

sudo apt-get install dhcp3-relay
之後照著指示安裝
 
輸入主要DHCP server的ip
 
 
 
 
 
 
 
 
 
 
 
 
 
 
輸入對內及對網的網卡(依照順序,內>外,中間要空格)
  
額外選項(預設空白即可)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
以上設定會存在/etc/default/dhcp3-relay
編輯這個檔案就可以在做修改 
$sudo nano /etc/default/dhcp3-relay
# Defaults for dhcp3-relay initscript
# sourced by /etc/init.d/dhcp3-relay
# installed at /etc/default/dhcp3-relay by the maintainer scripts

#
# This is a POSIX shell fragment
#

# What servers should the DHCP relay forward requests to?
SERVERS="172.30.100.2"

# On what interfaces should the DHCP relay (dhrelay) serve DHCP requests?
INTERFACES="eth0 eth1"

# Additional options that are passed to the DHCP relay daemon?
OPTIONS=""

沒有留言:

張貼留言