How to tell Network Manager to disable a wired interface?

Asked by lorenz

I have a faulty wired interface in a laptop runing ubuntu 8.04. It keeps coming in and out like this:
Dec 18 13:24:06 grillo kernel:
Dec 18 13:24:08 grillo kernel: [ 4184.718507] e100: eth0: e100_watchdog: link down
Dec 18 13:24:20 grillo kernel: [ 4188.105501] e100: eth0: e100_watchdog: link up, 10Mbps, full-duplex
Dec 18 13:24:34 grillo kernel: [ 4192.980891] e100: eth0: e100_watchdog: link down
Dec 18 13:24:42 grillo kernel: [ 4195.352910] e100: eth0: e100_watchdog: link up, 10Mbps, full-duplex

I would like Network Manager to ignore it ore even to avoid the kernel to detect it. Otherwise Network Manager tries to connect from time to time and interferes with my wireless connection.
How can I do that?
If I leave the interface in roaming mode in Networks Settings in Network Manager it does not allow me to disable it from the Network Manager main panel. It tried other combinations but do not work. Thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
golikitti (golikitti) said :
#1

Try using "wicd" - it's a wired and wireless network manager and has a simple interface to connect to networks with a wide variety of settings.

The link below describes the features and installation procedure

http://www.ubuntugeek.com/wicd-wired-and-wireless-network-manager-for-ubuntu.html

Revision history for this message
lorenz (lorenzana-jose) said :
#2

Thanks, this tool looks good. In the mean time I found a palliative for network manager. I manage to avoid network manager to try to connect all the time by configuring the card as DHCP. I guess it tries and then gives up. Still it would be ideal if there where a way to avoid the kernel to detect the card. Otherwise I get /var/log/messages full of rubbish and consume resources. Is there a configuration file where I can tell the kernel not to look for this card? Or can I uninstall the drivers? They are useless for me. (I think it is e100? )

Revision history for this message
André Carezia (carezia) said :
#3

Edit /etc/modprobe.conf and append this line:

alias e100 off

Reboot.

Revision history for this message
lorenz (lorenzana-jose) said :
#4

Thanks. This is what I was looking for but unfortunately it did not worked.
I did not have a /etc/modprobe.conf in my ubuntu 8.04
so I created one with this:

include /etc/modprobe.d/
alias e100 off

but after reboot I found that e100 is still loaded.

I also tried no /etc/modprobe.conf and added

blacklist e100

to the file /etc/modprobe.d/blacklist
according to
http://www.cyberciti.biz/tips/avoid-linux-kernel-module-driver-autoloading.html

and did rebooot but did not worked.

Then I tried the above /etc/modprobe.d/blacklist and added

alias e100 off

to /etc/modprobe.d/aliases

but after reboot it did not worked either. I still load e100 automatically:

root@xyz# lsmod |grep e100
e100 37388 0
mii 6400 1 e100

Should I blacklist mii or something else? Thanks a lot.

Revision history for this message
André Carezia (carezia) said :
#5

Create /etc/modprobe.conf with this line only:

alias e100 off

Reboot.

Can you help with this problem?

Provide an answer of your own, or ask lorenz for more information if necessary.

To post a message you must log in.