LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-21-2016, 06:34 PM   #1
mh473
LQ Newbie
 
Registered: Apr 2016
Posts: 1

Rep: Reputation: Disabled
Why is Ubuntu 14 Networking such a mess?


Ubuntu 14 Desktop, 2 Nics

Primary task: create virtual interface on eth0 (eth0:0)

Now the interfaces file is no use, it will just get overwritten.

Network Manager is not installed.

Network in OS settings does not function at all

The dropdown toolbar in the upper right functions to set static, but DOES NOT GIVE OPTION FOR VIRTUAL INTERFACE

#ifconfig -a
eth0 Link encap:Ethernet HWaddr bc:5f:f4:54:5e:39
inet addr:192.168.1.237 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::be5f:f4ff:fe54:5e39/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:27601050 errors:0 dropped:2343 overruns:0 frame:0
TX packets:24987726 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:12151715180 (12.1 GB) TX bytes:3131585335 (3.1 GB)

eth1 Link encap:Ethernet HWaddr 00:15:17:2a:3e:b6
inet addr:172.16.1.15 Bcast:172.16.1.255 Mask:255.255.255.0
inet6 addr: fe80::215:17ff:fe2a:3eb6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15124879 errors:0 dropped:0 overruns:0 frame:0
TX packets:779430 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:21867421604 (21.8 GB) TX bytes:228215155 (228.2 MB)
Interrupt:16 Memory:f7120000-f7140000

I have some virtualbox stuff also but it is not pertinet imo.

ip addr add eth0:1 192.168.88.2
Error: an inet prefix is expected rather than "eth0:1".

#ip addr add 192.168.88.2 eth0:1
Error: either "local" is duplicate, or "eth0:1" is a garbage.

#sudo ip addr add 192.168.88.2 dev eth0:1 label eth0:1
RTNETLINK answers: File exists (Operation not permitted etc etc etc)


And etc etc, I'm just astounded the incompetence of this networking setup and the utter lack of documentation, all tutorials totally ignore this and either say 'just install network manager' or 'just uninstall network manager' or 'use nmcli' or 'use ip command' 'or 'set it in /etc/network/interfaces' and all of these are at odds with each other.

Linux is supposed to have solved this shit, not complicated it to the nth level. I certainly like how my window manager allows me to use dual monitors without utter chaos, but how could something as core as the ability to set interfaces have turned into this nightmare?

sincerely, afterahundredarticlescantsetvif

Last edited by mh473; 04-21-2016 at 06:35 PM.
 
Old 04-21-2016, 07:06 PM   #2
stuartlangridge
LQ Newbie
 
Registered: Feb 2016
Location: Perfidious Albion
Distribution: Ubuntu
Posts: 1

Rep: Reputation: Disabled
Why is Ubuntu 14 Networking such a mess?

"I'm just astounded the incompetence of this networking setup and the utter lack of documentation"

Without wishing to be mean here, that's a networking setup that you've personally created. Ubuntu want you to use network manager; that's why they ship with it. You've turned it off, and doubtless for good reasons, but that means that you're in charge of your networking setup; I ink blaming upstream is a bit unreasonable when you've deliberately turned off their networking setup, surely?
 
Old 04-21-2016, 07:38 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,486

Rep: Reputation: 5838Reputation: 5838Reputation: 5838Reputation: 5838Reputation: 5838Reputation: 5838Reputation: 5838Reputation: 5838Reputation: 5838Reputation: 5838Reputation: 5838
Welcome to LinuxQuestions.

No need to use an alias (i.e :1) to assign multiple address to the same interface. The correct syntax is:
sudo ip address add 192.168.2.223/24 dev eth0
sudo ip address add 192.168.3.223/24 dev eth0

The same goes for network manager. There isn't a virtual interface setting. You can manually add multiple IP addresses
when you select manual settings.

In the interfaces configuration file
iface eth0 inet dhcp

iface eth0 inet static
address 192.168.2.223/24

iface eth0 inet static
address 192.168.3.223/24

I admit that you can find lots of information but trying to weed out all the old stuff and finding something specific for your distribution/version might be difficult for a newbie.

Last edited by michaelk; 04-21-2016 at 07:41 PM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 12.04 update audio mess ADS-Ohio Linux - Newbie 2 08-31-2012 10:39 PM
two grubs, win7, ubuntu, a mess skan Linux - Software 4 05-06-2010 01:45 PM
Ubuntu mess yasere Ubuntu 2 12-16-2008 09:43 AM
E17, Ubuntu, and My Mess json684 Linux - Laptop and Netbook 7 09-20-2005 06:46 AM
Got Mess With Networking ikm19 Linux - Networking 6 12-28-2003 09:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:59 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