<div dir="ltr">Gràcies, Julio,<div><br><div>1) ip r</div><div>default via 192.168.1.1 dev enp1s0f0 proto dhcp metric 100 <br><a href="http://169.254.0.0/16">169.254.0.0/16</a> dev enp1s0f0 scope link metric 1000 <br><a href="http://192.168.1.0/24">192.168.1.0/24</a> dev enp1s0f0 proto kernel scope link src 192.168.1.150 metric 100 </div><div><br></div><div>2)lsb_release -a<br>No LSB modules are available.<br>Distributor ID:  Ubuntu<br>Description:    Ubuntu 18.04.2 LTS<br>Release:    18.04<br>Codename:        bionic</div><div><a href="https://linuxconfig.org/how-to-configure-static-ip-address-on-ubuntu-18-04-bionic-beaver-linux">https://linuxconfig.org/how-to-configure-static-ip-address-on-ubuntu-18-04-bionic-beaver-linux</a><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><div dir="ltr">3)ip a</div><div dir="ltr">1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000<br>    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00<br>    inet <a href="http://127.0.0.1/8">127.0.0.1/8</a> scope host lo<br>       valid_lft forever preferred_lft forever<br>    inet6 ::1/128 scope host <br>       valid_lft forever preferred_lft forever<br>2: enp1s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000<br>    link/ether 20:1a:06:d6:7c:0d brd ff:ff:ff:ff:ff:ff<br>    inet <a href="http://192.168.1.150/24">192.168.1.150/24</a> brd 192.168.1.255 scope global dynamic noprefixroute enp1s0f0<br>       valid_lft 82308sec preferred_lft 82308sec<br>    inet6 fe80::4d48:80c2:7201:239f/64 scope link noprefixroute <br>       valid_lft forever preferred_lft forever<br>3: wlp2s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000<br>    link/ether 40:f0:2f:c6:e7:52 brd ff:ff:ff:ff:ff:ff</div><div dir="ltr"><br></div><div dir="ltr">IP pública: 93.176.153.240</div><div dir="ltr">IP privada: 192.168.1.150</div><div dir="ltr"><br></div><div dir="ltr">hostname -I | awk '{print $1}'<br>192.168.1.150<br></div><div dir="ltr"><br></div><div dir="ltr">ifconfig -a<br>enp1s0f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500<br>        inet 192.168.1.150  netmask 255.255.255.0  broadcast 192.168.1.255<br>        inet6 fe80::4d48:80c2:7201:239f  prefixlen 64  scopeid 0x20<link><br>        ether 20:1a:06:d6:7c:0d  txqueuelen 1000  (Ethernet)<br>        RX packets 698929  bytes 828206491 (828.2 MB)<br>        RX errors 3  dropped 0  overruns 0  frame 3<br>        TX packets 382581  bytes 50975143 (50.9 MB)<br>        TX errors 1  dropped 0 overruns 0  carrier 0  collisions 0<br>        device interrupt 18  <br><br>lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536<br>        inet 127.0.0.1  netmask 255.0.0.0<br>        inet6 ::1  prefixlen 128  scopeid 0x10<host><br>        loop  txqueuelen 1000  (Local Loopback)<br>        RX packets 27526  bytes 2749952 (2.7 MB)<br>        RX errors 0  dropped 0  overruns 0  frame 0<br>        TX packets 27526  bytes 2749952 (2.7 MB)<br>        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0<br><br>wlp2s0: flags=4098<BROADCAST,MULTICAST>  mtu 1500<br>        ether 40:f0:2f:c6:e7:52  txqueuelen 1000  (Ethernet)<br>        RX packets 0  bytes 0 (0.0 B)<br>        RX errors 0  dropped 0  overruns 0  frame 0<br>        TX packets 0  bytes 0 (0.0 B)<br>        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0</div><div dir="ltr"><br></div><div dir="ltr">
        
        


<p style="margin-bottom:0cm;line-height:100%">nmcli -p device show</p>
<p style="margin-bottom:0cm;line-height:100%">===============================================================================</p>
<p style="margin-bottom:0cm;line-height:100%">                    
  Detalls del dispositiu (enp1s0f0)</p>
<p style="margin-bottom:0cm;line-height:100%">===============================================================================</p>
<p style="margin-bottom:0cm;line-height:100%">GENERAL.DEVICE:     
                   enp1s0f0</p>
<p style="margin-bottom:0cm;line-height:100%">-------------------------------------------------------------------------------</p>
<p style="margin-bottom:0cm;line-height:100%">GENERAL.TYPE:       
                   ethernet</p>
<p style="margin-bottom:0cm;line-height:100%">-------------------------------------------------------------------------------</p>
<p style="margin-bottom:0cm;line-height:100%">GENERAL.HWADDR:     
                   20:1A:06:D6:7C:0D</p>
<p style="margin-bottom:0cm;line-height:100%">-------------------------------------------------------------------------------</p>
<p style="margin-bottom:0cm;line-height:100%">GENERAL.MTU:        
                   1500</p>
<p style="margin-bottom:0cm;line-height:100%">-------------------------------------------------------------------------------</p>
<p style="margin-bottom:0cm;line-height:100%">GENERAL.STATE:      
                   100 (connectat)</p>
<p style="margin-bottom:0cm;line-height:100%">-------------------------------------------------------------------------------</p>
<p style="margin-bottom:0cm;line-height:100%">GENERAL.CONNECTION: 
                   Connexions per xarxa amb fil 1</p>
<p style="margin-bottom:0cm;line-height:100%">-------------------------------------------------------------------------------</p>
<p style="margin-bottom:0cm;line-height:100%">GENERAL.CON-PATH:   
                   /org/freedesktop/NetworkManager/ActiveConnection/3</p>
<p style="margin-bottom:0cm;line-height:100%">-------------------------------------------------------------------------------</p>
<p style="margin-bottom:0cm;line-height:100%">WIRED-PROPERTIES.CARRIER:
              actiu</p>
<p style="margin-bottom:0cm;line-height:100%">-------------------------------------------------------------------------------</p>
<p style="margin-bottom:0cm;line-height:100%">IP4.ADDRESS[1]:     
                   <a href="http://192.168.1.150/24">192.168.1.150/24</a></p>
<p style="margin-bottom:0cm;line-height:100%">IP4.GATEWAY:        
                   192.168.1.1</p>
<p style="margin-bottom:0cm;line-height:100%">IP4.ROUTE[1]:       
                   dst = <a href="http://0.0.0.0/0">0.0.0.0/0</a>, nh = 192.168.1.1, mt = 100</p>
<p style="margin-bottom:0cm;line-height:100%">IP4.ROUTE[2]:       
                   dst = <a href="http://192.168.1.0/24">192.168.1.0/24</a>, nh = 0.0.0.0, mt = 100</p>
<p style="margin-bottom:0cm;line-height:100%">IP4.ROUTE[3]:       
                   dst = <a href="http://169.254.0.0/16">169.254.0.0/16</a>, nh = 0.0.0.0, mt = 1000</p>
<p style="margin-bottom:0cm;line-height:100%">IP4.DNS[1]:         
                   212.231.6.7</p>
<p style="margin-bottom:0cm;line-height:100%">IP4.DNS[2]:         
                   46.6.113.34</p>
<p style="margin-bottom:0cm;line-height:100%">IP4.DOMAIN[1]:      
                   home</p>
<p style="margin-bottom:0cm;line-height:100%">-------------------------------------------------------------------------------</p>
<p style="margin-bottom:0cm;line-height:100%">IP6.ADDRESS[1]:     
                   fe80::4d48:80c2:7201:239f/64</p>
<p style="margin-bottom:0cm;line-height:100%">IP6.GATEWAY:        
                   --</p>
<p style="margin-bottom:0cm;line-height:100%">IP6.ROUTE[1]:       
                   dst = ff00::/8, nh = ::, mt = 256, table=255</p>
<p style="margin-bottom:0cm;line-height:100%">IP6.ROUTE[2]:       
                   dst = fe80::/64, nh = ::, mt = 256</p>
<p style="margin-bottom:0cm;line-height:100%">IP6.ROUTE[3]:       
                   dst = fe80::/64, nh = ::, mt = 100</p>
<p style="margin-bottom:0cm;line-height:100%">-------------------------------------------------------------------------------</p>
<p style="margin-bottom:0cm;line-height:100%"><br>

</p>
<p style="margin-bottom:0cm;line-height:100%">===============================================================================</p>
<p style="margin-bottom:0cm;line-height:100%">                    
   Detalls del dispositiu (wlp2s0)</p>
<p style="margin-bottom:0cm;line-height:100%">===============================================================================</p>
<p style="margin-bottom:0cm;line-height:100%">GENERAL.DEVICE:     
                   wlp2s0</p>
<p style="margin-bottom:0cm;line-height:100%">-------------------------------------------------------------------------------</p>
<p style="margin-bottom:0cm;line-height:100%">GENERAL.TYPE:       
                   wifi</p>
<p style="margin-bottom:0cm;line-height:100%">-------------------------------------------------------------------------------</p>
<p style="margin-bottom:0cm;line-height:100%">GENERAL.HWADDR:     
                   40:F0:2F:C6:E7:52</p>
<p style="margin-bottom:0cm;line-height:100%">-------------------------------------------------------------------------------</p>
<p style="margin-bottom:0cm;line-height:100%">GENERAL.MTU:        
                   1500</p>
<p style="margin-bottom:0cm;line-height:100%">-------------------------------------------------------------------------------</p>
<p style="margin-bottom:0cm;line-height:100%">GENERAL.STATE:      
                   20 (no disponible)</p>
<p style="margin-bottom:0cm;line-height:100%">-------------------------------------------------------------------------------</p>
<p style="margin-bottom:0cm;line-height:100%">GENERAL.CONNECTION: 
                   --</p>
<p style="margin-bottom:0cm;line-height:100%">-------------------------------------------------------------------------------</p>
<p style="margin-bottom:0cm;line-height:100%">GENERAL.CON-PATH:   
                   --</p>
<p style="margin-bottom:0cm;line-height:100%">-------------------------------------------------------------------------------</p>
<p style="margin-bottom:0cm;line-height:100%"><br>

</p>
<p style="margin-bottom:0cm;line-height:100%">===============================================================================</p>
<p style="margin-bottom:0cm;line-height:100%">                    
     Detalls del dispositiu (lo)</p>
<p style="margin-bottom:0cm;line-height:100%">===============================================================================</p>
<p style="margin-bottom:0cm;line-height:100%">GENERAL.DEVICE:     
                   lo</p>
<p style="margin-bottom:0cm;line-height:100%">-------------------------------------------------------------------------------</p>
<p style="margin-bottom:0cm;line-height:100%">GENERAL.TYPE:       
                   loopback</p>
<p style="margin-bottom:0cm;line-height:100%">-------------------------------------------------------------------------------</p>
<p style="margin-bottom:0cm;line-height:100%">GENERAL.HWADDR:     
                   00:00:00:00:00:00</p>
<p style="margin-bottom:0cm;line-height:100%">-------------------------------------------------------------------------------</p>
<p style="margin-bottom:0cm;line-height:100%">GENERAL.MTU:        
                   65536</p>
<p style="margin-bottom:0cm;line-height:100%">-------------------------------------------------------------------------------</p>
<p style="margin-bottom:0cm;line-height:100%">GENERAL.STATE:      
                   10 (sense gestió)</p>
<p style="margin-bottom:0cm;line-height:100%">-------------------------------------------------------------------------------</p>
<p style="margin-bottom:0cm;line-height:100%">GENERAL.CONNECTION: 
                   --</p>
<p style="margin-bottom:0cm;line-height:100%">-------------------------------------------------------------------------------</p>
<p style="margin-bottom:0cm;line-height:100%">GENERAL.CON-PATH:   
                   --</p>
<p style="margin-bottom:0cm;line-height:100%">-------------------------------------------------------------------------------</p>
<p style="margin-bottom:0cm;line-height:100%">IP4.ADDRESS[1]:     
                   <a href="http://127.0.0.1/8">127.0.0.1/8</a></p>
<p style="margin-bottom:0cm;line-height:100%">IP4.GATEWAY:        
                   --</p>
<p style="margin-bottom:0cm;line-height:100%">-------------------------------------------------------------------------------</p>
<p style="margin-bottom:0cm;line-height:100%">IP6.ADDRESS[1]:     
                   ::1/128</p>
<p style="margin-bottom:0cm;line-height:100%">IP6.GATEWAY:        
                   --</p>
<p style="margin-bottom:0cm;line-height:100%">-------------------------------------------------------------------------------</p></div><div dir="ltr"><br></div><div dir="ltr"><div><img src="cid:ii_jz5qwowp0" alt="image.png" width="472" height="343"><br></div></div><div dir="ltr"><br><p>Tanmateix segueixo am ID baixa. Ho tornaré a repassar.</p><p>Saluta[c]cions<br><span><font color="#888888">Aquest missatge no l'ha 
analitzat cap antivirus en origen; està enviat des d'un sistema 
GNU/Linux i és poc probable que contingui programari maliciós.<br></font></span></p></div></div></div></div></div></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Missatge de julio <<a href="mailto:jamoros@riseup.net">jamoros@riseup.net</a>> del dia ds., 10 d’ag. 2019 a les 6:18:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">>El que passa és que:<br>>1) no sé on trobar l'encaminador<br><br>Al menjador? jo l'he trobat de vegades a sota d'una capsa de pizzes ;D<br><br>L'encaminador és el que fa camins, en anglès el router. <br>I per saber la seva adreça podries fer servir alguna ordre a la consola com per exemple:<br>ip r<br>(r abreviatura de route)<br>Aquesta ordre et dona la taula de camins (routes)<br>Normalment la que es troba a la primera línia (default via) et dona la ip del router.<br>...<br><br>>2) com es fa per tenir una IP fixa<br><br>Jo faig servir google i quan em trobo "estupendu" duck duck go :P<br>Per exemple aquest link:<br><br><a href="https://linuxconfig.org/how-to-configure-static-ip-address-on-ubuntu-18-10-cosmic-cuttlefish-linux" target="_blank">https://linuxconfig.org/how-to-configure-static-ip-address-on-ubuntu-18-10-cosmic-cuttlefish-linux</a><br><br>Perô si poses al teu cercador preferit quina versió d'ubuntu tens afinaràs millor.<br>Normalment pots configurar de dues maneres la IP del teu "trasto": <br>- dinàmica (te la dona un altre ordinador, per exemple el teu router utilitzant DHCP) <br>- estàtica, també anomenada fixa, l'has de posar tu ...<br><br>>3) com he de saber quina IP vull que l'encaminador li doni a la meva<br>>màquina<br><br>Pots fer servir la mateixa IP dinàmica que tens ara mateix. Per saber quina és, pots fer servir una ordre que et donarà informació dels diferents dispostius de xarxa que tens:<br>ip a<br>Més informació per exemple a:<br><a href="https://opensource.com/article/18/5/how-find-ip-address-linux" target="_blank">https://opensource.com/article/18/5/how-find-ip-address-linux</a><br><br>Fa segles que no faig servir l'amule. Però quan ho feia havia de mapejar els ports del router.<br><br>Quan amule responia al teu router pel port X, el teu router necessitava una taula NAT per saber a quin ordinador (la IP fixa de la que parlàvem abans) de la teva xarxa local havia de dirigir aquesta informació ...<br>Com que cada model de router es un mon i aquesta operació (port forwarding) s'havia de fer per més aplicacions, jocs per exemple, existia una pàgina molt popular i interessant que resolvia gairebé sempre el problema. No se si ara també:<br><br><a href="https://portforward.com" target="_blank">https://portforward.com</a><br><br>Bon profit :)<br><br><br><br>>On puc aprendre-ho això?<br><br><br>><br>>Saluta[c]cions<br>>Aquest missatge no l'ha analitzat cap antivirus en origen; està enviat<br>>des<br>>d'un sistema GNU/Linux i és poc probable que contingui programari<br>>maliciós.<br>><br>><br>>Missatge de Tomàs Mallafré <<a href="mailto:tomas@mallafre.cat" target="_blank">tomas@mallafre.cat</a>> del dia dv., 9 d’ag.<br>>2019 a<br>>les 19:47:<br>><br>>><br>>><br>>> Missatge de Joan Inglada Roig <<a href="mailto:joan.inglada@gmail.com" target="_blank">joan.inglada@gmail.com</a>> del dia dv., 9<br>>> d’ag. 2019 a les 18:53:<br>>><br>>>> Benvolguts companys,<br>>>><br>>>> Sempre em dona una ID baixa i hi ha alguns fitxers que no hi ha<br>>manera de<br>>>> baixar. Mireu l'última connexió:<br>>>><br>>>> <<a href="mailto:Ubuntu-cat@lists.ubuntu.com" target="_blank">Ubuntu-cat@lists.ubuntu.com</a>><br>>>><br>>><br>>> Segurament la solució passa per obrir els ports corresponents a<br>>> l'encaminador, per la qual cosa convindrà que tinguis IP fixa i/o que<br>>li<br>>> indiquis a l'encaminador quina IP vols que li doni a la teva màquina.<br>>Si no<br>>> m'explico bé, pregunta...<br>>><br>>> --<br>>> Tomàs Mallafré<br>>> GnuPG: 0x2D1296BA - <a href="https://z.tomi.cat/pgp" target="_blank">https://z.tomi.cat/pgp</a><br>>> Telegram: <a href="http://t.me/tmallafre" target="_blank">t.me/tmallafre</a><br>>> protonmail: <a href="mailto:tmallafre@pm.me" target="_blank">tmallafre@pm.me</a><br>>><br>>> Aquest missatge no l'ha analitzat cap antivirus en origen; està<br>>enviat des<br>>> d'un sistema GNU/Linux i és poc probable que contingui programari<br>>maliciós.<br>>> --<br>>> Ubuntu-cat mailing list<br>>> <a href="mailto:Ubuntu-cat@lists.ubuntu.com" target="_blank">Ubuntu-cat@lists.ubuntu.com</a><br>>> Modify settings or unsubscribe at:<br>>> <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-cat" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-cat</a><br>>><br><br>-- <br>Sent from my Android device with K-9 Mail. Please excuse my brevity.</blockquote></div>