LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-24-2019, 11:34 AM   #1
Bashed
Member
 
Registered: Jul 2015
Posts: 133

Rep: Reputation: Disabled
Fix Ubuntu 16 Networking


Just installed Ubuntu 16 server with /29 as primary and /24 as secondary at the Cisco switches.

I use a simple bind.sh script to bind the /24.

Code:
for i in $(seq 2 254);
    do
		ip addr add xxx.xxx.211.$i/24 dev eno1
	done

ip addr show
I'm getting this error though.

Code:
root@ns4:~# 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 Tue 2019-12-24 12:29:58 EST; 1min 3s ago
     Docs: man:interfaces(5)
  Process: 13859 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
  Process: 13853 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] && [ -n "$(ifquery --read-environment --list --exclude=lo)" ] && udevadm settle (code=exi
 Main PID: 13859 (code=exited, status=1/FAILURE)

Dec 24 12:29:56 ns4 ifup[13859]: RTNETLINK answers: File exists
Dec 24 12:29:56 ns4 ifup[13859]: Failed to bring up eno1:97.
Dec 24 12:29:56 ns4 ifup[13859]: RTNETLINK answers: File exists
Dec 24 12:29:56 ns4 ifup[13859]: Failed to bring up eno1:98.
Dec 24 12:29:56 ns4 ifup[13859]: RTNETLINK answers: File exists
Dec 24 12:29:56 ns4 ifup[13859]: Failed to bring up eno1:99.
Dec 24 12:29:58 ns4 systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Dec 24 12:29:58 ns4 systemd[1]: Failed to start Raise network interfaces.
Dec 24 12:29:58 ns4 systemd[1]: networking.service: Unit entered failed state.
Dec 24 12:29:58 ns4 systemd[1]: networking.service: Failed with result 'exit-code'.
 
Old 12-26-2019, 06:23 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
You seem to imply that the systemctl error and the addition of IP addresses are related. What makes you think they are?

Also, the fact that systemctl reports an error is not necessarily a problem. I see that systemctl repeatedly attempts to bring eno1 up. This fails because it is already up. Could this be a bug in the systemd unit definition? In any case, apart from this particular failure, is anything wrong with your networking?
 
Old 12-27-2019, 02:28 PM   #3
vincix
Senior Member
 
Registered: Feb 2011
Distribution: Ubuntu, Centos
Posts: 1,240

Rep: Reputation: 103Reputation: 103
Is 'ip addr show' part of the script? I hope not.

Are the ips assigned after you execute the loop?

I'd also like to reiterate what berndbausch said: is there actually anything wrong with your network? If you get no connection, have you configured your gateway?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ubuntu 11.4 Networking Networking icon security to change DrDwayne Linux - Networking 4 09-04-2011 01:21 PM
FIX---Fedora install hangs---To fix this---- jmckinzie Fedora - Installation 0 12-20-2005 12:08 AM
all attempts to fix the problem failed... can someone help me fix partition space? foreverdita Linux - Enterprise 2 05-11-2005 09:02 AM
reiserfsck --fix-fixable -> --fix-fixable ignored - why? BrianK Linux - Software 1 01-07-2005 08:45 PM
I will wager $50 that you can't fix my networking! bjarvis829 Linux - Networking 1 11-24-2003 08:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration