This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
informatica:hp_z230_400sb_centos7_3 [2021/08/20 17:28] miquel [Configuració de la xarxa UAB] |
informatica:hp_z230_400sb_centos7_3 [2021/08/24 15:42] (current) miquel [Comprovació de les rutes] |
||
|---|---|---|---|
| Line 65: | Line 65: | ||
| ===== Connexió i configuració dels dos monitors ===== | ===== Connexió i configuració dels dos monitors ===== | ||
| - | <WRAP todo> | + | Connecto |
| - | Aprofitar les instruccions | + | |
| - | </ | + | * HP LE2202x |
| + | * Pantalla principal | ||
| + | * Característiques tècniques: 21,5 polsades (16:9), resolució: 1920 x 1080 @ 60.0 Hz, entrades: DVI-D & VGA. | ||
| + | * HP LA1951g | ||
| + | * Pantalla secundària | ||
| + | * Característiques tècniques: 19 polsades (5:4), resolució: 1280 x 1024 @ 75 Hz, entrades: DVID-D & VGA. | ||
| ===== Configuració de KDE ===== | ===== Configuració de KDE ===== | ||
| Line 79: | Line 84: | ||
| </ | </ | ||
| - | ===== Configurar | + | ===== Configurar |
| - | + | ||
| - | <WRAP todo> | + | |
| - | Aprofitar les instruccions a [[informatica: | + | |
| - | </ | + | |
| ==== Configuració de la xarxa UAB ==== | ==== Configuració de la xarxa UAB ==== | ||
| Line 174: | Line 175: | ||
| per la nova configuració estàtica, | per la nova configuració estàtica, | ||
| - | |||
| - | <WRAP todo> | ||
| < | < | ||
| # cd / | # cd / | ||
| # cat ifcfg-UAB-LAN | # cat ifcfg-UAB-LAN | ||
| - | HWADDR=3C: | + | |
| TYPE=Ethernet | TYPE=Ethernet | ||
| + | NAME=UAB-LAN | ||
| + | UUID=5f23e0c4-ba38-4644-98e3-c8a8fc3f3c62 | ||
| + | HWADDR=50: | ||
| PROXY_METHOD=none | PROXY_METHOD=none | ||
| BROWSER_ONLY=no | BROWSER_ONLY=no | ||
| - | ETHTOOL_OPTS=" | ||
| BOOTPROTO=none | BOOTPROTO=none | ||
| DEFROUTE=yes | DEFROUTE=yes | ||
| IPV4_FAILURE_FATAL=yes | IPV4_FAILURE_FATAL=yes | ||
| + | ONBOOT=yes | ||
| + | IPADDR=158.109.54.214 | ||
| + | PREFIX=20 | ||
| + | GATEWAY=158.109.48.1 | ||
| + | DNS1=158.109.0.36 | ||
| + | DNS2=158.109.254.130 | ||
| + | DOMAIN=" | ||
| IPV6INIT=no | IPV6INIT=no | ||
| - | NAME=UAB-LAN | + | IPV6_AUTOCONF=yes |
| - | UUID=be7bd600-74cb-49ef-919f-c3c027459391 | + | IPV6_DEFROUTE=yes |
| - | ONBOOT=no | + | IPV6_FAILURE_FATAL=no |
| - | USERS=sermnadmin | + | IPV6_ADDR_GEN_MODE=stable-privacy |
| - | IPADDR=158.109.56.18 | + | IPV6_PRIVACY=no |
| - | PREFIX=20 | + | |
| - | GATEWAY=158.109.48.0 | + | |
| - | DNS1=158.109.254.130 | + | |
| - | DNS2=158.109.0.36 | + | |
| - | DOMAIN=uab.es | + | |
| </ | </ | ||
| - | |||
| - | </ | ||
| ==== Configuració de la xarxa de l' | ==== Configuració de la xarxa de l' | ||
| - | Pel dispositiu de la xarxa de l' | + | Pel dispositiu de la xarxa de l' |
| < | < | ||
| - | # ping -c 5 spect | + | # cat ./ifcfg-CONSOLE-LAN |
| - | PING spect (149.236.99.90) 56(84) bytes of data. | + | NAME="CONSOLE-LAN" |
| - | 64 bytes from spect (149.236.99.90): | + | |
| - | 64 bytes from spect (149.236.99.90): | + | |
| - | 64 bytes from spect (149.236.99.90): | + | |
| - | 64 bytes from spect (149.236.99.90): | + | |
| - | 64 bytes from spect (149.236.99.90): | + | |
| - | + | ||
| - | --- spect ping statistics --- | + | |
| - | 5 packets transmitted, | + | |
| - | rtt min/ | + | |
| - | </ | + | |
| - | + | ||
| - | El fitxer de configuració d' | + | |
| - | + | ||
| - | < | + | |
| - | # cat ifcfg-CONSOLE-LAN | + | |
| ZONE=trusted | ZONE=trusted | ||
| USERCTL=no | USERCTL=no | ||
| - | NETMASK=255.255.255.0 | + | DEVICE=ens3 |
| - | DEVICE=enp55s9 | + | HWADDR=a0: |
| TYPE=Ethernet | TYPE=Ethernet | ||
| PROXY_METHOD=none | PROXY_METHOD=none | ||
| Line 236: | Line 222: | ||
| IPV4_FAILURE_FATAL=yes | IPV4_FAILURE_FATAL=yes | ||
| IPV6INIT=no | IPV6INIT=no | ||
| - | IPV6_AUTOCONF=yes | + | UUID=4d9f6b1a-abb6-4880-ba14-72f2841859e8 |
| - | IPV6_DEFROUTE=yes | + | |
| - | IPV6_FAILURE_FATAL=no | + | |
| - | IPV6_ADDR_GEN_MODE=stable-privacy | + | |
| - | NAME=" | + | |
| - | UUID=227b37f9-5a73-4dfb-9ad4-60924a6fe3d9 | + | |
| ONBOOT=yes | ONBOOT=yes | ||
| - | HWADDR=1C: | ||
| IPADDR=149.236.99.1 | IPADDR=149.236.99.1 | ||
| PREFIX=24 | PREFIX=24 | ||
| + | NETMASK=255.255.255.0 | ||
| + | </ | ||
| + | |||
| + | Comprovo amb '' | ||
| + | |||
| + | < | ||
| + | # ping -c 5 spect | ||
| + | PING spect (149.236.99.90) 56(84) bytes of data. | ||
| + | 64 bytes from spect (149.236.99.90): | ||
| + | 64 bytes from spect (149.236.99.90): | ||
| + | 64 bytes from spect (149.236.99.90): | ||
| + | 64 bytes from spect (149.236.99.90): | ||
| + | 64 bytes from spect (149.236.99.90): | ||
| + | |||
| + | --- spect ping statistics --- | ||
| + | 5 packets transmitted, | ||
| + | rtt min/ | ||
| </ | </ | ||
| Line 254: | Line 251: | ||
| < | < | ||
| # nmcli device status | # nmcli device status | ||
| - | DEVICE | + | DEVICE |
| - | enp1s0 | + | eno1 |
| - | enp55s9 | + | ens3 |
| - | lo | + | lo loopback |
| # ping -c 5 spect | # ping -c 5 spect | ||
| PING spect (149.236.99.90) 56(84) bytes of data. | PING spect (149.236.99.90) 56(84) bytes of data. | ||
| - | 64 bytes from spect (149.236.99.90): | + | 64 bytes from spect (149.236.99.90): |
| - | 64 bytes from spect (149.236.99.90): | + | 64 bytes from spect (149.236.99.90): |
| - | 64 bytes from spect (149.236.99.90): | + | 64 bytes from spect (149.236.99.90): |
| - | 64 bytes from spect (149.236.99.90): | + | 64 bytes from spect (149.236.99.90): |
| - | 64 bytes from spect (149.236.99.90): | + | 64 bytes from spect (149.236.99.90): |
| --- spect ping statistics --- | --- spect ping statistics --- | ||
| 5 packets transmitted, | 5 packets transmitted, | ||
| - | rtt min/ | + | rtt min/ |
| # ping -c 5 gw.uab.cat | # ping -c 5 gw.uab.cat | ||
| PING gw.uab.cat (158.109.0.3) 56(84) bytes of data. | PING gw.uab.cat (158.109.0.3) 56(84) bytes of data. | ||
| - | 64 bytes from gw.uab.es (158.109.0.3): | + | 64 bytes from gw.uab.es (158.109.0.3): |
| - | 64 bytes from gw.uab.es (158.109.0.3): | + | 64 bytes from gw.uab.es (158.109.0.3): |
| - | 64 bytes from gw.uab.es (158.109.0.3): | + | 64 bytes from gw.uab.es (158.109.0.3): |
| - | 64 bytes from gw.uab.es (158.109.0.3): | + | 64 bytes from gw.uab.es (158.109.0.3): |
| - | 64 bytes from gw.uab.es (158.109.0.3): | + | 64 bytes from gw.uab.es (158.109.0.3): |
| --- gw.uab.cat ping statistics --- | --- gw.uab.cat ping statistics --- | ||
| - | 5 packets transmitted, | + | 5 packets transmitted, |
| - | rtt min/ | + | rtt min/ |
| </ | </ | ||
| - | comprovo les rutes definides i veig que són les correctes, | + | comprovo les rutes definides i veig que hi són les correctes, |
| < | < | ||
| Line 290: | Line 287: | ||
| Kernel IP routing table | Kernel IP routing table | ||
| Destination | Destination | ||
| - | default | + | default |
| - | 149.236.99.0 | + | 149.236.99.0 |
| - | 158.109.48.0 | + | 158.109.48.0 |
| - | link-local | + | link-local |
| - | [root@cie-56-18 NetworkManager]# route -n | + | # route -n |
| Kernel IP routing table | Kernel IP routing table | ||
| Destination | Destination | ||
| - | 0.0.0.0 | + | 0.0.0.0 |
| - | 149.236.99.0 | + | 149.236.99.0 |
| - | 158.109.48.0 | + | 158.109.48.0 |
| - | 169.254.0.0 | + | 169.254.0.0 |
| + | </ | ||
| + | |||
| + | però que hi ha una ('' | ||
| + | |||
| + | < | ||
| + | # route del -net 169.254.0.0 netmask 255.255.0.0 dev ens3 metric 1002 | ||
| + | |||
| + | # route -n | ||
| + | Kernel IP routing table | ||
| + | Destination | ||
| + | 0.0.0.0 | ||
| + | 149.236.99.0 | ||
| + | 158.109.48.0 | ||
| + | |||
| + | # route | ||
| + | Kernel IP routing table | ||
| + | Destination | ||
| + | default | ||
| + | 149.236.99.0 | ||
| + | 158.109.48.0 | ||
| + | </ | ||
| + | |||
| + | Un cop eliminada, les rutes definides són les correctes. | ||
| + | |||
| + | ==== Enllaços d' | ||
| + | |||
| + | * [[https:// | ||
| + | |||
| + | |||
| + | ===== Eliminar els kernels més antics ===== | ||
| + | |||
| + | Al llarg del procés d' | ||
| + | |||
| + | < | ||
| + | # uname -snr | ||
| + | Linux cie-54-214.uab.cat 3.10.0-1160.25.1.el7.x86_64 | ||
| + | |||
| + | # awk -F\' ' | ||
| + | 0 : CentOS Linux (3.10.0-1160.25.1.el7.x86_64) 7 (Core) | ||
| + | 1 : CentOS Linux (3.10.0-1160.21.1.el7.x86_64) 7 (Core) | ||
| + | 2 : CentOS Linux (3.10.0-1160.36.2.el7.x86_64) 7 (Core) | ||
| + | 3 : CentOS Linux (3.10.0-1160.el7.x86_64) 7 (Core) | ||
| + | 4 : CentOS Linux (0-rescue-e70caa6a85d0497ab6302fee0744e4f5) 7 (Core) | ||
| + | </ | ||
| + | |||
| + | i ara ocupen espai a la partició '' | ||
| + | |||
| + | < | ||
| + | # df -hl | ||
| + | Filesystem | ||
| + | [...] | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | [...] | ||
| + | </ | ||
| + | |||
| + | Per eliminar els més antics, faig servir la comanda ''# | ||
| + | |||
| + | < | ||
| + | # package-cleanup --oldkernels --downloadonly | ||
| + | Loaded plugins: fastestmirror, | ||
| + | --> Running transaction check | ||
| + | ---> Package kernel.x86_64 0: | ||
| + | ---> Package kernel.x86_64 0: | ||
| + | ---> Package kernel-devel.x86_64 0: | ||
| + | ---> Package kernel-devel.x86_64 0: | ||
| + | --> Finished Dependency Resolution | ||
| + | |||
| + | Dependencies Resolved | ||
| + | |||
| + | ====================================================================================================================== | ||
| + | | ||
| + | ====================================================================================================================== | ||
| + | Removing: | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | Transaction Summary | ||
| + | ====================================================================================================================== | ||
| + | Remove | ||
| + | |||
| + | Installed size: 205 M | ||
| + | Background downloading packages, then exiting: | ||
| + | exiting because " | ||
| + | </ | ||
| + | |||
| + | Un cop convençut dels canvis proposats, executo la comanda '' | ||
| + | |||
| + | < | ||
| + | # package-cleanup --oldkernels | ||
| + | Loaded plugins: fastestmirror, | ||
| + | --> Running transaction check | ||
| + | ---> Package kernel.x86_64 0: | ||
| + | ---> Package kernel.x86_64 0: | ||
| + | ---> Package kernel-devel.x86_64 0: | ||
| + | ---> Package kernel-devel.x86_64 0: | ||
| + | --> Finished Dependency Resolution | ||
| + | |||
| + | Dependencies Resolved | ||
| + | |||
| + | ====================================================================================================================== | ||
| + | | ||
| + | ====================================================================================================================== | ||
| + | Removing: | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | Transaction Summary | ||
| + | ====================================================================================================================== | ||
| + | Remove | ||
| + | |||
| + | Installed size: 205 M | ||
| + | Is this ok [y/N]: y | ||
| + | Downloading packages: | ||
| + | Running transaction check | ||
| + | Running transaction test | ||
| + | Transaction test succeeded | ||
| + | Running transaction | ||
| + | Warning: RPMDB altered outside of yum. | ||
| + | Erasing | ||
| + | Erasing | ||
| + | Erasing | ||
| + | Erasing | ||
| + | Verifying | ||
| + | Verifying | ||
| + | Verifying | ||
| + | Verifying | ||
| + | |||
| + | Removed: | ||
| + | kernel.x86_64 0: | ||
| + | kernel-devel.x86_64 0: | ||
| + | |||
| + | Complete! | ||
| + | </ | ||
| + | |||
| + | i comprovo l' | ||
| + | |||
| + | < | ||
| + | # df -hl | ||
| + | Filesystem | ||
| + | [...] | ||
| + | / | ||
| + | / | ||
| + | [...] | ||
| </ | </ | ||