Not Taking Multiple Static IP Addresses for multiple Network Interfaces

Asked by Basavaraj Chougala

Dear Sir,

Kindly Request to Ubuntu Forum People about Configuration of Multiple Network Cards In Ubuntu 16.4 to make Dedicated Server

In my Ubuntu Machine 3 Networks are there.

added the IP Address to First Network Card (i.e. enp1s0)

                      auto enp1s0
                     iface enp1s0 inet static
                      address 192.168.147.xx
                      netmask 255.255.255.0
                      network 192.168.147.0
                      broadcast 192.168.147.255

Second Network Card configured statically for My Local Network with own IP Address

added the IP Address to Second Network Card (i.e enp3s0) for My local area Network…

                                                auto enp3s0
                                                iface enp3s0 inet static
                                                 address 10.12.2.XX
                                                 netmask 255.255.254.0
                                                 gateway 10.12.2.1
                                                 network 10.12.2.0
                                                 broadcast 10.12.3.255
                                                 dns-nameservers 10.10.1.2 8.8.8.8

It is giving following Error after running the this command

$sudo /etc/init.d/networking restart

OUTPUT :
[…] Restarting networking (via systemctl): networking.serviceJob for networking.service failed because the control process exited with error code. See “systemctl status networking.service” and "journalctl -xe for details.
Failed!

Please kindly help me in this regard… It seems to be everything is correct but why this service is not running successfully.

Warm Regards,

Basavaraj From India,

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Arun Nair (arungn) said :
#1

systemctl status networking.service
journalctl -u networking

Did you look at the output of those commands as suggested?

Revision history for this message
Basavaraj Chougala (macmillana-s) said :
#2

Dear Sir,

Thank you for your immediate reply.. Using the mentioned Commands... I got Following OUTPUTS

hanry-ford@SVVKND:~$ journalctl -u networking
-- Logs begin at Sun 2018-11-04 16:02:13 IST, end at Sun 2018-11-04 21:24:40 IST. --
Nov 04 16:02:13 SVVKND systemd[1]: Starting Raise network interfaces...
Nov 04 16:02:13 SVVKND sh[475]: /etc/network/interfaces:2: misplaced option
Nov 04 16:02:13 SVVKND sh[475]: ifquery: couldn't read interfaces file "/etc/network/interfaces"
Nov 04 16:02:13 SVVKND systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Nov 04 16:02:13 SVVKND systemd[1]: Failed to start Raise network interfaces.
Nov 04 16:02:13 SVVKND ifup[477]: /etc/network/interfaces:2: misplaced option
Nov 04 16:02:13 SVVKND ifup[477]: /sbin/ifup: couldn't read interfaces file "/etc/network/interfaces"
Nov 04 16:02:13 SVVKND systemd[1]: networking.service: Unit entered failed state.
Nov 04 16:02:13 SVVKND systemd[1]: networking.service: Failed with result 'exit-code'.
Nov 04 16:06:11 SVVKND systemd[1]: Stopped Raise network interfaces.
Nov 04 16:06:11 SVVKND systemd[1]: Starting Raise network interfaces...
Nov 04 16:06:11 SVVKND sh[2019]: /etc/network/interfaces:2: misplaced option
Nov 04 16:06:11 SVVKND sh[2019]: ifquery: couldn't read interfaces file "/etc/network/interfaces"
Nov 04 16:06:11 SVVKND ifup[2023]: /etc/network/interfaces:2: misplaced option
Nov 04 16:06:11 SVVKND ifup[2023]: /sbin/ifup: couldn't read interfaces file "/etc/network/interfaces"
Nov 04 16:06:11 SVVKND systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Nov 04 16:06:11 SVVKND systemd[1]: Failed to start Raise network interfaces.
Nov 04 16:06:11 SVVKND systemd[1]: networking.service: Unit entered failed state.
Nov 04 16:06:11 SVVKND systemd[1]: networking.service: Failed with result 'exit-code'.
Nov 04 16:29:08 SVVKND systemd[1]: Stopped Raise network interfaces.
Nov 04 16:29:08 SVVKND systemd[1]: Starting Raise network interfaces...
Nov 04 16:29:08 SVVKND sh[2511]: /etc/network/interfaces:2: misplaced option
Nov 04 16:29:08 SVVKND sh[2511]: ifquery: couldn't read interfaces file "/etc/network/interfaces"
Nov 04 16:29:08 SVVKND ifup[2514]: /etc/network/interfaces:2: misplaced option
Nov 04 16:29:08 SVVKND ifup[2514]: /sbin/ifup: couldn't read interfaces file "/etc/network/interfaces"
Nov 04 16:29:08 SVVKND systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Nov 04 16:29:08 SVVKND systemd[1]: Failed to start Raise network interfaces.
Nov 04 16:29:08 SVVKND systemd[1]: networking.service: Unit entered failed state.
Nov 04 16:29:08 SVVKND systemd[1]: networking.service: Failed with result 'exit-code'.
Nov 04 17:26:13 SVVKND systemd[1]: Stopped Raise network interfaces.
Nov 04 17:26:13 SVVKND systemd[1]: Starting Raise network interfaces...
Nov 04 17:26:13 SVVKND sh[2867]: /etc/network/interfaces:2: misplaced option
Nov 04 17:26:13 SVVKND sh[2867]: ifquery: couldn't read interfaces file "/etc/network/interfaces"
Nov 04 17:26:13 SVVKND ifup[2870]: /etc/network/interfaces:2: misplaced option
Nov 04 17:26:13 SVVKND ifup[2870]: /sbin/ifup: couldn't read interfaces file "/etc/network/interfaces"
Nov 04 17:26:13 SVVKND systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Nov 04 17:26:13 SVVKND systemd[1]: Failed to start Raise network interfaces.
Nov 04 17:26:13 SVVKND systemd[1]: networking.service: Unit entered failed state.
Nov 04 17:26:13 SVVKND systemd[1]: networking.service: Failed with result 'exit-code'.
Nov 04 17:26:16 SVVKND systemd[1]: Stopped Raise network interfaces.
Nov 04 17:26:16 SVVKND systemd[1]: Starting Raise network interfaces...
hanry-ford@SVVKND:~$
hanry-ford@SVVKND:~$ 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 Sun 2018-11-04 17:27:12 IST; 4h 3min ago
     Docs: man:interfaces(5)
  Process: 2971 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
  Process: 2967 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] && [ -n "$(ifquery --read-environment --list --exclude=lo)" ] && ud
 Main PID: 2971 (code=exited, status=1/FAILURE)

Nov 04 17:27:12 SVVKND systemd[1]: Starting Raise network interfaces...
Nov 04 17:27:12 SVVKND sh[2967]: /etc/network/interfaces:2: misplaced option
Nov 04 17:27:12 SVVKND sh[2967]: ifquery: couldn't read interfaces file "/etc/network/interfaces"
Nov 04 17:27:12 SVVKND ifup[2971]: /etc/network/interfaces:2: misplaced option
Nov 04 17:27:12 SVVKND ifup[2971]: /sbin/ifup: couldn't read interfaces file "/etc/network/interfaces"
Nov 04 17:27:12 SVVKND systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Nov 04 17:27:12 SVVKND systemd[1]: Failed to start Raise network interfaces.
Nov 04 17:27:12 SVVKND systemd[1]: networking.service: Unit entered failed state.
Nov 04 17:27:12 SVVKND systemd[1]: networking.service: Failed with result 'exit-code'.

hanry-ford@SVVKND:~$

Yours
Basavaraj From India,

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.