Estos contenidos se han traducido de forma automática para su comodidad, pero Huawei Cloud no garantiza la exactitud de estos. Para consultar los contenidos originales, acceda a la versión en inglés.
Cómputo
Elastic Cloud Server
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Redes
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Gestión y gobernanza
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
Cloud Operations Center
Resource Governance Center
Migración
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Análisis
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
IoT
IoT Device Access
Otros
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Seguridad y cumplimiento
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Servicios multimedia
Media Processing Center
Video On Demand
Live
SparkRTC
Almacenamiento
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Contenedores
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Bases de datos
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Aplicaciones empresariales
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Data Lake Factory
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Distribución de contenido y cómputo de borde
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Soluciones
SAP Cloud
High Performance Computing
Servicios para desarrolladores
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
Cloud Application Engine
aPaaS MacroVerse
KooPhone
KooDrive
En esta página
Centro de ayuda/ Elastic Cloud Server/ Preguntas frecuentes/ Network Configurations/ DNS and NTP Configurations/ ¿Cómo puedo configurar los servidores de NTP y de DNS para un ECS?

¿Cómo puedo configurar los servidores de NTP y de DNS para un ECS?

Actualización más reciente 2023-08-08 GMT+08:00

Para los SO de Linux

Tomemos como ejemplo los servidores de NTP y de DNS que ejecutan SUSE.

  1. Configure el servidor de NTP para el ECS.

    1. Inicie sesión en el ECS.
    2. Ejecute el siguiente comando para cambiar a usuario root:

      sudo su -

    3. Ejecute el siguiente comando para editar el archivo de configuración ntp.conf:

      vim /etc/ntp.conf

    4. Agregue la siguiente instrucción para configurar el servidor de NTP:

      server Domain name or IP address of the NTP server

      Por ejemplo:

      Si la dirección IP del servidor de NTP es 192.168.56.1, agregue la siguiente instrucción:

      server 192.168.56.1

    5. Ejecute el siguiente comando para iniciar el servicio de NTP al reiniciar el sistema:

      service ntp restart

    6. Ejecute el siguiente comando para comprobar el estado del servidor de NTP:

      service ntp status

      NOTA:

      Si desea deshabilitar NTP, realice los siguientes pasos:

      1. Ejecute el comando service ntp stop para detener NTP.
      2. Ejecute el comando systemctl disable ntp para deshabilitar la función de iniciar automáticamente NTP al iniciar ECS.

  2. Configure el servidor de DNS para ECS.

    1. Inicie sesión en el ECS.
    2. Ejecute el siguiente comando para cambiar a usuario root:

      sudo su -

    3. Ejecute el siguiente comando para editar el archivo de configuración resolv.conf:

      vi /etc/resolv.conf

    4. Agregue la siguiente instrucción para configurar el servidor de DNS:

      nameserver = IP addresses of the DNS servers

      Por ejemplo:

      Si las direcciones IP de los servidores de DNS son 8.8.8.8 y 4.4.4.4, agregue las siguientes instrucciones:

      nameserver = 8.8.8.8

      nameserver = 4.4.4.4

      NOTA:

      Las direcciones IP de los servidores de DNS deben ser las mismas que las de la subred de VPC. De lo contrario, la modificación de DNS no puede tener efecto persistentemente.

    5. Ejecute el siguiente comando para reiniciar la red:

      rcnetwork restart

      service network restart

      /etc/init.d/network restart

Windows

Tome un ECS que ejecuta Windows Server 2012 como ejemplo.

  1. Inicie sesión en el ECS como usuario Administrator.
  2. Habilite la conexión de área local.

    1. En la esquina inferior derecha de la barra de tareas, haga clic con el botón derecho en el icono de conexión de red.
    2. Haga clic en Open Network and Sharing Center.
      Figura 1 Open Network and Sharing Center
    3. En el panel de navegación de la izquierda, haga clic en Change adapter settings.

  3. Configure el servidor de DNS para ECS.

    1. Haga doble clic en las conexiones de red.
    2. Haga clic en Properties en la esquina inferior izquierda.
      Figura 2 Conexión de área local
    3. Seleccione Internet Protocol Version 4 (TCP/IPv4) y haga clic en Properties.
      Figura 3 Selección de un tipo de protocolo
    4. Seleccione Use the following DNS server addresses y establezca las direcciones IP de los servidores de DNS.
      Figura 4 Configuración de las direcciones IP de los servidores de DNS

  4. Configure el servidor de NTP para el ECS.

    1. Inicie el cuadro de diálogo Run. Ingrese regedit y haga clic en OK.
    2. Modificar las entradas del registro.
      • En HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Services > W32Time > TimeProviders > NtpClient, establezca el valor de Enabled a 1 indicando que se utiliza el cliente de NTP.
      • En HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Services > W32Time > TimeProviders > NtpServer, establezca el valor de Enabled a 0 indicando que el servidor de NTP está detenido.
      • Elija el archivo HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Services > W32Time > Parameters y establezca los datos NtpServer. Por ejemplo, establezca sus datos en ntp.myhuaweicloud.com. Establezca los datos de TYPE en NTP.
      • En HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ W32Time \ TimeProviders \ NtpClient, establezca el valor de SpecialPollInterval a 60 y el de Base a Decimal que indica que el ciclo de sincronización de reloj es 60s.
      • En el caso de HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ W32Time \ config, establezca los valores de MaxPosPhaseCorrection y MaxNegPhaseCorrection en ffffffff y los de Base en Hexadecimal.
    3. Abra el cuadro de diálogo Run, escriba services.msc y haga clic en OK. Se muestra la ventana Services.
    4. Vea el servicio llamado Windows Time y configure el Start Type en Automatic para sincronizar la hora desde el servidor de NTP.
    5. Abra el cuadro de diálogo Run y ejecute los siguientes comandos en secuencia para reiniciar el servicio Windows Time:

      net stop w32time

      net start w32time

    6. Cambie manualmente la hora en el cliente para que sea diferente de la del servidor de NTP. Un minuto más tarde, compruebe si el tiempo en el cliente es el mismo que en el servidor de NTP. En caso afirmativo, el tiempo está sincronizado.

Utilizamos cookies para mejorar nuestro sitio y tu experiencia. Al continuar navegando en nuestro sitio, tú aceptas nuestra política de cookies. Descubre más

Comentarios

Comentarios

Comentarios

0/500

Seleccionar contenido

Enviar el contenido seleccionado con los comentarios