dhcpd.conf

Imagen de kino91
0 puntos

Hola! :) (antes de nada ¿este tema esta bien colocado aqui o lo tendria que publicar en Foros avanzados/Servidores ?) el caso es que estoy configurando el dhcpd.conf para una actividad de mi ciclo formativo de grado medio. Me tira unos errores y voy a linea donde supuestamente esta el error pero no le veo nada raro. A continuacion os pongo el archivo:

authoritative;
one-lease-per-client on;
default-lease-time 1200;
max-lease-time 7200;

subnet 172.16.0.1 netmask 255.255.255.0 {
server-identifier 172.16.0.1;
option domain-name "reduno.com";
option domain-name-servers 172.16.0.1;
option routers 172.16.0.1;
option subnet-mask 255.255.255.0;
option broadcast-address 172.16.0.255;
range 172.16.0.6 172.16.0.245;
}

group pcred1 {
host pc1 {
option host-name "equipo1";
hardware ethernet 15:A4:3F:44:55:7E;
fixed-address 172.16.0.253;
option domain-name-servers 8.8.8.8,8.8.4.4;
}
host pc2 {
option host-name "equipo2";
hardware ethernet 42:B2:F5:42:6C:1D;
fixed-address 172.16.0.254;
option domain-name-servers 8.8.8.8,8.8.4.4;
}
}
group impresorared1 {
host impresora1 {
option host-name "impresion1";
hardware ethernet 42:B2:F5:42:6C:1D;
fixed-address 172.16.0.2;
}
host impresora2 {
option host-name "impresion2";
hardware ethernet 33:B2:A4:22:1C:1C;
fixed-address 172.16.0.3;
}
}

subnet 172.17.0.1 netmask 255.255.0.0 {
option-identifier 172.17.0.1;
option domain-name "reddos.com";
option domain-name-servers 172.17.0.1;
option routers 172.17.0.1;
option subnet-mask 255.255.0.0;
option broadcast-adress 172.17.0.255;
range 172.17.0.6 172.17.255.245;
}

group pcred2 {
host pc01 {
option host-name "equipo01";
hardware ethernet D3:D1:49:80:97:67;
fixed-address 172.17.255.253;
option domain-name-servers 8.8.8.8,8.8.4.4;
}
host pc02 {
option host-name "equipo02";
hardware ethernet 88:48:74:3B:BA:C0;
fixed-address 172.17.255.254;
option domain-name-servers 8.8.8.8,8.8.4.4;
}
}
group impresorared2 {
host impresora01 {
option host-name "impresion01";
hardware ethernet 89:30:BC:52:4F:CB;
fixed-address 172.17.0.2;
}
host impresora02 {
option host-name "impresion02";
hardware ethernet C1:7D:4E:D6:1D:8B;
fixed-address 172.17.0.3;
}
}

subnet 192.168.0.1 netmask 255.255.252.0 {
default-lease-time 10800;
max-lease-time 54000;
option-identifier 192.168.0.1;
option domain-name "redtres.com";
option domain-name-servers 192.168.0.1;
option routers 192.168.0.1;
option subnet-mask 255.255.252.0;
option broadcast-adress 192.168.3.255;
range 192.168.0.6 192.168.3.245;
}
group pcred3 {
host pc001 {
option host-name "equipo001";
hardware ethernet D6:1F:1E:D7:1F:C6;
fixed-address 192.168.3.253;
option domain-name-servers 8.8.8.8,8.8.4.4;
}
host pc002 {
option host-name "equipo002";
hardware ethernet BB:96:9F:FB:BB:71;
fixed-address 192.168.3.254;
option domain-name-servers 8.8.8.8,8.8.4.4;
}
}
group impresorared3 {
host impresora001 {
option host-name "impresion01";
hardware ethernet 30:30:FF:41:4D:AA;
fixed-address 192.168.0.2;
}
host impresora002 {
option host-name "impresion02";
hardware ethernet CC:25:FF:A1:DD:EE;
fixed-address 192.168.0.3;
}
}

Espero que me podais ayudar, que quebradero de cabeza me esta dando... Gracias por adelantado!

Imagen de Gabriel_M
+1
+1
-1

... impresiona como correcto:

ddns-update-style interim;
authoritative;
one-lease-per-client on;
default-lease-time 1200;
max-lease-time 7200;
option domain-name "reduno.net";
option ntp-servers 0.pool.ntp.org, 1.pool.ntp.org, 2.pool.ntp.org, 3.pool.ntp.org;

shared-network redlocal1 {
	subnet 172.16.0.0 netmask 255.255.255.0 {
		option routers 172.16.0.1;
		option subnet-mask 255.255.255.0;
		option broadcast-address 172.16.0.255;
		option domain-name-servers 172.16.0.1;
		option netbios-name-servers 172.16.0.1;
		range 172.16.0.6 172.16.0.245;
       }

        host pc1 {
                option host-name "equipo1";
                hardware ethernet 15:A4:3F:44:55:7E;
                fixed-address 172.16.0.253;
       }
        host pc2 {
                option host-name "equipo2";
                hardware ethernet 42:B2:F5:42:6C:1D;
                fixed-address 172.16.0.254;
       }
        host impresora1 {
                option host-name "impresion1";
                hardware ethernet 42:B2:F5:42:6C:1D;
                fixed-address 172.16.0.2;
       }
        host impresora2 {
                option host-name "impresion2";
                hardware ethernet 33:B2:A4:22:1C:1C;
                fixed-address 172.16.0.3;
       }

shared-network redlocal2 {
       subnet 172.17.0.1 netmask 255.255.255.0 {
		option routers 172.17.0.1;
		option subnet-mask 255.255.255.0;
		option broadcast-address 172.17.0.255;
		option domain-name-servers 172.17.0.1;
		option netbios-name-servers 172.17.0.1;
		range 172.17.0.6 172.17.0.245;
       }
       host pc01 {
               option host-name "equipo01";
               hardware ethernet D3:D1:49:80:97:67;
               fixed-address 172.17.0.253;
       }
       host pc02 {
               option host-name "equipo02";
               hardware ethernet 88:48:74:3B:BA:C0;
               fixed-address 172.17.0.254;
       }
       host impresora01 {
       option host-name "impresion01";
       hardware ethernet 89:30:BC:52:4F:CB;
       fixed-address 172.17.0.2;
       }
       host impresora02 {
       option host-name "impresion02";
       hardware ethernet C1:7D:4E:D6:1D:8B;
       fixed-address 172.17.0.3;
       }

shared-network redlocal3 {
       subnet 192.168.0.1 netmask 255.255.255.0 {
		option routers 192.168.0.1;
		option subnet-mask 255.255.255.0;
		option broadcast-address 192.168.0.255;
		option domain-name-servers 192.168.0.1;
		option netbios-name-servers 192.168.0.1;
		range 192.168.0.6 192.168.0.245;
       }
        host pc001 {
                option host-name "equipo001";
                hardware ethernet D6:1F:1E:D7:1F:C6;
                fixed-address 192.168.0.253;
       }
        host pc002 {
                option host-name "equipo002";
                hardware ethernet BB:96:9F:FB:BB:71;
                fixed-address 192.168.3.254;
       }
        host impresora001 {
                option host-name "impresion01";
                hardware ethernet 30:30:FF:41:4D:AA;
                fixed-address 192.168.0.2;
       }
        host impresora002 {
                option host-name "impresion02";
                hardware ethernet CC:25:FF:A1:DD:EE;
                fixed-address 192.168.0.3;
       }
+1
+1
-1
Imagen de kino91
+1
0
-1

Buenas Gabriel muchas gracias por tu ayuda y tu pronta respuesta (creo que eres el unico que siempre me responde cada vez que hago un tema) Lo unico que tenia malamente era que en los subnet tenia no tenia puesto bien la red, tenia 172.16.0.1 y era asin 172.16.0.0 xD que error mas tonto. Luego me salieron otros errores, me falto un "d" en los broadcast-address , otro error tonto por dios..... y en vez de tener puesto server-identifier tenia puesto option-identifier . PERO EN QUE ESTARIA PENSANDO! jajajaja bueno ya esto todo OK! he expuesto los problemas y la solucion de ello por si a alguien le falla algo parecido y no sabe por donde cojerlo. Muchas gracias de nuevo Gabriel, se nota que eres el usuario mas activo del Foro! :)

+1
0
-1