Submodulo-sergio_adrian_carrillo_villanueva-cbtis149 Presentacion y Actividades.

download Submodulo-sergio_adrian_carrillo_villanueva-cbtis149 Presentacion y Actividades.

of 19

description

Submodulo-sergio_carrillo-cbtis149 Presentacion y Actividades.

Transcript of Submodulo-sergio_adrian_carrillo_villanueva-cbtis149 Presentacion y Actividades.

Mastering Windows Server 2012 R2

MasteringWindows Server2012 R2Sergio A. Carrillo VillanuevaCaptulo 3:-Introduccin a Server Core-

Configuracin de funciones y caractersticasCreacin de un controlador de dominio y administracin de DNS.Configuracin del servicio DHCP.Configuracin de un servidor de archivos.Creacin de una particin primaria.

-Creacin de un controlador de dominio y administracin de DNS.

Descartamos: DCPromo.Conocimientos Previos: instalacin Servicios de dominio de Active Directory. Funciones nuevas: PowerShell; Test-ADDSDomainControllerInstallation.

Si no agrega ningn parmetro, se utilizarn los siguientes valores predeterminados:Slo lectura controlador de dominio: NoCatlogo global: SServidor DNS: SCarpeta Base de datos: C: \ Windows \ NTDSCarpeta central: C: \ Windows \ NTDSCarpeta SYSVOL: C: \ Windows \ SYSVOLHay un montn de secuencias de comandos que se puede descargar y utilizar para configurar todos los diferentes parmetros. Aqu est el formato de parmetro completo en caso de que necesite cambiar la configuracin:Install-ADDSDomainController -DomainName [-ADPrepCredential] [-AllowDomainControllerReinstall][-ApplicationPartitionsToReplicate ] [-CreateDnsDelegation][-Credential ] [-CriticalReplicationOnly] [-DatabasePath] [-DnsDelegationCredential ] [-Force][-InstallationMediaPath ] [-InstallDns] [-LogPath ][-MoveInfrastructureOperationMasterRoleIfNecessary] [-NoDnsOnNetwork][-NoGlobalCatalog] [-NoRebootOnCompletion] [-ReplicationSourceDC ] [-SafeModeAdministratorPassword ] [-SiteName ] [-SkipAutoConfigureDns] [-SkipPreChecks] [-SystemKey ][-SysvolPath ] [-Confirm] [-WhatIf] [ ]cmdlet Install ADDSDomainController instalar DNS al mismo tiempo.Adelante y ejecutar el cmdlet:

Configuracin del servicio DHCP

Comando de moda: netshA) Construir comandos de una lnea y B) utilizar el shell interactivo dentro de la lnea de comandos.Ejemplo:Una sucursal requiere una implementacin de DHCP bsico, incluyendo un solo mbito con opciones de mbito estndar de puerta de enlace predeterminada, los servidores DNS y el nombre de dominio DNS. Pero antes de eso, tiene que autorizarlo en Active Directory, mediante el uso de la opcin de servidor add. En el siguiente cdigo, el modo interactivo se utiliza para introducir los comandos:etsh> dhcpnetsh dhcp>add server bfsc1.bigfirm.com 192.168.1.11Adding server bfsc1.bigfirm.com, 192.168.1.11Command completed successfully. netsh dhcp>show server1 Servers were found in the directory service:Server [bfsc1.bigfirm.com] Address [192.168.1.11] Ds location: cn=bfsc1.bigfirm.comCommand completed successfully.

netsh dhcp>servernetsh dhcp server>add scope 192.168.1.0 255.255.255.0 Branch Office 1Sample DHCP scopeCommand completed successfully.netsh dhcp server>show scope=================================================================================Scope Address - Subnet Mask - State - Scope Name - Comment=================================================================================192.168.1.0 - 255.255.255.0 -Active -Branch Office 1 -Sample DHCP scopeTotal No. of Scopes = 1Command completed successfully.

rango de IP: 192.168.1.50 - 100 Puerta de enlace predeterminada: 003, 192.168.1.254 servidor DNS: 006, 192.168.1.11 nombre de dominio DNS: 015, bigfirm.comnetsh dhcp server>scope 192.168.1.0Changed the current scope context to 192.168.1.0 scope.netsh dhcp server scope>add iprange 192.168.1.50 192.168.1.100Command completed successfully.netsh dhcp server scope>set optionvalue 003 IPADDRESS 192.168.1.254Command completed successfully.netsh dhcp server scope>set optionvalue 006 IPADDRESS 192.168.1.11Command completed successfully.netsh dhcp server scope>set optionvalue 015 STRING bigfirm.comCommand completed successfully.

netsh dhcp server scope>show optionvalueOptions for Scope 192.168.1.0:DHCP Standard Options :General Option Values:OptionId : 51Option Value:Number of Option Elements = 1Option Element Type = DWORDOption Element Value = 691200OptionId : 3Option Value:Number of Option Elements = 1Option Element Type = IPADDRESSOption Element Value = 192.168.1.254OptionId : 6Option Value:Number of Option Elements = 1Option Element Type = IPADDRESSOption Element Value = 192.168.1.11OptionId : 15Option Value:Number of Option Elements = 1Option Element Type = STRINGOption Element Value = bigfirm.comCommand completed successfully.

Configuracin de un servidor de archivos.

Los procedimientos para compartir carpetas en instalaciones completas son tpicamente manejados por el MMC o otras aplicaciones basadas en GUI.

Creacin de una particin primaria.

Proporcionar una particin de datos.Comando DiskPart:PS C:\Windows\system32>diskpartMicrosoft DiskPart version 6.1.7000Copyright (C) 1999-2008 Microsoft Corporation.On computer: BFSC1DISKPART> list diskDisk ### Status Size Free Dyn Gpt-------- ------------- ------- ------- --- ---Disk 0 Online 75 GB 55 GBDISKPART> list volumeVolume ### Ltr Label Fs Type Size Status Info---------- --- ----------- ----- ---------- ------- --------- --------Volume 0 D GB1SXFRE_EN UDF CD-ROM 2850 MB HealthyVolume 1 NTFS Partition 200 MB Healthy SystemVolume 2 C NTFS Partition 19 GB Healthy BootDISKPART> select disk 0Disk 0 is now the selected disk.

Crear la particin primaria.DISKPART> help create partition primaryEjemplo:CREATE PARTITION PRIMARY SIZE=1000rem size is in MB so 55 gb is 55000DISKPART> create partition primary size=10000DiskPart succeeded in creating the specified partition.DISKPART> list partitionPartition ### Type Size OffsetPartition 1 Primary 200 MB 1024 KBPartition 2 Primary 19 GB 201 MB* Partition 3 Primary 10 GB 20 GBDISKPART> select partition 3Partition 3 is now the selected partition.DISKPART> assign letter=eDiskPart successfully assigned the drive letter or mount point.

DISKPART> list volumeVolume ### Ltr Label Fs Type Size Status Info---------- --- ----------- ----- ---------- ------- --------- --------Volume 0 D GB1SXFRE_EN UDF CD-ROM 2850 MB HealthyVolume 1 NTFS Partition 200 MB Healthy SystemVolume 2 C NTFS Partition 19 GB Healthy Boot* Volume 3 E RAW Partition 10 GB HealthyDISKPART> select volume 3Volume 3 is the selected volume.DISKPART> format fs=ntfs label=Data volume quick100 percent completedDiskPart successfully formatted the volume.

Actividades recomendadas:Creacin de un controlador de dominio y administracin de DNS.Creacin de una particin primaria.

Creacin de un controlador de dominio y administracin de DNS.

Valores predeterminados:Slo lectura controlador de dominio: NoCatlogo global: SServidor DNS: SCarpeta Base de datos: C: \ Windows \ NTDSEntrar fi l carpeta: C: \ Windows \ NTDSCarpeta SYSVOL: C: \ Windows \ SYSVOL

Hay un montn de secuencias de comandos que se puede descargar y utilizar para confi gurar todos los diferentes parmetros. Aqu est el formato de parmetro completo en caso de que necesite cambiar la configuracin:Install-ADDSDomainController -DomainName [-ADPrepCredential] [-AllowDomainControllerReinstall][-ApplicationPartitionsToReplicate ] [-CreateDnsDelegation][-Credential ] [-CriticalReplicationOnly] [-DatabasePath] [-DnsDelegationCredential ] [-Force][-InstallationMediaPath ] [-InstallDns] [-LogPath ][-MoveInfrastructureOperationMasterRoleIfNecessary] [-NoDnsOnNetwork][-NoGlobalCatalog] [-NoRebootOnCompletion] [-ReplicationSourceDC ] [-SafeModeAdministratorPassword ] [-SiteName ] [-SkipAutoConfigureDns] [-SkipPreChecks] [-SystemKey ][-SysvolPath ] [-Confirm] [-WhatIf] [ ]Seguir adelante y ejecutar el cmdlet:PS C:\Users\administrator> Install-ADDSDomainControllerSe le pedir a la siguiente:El servidor de destino se configurar como un controlador de dominio y se reinicia cuando esta operacin se ha completado.Quieres continuar con esta operacin?[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):Y

Si selecciona S, la instalacin comenzar. Este proceso puede tardar varios minutos en completarse.

Creacin de una particin primaria.

La primera tarea es proporcionar una particin de datos. En el siguiente ejemplo, se decidi establecer el tamao de 10 GB.El comando DiskPart es perfecto para esta operacin. PS C:\Windows\system32>diskpartMicrosoft DiskPart version 6.1.7000Copyright (C) 1999-2008 Microsoft Corporation.On computer: BFSC1DISKPART> list diskDisk ### Status Size Free Dyn Gpt-------- ------------- ------- ------- --- ---Disk 0 Online 75 GB 55 GBDISKPART> list volumeVolume ### Ltr Label Fs Type Size Status Info---------- --- ----------- ----- ---------- ------- --------- --------Volume 0 D GB1SXFRE_EN UDF CD-ROM 2850 MB HealthyVolume 1 NTFS Partition 200 MB Healthy SystemVolume 2 C NTFS Partition 19 GB Healthy BootDISKPART> select disk 0Disk 0 is now the selected disk.Despus de crear la particin primaria, debe seleccionarlo. Esto le permite asignar una letra de unidad a la misma:

DISKPART> help create partition primary.....Ejemplo:

CREATE PARTITION PRIMARY SIZE=1000rem size is in MB so 55 gb is 55000DISKPART> create partition primary size=10000DiskPart succeeded in creating the specified partition.DISKPART> list partitionPartition ### Type Size Offset------------- ---------------- ------- -------Partition 1 Primary 200 MB 1024 KBPartition 2 Primary 19 GB 201 MB* Partition 3 Primary 10 GB 20 GBDISKPART> select partition 3Partition 3 is now the selected partition.DISKPART> assign letter=eDiskPart successfully assigned the drive letter or mount point.Con la particin creada, se puede ver como un volumen disponible. Es necesario seleccionar y luego darle formato con NTFS:

DISKPART> list volumeVolume ### Ltr Label Fs Type Size Status Info---------- --- ----------- ----- ---------- ------- --------- --------Volume 0 D GB1SXFRE_EN UDF CD-ROM 2850 MB HealthyVolume 1 NTFS Partition 200 MB Healthy SystemVolume 2 C NTFS Partition 19 GB Healthy Boot* Volume 3 E RAW Partition 10 GB HealthyDISKPART> select volume 3Volume 3 is the selected volume.DISKPART> format fs=ntfs label=Data volume quick100 percent completedDiskPart successfully formatted the volume.

Esto seria todo para completar la operacin.

-FIN-Mastering Windows Server 2012 - Mark Minasi & Kevin Greene & C_31183