Have I mentioned I don't really like Ubuntu? For some reason Xen's network-bridge script kills my networking, even though I'm connected just fine without. First let's discuss how I fixed it (since I like to cut to the happy ending whenever possible).
What fixed it eventually was adding to /etc/network/interfaces:
Then I restarted network-bridge (with sh -x) and noted that its output was a bit more sensible, but I still wasn't connected. Eventually I noticed that I had two default routes, one via peth0 and one via eth0. So I ran:
And I'm connected. Adding that last bit to a script, or hacking network-bridge's transfer_routes() function to figure out why it's leaving two routes and fixing it, would be pretty trivial.
What fixed it eventually was adding to /etc/network/interfaces:
iface eth0 inet dhcpThis let ifup handle eth0. I'm not sure why the non-Xen kernel was able to deal with the absence of this line, or indeed why the Xen kernel wasn't. Perhaps it is a red herring.
Then I restarted network-bridge (with sh -x) and noted that its output was a bit more sensible, but I still wasn't connected. Eventually I noticed that I had two default routes, one via peth0 and one via eth0. So I ran:
ip route del default dev peth0
And I'm connected. Adding that last bit to a script, or hacking network-bridge's transfer_routes() function to figure out why it's leaving two routes and fixing it, would be pretty trivial.
Leave a comment