added second NIC and getting an omv error but card works

  • Hi there,


    just added a second NIC in my omv server. Linux found the module and the device name is "enp1s0"



    But when saving the new interface config in Omv it gave me an error msg:
    Error #0:exception 'OMV\ExecException' with message 'Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; systemctl start 'networking' 2>&1' with exit code '1': Job for networking.service failed because the control process exited with error code.See "systemctl status networking.service" and "journalctl -xe" for details.' in /usr/share/php/openmediavault/system/process.inc:175Stack trace:



    systemctl status networking.service
    ● networking.service - Raise network interfaces
    Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
    Drop-In: /run/systemd/generator/networking.service.d
    └─50-insserv.conf-$network.conf
    Active: failed (Result: exit-code) since Sat 2017-11-25 14:55:33 CET; 4min 42s ago
    Docs: man:interfaces(5)
    Main PID: 22272 (code=exited, status=1/FAILURE)



    Nov 25 14:55:32 openmediavault systemd[1]: Starting Raise network interfaces...
    Nov 25 14:55:32 openmediavault ifup[22272]: RTNETLINK answers: File exists
    Nov 25 14:55:32 openmediavault ifup[22272]: Failed to bring up enp1s0.
    Nov 25 14:55:33 openmediavault systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
    Nov 25 14:55:33 openmediavault systemd[1]: Failed to start Raise network interfaces.
    Nov 25 14:55:33 openmediavault systemd[1]: networking.service: Unit entered failed state.
    Nov 25 14:55:33 openmediavault systemd[1]: networking.service: Failed with result 'exit-code'.


    But when i do an ifconfig:


    enp1s0 Link encap:Ethernet HWaddr 00:60:
    inet addr:10.10.0.2 Bcast:10.10.0.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:9000 Metric:1
    RX packets:1407 errors:0 dropped:0 overruns:0 frame:0
    TX packets:617 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:123969 (121.0 KiB) TX bytes:49132 (47.9 KiB)



    eth0 Link encap:Ethernet HWaddr c8:60:
    inet addr:192.168.100.56 Bcast:192.168.100.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:168038 errors:0 dropped:0 overruns:0 frame:0
    TX packets:75647 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:193814329 (184.8 MiB) TX bytes:47453622 (45.2 MiB)


    and I can use the interface etc. but still omv
    #################################################################



    Sooved it myself by just flushing the Nic in the shell via:


    ip addr flush dev enp1s0


    simple as that I was ableto save the confrig in omv after that...

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!