|
大家好 我是新来的,请大家多多关照!
我以FC8 为例子
假如我有2张网卡
第一张是:192.168.100.1 第二张是:192.168.1.2 (我来做一个超级作用域)
ddns-update-style interim;
ignore client-updates;
shared-network hello (这个是做超级作用域的必要){ (和最下面的括号对应)
subnet 192.168.100.0(这里是网段) netmask 255.255.255.0(这是子网掩码) {
# --- default gateway
option routers 192.168.100.1;(这是路由)
option subnet-mask 255.255.255.0;
option nis-domain "domain.org";
option domain-name "domain.org";
option domain-name-servers 192.168.1.1;(这是DNS 可以自己修改)
option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;
range dynamic-bootp 192.168.100.128 192.168.100.254;(这里就是IP池啦)
default-lease-time 21600;
max-lease-time 43200;
# we want the nameserver to appear at a fixed address
host user(就是这里) {
next-server marvin.redhat.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 207.175.42.254;
}
}
(如果是超级作用域上面这个地方就要该名字了)
subnet 192.168.1.0(这里是网段) netmask 255.255.255.0(这是子网掩码) {
# --- default gateway
option routers 192.168.1.1;(这是路由)
option subnet-mask 255.255.255.0;
option nis-domain "domain.org";
option domain-name "domain.org";
option domain-name-servers 192.168.1.1;(这是DNS 可以自己修改)
option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;
range dynamic-bootp 192.168.1.128 192.168.1.254;(这里就是IP池啦)
default-lease-time 21600;
max-lease-time 43200;
# we want the nameserver to appear at a fixed address
host ns {
next-server marvin.redhat.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 207.175.42.254;
}
}
}
(到这里就结束了~我是菜鸟~请大家多多关照) |
|