dhcp3的双网卡配置

仅供存放个人的配置文件,不要在本版发问。
回复
头像
oneleaf
论坛管理员
帖子: 10454
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

dhcp3的双网卡配置

#1

帖子 oneleaf » 2006-09-04 14:03

$ cat /etc/dhcp3/dhcpd.conf

代码: 全选

ddns-update-style none;
option domain-name "******";
default-lease-time 60000;
max-lease-time 720000;
subnet 192.168.2.0 netmask 255.255.255.0 {
  range 192.168.2.10 192.168.2.250;
  option routers 192.168.2.1;
  option domain-name-servers 192.168.2.1, 202.96.128.143, 211.95.193.97;
  filename "/ltsp/pxelinux.0";
  option root-path "/opt/ltsp/i386";
  host user1 {
    hardware ethernet **:**:**:**:**:**;
    fixed-address 192.168.2.2;
  }
}

subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.10 192.168.1.250;
  option routers 192.168.1.1;
  option domain-name-servers 192.168.1.1, 202.96.128.143, 211.95.193.97;
  filename "/ltsp/pxelinux.0";
  option root-path "/opt/ltsp/i386";
  host user2 {
    hardware ethernet **:**:**:**:**:**;
    fixed-address 192.168.1.2;
  }
}
authoritative;
log-facility local7;
$ cat /etc/default/dhcp3-server

代码: 全选

INTERFACES="eth0 eth1"
上次由 oneleaf 在 2006-09-04 14:15,总共编辑 4 次。
头像
oneleaf
论坛管理员
帖子: 10454
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#2

帖子 oneleaf » 2006-09-04 14:09

服务器的IP是192.168.1.1 和 192.168.2.1 两个IP,支持两个不同的网段 192.168.1.0 192.168.2.0
支持网卡远程启动ltsp。 下面是dhcp3 服务的监听网卡。
回复