Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Networking & Wireless
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Networking & Wireless
Having problems getting connected to the internet or getting your wireless card to work? Ask here.

 
Thread Tools Display Modes
Old October 27th, 2007   #1
njparton
100% Pure Ubuntu
 
njparton's Avatar
 
Join Date: Sep 2006
Location: UK
Beans: 851
Ubuntu 9.10 Karmic Koala
Ethernet Interface changes on each reboot (mac address)

I have an annoying issue on a fresh gutsy install (AMD64).

Each time I restart, the ethernet interface increments by 1 (etho, eth1, eth2 etc etc) - I'm now on eth9! I'm trying to configure a static IP so that my router always assigns my ubuntu PC address 192.168.1.10, but the router is getting confused and sees two unbutu PC's I think because of these constant changes. It assigns one the static IP address above an one the next available free IP address, even though there's only one ubuntu PC connected.

I can't then connect to the internet.

I'm using an onboard realtek nic on an nforce 630a chipset.

Any ideas anyone?

**edit** I've also just noticed that the mac address of the nic keeps changing after each reboot. How's THAT possible?

Last edited by njparton; October 27th, 2007 at 03:15 PM..
njparton is offline   Reply With Quote
Old October 27th, 2007   #2
njparton
100% Pure Ubuntu
 
njparton's Avatar
 
Join Date: Sep 2006
Location: UK
Beans: 851
Ubuntu 9.10 Karmic Koala
Re: Ethernet Interface changes on each reboot

OK, I've found a post elsewhere that tells me that the last 3 octets of the mac address are administered locally so I'm thinking this is a driver or OS issue?

Will swapping to 32 bit gutsy help?

My last resort will be to buy an Intel Pro/1000 PT or GT card (I was only planning on this if the onboard nic doesn't support wake on lan...).

Is there a startup script somewhere I can edit to stop the random mac address re-assignment?

Anyone?
njparton is offline   Reply With Quote
Old October 27th, 2007   #3
lptr
A Carafe of Ubuntu
 
lptr's Avatar
 
Join Date: Jun 2005
Location: de.munich
Beans: 130
Ubuntu 9.04 Jaunty Jackalope
Re: Ehternet Interface changes on each reboot

Having a problem that is somewhat different, but is based on same thing (at least I believe this).

I installed a machine on a machine A and running it now on a completely different hardware on machine B.

Machine B of course has another MAC. Machine started fine - immediately found router and gateway and I was pretty safe that manually changing IP address will be a snap. But: Far away!

Neither configuring it through knetwork nor manually changing things in /etc/network, like I did in the past (at least in 5.10 it was possible) when things went nil, worked out. When doing the later one, I recognized when using ifconfig really strange results. No ip4 addresses assigned and such. Never saw something like this before.

So I started searching over in /etc. Well, first stop: /etc/iftab
yes a MAC address was there but commented out.

There I found the hint to look into /etc/udev/ruels.d/70-persistent-net.rules
Another MAC address there, and: Yes a secondly added NIC interface eth1. Obviously that one that is currently active, but only via DHCP.

I believe that there are some glitches in knetwork that does not recognize things like removing / exchanging NICs or such. Or - if like in your case this is a no name NIC that has some sort of hm.. 'weak' MAC addresses? I have heard that noname NICs having no fixed MAC address. They easily can be reconfigured in MAC address. Usually black heads using such cards, it has been told. I admit I never held such a card in my hands - so maybe this is false. I don't know. Maybe you having a problem based on this?

Question to others:
What I would like to know from our experts here in forum is: Need I simply change /etc/udev/ruels.d/70-persistent-net.rules eth0 line to my new MAC address to stop this stupid knetwork thing fiddeling around and confusing network config? The point is I currently only having remote access to machine. And therefore there is not much space for experiments .

If there is a howto (I did not find, yet) I would highly appreciate to know the link to it.

Thanks in advance.

rob*
lptr is offline   Reply With Quote
Old October 27th, 2007   #4
njparton
100% Pure Ubuntu
 
njparton's Avatar
 
Join Date: Sep 2006
Location: UK
Beans: 851
Ubuntu 9.10 Karmic Koala
Re: Ehternet Interface changes on each reboot

I'll have a look into that myself, otherwise we both need an experts help!
njparton is offline   Reply With Quote
Old October 27th, 2007   #5
njparton
100% Pure Ubuntu
 
njparton's Avatar
 
Join Date: Sep 2006
Location: UK
Beans: 851
Ubuntu 9.10 Karmic Koala
Re: Ehternet Interface changes on each reboot

I have 4 entries in that file: eth0 to eth4 - each detecting the same PCI device but the drivers are stated to be: "?*" (forcedeth) which may be causing the issue?

Otherwise, how do I stop this happening?

In the meantime I'm going to give Gutsy 32 a try...
njparton is offline   Reply With Quote
Old October 27th, 2007   #6
njparton
100% Pure Ubuntu
 
njparton's Avatar
 
Join Date: Sep 2006
Location: UK
Beans: 851
Ubuntu 9.10 Karmic Koala
Re: Ehternet Interface changes on each reboot

https://bugs.launchpad.net/ubuntu/+s...ev/+bug/145382

Just remove the mac address entry from the 70-persistent-net.rules file apparently...

Last edited by njparton; October 27th, 2007 at 05:59 PM..
njparton is offline   Reply With Quote
Old October 27th, 2007   #7
njparton
100% Pure Ubuntu
 
njparton's Avatar
 
Join Date: Sep 2006
Location: UK
Beans: 851
Ubuntu 9.10 Karmic Koala
Re: Ehternet Interface changes on each reboot

That will get around the issue of your ethX changing afer every reboot, but its mac address still changes making wake on lan etc a pain in the behind (I have to look up the mac address in my router before I can send a magic packet!).

This is definitely a bug that needs sorting please.
njparton is offline   Reply With Quote
Old October 28th, 2007   #8
njparton
100% Pure Ubuntu
 
njparton's Avatar
 
Join Date: Sep 2006
Location: UK
Beans: 851
Ubuntu 9.10 Karmic Koala
Re: Ehternet Interface changes on each reboot

To get around the changing mac address bug, add the following line to your /etc/network/interfaces file:

hwaddress ether XX:XX:XX:XX:XX:XX

where XX:XX:XX:XX:XX:XX is the mac address you'd like to use
njparton is offline   Reply With Quote
Old October 29th, 2007   #9
lptr
A Carafe of Ubuntu
 
lptr's Avatar
 
Join Date: Jun 2005
Location: de.munich
Beans: 130
Ubuntu 9.04 Jaunty Jackalope
Re: Ehternet Interface changes on each reboot

Rehi again,

I searched under /etc file contents (find grep...) for old wrong MAC address and found, that this:

/etc/udev/ruels.d/70-persistent-net.rules

is really the central control file.

Here I removed wrong eth0 lines and replaced remaining eth1 entries with eth0. Rebooted. Configured with that networking tool provided by KDE - done. No errors anymore all working fine.



greetings rob*
lptr is offline   Reply With Quote
Old October 29th, 2007   #10
njparton
100% Pure Ubuntu
 
njparton's Avatar
 
Join Date: Sep 2006
Location: UK
Beans: 851
Ubuntu 9.10 Karmic Koala
Re: Ehternet Interface changes on each reboot

Thanks for putting me on to that file in the first place - it was the start of the solution to my problems

Now to try and cure S3 sleep problems...
njparton is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:54 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry