This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
informatica:hp_z400_600_centos7_4 [2021/08/19 10:40] miquel |
informatica:hp_z400_600_centos7_4 [2021/08/19 15:30] miquel [Comprovació de les rutes] |
||
---|---|---|---|
Line 5: | Line 5: | ||
* configurar la connexió amb la consola; | * configurar la connexió amb la consola; | ||
* crear els comptes d' | * crear els comptes d' | ||
- | | + | |
- | * instal·lar el gestor de llicències CodeMeter. | + | i deixar-ho tot a punt per |
+ | |||
+ | | ||
+ | * instal·lar | ||
===== Crear els comptes d' | ===== Crear els comptes d' | ||
Line 17: | Line 20: | ||
</ | </ | ||
- | ===== Configurar la connexió amb la consola ===== | + | ===== Configurar |
+ | |||
+ | La configuració final prevista dels dos dispositius de xarxa és, | ||
+ | |||
+ | * dispositiu '' | ||
+ | * dispositiu '' | ||
<WRAP tip> | <WRAP tip> | ||
- | Comprovar | + | Tot i que la connexió |
</ | </ | ||
+ | |||
+ | ==== Problemes amb la configuració de les xarxes ==== | ||
+ | |||
+ | Per canviar la connexió a la xarxa de la UAB de DHCP a manual, començo per consultar els paràmetres de la configuració per DHCP, | ||
+ | |||
+ | < | ||
+ | # ip addr | ||
+ | [...] | ||
+ | 3: enp1s0: < | ||
+ | link/ether 3c: | ||
+ | inet 158.109.56.18/ | ||
+ | | ||
+ | inet6 fe80:: | ||
+ | | ||
+ | [...] | ||
+ | </ | ||
+ | |||
+ | L' | ||
+ | |||
+ | < | ||
+ | # cd / | ||
+ | # cat ifcfg-enp1s0 | ||
+ | TYPE=Ethernet | ||
+ | PROXY_METHOD=none | ||
+ | BROWSER_ONLY=no | ||
+ | BOOTPROTO=none | ||
+ | DEFROUTE=yes | ||
+ | IPV4_FAILURE_FATAL=yes | ||
+ | IPV6INIT=no | ||
+ | IPV6_AUTOCONF=" | ||
+ | IPV6_DEFROUTE=" | ||
+ | IPV6_FAILURE_FATAL=" | ||
+ | IPV6_ADDR_GEN_MODE=" | ||
+ | NAME=enp1s0 | ||
+ | UUID=e684c2b9-73aa-469a-9a7d-e5136fd1d15c | ||
+ | ONBOOT=yes | ||
+ | IPV6_PRIVACY=" | ||
+ | HWADDR=3C: | ||
+ | IPADDR=158.109.56.18 | ||
+ | PREFIX=20 | ||
+ | GATEWAY=158.109.48.0 | ||
+ | DNS1=158.109.0.36 | ||
+ | DNS2=158.109.254.130 | ||
+ | DOMAIN=uab.es | ||
+ | </ | ||
+ | |||
+ | Per altra banda, la connexió de xarxa a la consola no està configurada, | ||
+ | |||
+ | < | ||
+ | # ip addr | ||
+ | [...] | ||
+ | : enp55s9: < | ||
+ | link/ether 1c: | ||
+ | [...] | ||
+ | </ | ||
+ | |||
+ | La configuro amb els següents paràmetres, | ||
+ | |||
+ | < | ||
+ | # cat ifcfg-enp55s9 | ||
+ | TYPE=Ethernet | ||
+ | PROXY_METHOD=none | ||
+ | BROWSER_ONLY=no | ||
+ | BOOTPROTO=none | ||
+ | DEFROUTE=yes | ||
+ | IPV4_FAILURE_FATAL=yes | ||
+ | IPV6INIT=no | ||
+ | IPV6_AUTOCONF=yes | ||
+ | IPV6_DEFROUTE=yes | ||
+ | IPV6_FAILURE_FATAL=no | ||
+ | IPV6_ADDR_GEN_MODE=stable-privacy | ||
+ | NAME=enp55s9 | ||
+ | UUID=227b37f9-5a73-4dfb-9ad4-60924a6fe3d9 | ||
+ | ONBOOT=yes | ||
+ | HWADDR=1C: | ||
+ | IPADDR=149.236.99.1 | ||
+ | PREFIX=24 | ||
+ | GATEWAY=149.236.99.1 | ||
+ | </ | ||
+ | |||
+ | i la intento activar amb la comanda '' | ||
+ | |||
+ | < | ||
+ | # service network restart | ||
+ | Restarting network (via systemctl): | ||
+ | k.service" | ||
+ | | ||
+ | # systemctl status network | ||
+ | ● network.service - LSB: Bring up/down networking | ||
+ | | ||
+ | | ||
+ | Docs: man: | ||
+ | Process: 10649 ExecStop=/ | ||
+ | Process: 10382 ExecStart=/ | ||
+ | |||
+ | Aug 11 12:18:40 cie-56-18.uab.cat network[10382]: | ||
+ | Aug 11 12:18:40 cie-56-18.uab.cat network[10382]: | ||
+ | Aug 11 12:18:40 cie-56-18.uab.cat network[10382]: | ||
+ | Aug 11 12:18:40 cie-56-18.uab.cat network[10382]: | ||
+ | Aug 11 12:18:40 cie-56-18.uab.cat network[10382]: | ||
+ | Aug 11 12:18:40 cie-56-18.uab.cat network[10382]: | ||
+ | Aug 11 12:18:40 cie-56-18.uab.cat systemd[1]: network.service: | ||
+ | Aug 11 12:18:40 cie-56-18.uab.cat systemd[1]: Failed to start LSB: Bring up/down networking. | ||
+ | Aug 11 12:18:40 cie-56-18.uab.cat systemd[1]: Unit network.service entered failed state. | ||
+ | Aug 11 12:18:40 cie-56-18.uab.cat systemd[1]: network.service failed. | ||
+ | |||
+ | # journalctl -xe | ||
+ | [...] | ||
+ | Aug 11 12:33:46 cie-56-18.uab.cat NetworkManager[1038]: | ||
+ | Aug 11 12:33:46 cie-56-18.uab.cat NetworkManager[1038]: | ||
+ | Aug 11 12:33:46 cie-56-18.uab.cat NetworkManager[1038]: | ||
+ | Aug 11 12:33:46 cie-56-18.uab.cat NetworkManager[1038]: | ||
+ | Aug 11 12:33:46 cie-56-18.uab.cat NetworkManager[1038]: | ||
+ | Aug 11 12:33:46 cie-56-18.uab.cat NetworkManager[1038]: | ||
+ | Aug 11 12:33:46 cie-56-18.uab.cat NetworkManager[1038]: | ||
+ | Aug 11 12:33:46 cie-56-18.uab.cat NetworkManager[1038]: | ||
+ | Aug 11 12:33:46 cie-56-18.uab.cat NetworkManager[1038]: | ||
+ | Aug 11 12:33:46 cie-56-18.uab.cat NetworkManager[1038]: | ||
+ | |||
+ | </ | ||
+ | |||
+ | Com que la xarxa de l' | ||
+ | |||
+ | Més tard em torno a mirar el problema amb més deteniment, i trobo que està causat perquè s'ha definit una ruta per defecte associada a la IP de la xarxa de l' | ||
+ | |||
+ | < | ||
+ | # route | ||
+ | Kernel IP routing table | ||
+ | Destination | ||
+ | default | ||
+ | 149.236.99.0 | ||
+ | link-local | ||
+ | 192.168.122.0 | ||
+ | |||
+ | # route -n | ||
+ | Kernel IP routing table | ||
+ | Destination | ||
+ | 0.0.0.0 | ||
+ | 149.236.99.0 | ||
+ | 169.254.0.0 | ||
+ | 192.168.122.0 | ||
+ | |||
+ | # ip route | ||
+ | default via 149.236.99.1 dev enp55s9 | ||
+ | 149.236.99.0/ | ||
+ | 169.254.0.0/ | ||
+ | 192.168.122.0/ | ||
+ | </ | ||
+ | |||
+ | La solució és editar el fitxer ''/ | ||
+ | |||
+ | < | ||
+ | # nano -c ifcfg-enp55s9 | ||
+ | |||
+ | (delete line GATEWAY=149.236.99.1) | ||
+ | |||
+ | # systemctl restart network | ||
+ | Job for network.service failed because the control process exited with error code. See " | ||
+ | </ | ||
+ | |||
+ | però el problema no es resol, i una comprovació amb '' | ||
+ | |||
+ | < | ||
+ | # ip route delete 149.236.99.0/ | ||
+ | # ip route | ||
+ | 169.254.0.0/ | ||
+ | 192.168.122.0/ | ||
+ | |||
+ | # ip route delete 169.254.0.0/ | ||
+ | # ip route delete 192.168.122.0/ | ||
+ | # ip route | ||
+ | |||
+ | # | ||
+ | </ | ||
+ | |||
+ | i reiniciar la xarxa un cop més. | ||
+ | |||
+ | Malauradament el problema segueix sense resoldre' | ||
+ | |||
+ | ==== Configuració de la xarxa UAB ==== | ||
+ | |||
+ | Començo per configurar el dispositiu '' | ||
+ | |||
+ | < | ||
+ | # nmcli general status | ||
+ | STATE CONNECTIVITY | ||
+ | connected | ||
+ | |||
+ | # nmcli general hostname | ||
+ | cie-56-18.uab.cat | ||
+ | |||
+ | # nmcli connection show --active | ||
+ | NAME | ||
+ | UAB-LAN | ||
+ | |||
+ | # nmcli connection show id UAB-LAN | ||
+ | connection.id: | ||
+ | connection.uuid: | ||
+ | connection.stable-id: | ||
+ | connection.type: | ||
+ | [...] | ||
+ | connection.permissions: | ||
+ | [...] | ||
+ | 802-3-ethernet.mac-address: | ||
+ | [...] | ||
+ | GENERAL.NAME: | ||
+ | GENERAL.UUID: | ||
+ | GENERAL.DEVICES: | ||
+ | GENERAL.STATE: | ||
+ | GENERAL.DEFAULT: | ||
+ | [...] -- | ||
+ | IP4.ADDRESS[1]: | ||
+ | IP4.GATEWAY: | ||
+ | IP4.ROUTE[1]: | ||
+ | IP4.ROUTE[2]: | ||
+ | IP4.DNS[1]: | ||
+ | IP4.DNS[2]: | ||
+ | IP4.DOMAIN[1]: | ||
+ | DHCP4.OPTION[1]: | ||
+ | [...] | ||
+ | DHCP4.OPTION[9]: | ||
+ | DHCP4.OPTION[10]: | ||
+ | [..] | ||
+ | DHCP4.OPTION[30]: | ||
+ | DHCP4.OPTION[31]: | ||
+ | [...] | ||
+ | </ | ||
+ | |||
+ | per la nova configuració estàtica, | ||
+ | |||
+ | < | ||
+ | # cd / | ||
+ | # cat ifcfg-UAB-LAN | ||
+ | HWADDR=3C: | ||
+ | TYPE=Ethernet | ||
+ | PROXY_METHOD=none | ||
+ | BROWSER_ONLY=no | ||
+ | ETHTOOL_OPTS=" | ||
+ | BOOTPROTO=none | ||
+ | DEFROUTE=yes | ||
+ | IPV4_FAILURE_FATAL=yes | ||
+ | IPV6INIT=no | ||
+ | NAME=UAB-LAN | ||
+ | UUID=be7bd600-74cb-49ef-919f-c3c027459391 | ||
+ | ONBOOT=no | ||
+ | USERS=sermnadmin | ||
+ | IPADDR=158.109.56.18 | ||
+ | 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' | ||
+ | |||
+ | Pel dispositiu de la xarxa de l' | ||
+ | |||
+ | < | ||
+ | # 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/ | ||
+ | </ | ||
+ | |||
+ | El fitxer de configuració d' | ||
+ | |||
+ | < | ||
+ | # cat ifcfg-CONSOLE-LAN | ||
+ | ZONE=trusted | ||
+ | USERCTL=no | ||
+ | NETMASK=255.255.255.0 | ||
+ | DEVICE=enp55s9 | ||
+ | TYPE=Ethernet | ||
+ | PROXY_METHOD=none | ||
+ | BROWSER_ONLY=no | ||
+ | BOOTPROTO=none | ||
+ | DEFROUTE=yes | ||
+ | IPV4_FAILURE_FATAL=yes | ||
+ | IPV6INIT=no | ||
+ | IPV6_AUTOCONF=yes | ||
+ | IPV6_DEFROUTE=yes | ||
+ | IPV6_FAILURE_FATAL=no | ||
+ | IPV6_ADDR_GEN_MODE=stable-privacy | ||
+ | NAME=" | ||
+ | UUID=227b37f9-5a73-4dfb-9ad4-60924a6fe3d9 | ||
+ | ONBOOT=yes | ||
+ | HWADDR=1C: | ||
+ | IPADDR=149.236.99.1 | ||
+ | PREFIX=24 | ||
+ | </ | ||
+ | |||
+ | ==== Comprovació de les rutes ==== | ||
+ | |||
+ | Un cop els dos dispositius de xarxa estan en funcionament, | ||
+ | |||
+ | < | ||
+ | # nmcli device status | ||
+ | DEVICE | ||
+ | enp1s0 | ||
+ | enp55s9 | ||
+ | lo | ||
+ | |||
+ | # 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/ | ||
+ | |||
+ | # ping -c 5 gw.uab.cat | ||
+ | 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): | ||
+ | |||
+ | --- gw.uab.cat ping statistics --- | ||
+ | 5 packets transmitted, | ||
+ | rtt min/ | ||
+ | </ | ||
+ | |||
+ | comprovo les rutes definides i veig que són les correctes, | ||
+ | |||
+ | < | ||
+ | # route | ||
+ | Kernel IP routing table | ||
+ | Destination | ||
+ | default | ||
+ | 149.236.99.0 | ||
+ | 158.109.48.0 | ||
+ | link-local | ||
+ | |||
+ | [root@cie-56-18 NetworkManager]# | ||
+ | Kernel IP routing table | ||
+ | Destination | ||
+ | 0.0.0.0 | ||
+ | 149.236.99.0 | ||
+ | 158.109.48.0 | ||
+ | 169.254.0.0 | ||
+ | </ | ||
+ | |||
+ | ==== Enllaços d' | ||
+ | |||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||