Chinaunix首页 | 论坛 | 博客
  • 博客访问: 215840
  • 博文数量: 71
  • 博客积分: 481
  • 博客等级: 二等列兵
  • 技术积分: 530
  • 用 户 组: 普通用户
  • 注册时间: 2012-02-24 09:07
文章分类

全部博文(71)

文章存档

2012年(71)

分类:

2012-05-31 09:44:21



今天设置了dhcpd.conf 两个机房一台服务器双的方式,设置成功! 文件和记录如下,该文件已上传到126邮箱。

[root@yeger etc]# cat /etc/dhcpd.conf
ddns-update-style interim;
ignore client-updates;

subnet 192.168.10.0 netmask 255.255.255.0 {

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

option nis-domain               "domain.org";
option domain-name              "domain.org";
option domain-name-servers      192.168.10.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 192.168.10.100 192.168.10.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 00:10:5C:CA:AE:2C;
fixed-address 192.168.10.234;
}
host 60 {
next-server marvin.redhat.com;
hardware ethernet 00:11:5B:52:D6:F1;
fixed-address 192.168.10.60;
}
host 59 {
next-server marvin.redhat.com;
hardware ethernet 00:11:5B:22:5A:E2;
fixed-address 192.168.10.59;
}
host 58 {
next-server marvin.redhat.com;
hardware ethernet 00:11:5B:22:55:66;
fixed-address 192.168.10.58;
}
host 57 {
next-server marvin.redhat.com;
hardware ethernet 00:11:5B:25:8F:45;
fixed-address 192.168.10.57;
}
}


subnet 192.168.4.0 netmask 255.255.255.0 {

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

option nis-domain               "sc.com";
option domain-name              "sc.com";
option domain-name-servers      192.168.4.1;

option time-offset              -18000; # Eastern Standard Time
#       option ntp-servers              192.168.4.1;
#       option netbios-name-servers     192.168.4.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.4.100 192.168.4.200;
default-lease-time 21600;
max-lease-time 43200;

# we want the nameserver to appear at a fixed address
host sc12 {
next-server marvin.redhat.com;
hardware ethernet 00:13:D3:2F:05:0C;
fixed-address 192.168.4.12;
}
host sc11 {
next-server marvin.redhat.com;
hardware ethernet 00:13:D3:2F:04:F4;
}
}

[root@yeger etc]#

[root@yeger etc]# cat /var/log/messages


Jan 13 14:27:11 yeger dhcpd: Internet Systems Consortium DHCP Server V3.0.5-RedHat
Jan 13 14:27:11 yeger dhcpd: Copyright 2004-2006 Internet Systems Consortium.
Jan 13 14:27:11 yeger dhcpd: All rights reserved.
Jan 13 14:27:11 yeger dhcpd: For info, please visit
Jan 13 14:27:11 yeger dhcpd: WARNING: Host declarations are global. They are not limited to the scope you declared them in.
Jan 13 14:27:11 yeger dhcpd: Wrote 0 deleted host decls to leases file.
Jan 13 14:27:11 yeger dhcpd: Wrote 0 new dynamic host decls to leases file.
Jan 13 14:27:11 yeger dhcpd: Wrote 5 leases to leases file.
Jan 13 14:27:11 yeger dhcpd: Listening on LPF/eth0/00:13:d3:27:9f:80/192.168.10/24
Jan 13 14:27:11 yeger dhcpd: Sending on   LPF/eth0/00:13:d3:27:9f:80/192.168.10/24

Jan 13 14:27:11 yeger dhcpd:
Jan 13 14:27:11 yeger dhcpd: No subnet declaration for virbr0 (192.168.122.1).
Jan 13 14:27:11 yeger dhcpd: ** Ignoring requests on virbr0. If this is not what
Jan 13 14:27:11 yeger dhcpd:    you want, please write a subnet declaration
Jan 13 14:27:11 yeger dhcpd:    in your dhcpd.conf file for the network segment
Jan 13 14:27:11 yeger dhcpd:    to which interface virbr0 is attached. **
Jan 13 14:27:11 yeger dhcpd:
Jan 13 14:27:11 yeger dhcpd: Listening on LPF/eth1/00:e0:4c:a1:9c:8f/192.168.4/24
Jan 13 14:27:11 yeger dhcpd: Sending on   LPF/eth1/00:e0:4c:a1:9c:8f/192.168.4/24

Jan 13 14:27:11 yeger dhcpd: Sending on   Socket/fallback/fallback-net
Jan 13 14:28:09 yeger dhcpd: uid lease 192.168.10.200 for client 00:11:5b:52:d6:f1 is duplicate on 192.168.10/24
Jan 13 14:28:10 yeger dhcpd: marvin.redhat.com: no A record associated with address
Jan 13 14:28:10 yeger dhcpd: DHCPDISCOVER from 00:11:5b:52:d6:f1 via eth0
Jan 13 14:28:10 yeger dhcpd: DHCPOFFER on 192.168.10.60 to 00:11:5b:52:d6:f1 via eth0
Jan 13 14:28:10 yeger dhcpd: uid lease 192.168.10.200 for client 00:11:5b:52:d6:f1 is duplicate on 192.168.10/24
Jan 13 14:28:10 yeger dhcpd: DHCPDISCOVER发现 from 00:11:5b:52:d6:f1 via eth0
Jan 13 14:28:10 yeger dhcpd: DHCPOFFER 提供on 192.168.10.60 to 00:11:5b:52:d6:f1 via eth0
Jan 13 14:28:10 yeger dhcpd: uid lease 192.168.10.200 for client 00:11:5b:52:d6:f1 is duplicate on 192.168.10/24
Jan 13 14:28:10 yeger dhcpd: DHCPREQUEST请求 for 192.168.10.60 (192.168.10.238) from 00:11:5b:52:d6:f1 via eth0
Jan 13 14:28:10 yeger dhcpd: DHCPACK 确认on 192.168.10.60 to 00:11:5b:52:d6:f1 via eth0
Jan 13 14:28:38 yeger dhcpd: DHCPDISCOVER from 00:11:5b:22:62:ca via eth0
Jan 13 14:28:39 yeger dhcpd: DHCPOFFER on 192.168.10.197 to 00:11:5b:22:62:ca (FC51) via eth0
Jan 13 14:28:42 yeger dhcpd: DHCPDISCOVER from 00:11:5b:22:62:ca (FC51) via eth0
Jan 13 14:28:42 yeger dhcpd: DHCPOFFER on 192.168.10.197 to 00:11:5b:22:62:ca (FC51) via eth0
Jan 13 14:28:51 yeger dhcpd: DHCPDISCOVER from 00:11:5b:22:62:ca (FC51) via eth0
Jan 13 14:28:51 yeger dhcpd: DHCPOFFER on 192.168.10.197 to 00:11:5b:22:62:ca (FC51) via eth0
Jan 13 14:28:54 yeger dhcpd: Unable to add forward map from FC51.domain.org to 192.168.10.197: timed out
Jan 13 14:28:54 yeger dhcpd: DHCPREQUEST for 192.168.10.197 (192.168.10.238) from 00:11:5b:22:62:ca (FC51) via eth0
Jan 13 14:28:54 yeger dhcpd: DHCPACK on 192.168.10.197 to 00:11:5b:22:62:ca (FC51) via eth0
Jan 13 14:28:54 yeger dhcpd: DHCPDISCOVER from 00:11:5b:22:63:76 via eth0
Jan 13 14:28:55 yeger dhcpd: DHCPOFFER on 192.168.10.196 to 00:11:5b:22:63:76 (FC52) via eth0
Jan 13 14:29:01 yeger dhcpd: DHCPDISCOVER from 00:11:5b:22:63:76 (FC52) via eth0
Jan 13 14:29:01 yeger dhcpd: DHCPOFFER on 192.168.10.196 to 00:11:5b:22:63:76 (FC52) via eth0
Jan 13 14:29:03 yeger dhcpd: Unable to add forward map from FC52.domain.org to 192.168.10.196: timed out
Jan 13 14:29:03 yeger dhcpd: DHCPREQUEST for 192.168.10.196 (192.168.10.238) from 00:11:5b:22:63:76 (FC52) via eth0
Jan 13 14:29:03 yeger dhcpd: DHCPACK on 192.168.10.196 to 00:11:5b:22:63:76 (FC52) via eth0
Jan 13 14:29:10 yeger dhcpd: marvin.redhat.com: no A record associated with address
Jan 13 14:29:10 yeger dhcpd: DHCPREQUEST for 192.168.10.234 from 00:10:5c:ca:ae:2c via eth0
Jan 13 14:29:10 yeger dhcpd: DHCPACK on 192.168.10.234 to 00:10:5c:ca:ae:2c via eth0
Jan 13 14:29:40 yeger dhcpd: marvin.redhat.com: no A record associated with address
Jan 13 14:29:40 yeger dhcpd: DHCPDISCOVER from 00:13:d3:2f:04:f4 (SC12) via eth1
Jan 13 14:29:40 yeger dhcpd: DHCPOFFER on 192.168.4.200 to 00:13:d3:2f:04:f4 (SC12) via eth1
Jan 13 14:29:40 yeger dhcpd: DHCPDISCOVER from 00:13:d3:2f:04:f4 (SC12) via eth1
Jan 13 14:29:40 yeger dhcpd: DHCPOFFER on 192.168.4.200 to 00:13:d3:2f:04:f4 (SC12) via eth1
Jan 13 14:29:42 yeger dhcpd: DHCPDISCOVER from 00:13:d3:2f:04:f4 (SC12) via eth1
Jan 13 14:29:42 yeger dhcpd: DHCPOFFER on 192.168.4.200 to 00:13:d3:2f:04:f4 (SC12) via eth1
Jan 13 14:29:49 yeger dhcpd: DHCPDISCOVER from 00:13:d3:2f:04:f4 (SC12) via eth1
Jan 13 14:29:49 yeger dhcpd: DHCPOFFER on 192.168.4.200 to 00:13:d3:2f:04:f4 (SC12) via eth1
Jan 13 14:29:51 yeger dhcpd: Unable to add forward map from SC12.sc.com to 192.168.4.200: timed out
Jan 13 14:29:51 yeger dhcpd: DHCPREQUEST for 192.168.4.200 (192.168.4.223) from 00:13:d3:2f:04:f4 (SC12) via eth1
Jan 13 14:29:51 yeger dhcpd: DHCPACK on 192.168.4.200 to 00:13:d3:2f:04:f4 (SC12) via eth1
Jan 13 14:29:53 yeger dhcpd: marvin.redhat.com: no A record associated with address
Jan 13 14:29:53 yeger dhcpd: DHCPDISCOVER from 00:13:d3:2f:05:0c via eth1
Jan 13 14:29:53 yeger dhcpd: DHCPOFFER on 192.168.4.12 to 00:13:d3:2f:05:0c via eth1
Jan 13 14:29:53 yeger dhcpd: DHCPDISCOVER from 00:13:d3:2f:05:0c via eth1
Jan 13 14:29:53 yeger dhcpd: DHCPOFFER on 192.168.4.12 to 00:13:d3:2f:05:0c via eth1
Jan 13 14:29:56 yeger dhcpd: DHCPDISCOVER from 00:13:d3:2f:05:0c via eth1
Jan 13 14:29:56 yeger dhcpd: DHCPOFFER on 192.168.4.12 to 00:13:d3:2f:05:0c via eth1
Jan 13 14:30:04 yeger dhcpd: DHCPDISCOVER from 00:13:d3:2f:05:0c via eth1
Jan 13 14:30:04 yeger dhcpd: DHCPOFFER on 192.168.4.12 to 00:13:d3:2f:05:0c via eth1
Jan 13 14:30:04 yeger dhcpd: DHCPREQUEST for 192.168.4.12 (192.168.4.223) from 00:13:d3:2f:05:0c via eth1
Jan 13 14:30:04 yeger dhcpd: DHCPACK on 192.168.4.12 to 00:13:d3:2f:05:0c via eth1
Jan 13 14:30:10 yeger dhcpd: DHCPDISCOVER from 00:13:d3:2e:e2:8a (SC10) via eth1
Jan 13 14:30:11 yeger dhcpd: DHCPOFFER on 192.168.4.199 to 00:13:d3:2e:e2:8a (SC10) via eth1
Jan 13 14:30:14 yeger dhcpd: DHCPDISCOVER from 00:13:d3:2e:e2:8a (SC10) via eth1
Jan 13 14:30:14 yeger dhcpd: DHCPOFFER on 192.168.4.199 to 00:13:d3:2e:e2:8a (SC10) via eth1
Jan 13 14:30:22 yeger dhcpd: DHCPDISCOVER from 00:13:d3:2e:e2:8a (SC10) via eth1
Jan 13 14:30:22 yeger dhcpd: DHCPOFFER on 192.168.4.199 to 00:13:d3:2e:e2:8a (SC10) via eth1
Jan 13 14:30:23 yeger dhcpd: Unable to add forward map from SC10.sc.com to 192.168.4.199: timed out
Jan 13 14:30:23 yeger dhcpd: DHCPREQUEST for 192.168.4.199 (192.168.4.223) from 00:13:d3:2e:e2:8a (SC10) via eth1
Jan 13 14:30:23 yeger dhcpd: DHCPACK on 192.168.4.199 to 00:13:d3:2e:e2:8a (SC10) via eth1
阅读(3155) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~