[
root@fir.ewall log]# rpm -.aq|grep dhcp ( 游戏 )
dhcp-3.0pl1-9
dh.cpcd-1.3.18pl8-13 外汇
dhcp-devel.-3.0pl1-9.
[root@firewal.l .log]# more /etc/dhcpd.conf 建材
d.dns-update-style interim;..
ignore c.lient-updates;.
subnet 192.1.68.0.0 netmask 255.2.55.255.0 {.
# --- default gat.eway电影
option routers 192.168..0.2.54;教育
.. option subnet-mask 255.255.255.0;
.option ni.s-domain "szbb.com";(广告)
option domai.n-name "sz.bb.com";[成人用品]
option domain-name.-servers 202.102.15.162,202.102.14.141;.虚拟主机
option .time-.offset -18000; # Eastern Standard Time学习
# option ntp-servers 19.2.168..1.1;电脑
# opt.ion netbios-na.me-servers 192.168.1.1; 汽车
# --- Sele.cts point-to-point node. (default is hybrid.). Don't change this unless.
# -- you understan.d Netbios very w.ell--- 印刷
# option net.bios.-node-type 2;.
. range dynamic-bootp 192..168.0.20 192.168.0.254;.
defaul.t-lease-ti.me 21600;电脑
max-l.ease-time 4320.0; 女人
host bil.lgates { (广告)
. ha.rdware ethernet 00:E0:4C:02:AE:69; <性病>
. fixed-address 192.168..0.110; 健康
}
}
subnet 192..168.2.0 netmask 255.25.5.255.0 {.
# --- default. gateway.
.. option routers 192.168.2.254;.
option subnet-ma.sk 255.255.25.5.0;投资
opti.on. nis-domain "szbb.com";投资
option domain-n.a.me "szbb.com";.
option domain-name-servers 202.102.15..162,202.1.02.14.141;--- 印刷
optio.n time-offset -1800.0; # Eastern Standard Time 建材
# opt.ion ntp-servers 192.168.1.1.; 建材
# option netbios-name-servers .192.168.1..1; 外汇
# --- Sel.ects point-to-point node. (default is hybrid). Don't ch.ange this unless--------------彩票
# -- you understand Netbios very wel..l 外汇
# o.p.tion netbios-node-type 2;服务器
range dynamic-bootp 192.1.68.2.20 192..168.2.253;外贸
. d.efault-lease-time 21600; 健康
max-lea.se-.time 43200; 电子
}
[r.oot@firewall. log]# ifconfig|more外贸
eth0 Link encap:Ethernet HWaddr 00:05:5D:28:4.D:70. 鲜花
inet addr:192.168.1.254 .Bcast:192.168.1.255 M.ask:255.255.255.0虚拟主机
UP BROADCAST RUNNING .MULTICAST MTU:1500 .Metric:1 建材
. RX pac.kets:1646 errors:0 dropped:0 overruns:0 frame:0电影
. TX packets:1271 errors:0 dropped:0 overruns:0 carrier:.0教育
collisi.ons:0 txqueuelen:100 .教育
. . RX bytes:829589 (810.1 Kb) TX bytes:150622 (147.0 Kb) 杀毒
. Interrupt:1.1 Base address:0x4000 婚庆
eth1 Link encap:Ethernet HWaddr 00:05:5D:28:4..7:70 健康
. inet addr:192.168.0.254 Bcast:192.168.0.255 Mask:255.255.2.55.0 美容
UP BROADCAST. RUNNING MULTICAST MTU:1500 .Metric:1.
R.X packe.ts:2038 errors:0 dropped:0 overruns:0 frame:0( 游戏 )
TX packets:1549. errors:0 dropped:0 overruns:0 carrier:.0.
collisions:0 txqueuel.e.n:100 .
. RX bytes:221842 (216.6 Kb) TX bytes:8.20889 (801.6 Kb).
. Interrupt:12 .Base address:0x6000 投资
eth1:0 Li.nk encap:Ethernet HWadd.r 00:05:5D:28:47:70 外贸
inet addr:1.92.168.2.254 Bcast:192..168.2.255 Mask:255.255.255.0.
UP. BR.OADCAST RUNNING MULTICAST MTU:1500 Metric:1健康
. . Interrupt:12 Base address:0x6000 投资
lo Link encap:Local .Loop.back ( 游戏 )
. inet addr:127.0.0.1 Mask:255.0.0..0( 游戏 )
UP LOOPBACK RUNNING MTU:16.436 M.etric:1 美容
RX packet.s:341 errors:0 droppe.d:0 overruns:0 frame:0 健康
TX packets:341 errors.:0 dropped:0 overruns.:0 carrier:0( 游戏 )
. co.llisions:0 txqueuelen:0 健康
RX bytes:25633 (2.5.0 .Kb) TX bytes:25633 (25.0 Kb) 健康
[
roo.t@firewa.ll log]# /etc/rc.d/init.d/dhcpd start (广告)
Starting dhcpd: Internet Software Consortium. DHCP Server V3..0pl1 杀毒
Cop.yrigh.t 1995-2001 Internet Software Consortium..
All righ.ts reserved.电脑
For info, please visit
http://www.isc.org/products/DHCP教育
Wrote 0 deleted h.ost decls to leases file...
Wr.ote 0 new dynamic host decls to lea.ses file. 杀毒
Wrote 1 lea.s.es to leases file. 汽车
Interface eth1 matches mult.iple shared netw.orks.
If you did not. get this software from ftp.isc.org,. please.
get the latest from f..tp.isc.org and install that before(广告)
r.equesting help. 婚庆
If yo.u did get this software from ftp.isc..org and have not.
yet .read the README, please read it before requesti.ng help.--- 印刷
If yo.u intend to. request help from the
dhcp-server@isc.org 杀毒
mailing list, please read the section o.n the READ.ME about外贸
submitting b.ug reports and. requests for help.服务器
Plea.se do not under any circ.umstances send requests for.
help directly. to the authors of t.his software - please 外汇
send them to the appropriate mai.l.ing list as described in教育
the R.EADME file.[成人用品]
exiting.
[FAILED]
eth0联"外网",eth1联"内网";由于局域网内电.脑台数多于一个网段,因而为了让DHC.P服务能够分配属于两个不同网段192.168.0.*和192.168.2.*的地址,我在eth1(192.168.0.0/24)上绑定了一个eth1:0(192.168.2..0/24).我是这样认.为的:默认情况下,/etc/rc.d/init.d/dhcpd 启动的为eth1段的分配.因而为了.能够分配192.168.2.*的地址.,我在eth1上绑定了一个eth1:0,位于192.168.2.0/24网段;服务器
但重启后,仍然提示上述错误:Interface eth1 matches multiple shared .net.works..
如果按照上述理解,一个网卡上虽然可以绑定不同网段的地址,但分配地址却只能限定在一个网段吗?因为在/etc/rc.d/init.d/dhcpd中默认为daemon ./usr/sbin/dhcpd eth1 ${.DHC.PDARGS} 外汇
而不为/usr/sbin/dhcpd eth1:.0<性病>
请问应该如何解决这个问题?
另外,如果可以解决,19.2.168.0.*和19.2.168.2.*分配的优先级如何?.