您的位置:首页 > 电脑网络 > 电脑配件 > CentOS dhcp 服务器 支持多VlanIP网段配置

CentOS dhcp 服务器 支持多VlanIP网段配置

luyued 发布于 2011-04-16 17:55   浏览 N 次  

ddns-update-style interim;
ignore client-updates;

BT4破解无线网络密码教程

subnet 10.1.1.0 netmask 255.255.255.0 {


# --- default gateway
option routers 10.1.1.1;
option subnet-mask 255.255.255.0;

# option nis-domain "domain.org";
# option domain-name "domain.org";
option domain-name-servers 202.106.0.20;

option time-offset -18000; # Eastern Standard Time

range dynamic-bootp 10.1.1.125 10.1.1.126;
default-lease-time 21600;
max-lease-time 43200;
}ubuntu 11.04 安装

subnet 10.1.100.0 netmask 255.255.255.0 {

# --- default gateway
option routers 10.1.100.1;
option subnet-mask 255.255.255.0;

# option nis-domain "domain.org";
option domain-name "automuseum.gov.cn";
option domain-name-servers 202.106.0.20;

option time-offset -18000; # Eastern Standard Time

range dynamic-bootp 10.1.100.20 10.1.100.254;
default-lease-time 21600;
max-lease-time 43200;
}Ubuntu 输入法安装
subnet 10.1.50.0 netmask 255.255.255.0 {
# --- default gateway
option routers 10.1.50.1;
option subnet-mask 255.255.255.0;

# option nis-domain "domain.org";
option domain-name "automuseum.gov.cn";
option domain-name-servers 202.106.0.20;

option time-offset -18000; # Eastern Standard Time

range dynamic-bootp 10.1.50.20 10.1.50.254;
default-lease-time 21600;
max-lease-time 43200;
}

注:10.1.1.0是dhcp server所在的网段,但我并不需要dhcp服务,可是不加这一条,dhcp服务器就启动失败,不知道是什么原因?不过以上的配置测试确实成功了!

Linux 论坛 思科论坛


图文资讯
广告赞助商