- 论坛徽章:
- 0
|
这是试题上的.两块网卡.一块是10.0.5.11.一块是10.0.1.11
不做超级作用域.但是要做多个作用域.
我是直接在/etc/dhcpd.conf 中写入修改一个作用域..然后复制好多行.修改下一个IP作用域.但是这样一直启动不起来.单独一个作用域可以的.就是去掉一个.
配置如下,请问我这样做多作用域对吗?:- ddns-update-style interim;
- ignore client-updates;
- subnet 10.0.5.0 netmask 255.255.255.0 {
- {
- # --- default gateway
- option routers 10.0.5.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;
- 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 10.0.5.100 10.0.5.200;
- default-lease-time 21600;
- max-lease-time 43200;
- # we want the nameserver to appear at a fixed address
- host ns {
- {ext-server marvin.redhat.com;
- hardware ethernet 12:34:56:78:AB:CD;
- fixed-address 207.175.42.254;
- }
- } }
- }ubnet 10.0.1.0 netmask 255.255.255.0 {
- {
- # --- default gateway
- option routers 10.0.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;
- 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;
- "/etc/dhcpd.conf" 59L, 1629C 21,2-9 é¡¶ç« range dynamic-bootp 10.0.1.100 10.0.1.200;
- 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;
- }
- }
-
复制代码 如有回答.不胜感激 |
|