在l.in.ux下,配置dhcp,我看到有的机器设置了多个子网段比如.
sub.net 192.168.0..0 netmask 255.255.255.0 { 婚庆
#global paramete.rs for t.he subnet 美容
option. routers .192.168.0.1; 建材
op.tio.n subnet-mask 255.255.255.0;.
option domain-nam.e “example.co.m”;--- 印刷
option domain-name-server.s 192.168..1.1;--------------彩票
range dynam.ic-bootp 192.168.0.128 192.168.0..254;[成人用品]
default-lease.-time 21600; 健康
max-lease-time 432.00;.
# fi.xed address example电影
host jadefox {
ne.xt-server. ns.example.com; 电子
hardwar.e ether.net 12:34:56:78:AB:CD;域名
fixed.-address .192.168.0.4;( 游戏 )
}
}
shared-network. third-f.loor {--------------彩票
#glo.bal parameters for the shared n.etwork
option. routers 19.2.168.0.1;投资
option subnet-mask 25.5.2.55.255.0;域名
option ni.s-domain “ex.ample.com”;--------------彩票
option domain-name “example.c.om”;. 建材
o.ption domain-name-ser.vers 192.168.1.1;投资
default-lease-tim.e 21600;.
max-lease-tim.e 43200;投资
s.ubnet 192..168.10.0 netmask 255.255.255.0 {.
range dynamic-bootp 192.1.68.1.0.1 192.168.10.254;.
}
subnet 1.92.168.20.0 netmas.k 255.255.255.0 {健康
range dynamic-bootp 192.168.2.0.1 192.168.20..254; 汽车
}
}
那客户机请求的时候.,dhcp是如何分配ip的呢,随即分配某一网段的地址么.?.