<div dir="ltr"><div class="gmail_extra"><div><div class="gmail-m_8855158458114823168gmail_signature"><div dir="ltr"><div>2017-03-07 11:54 GMT+01:00 Emiliano Vavassori <span dir="ltr"><<a href="mailto:syntaxerrormmm@gmail.com" target="_blank">syntaxerrormmm@gmail.com</a>></span>:<br></div></div></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Ciao Roberto,<br>
<span class="gmail-m_8855158458114823168gmail-"><br>
Il 7 marzo 2017 11:42, Roberto Santini <<a href="mailto:roberto.santini89@gmail.com" target="_blank">roberto.santini89@gmail.com</a>> ha scritto:<br>
> Sottolineo che il file di<br>
> configurazione (ifcfg-enp0s0) l'ho creato manualmente.<br>
<br>
</span>Condividicelo, proviamo a guardarlo.<br></blockquote><div><span style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px"><br></span></div><div><span style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px">Ciao vi giro un paio di conf funzionanti</span></div><div><span style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px">[ </span><font color="#2e8b57" face="monaco, andale mono, courier new, courier, mono"><span style="font-size:11.7px"><a href="https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/3/html/Reference_Guide/s1-networkscripts-interfaces.html" target="_blank">https://access.redhat.com/<wbr>documentation/en-US/Red_Hat_<wbr>Enterprise_Linux/3/html/<wbr>Reference_Guide/s1-<wbr>networkscripts-interfaces.html</a> ]</span></font></div><div><font color="#2e8b57" face="monaco, andale mono, courier new, courier, mono"><span style="font-size:11.7px"><br></span></font></div><div><span style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px">*** IP ASSEGNATO DINAMICAMENTE ***</span></div><div><div><span style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px">#cat </span><span style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px">/etc/sysconfig/network-<wbr>scripts/ifcfg-eth1</span></div><div><font color="#2e8b57" face="monaco, andale mono, courier new, courier, mono"><span style="font-size:11.7px">DEVICE=eth1</span></font></div><div><font color="#2e8b57" face="monaco, andale mono, courier new, courier, mono"><span style="font-size:11.7px">BOOTPROTO=dhcp</span></font></div><div><font color="#2e8b57" face="monaco, andale mono, courier new, courier, mono"><span style="font-size:11.7px">ONBOOT=yes</span></font></div></div><div><span style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px">HWADDR=NIC_MAC_address</span><br style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px"></div><div><div><span style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px">TYPE=Ethernet</span><br style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px"><span style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px">IPV6INIT=no</span><br></div></div><div><span style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px"><br></span></div><div><span style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px">*** IP STATICO ***</span><span style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px"><br></span></div><div><span style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px">#cat </span><span style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px">/etc/sysconfig/network-<wbr>scripts/ifcfg-eth0</span></div><div><span style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px">DEVICE=eth0</span></div><div><span style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px">BOOTPROTO=static</span><br style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px"><span style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px">IPADDR=your_IP</span><br style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px"><span style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px">NETMASK=your_network_mask</span><br style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px"><span style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px">HWADDR=NIC_MAC_address</span><br style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px"><span style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px">NM_CONTROLLED=no</span><br style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px"><span style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px">ONBOOT=yes</span><br style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px"><span style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px">TYPE=Ethernet</span><br style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px"><span style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px">IPV6INIT=no</span><br></div><div><span style="color:rgb(46,139,87);font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px"><b><u><br></u></b></span></div><div><span style="font-family:monaco,"andale mono","courier new",courier,mono;font-size:11.7px"><font color="#000000"><b><u>Per conoscere il MAC ADDRESS delle schede puoi usare :</u></b></font></span></div><div><font color="#2e8b57" face="monaco, andale mono, courier new, courier, mono"><span style="font-size:11.7px">#ip addr show</span></font></div><div><font color="#2e8b57" face="monaco, andale mono, courier new, courier, mono"><span style="font-size:11.7px">1: lo: mtu 65536 qdisc noqueue state UNKNOWN</span></font></div><div><font color="#2e8b57" face="monaco, andale mono, courier new, courier, mono"><span style="font-size:11.7px">link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00</span></font></div><div><font color="#2e8b57" face="monaco, andale mono, courier new, courier, mono"><span style="font-size:11.7px">inet <a href="http://127.0.0.1/8" target="_blank">127.0.0.1/8</a> scope host lo</span></font></div><div><font color="#2e8b57" face="monaco, andale mono, courier new, courier, mono"><span style="font-size:11.7px">valid_lft forever preferred_lft forever</span></font></div><div><font color="#2e8b57" face="monaco, andale mono, courier new, courier, mono"><span style="font-size:11.7px">inet6 ::1/128 scope host</span></font></div><div><font color="#2e8b57" face="monaco, andale mono, courier new, courier, mono"><span style="font-size:11.7px">valid_lft forever preferred_lft forever</span></font></div><div><font face="monaco, andale mono, courier new, courier, mono" color="#0000ff"><span style="font-size:11.7px"><b>2: eno16777736: mtu 1500 qdisc pfifo_fast state UP qlen 1000</b></span></font></div><div><font face="monaco, andale mono, courier new, courier, mono"><span style="font-size:11.7px;background-color:rgb(204,204,204)"><b><font color="#2e8b57">link/ether </font><font color="#ff0000">00:0c:29:92:78:40</font><font color="#2e8b57"> brd ff:ff:ff:ff:ff:ff</font></b></span></font></div><div><font color="#2e8b57" face="monaco, andale mono, courier new, courier, mono"><span style="font-size:11.7px">inet XX.X.XX.XX/24 brd 10.0.10.255 scope global dynamic eno16777736</span></font></div><div><font color="#2e8b57" face="monaco, andale mono, courier new, courier, mono"><span style="font-size:11.7px">valid_lft 85931sec preferred_lft 85931sec</span></font></div><div><font color="#2e8b57" face="monaco, andale mono, courier new, courier, mono"><span style="font-size:11.7px">inet6 fe80::20c:29ff:fe92:7840/64 scope link</span></font></div><div><font color="#2e8b57" face="monaco, andale mono, courier new, courier, mono"><span style="font-size:11.7px">valid_lft forever preferred_lft foreverw</span></font></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-m_8855158458114823168gmail-">> Al riavvio, la scheda è riconosciuta e ottengo indirizzo IP corretto, ma se<br>
> provo a fare il ping al router ricevo un errore: sendmsg operation not<br>
> permitted. Allo stesso modo, non riesco ad accedere al server da un altro pc<br>
> nella rete, attraverso l'indirizzo IP.</span></blockquote><div><br></div><div>Usi iptables/firewalls ? Hai provato a spegnerlo e rifare il ping ?</div><div>Nei log ti traccia qualcosa (guarda l'output con un dmseg)</div><div><br></div><div>Se vuoi che il sistema continua ad assegnargli un nome 'umano' puoi provare così [2] :</div><div><pre class="gmail-m_8855158458114823168gmail-bbcodeblock" dir="ltr" style="background-color:rgb(207,217,255);color:rgb(0,0,0);font-size:13.3333px;margin-top:0px;margin-bottom:0px;padding:3px;border:1px inset;width:1137.77px;height:114px;overflow:auto"># vim /etc/udev/rules.d/10-network.<wbr>rules
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="xx:xx:xx:xx:<wbr>xx:xx", NAME="eth0"
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="yy:yy:yy:yy:<wbr>yy:yy", NAME="eth1"
# mv /etc/sysconfig/network-<wbr>scripts/ifcfg-enpXxX /etc/sysconfig/network-<wbr>scripts/ifcfg-eth0
# mv /etc/sysconfig/network-<wbr>scripts/ifcfg-enpYyY /etc/sysconfig/network-<wbr>scripts/ifcfg-eth1</pre></div><div> </div><div>o così [3]</div><div><br></div><div><span style="background-color:rgb(238,238,238);color:rgb(51,51,51);font-family:tahoma,verdana,arial,sans-serif;font-size:12px">sulla command line che chiama il kernel </span><span style="background-color:rgb(238,238,238)"><strong style="color:rgb(51,51,51);font-family:tahoma,verdana,arial,sans-serif;font-size:12px">net.ifnames=0 biosdevname=0</strong><br></span></div><div><span style="background-color:rgb(238,238,238);color:rgb(51,51,51);font-family:tahoma,verdana,arial,sans-serif;font-size:12px">quindi, se usi </span><b style="color:rgb(51,51,51);font-family:tahoma,verdana,arial,sans-serif;font-size:12px">GRUB</b><br></div><div><span style="background-color:rgb(238,238,238)"><font color="#333333" face="tahoma, verdana, arial, sans-serif"><span style="font-size:12px">[fleur@PetitFleur ~]# vi /etc/default/grub</span></font><br></span></div><div><span style="color:rgb(51,51,51);font-family:tahoma,verdana,arial,sans-serif;font-size:12px;background-color:rgb(188,197,193)">GRUB_CMDLINE_LINUX=”</span><span class="gmail-m_8855158458114823168gmail-skimlinks-unlinked" style="margin:0px;padding:0px;border:0px;font-size:12px;font-family:tahoma,verdana,arial,sans-serif;vertical-align:baseline;color:rgb(51,51,51);background-color:rgb(188,197,193)"><a href="http://rd.lvm.lv" target="_blank">rd.lvm.lv</a>=<wbr>rootvg/usrlv</span><span style="color:rgb(51,51,51);font-family:tahoma,verdana,arial,sans-serif;font-size:12px;background-color:rgb(188,197,193)"> </span><span class="gmail-m_8855158458114823168gmail-skimlinks-unlinked" style="margin:0px;padding:0px;border:0px;font-size:12px;font-family:tahoma,verdana,arial,sans-serif;vertical-align:baseline;color:rgb(51,51,51);background-color:rgb(188,197,193)"><a href="http://rd.lvm.lv" target="_blank">rd.lvm.lv</a>=rootvg/<wbr>swaplv</span><span style="color:rgb(51,51,51);font-family:tahoma,verdana,arial,sans-serif;font-size:12px;background-color:rgb(188,197,193)"> crashkernel=auto vconsole.keymap=it </span><span class="gmail-m_8855158458114823168gmail-skimlinks-unlinked" style="margin:0px;padding:0px;border:0px;font-size:12px;font-family:tahoma,verdana,arial,sans-serif;vertical-align:baseline;color:rgb(51,51,51);background-color:rgb(188,197,193)"><a href="http://rd.lvm.lv" target="_blank">rd.lvm.lv</a>=<wbr>rootvg/rootlv</span><span style="color:rgb(51,51,51);font-family:tahoma,verdana,arial,sans-serif;font-size:12px;background-color:rgb(188,197,193)"> </span><span class="gmail-m_8855158458114823168gmail-skimlinks-unlinked" style="margin:0px;padding:0px;border:0px;font-size:12px;font-family:tahoma,verdana,arial,sans-serif;vertical-align:baseline;color:rgb(51,51,51);background-color:rgb(188,197,193)">vconsole.font=<wbr>latarcyrheb-sun16</span><span style="color:rgb(51,51,51);font-family:tahoma,verdana,arial,sans-serif;font-size:12px;background-color:rgb(188,197,193)"> rhgb quiet </span><strong style="color:rgb(51,51,51);font-family:tahoma,verdana,arial,sans-serif;font-size:12px;background-color:rgb(188,197,193)">net.ifnames=0 biosdevname=0</strong><span style="background-color:rgb(238,238,238)"><font color="#333333" face="tahoma, verdana, arial, sans-serif"><span style="font-size:12px"><br></span></font></span></div><div><strong style="color:rgb(51,51,51);font-family:tahoma,verdana,arial,sans-serif;font-size:12px;background-color:rgb(188,197,193)"><br></strong></div><div>Comunque é stato richiesto [4] che almeno nel kernel centosplus il driver per quella scheda di rete venisse abilitato ed é stato rimesso [5]</div><div><br></div><div>Ciao</div><div>Fleur</div><div><br></div><div>[1] : </div><div>[2] : <a href="http://www.linuxquestions.org/questions/linux-newbie-8/no-eth0-but-ifcfg-enp2s0-4175538454/" target="_blank">http://www.linuxquestions.<wbr>org/questions/linux-newbie-8/<wbr>no-eth0-but-ifcfg-enp2s0-<wbr>4175538454/</a></div><div>[3] : <a href="https://esuareznotes.wordpress.com/2014/07/11/change-default-network-name-to-old-eth0-on-rhel-7-fedora-19-above/" target="_blank">https://esuareznotes.<wbr>wordpress.com/2014/07/11/<wbr>change-default-network-name-<wbr>to-old-eth0-on-rhel-7-fedora-<wbr>19-above/</a></div><div>[4] : <a href="https://lists.centos.org/pipermail/centos/2014-July/144192.html">https://lists.centos.org/pipermail/centos/2014-July/144192.html</a></div><div>[5] : <a href="https://bugs.centos.org/view.php?id=7359">https://bugs.centos.org/view.php?id=7359</a></div></div></div></div>