LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 07-11-2005, 09:17 PM   #1
Zach
LQ Newbie
 
Registered: Mar 2001
Posts: 4

Rep: Reputation: 0
disabling eth0


I am using mandrake le2005, when the computer boots up it sits there for awhile trying to bring up eth0 but there is nothing connected to it, since I am using the wireless card. How can I disable this device permantly so that when the computer boots up it doesnt sit there trying to bring up the network on that device. I am a newb to linux and I do not know my way around it very well. I am learning my around KDE though, I have went through the getting started guide and have learned quite a bit about how to use it. It seems like so much to go through to learn linux but I am really liking it so far. I think my favorite thing so far is being able to make a window stay above all the others
 
Old 07-12-2005, 12:38 AM   #2
nixcraft
Member
 
Registered: Nov 2004
Location: BIOS
Distribution: RHEL3.0, FreeBSD 5.x, Debian 3.x, Soaris x86 v10
Posts: 379

Rep: Reputation: 30
Modify /etc/modules.conf (configuration file for loading kernel modules) using text editor such as vi. Look for entry eth0 and comment it out (with # Symbol at the beginning of line).
 
Old 07-12-2005, 07:23 AM   #3
Zach
LQ Newbie
 
Registered: Mar 2001
Posts: 4

Original Poster
Rep: Reputation: 0
OK I went to /etc/module.conf and this file was blank. So what do I do now?
 
Old 07-12-2005, 07:51 AM   #4
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
speaking for debian: look in /etc/network/interfaces, there you will find something like
Code:
auto eth0
iface eth0 inet dhcp
or something along that line
remove (or comment out) the first line, to read
Code:
#auto eth0
iface eth0 inet dhcp
for mandrake: i have no idea where that file is located, a guess would be /etc/sys/net or something like that
you could grep for 'auto eth0' or or read some man pages or something like that...
 
Old 07-12-2005, 07:53 AM   #5
nixcraft
Member
 
Registered: Nov 2004
Location: BIOS
Distribution: RHEL3.0, FreeBSD 5.x, Debian 3.x, Soaris x86 v10
Posts: 379

Rep: Reputation: 30
Try to locate /etc/modprobe.conf if you are using kernel 2.6.xx and look for line
alias eth0 YYYYYZZ

Note YYYYYZZ is your network card driver name and comment out line. If this not works then try following command in etc dir to find out file:

1) Login as root
2) cd /etc
3) grep -r "alias eth0" *

Above command will print the file name; then just open file and change it.
 
Old 07-13-2005, 07:06 AM   #6
Zach
LQ Newbie
 
Registered: Mar 2001
Posts: 4

Original Poster
Rep: Reputation: 0
Here is what my modprobe file shows:

# This file is autogenerated from /etc/modules.conf using generate-modprobe.conf command

alias eth0 natsemi
alias sound-slot-0 snd-ali5451
remove snd-ali5451 /sbin/modprobe -r snd-pcm-oss; /sbin/modprobe --first-time -r --ignore-remove snd-ali5451
install snd-ali5451 /sbin/modprobe --first-time --ignore-install snd-ali5451 && { /sbin/modprobe snd-pcm-oss; /bin/true; }
install usb-interface /sbin/modprobe uhci-hcd; /sbin/modprobe ehci-hcd; /bin/true
alias wlan0 ndiswrapper
alias wlan0 ndiswrapper

Now if I try to comment out alias eth0 natsemi it will not let me save it since I do not have permissions. Isn't there a way that I can log in as root while using the gui like you can do while you are using the console?
 
Old 07-13-2005, 07:45 AM   #7
Falo
LQ Newbie
 
Registered: Aug 2003
Location: Nyköping, Sweden
Distribution: Suse Linux 10.1
Posts: 19

Rep: Reputation: 0
open the file:
"/etc/sysconfig/network-scripts/ifcfg-eth0"
and change the line:
"ONBOOT=yes"
to:
"ONBOOT=no"
 
Old 07-13-2005, 08:27 AM   #8
RySk8er30
Member
 
Registered: Jul 2004
Location: Buffalo, NY
Distribution: Mandriva 2005LE
Posts: 274

Rep: Reputation: 30
Quote:
Now if I try to comment out alias eth0 natsemi it will not let me save it since I do not have permissions. Isn't there a way that I can log in as root while using the gui like you can do while you are using the console?
Perform the following:

su
<enter root password>
vi /etc/modules.conf
<press "Insert" key>
<edit the file>
<press "Esc" key>
<type: ":wq!">

That should do it.
 
Old 07-13-2005, 03:52 PM   #9
Maldain
Member
 
Registered: Jan 2005
Posts: 112

Rep: Reputation: 15
Well under the ancient version of Mandrake/Mandriva I use just run DrakConf and change eth0 to not start up on boot. That should solve that problem since the pause is there while the system tries to initialize the eth0 module.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless network on eth1 diabled Ethernet eth0 and eth0 never comes back tadatoshi Linux - Wireless Networking 4 09-23-2004 05:57 PM
Firewall WAN eth0 LAN eth1 self-bridges, eth0 does all routeing. Nichole_knc Linux - Networking 5 07-29-2004 02:33 PM
howto delete existing static ip of ethernet(eth0)& reconf multiple ips on eth0 viveku Linux - Networking 2 02-02-2004 01:30 AM
howto delete static ip configured on eth0 & reconf multiple ip on one eth0(redhat8 viveku Linux - Networking 0 01-31-2004 10:40 AM
Bringing up interface eth0: determining ip information for eth0... failed ralphethomas Linux - Networking 0 01-24-2004 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 03:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration