John Chambers
August 16th, 2016, 02:20 PM
I've been trying to fix the setup of a new Ubuntu server box, and one problem is that when it's rebooted, it comes up with no network connectivity. I've done a lot of googling, and the result is a lot of confusion. Is there somewhere a coherent description of the "latest, greatest" setup stuff.
One problem is that we can't even convince ourselves that we know what release of Ubuntu is on the box. Typing "uname -a" gives:
Linux kendy 4.4.0-34-generic #53-Ubuntu SMP Wed Jul 27 16:06:39 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
However, nearly all the docs use OS version numbers starting with "16-". We suspect it's 16-4 (or maybe 16-6?), but nowhere do we find anything that gives a 16-* number. What are we missing? Where is this documented?
Also, ifconfig gives the result for the known ethernet port (en01):
eno1 Link encap:Ethernet HWaddr 00:1f:c6:9b:c6:a4
inet addr:10.0.1.107 Bcast:10.0.1.255 Mask:255.255.255.0
inet6 addr: fe80::21f:c6ff:fe9b:c6a4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:104079 errors:0 dropped:1 overruns:0 frame:0
TX packets:93976 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:22393411 (22.3 MB) TX bytes:34647244 (34.6 MB)
Interrupt:16 Memory:dc200000-dc220000
One thing that looks wrong is that the /etc/network/interfaces file says:
iface eno1 inet static
address 10.0.1.17/8
gateway 10.0.1.1
That's not the address that ifconfig shows, and "ls -lu" shows that /etc/network/interfaces wasn't read after the reboot. So, despite all the helpful docs saying to put the info in /etc/network/interfaces, that info is apparently not used during a boot. Or is it? I discovered the "ip address" command, which gives:
2:
eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:1f:c6:9b:c6:a4 brd ff:ff:ff:ff:ff:ff
inet 10.0.1.107/24 brd 10.0.1.255 scope global eno1
valid_lft forever preferred_lft forever
inet 10.0.1.17/8 brd 10.255.255.255 scope global eno1
valid_lft forever preferred_lft forever
inet6 fe80::21f:c6ff:fe9b:c6a4/64 scope link
valid_lft forever preferred_lft forever
So it appears that en01 has 2 IPv4 addresses, 10.0.1.107 and 10.0.1.17.
Another sign of the confusion is that a "route -n" command right now gives:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.1.1 0.0.0.0 UG 0 0 0 eno1
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eno1
10.0.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eno1
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eno1
This gets even more reactions. What's this 10.0.1.1 gateway, and where did it come from? That string isn't in any config file that I can find. And where did the 169.254.0.0 address come from? What is doing this setup, and how to we fix it?
Anyway, we're looking for a bit of guidance in making sense of this mess, so we can get the server up and running sanely. (Googling the problems isn't getting us anywhere. ;-)
(We're convinced that some big changes have been made somewhere. Part of the evidence is that I tried copying the network setup from a machine just down the wire that's been running for a few years, changing only the last field of the IP addresses to 17 for this machine. The result was an earlier version of the failure you see above. But part of the evidence is also that "ls -lu" tells us that some of the config files weren't even read after a boot.)
(And I did find references to network-manager, which I tried disabling using some instructions that google found, but that didn't seem to change anything at all, so it may not be the problem.)
(And points to anyone who can name the sci-fi novel that the machine's name came from. ;-)
One problem is that we can't even convince ourselves that we know what release of Ubuntu is on the box. Typing "uname -a" gives:
Linux kendy 4.4.0-34-generic #53-Ubuntu SMP Wed Jul 27 16:06:39 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
However, nearly all the docs use OS version numbers starting with "16-". We suspect it's 16-4 (or maybe 16-6?), but nowhere do we find anything that gives a 16-* number. What are we missing? Where is this documented?
Also, ifconfig gives the result for the known ethernet port (en01):
eno1 Link encap:Ethernet HWaddr 00:1f:c6:9b:c6:a4
inet addr:10.0.1.107 Bcast:10.0.1.255 Mask:255.255.255.0
inet6 addr: fe80::21f:c6ff:fe9b:c6a4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:104079 errors:0 dropped:1 overruns:0 frame:0
TX packets:93976 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:22393411 (22.3 MB) TX bytes:34647244 (34.6 MB)
Interrupt:16 Memory:dc200000-dc220000
One thing that looks wrong is that the /etc/network/interfaces file says:
iface eno1 inet static
address 10.0.1.17/8
gateway 10.0.1.1
That's not the address that ifconfig shows, and "ls -lu" shows that /etc/network/interfaces wasn't read after the reboot. So, despite all the helpful docs saying to put the info in /etc/network/interfaces, that info is apparently not used during a boot. Or is it? I discovered the "ip address" command, which gives:
2:
eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:1f:c6:9b:c6:a4 brd ff:ff:ff:ff:ff:ff
inet 10.0.1.107/24 brd 10.0.1.255 scope global eno1
valid_lft forever preferred_lft forever
inet 10.0.1.17/8 brd 10.255.255.255 scope global eno1
valid_lft forever preferred_lft forever
inet6 fe80::21f:c6ff:fe9b:c6a4/64 scope link
valid_lft forever preferred_lft forever
So it appears that en01 has 2 IPv4 addresses, 10.0.1.107 and 10.0.1.17.
Another sign of the confusion is that a "route -n" command right now gives:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.1.1 0.0.0.0 UG 0 0 0 eno1
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eno1
10.0.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eno1
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eno1
This gets even more reactions. What's this 10.0.1.1 gateway, and where did it come from? That string isn't in any config file that I can find. And where did the 169.254.0.0 address come from? What is doing this setup, and how to we fix it?
Anyway, we're looking for a bit of guidance in making sense of this mess, so we can get the server up and running sanely. (Googling the problems isn't getting us anywhere. ;-)
(We're convinced that some big changes have been made somewhere. Part of the evidence is that I tried copying the network setup from a machine just down the wire that's been running for a few years, changing only the last field of the IP addresses to 17 for this machine. The result was an earlier version of the failure you see above. But part of the evidence is also that "ls -lu" tells us that some of the config files weren't even read after a boot.)
(And I did find references to network-manager, which I tried disabling using some instructions that google found, but that didn't seem to change anything at all, so it may not be the problem.)
(And points to anyone who can name the sci-fi novel that the machine's name came from. ;-)