Networking on Ubuntu 12.04 not working after upgrade

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
bchalk
New to forums
New to forums
Posts: 10
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Thu Sep 30, 2010 1:08 pm

Networking on Ubuntu 12.04 not working after upgrade

Post by bchalk »

Hello,

I was hoping anyone could help me, I've had my VPS for a bit over a year with little problems. I just upgraded my server from ubuntu 10.04 LTS to the newer 12.04 LTS and am having problems with networking.

First of all it looks like the install went ok and I can do most things through the VNC management, however, networking is not coming up.

My old /etc/network/interfaces file:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 66.150.164.MYIP
netmask 255.255.255.0
broadcast 66.150.164.255
gateway 66.150.164.254

auto eth0:0
iface eth0:0 inet static
address 66.150.164.MYIP2
netmask 255.255.255.0
broadcast 66.150.164.255

And depending on settings when restarting networking or trying to ifup the interfaces I get:
RTNETLINK answers: File exists
or
RTNETLINK answers: Cannot assign requested address

Similarly just doing the following returns an unusual response:
#ifconfig eth0 66.150.164.MYIP
SIOCSIFFLAGS: Cannot assign requested address

Some debug:
#ethtool -i eth0
driver: vif
version:
firmware-version:
bus-info: vif-0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: no


Does this have anything to do with xen, do I have to install any drivers for networking?

I have zero internet access to the server, so the only source of packages I know of is the 12.04 server dvd I can mount from the nfo control panel (glad to see it added).
User avatar
Edge100x
Founder
Founder
Posts: 12945
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Networking on Ubuntu 12.04 not working after upgrade

Post by Edge100x »

udev might have mucked around with your interface names when you changed kernels. What do you see when you type "ifconfig -a"?
bchalk
New to forums
New to forums
Posts: 10
Joined: Thu Sep 30, 2010 1:08 pm

Re: Networking on Ubuntu 12.04 not working after upgrade

Post by bchalk »

Hmm, I can't really copy and paste over the vnc thingy, but hope this helps...
Attachments
ethsm.jpg
User avatar
Edge100x
Founder
Founder
Posts: 12945
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Networking on Ubuntu 12.04 not working after upgrade

Post by Edge100x »

I see that you have a tunnel there. Does it help to turn this off?

What is the output of "route -n"?
bchalk
New to forums
New to forums
Posts: 10
Joined: Thu Sep 30, 2010 1:08 pm

Re: Networking on Ubuntu 12.04 not working after upgrade

Post by bchalk »

That's left over from setting up openvpn at one point, but taking it down doesn't seem to change anything.
Attachments
tun.jpg
User avatar
Edge100x
Founder
Founder
Posts: 12945
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Networking on Ubuntu 12.04 not working after upgrade

Post by Edge100x »

This one is complicated and would likely require some hands-on diving and quite a bit of time for me to try to resolve. Other admins more familiar with Ubuntu-specific glitches might be able to help quickly, though.

One thing that you might try is booting with a different kernel. It should have saved your old one when you upgrading, allowing you to choose that at startup.
bchalk
New to forums
New to forums
Posts: 10
Joined: Thu Sep 30, 2010 1:08 pm

Re: Networking on Ubuntu 12.04 not working after upgrade

Post by bchalk »

Sorry, been on vacation and haven't had much time. I tried the 2.6.x older kernel (12.04 uses 3.0.x) and it works great... Not the best fix in the world, but it allows for me to try a few things and at least download packages to test. Will report back if I learn anything new.
bchalk
New to forums
New to forums
Posts: 10
Joined: Thu Sep 30, 2010 1:08 pm

Re: Networking on Ubuntu 12.04 not working after upgrade

Post by bchalk »

The biggest difference right off the bat:

root@subsume:/# ethtool -i eth0
driver: e1000
version: 7.3.21-k5-NAPI
firmware-version: N/A
bus-info: 0000:00:04.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes

I'm thinking it has to do with xen and whatever the ethernet driver is support was dropped in the new kernel. Like I said I'll report if I find anything.
User avatar
Edge100x
Founder
Founder
Posts: 12945
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Networking on Ubuntu 12.04 not working after upgrade

Post by Edge100x »

An e1000 would be an emulated adapter. The newer kernel should have PV-on-HVM drivers that save it from needing to emulate.
bchalk
New to forums
New to forums
Posts: 10
Joined: Thu Sep 30, 2010 1:08 pm

Re: Networking on Ubuntu 12.04 not working after upgrade

Post by bchalk »

More random info

Older 2.6 kernel:
# lshw -C network
*-network
description: Ethernet interface
product: 82540EM Gigabit Ethernet Controller
vendor: Intel Corporation
physical id: 4
bus info: pci@0000:00:04.0
logical name: eth0
version: 03
serial: 52:54:00:f7:xx:xx
size: 1Gbit/s
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000 driverversio n=7.3.21-k5-NAPI duplex=full firmware=N/A ip=66.150.164.IP latency=64 link=yes multicast=yes port=twisted pair speed=1Gbit/s
resources: irq:32 memory:f3000000-f301ffff ioport:c100(size=64)


vs the newer 3.2.0-29 kernel:
(sorry typing it out since I can't easily copy paste)

#lshw -C network
*-network DISABLED
description: Ethernet interface
physical id: 1
logical name: eth0
capabilities: ethernet physical
configuration: broadcast=yes driver=vif ip=66.150.164.IP st=yes
bchalk
New to forums
New to forums
Posts: 10
Joined: Thu Sep 30, 2010 1:08 pm

Re: Networking on Ubuntu 12.04 not working after upgrade

Post by bchalk »

Does this mean anything to anybody?

http://ubuntuforums.org/showthread.php?t=1915568

Seems like the same issue. I'm trying to see is there anyway to go back to the old way and not use any of the pv hvm stuff?
User avatar
Edge100x
Founder
Founder
Posts: 12945
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Networking on Ubuntu 12.04 not working after upgrade

Post by Edge100x »

This could be a problem with the upgrade procedure hanging on to old configuration information or not updating all of the scripts it should have. Or, it could be that the new kernel is not compatible with the specific version of Xen on the machine. Please open a support request and ask for it to be assigned to me in order to check the version of Xen.
rivanor
New to forums
New to forums
Posts: 11
Joined: Mon Dec 06, 2010 4:31 pm

Re: Networking on Ubuntu 12.04 not working after upgrade

Post by rivanor »

So does this mean a vanilla 12.04 install works just fine?
User avatar
Edge100x
Founder
Founder
Posts: 12945
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Networking on Ubuntu 12.04 not working after upgrade

Post by Edge100x »

Yes, we have an installer for vanilla 12.04 and it should not have this problem. I could double-check the version of Xen on the machine you're on to make sure that you're at the latest, though, to be safe in eliminating the chance of an incompatibility.
rivanor
New to forums
New to forums
Posts: 11
Joined: Mon Dec 06, 2010 4:31 pm

Re: Networking on Ubuntu 12.04 not working after upgrade

Post by rivanor »

Edge100x wrote:Yes, we have an installer for vanilla 12.04 and it should not have this problem. I could double-check the version of Xen on the machine you're on to make sure that you're at the latest, though, to be safe in eliminating the chance of an incompatibility.
That would be nice.

I am currently running the older (10.04) version of the kernel and things are working fine. But I would eventually like to use the latest kernel builds so that I don't miss security updates. I would also prefer not to reinstall 12.04 from scratch.

Any ideas on how I could figure out what is different? I actually tried installing XenServer just today to see if I could setup a vanilla ubuntu 12.04 sandbox myself to compare with my upgraded VDS but I didn't get far because I tried running XenServer inside VirtualBox (hehe, it didn't work too well hehe) as it would be a pain for me to dedicate a machine to this venture. Any chance you could setup a temporary fresh 12.04 install on your end that I could poke around with and compare, or would that be too much effort? I'm sure others would be glad to have this issue resolved as I would.
Post Reply