rc.conf
Код: Выделить всё
hostname="Dhcp Server"
keymap="ru.koi8-r.kbd"
ifconfig_em0="172.21.1.9 netmask 255.255.255.0"
defaultrouter="172.21.1.1"
sshd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
#### CONFIG
samba_enable="YES"
#### vlan interfaces & DHCP
cloned_interfaces="vlan20 vlan30 vlan40 vlan50 vlan60 vlan70 vlan90 vlan100 vlan110 vlan120"
dhcpd_conf="/usr/local/etc/dhcpd.conf"
dhcpd_enable="YES"
#dhcpd_flags="em0"
ifconfig_vlan20="inet 172.21.2.2 netmask 255.255.255.0 vlan 20 vlandev em1"
ifconfig_vlan30="inet 172.21.3.2 netmask 255.255.255.0 vlan 30 vlandev em1"
ifconfig_vlan40="inet 172.21.4.2 netmask 255.255.255.0 vlan 40 vlandev em1"
ifconfig_vlan50="inet 172.21.5.2 netmask 255.255.255.0 vlan 50 vlandev em1"
ifconfig_vlan60="inet 172.21.6.2 netmask 255.255.255.0 vlan 60 vlandev em1"
ifconfig_vlan70="inet 172.21.7.2 netmask 255.255.255.0 vlan 70 vlandev em1"
ifconfig_vlan80="inet 172.21.8.2 netmask 255.255.255.0 vlan 80 vlandev em1"
ifconfig_vlan90="inet 172.21.9.2 netmask 255.255.255.0 vlan 90 vlandev em1"
ifconfig_vlan100="inet 172.21.10.2 netmask 255.255.255.0 vlan 100 vlandev em1"
ifconfig_vlan110="inet 172.21.11.2 netmask 255.255.255.0 vlan 110 vlandev em1"
ifconfig_vlan120="inet 172.21.12.2 netmask 255.255.255.0 vlan 120 vlandev em1"
ifconfig_vlan140="inet 172.21.14.2 netmask 255.255.255.0 vlan 140 vlandev em1"
dhcpd_ifaces="vlan20 vlan30 vlan40 vlan50 vlan60 vlan70 vlan90 vlan100 vlan110 vlan120 vlan140"
#dhcpd_ifaces="em0"
Код: Выделить всё
### DHCPD.CONF
default-lease-time 604800;
max-lease-time 604800;
min-lease-time 604800;
authoritative;
#### MAIN DHCP LAN CONF
subnet 172.21.14.0 netmask 255.255.255.0 {
range 172.21.14.10 172.21.14.195;
range 172.21.14.205 172.21.14.250;
option routers 172.21.14.200;
option subnet-mask 255.255.255.0;
option netbios-name-servers 172.21.1.6;
option netbios-dd-server 172.21.1.6;
option netbios-node-type 8;
option broadcast-address 172.21.14.255;
option domain-name-servers 172.21.1.2;
option domain-name "***";
option ntp-servers 172.21.1.2;
#### VLANS Config
### Vlan 20 (ПУОПЧОПЕ ЪДБОЙЕ)
subnet 172.21.2.0 netmask 255.255.255.0 {
range 172.21.2.10 172.21.2.210;
option routers 172.21.2.1;
option subnet-mask 255.255.255.0;
option broadcast-address 172.21.2.255;
option domain-name-servers 172.21.1.2;
option domain-name "***";
option netbios-name-servers 172.21.1.6;
}
### Vlan 30 (РТЙУФТПКЛБ) 125-210 IP ПВПТХДПЧБОЙЕ УЧСЪЙУФПЧ
subnet 172.21.3.0 netmask 255.255.255.0 {
range 172.21.3.10 172.21.3.125;
option routers 172.21.3.1;
option subnet-mask 255.255.255.0;
option broadcast-address 172.21.3.255;
option domain-name-servers 172.21.1.2;
option domain-name "***";
option netbios-name-servers 172.21.1.6;
}
### Vlan 40 (рТЙУФТПКЛБ 2)
subnet 172.21.4.0 netmask 255.255.255.0 {
range 172.21.4.10 172.21.4.210;
option routers 172.21.4.1;
option subnet-mask 255.255.255.0;
option broadcast-address 172.21.4.255;
option domain-name-servers 172.21.1.2;
option domain-name "***";
option netbios-name-servers 172.21.1.6;
}
### Vlan 50
subnet 172.21.5.0 netmask 255.255.255.0 {
range 172.21.5.10 172.21.5.223;
option routers 172.21.5.1;
option subnet-mask 255.255.255.0;
option broadcast-address 172.21.5.255;
option domain-name-servers 172.21.1.2;
option domain-name "***";
option netbios-name-servers 172.21.1.6;
}
### Vlan 60
subnet 172.21.6.0 netmask 255.255.255.0 {
range 172.21.2.10 172.21.6.30;
option routers 172.21.6.1;
option subnet-mask 255.255.255.0;
option broadcast-address 172.21.6.255;
option domain-name-servers 172.21.1.2;
option domain-name "***";
option netbios-name-servers 172.21.1.6;
}
### Vlan 70 (зПТПДУЛПК тьу)
subnet 172.21.7.0 netmask 255.255.255.0 {
range 172.21.7.10 172.21.7.50;
option routers 172.21.7.1;
option subnet-mask 255.255.255.0;
option broadcast-address 172.21.7.255;
option domain-name-servers 172.21.1.2;
option domain-name "***";
option netbios-name-servers 172.21.1.6;
}
### Vlan 80 (уЕЧЕТОЩК тьу)
subnet 172.21.8.0 netmask 255.255.255.0 {
range 172.21.8.10 172.21.8.50;
option routers 172.21.8.1;
option subnet-mask 255.255.255.0;
option broadcast-address 172.21.8.255;
option domain-name-servers 172.21.1.2;
option domain-name "***";
option netbios-name-servers 172.21.1.6;
}
### Vlan 90 (аЦОЩК тьу)
subnet 172.21.9.0 netmask 255.255.255.0 {
range 172.21.9.10 172.21.9.50;
option routers 172.21.9.1;
option subnet-mask 255.255.255.0;
option broadcast-address 172.21.9.255;
option domain-name-servers 172.21.1.2;
option domain-name "***";
option netbios-name-servers 172.21.1.6;
}
### Vlan 100 (мБЪПЧУЛЙК тьу)
subnet 172.21.10.0 netmask 255.255.255.0 {
range 172.21.10.10 172.21.10.50;
option routers 172.21.10.1;
option subnet-mask 255.255.255.0;
option broadcast-address 172.21.10.255;
option domain-name-servers 172.21.1.2;
option domain-name "***u";
option netbios-name-servers 172.21.1.6;
}
### Vlan 110 (чСЪЕНУЛЙК тьу)
subnet 172.21.11.0 netmask 255.255.255.0 {
range 172.21.11.10 172.21.11.50;
option routers 172.21.11.1;
option subnet-mask 255.255.255.0;
option broadcast-address 172.21.11.255;
option domain-name-servers 172.21.1.2;
option domain-name "***";
option netbios-name-servers 172.21.1.6;
}
### Vlan 120 (вЙЛЙОУЛЙК тьу)
subnet 172.21.12.0 netmask 255.255.255.0 {
range 172.21.12.10 172.21.12.50;
option routers 172.21.12.1;
option subnet-mask 255.255.255.0;
option broadcast-address 172.21.12.255;
option domain-name-servers 172.21.1.2;
option domain-name "**";
option netbios-name-servers 172.21.1.6;
}
#### MAC BIND CONF
### VLAN20 BIND
host prin_buh {
hardware ethernet 00:1e:8f:b1:95:3e;
fixed-address 172.21.2.211;
}
host prin_steuchet {
hardware ethernet 00:23:7d:73:7c:97;
fixed-address 172.21.2.212;
}
host ebir_prn {
hardware ethernet 00:25:b3:fa:d5:6e;
fixed-address 172.21.2.214;
}
host spr_prn3 {
hardware ethernet 00:1e:8f:b1:95:78;
fixed-address 172.21.2.213;
}
host it_print {
hardware ethernet 00:1e:8f:b0:f2:27;
fixed-address 172.21.2.215;
}
host urist_print {
hardware ethernet 00:1e:8f:bd:fc:8f;
fixed-address 172.21.2.216;
}
host oup_prn1 {
hardware ethernet 00:1e:8f:b0:c9:ca;
fixed-address 172.21.2.224;
}
host spr_prn1 {
hardware ethernet 00:1E:0B:0B:64:E6;
fixed-address 172.21.2.225;
}
host sui_prn1 {
hardware ethernet 00:25:b3:f5:f5:cf;
fixed-address 172.21.2.226;
}
host ste_prn {
hardware ethernet 00:17:a4:95:d4:d2;
fixed-address 172.21.2.227;
}
host spr_prn2 {
hardware ethernet 00:1e:8f:b1:95:15;
fixed-address 172.21.2.229;
}
host peo_prn1 {
hardware ethernet 00:1e:8f:b1:94:31;
fixed-address 172.21.2.228;
}
host pts_prn1 {
hardware ethernet 00:21:5a:84:5d:36;
fixed-address 172.21.2.230;
}
host pts_prn2 {
hardware ethernet 00:21:5A:DF:1D:0D;
fixed-address 172.21.2.231;
}
host pts_prn4 {
hardware ethernet 00:1F:29:2D:6E:34;
fixed-address 172.21.2.232;
}
host pts_prn3 {
hardware ethernet 00:1F:29:31:01:7C;
fixed-address 172.21.2.233;
}
host fin_prn1 {
hardware ethernet 00:25:B3:FA:A5:6A;
fixed-address 172.21.2.234;
}
host pr_prn1 {
hardware ethernet 00:00:85:A4:DF:C5;
fixed-address 172.21.2.235;
}
host it_prn { #РЕТЕНЕУФЙМЙ 401
hardware ethernet 00:17:a4:95:56:69;
fixed-address 172.21.2.246;
}
host omto_prn1 {
hardware ethernet 00:23:7d:80:62:a1;
fixed-address 172.21.2.238;
}
host buh_prn3 {
hardware ethernet 00:11:0A:C0:8E:75;
fixed-address 172.21.2.239;
}
host peo_prn2 {
hardware ethernet 00:23:7d:7f:33:3c;
fixed-address 172.21.2.240;
}
host sui_prn2 {
hardware ethernet 00:23:7d:77:8a:a6;
fixed-address 172.21.2.241;
}
host sui_prn3 {
hardware ethernet 00:23:7d:73:ab:99;
fixed-address 172.21.2.242;
}
host sui_prn4 {
hardware ethernet 00:00:48:42:DD:47;
fixed-address 172.21.2.243;
}
host buh_4et {
hardware ethernet 00:23:7d:73:4c:74;
fixed-address 172.21.2.244;
}
host pr_prn2 {
hardware ethernet 00:00:85:a4:df:c3;
fixed-address 172.21.2.245;
}
host kue_prn {
hardware ethernet 00:17:08:83:46:17;
fixed-address 172.21.2.251;
}
host Secr_prn {
hardware ethernet 00:23:7d:80:59:ea;
fixed-address 172.21.2.252;
}
host Printserv1 {
hardware ethernet fc:75:16:89:bd:4a;
fixed-address 172.21.2.253;
}
host oup_prn2 {
hardware ethernet 00:1e:8f:b0:85:a0;
fixed-address 172.21.2.250;
}
host sostp_prn {
hardware ethernet 00:23:7d:80:69:63;
fixed-address 172.21.2.248;
}
### VLAN30 BIND
host ous_prn1 {
hardware ethernet 00:23:7d:77:db:28;
fixed-address 172.21.3.225;
}
host ste_prn3 {
hardware ethernet 00:17:a4:95:05:21;
fixed-address 172.21.3.248;
}
host ste_prn4 {
hardware ethernet 00:1e:8f:af:7c:21;
fixed-address 172.21.3.250;
}
host odias_prn {
hardware ethernet 00:1e:8f:af:6d:b3;
fixed-address 172.21.3.226;
}
host sbir_prn {
hardware ethernet 00:23:7d:74:af:4e;
fixed-address 172.21.3.227;
}
host ste_prn5 {
hardware ethernet 00:25:b3:f8:0f:f7;
fixed-address 172.21.3.228;
}
host sui_prn5 {
hardware ethernet 00:25:b3:f5:80:a3;
fixed-address 172.21.3.229;
}
host Volov_prn {
hardware ethernet 3c:d9:2b:0f:58:74;
fixed-address 172.21.3.230;
}
### VLAN40 BIND
host ptsces_prn {
hardware ethernet 00:1e:8f:b1:95:10;
fixed-address 172.21.4.226;
}
host rem_prn {
hardware ethernet 00:25:b3:fa:a5:69;
fixed-address 172.21.4.225;
}
### VLAN50 BIND
host smt_hes_prn {
hardware ethernet 00:1e:8f:af:7c:21;
fixed-address 172.21.5.225;
}
### VLAN100 BIND
host lres_prn {
hardware ethernet 00:1e:8f:b1:95:a4;
fixed-address 172.21.10.151;
}
### END
}

Код: Выделить всё
/usr/local/etc/dhcpd.conf line 23: subnet declarations not allowed here.
subnet
^
/usr/local/etc/dhcpd.conf line 33: subnet declarations not allowed here.
subnet
^
/usr/local/etc/dhcpd.conf line 43: subnet declarations not allowed here.
subnet
^
/usr/local/etc/dhcpd.conf line 53: subnet declarations not allowed here.
subnet
^
/usr/local/etc/dhcpd.conf line 63: subnet declarations not allowed here.
subnet
^
/usr/local/etc/dhcpd.conf line 73: subnet declarations not allowed here.
subnet
^
/usr/local/etc/dhcpd.conf line 83: subnet declarations not allowed here.
subnet
^
/usr/local/etc/dhcpd.conf line 93: subnet declarations not allowed here.
subnet
^
/usr/local/etc/dhcpd.conf line 103: subnet declarations not allowed here.
subnet
^
/usr/local/etc/dhcpd.conf line 113: subnet declarations not allowed here.
subnet
^
/usr/local/etc/dhcpd.conf line 123: subnet declarations not allowed here.
subnet
^
WARNING: Host declarations are global. They are not limited to the scope you declared them in.
Configuration file errors encountered -- exiting