proyectos:linuxservidor-red-comando
Diferencias
Muestra las diferencias entre dos versiones de la página.
Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previa | ||
proyectos:linuxservidor-red-comando [2019/11/09 18:04] – manuel.floresv | proyectos:linuxservidor-red-comando [2022/06/18 16:18] (actual) – manuel.floresv | ||
---|---|---|---|
Línea 26: | Línea 26: | ||
// | // | ||
+ | |||
+ | // | ||
// | // | ||
+ | |||
+ | // | ||
//**dig**// | //**dig**// | ||
+ | |||
+ | // | ||
+ | |||
+ | // | ||
+ | |||
+ | // | ||
+ | |||
+ | // | ||
+ | |||
+ | // | ||
====== Configuración de IPs ====== | ====== Configuración de IPs ====== | ||
Línea 38: | Línea 52: | ||
// | // | ||
+ | |||
+ | ====== Calculadoras IP ====== | ||
+ | // | ||
+ | |||
+ | // | ||
+ | |||
+ | // | ||
+ | |||
====== Nombres de interfaz de red ====== | ====== Nombres de interfaz de red ====== | ||
Línea 43: | Línea 65: | ||
// | // | ||
+ | Anterior mente solo se editaba el archivo /// | ||
+ | <code bash> | ||
+ | nameserver 8.8.8.8 | ||
+ | nameserver 88.4.4 | ||
+ | domain example.com | ||
+ | </ | ||
+ | |||
+ | Con systemd se debe ver el estado con | ||
+ | <code bash> | ||
+ | systemd-resolve --status | ||
+ | </ | ||
+ | Editar el archivos | ||
+ | <code bash> | ||
+ | DNS=8.8.8.8 8.8.4.4 | ||
+ | </ | ||
+ | Y reiniciar el servicio | ||
+ | <code bash> | ||
+ | systemctl | ||
+ | </ | ||
+ | * https:// | ||
// | // | ||
Línea 49: | Línea 91: | ||
// | // | ||
+ | |||
+ | Cambiando el hostname | ||
+ | <code bash> | ||
+ | sudo hostnamectl set-hostname only-host | ||
+ | sudo hostnamectl set-hostname host.your-fqdn-here | ||
+ | echo " | ||
+ | </ | ||
+ | Verificando | ||
+ | <code bash> | ||
+ | hostnamectl status | ||
+ | dnsdomainname | ||
+ | hostname -f | ||
+ | cat / | ||
+ | </ | ||
+ | * https:// | ||
// | // | ||
Línea 60: | Línea 117: | ||
// | // | ||
+ | < | ||
+ | cat / | ||
+ | network: | ||
+ | version: 2 | ||
+ | renderer: networkd | ||
+ | ethernets: | ||
+ | enp0s3: | ||
+ | addresses: [ 10.10.10.2/ | ||
+ | gateway4: 10.10.10.1 | ||
+ | gateway6: fd00::1 | ||
+ | nameservers: | ||
+ | search: [mydomain, otherdomain] | ||
+ | addresses: [10.10.10.1, | ||
+ | </ | ||
+ | |||
+ | * https:// | ||
// | // | ||
+ | ====== systemd ====== | ||
+ | < | ||
+ | systemctl disable NetworkManager | ||
+ | systemctl enable systemd-networkd | ||
+ | systemctl enable systemd-resolved | ||
+ | |||
+ | rm / | ||
+ | ln -s / | ||
+ | mkdir / | ||
+ | |||
+ | vi / | ||
+ | [Match] | ||
+ | Name=enp0s3* | ||
+ | |||
+ | [Network] | ||
+ | #DHCP=yes | ||
+ | Address=10.10.0.10/ | ||
+ | Gateway=10.10.0.1 | ||
+ | DNS=8.8.8.8 | ||
+ | |||
+ | </ | ||
+ | ====== Referencias ====== | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * http:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
proyectos/linuxservidor-red-comando.1573322684.txt.gz · Última modificación: por manuel.floresv