Fix network configuration problem

The problem
I have a couple of computers with identical hardware configuration. I used one of them to install Ubuntu server to new hard drives. After I completed the preparation of all hard drives and installed the m to other machines. The problem came. Everything works fine except the network. eth0 has problem.

The solution

This solution is come from a post. I forget the address.

First, the diagnosis was that ifconfig would not show eth0 at all. lspci and dmesg reported no errors, really, and obviously modprobe was useless. ifup reported some strange errors like:

SIOCSIFADDR: No such device eth0
eth0: ERROR while getting interface flags: No such device

Google didn’t find anything useful on any search, until I came across this dude’s blog who was getting an identical error in a totally different situation.

http://www.pletscher.org/blog/?p=29

WOOHOO!

I ran ‘ifconfig -a’ and it found an eth1 for some reason (though ‘ifup eth1′ also had no effect) which had a MAC address in it. I hopped into ‘/etc/iftab’, changed the MAC address on eth0 to the MAC that was attached to eth1 in ifconfig and rebooted. VOILA! Network up and running!

Hope this helps someone.

  • Share/Bookmark

One Response to “Fix network configuration problem”

  1. [...] This post was mentioned on Twitter by DickDeals. DickDeals said: Fix network configuration problem http://bit.ly/bCTwV1 via @AddToAny [...]

Leave a Response

You must be logged in to post a comment.