Unix Technical Forum

How can I change network cards?

This is a discussion on How can I change network cards? within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> I have slackware 8 from about a year or more ago installed. I don't use it much, but sometimes ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 07:07 PM
William Wuister
 
Posts: n/a
Default How can I change network cards?

I have slackware 8 from about a year or more ago installed. I don't
use it much, but sometimes I need to. A few weeks ago the network card
in the machine that runs slackware went bad. I have removable drives
and usually boot windows os's for testing software. Now, I need to use
linux again, but the network doesn't work because it still thinks that
I have the linksys card. But now there is a 3com 3C905C... card in the
machine.

What is the easiest way to get linux to forget about linksys and know
about the 3com card. My kernel version is 2.4.19.

thanks,
William


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-18-2008, 07:07 PM
Chris Newport
 
Posts: n/a
Default Re: How can I change network cards?

On Saturday 25 October 2003 11:44 am in alt.os.linux.slackware William
Wuister wrote:

> I have slackware 8 from about a year or more ago installed. I don't
> use it much, but sometimes I need to. A few weeks ago the network card
> in the machine that runs slackware went bad. I have removable drives
> and usually boot windows os's for testing software. Now, I need to use
> linux again, but the network doesn't work because it still thinks that
> I have the linksys card. But now there is a 3com 3C905C... card in the
> machine.
>
> What is the easiest way to get linux to forget about linksys and know
> about the 3com card. My kernel version is 2.4.19.


edit /etc/rc.d/rc.netdevice

--
My real address is crn (at) netunix (dot) com
WARNING all messages containing attachments or html will be silently
deleted. Send only plain text.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-18-2008, 07:07 PM
David
 
Posts: n/a
Default Re: How can I change network cards?

William Wuister wrote:
> I have slackware 8 from about a year or more ago installed. I don't
> use it much, but sometimes I need to. A few weeks ago the network card
> in the machine that runs slackware went bad. I have removable drives
> and usually boot windows os's for testing software. Now, I need to use
> linux again, but the network doesn't work because it still thinks that
> I have the linksys card. But now there is a 3com 3C905C... card in the
> machine.
>
> What is the easiest way to get linux to forget about linksys and know
> about the 3com card. My kernel version is 2.4.19.


If it is the stock kernel you can use "netconfig" to do it. Or
you could edit /etc/modules.conf and change the line for the
right ethX device. I'm not sure which module that card uses but
the line below would be the one you need to change.

alias eth0 tulip

Then without a reboot you can remove the old driver with this.

rmmod tulip.o

and load the new one.

modprobe module-name

You should also run "depmod -a".

--
Confucius: He who play in root, eventually kill tree.
Registered with The Linux Counter. http://counter.li.org/
Slackware 9.1.0 Kernel 2.4.22 SMP i686 (GCC) 3.3.2
Uptime: 18 days, 19:22, 1 user, load average: 0.01, 0.04, 0.03

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-18-2008, 07:07 PM
William Hamblen
 
Posts: n/a
Default Re: How can I change network cards?

On 2003-10-25, William Wuister <wuister32@yahoo.com> wrote:

> What is the easiest way to get linux to forget about linksys and know
> about the 3com card. My kernel version is 2.4.19.


The easiest way probably is to edit the file /etc/rc.d/rc.netdevice to
load the module for your new network interface card instead of the old
one, and then reboot.

--
When the fog came in on little cat feet last night, it left these little
muddy paw prints on the hood of my car.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-18-2008, 07:09 PM
Julio Uehara
 
Posts: n/a
Default Re: How can I change network cards?

William Hamblen <william.hamblen@earthlink.net> writes:

> The easiest way probably is to edit the file /etc/rc.d/rc.netdevice to

I can't find this file in my Slack 9.0

-- Julio

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-18-2008, 07:09 PM
William Park
 
Posts: n/a
Default Re: How can I change network cards?

William Wuister <wuister32@yahoo.com> wrote:
> I have slackware 8 from about a year or more ago installed. I don't
> use it much, but sometimes I need to. A few weeks ago the network card
> in the machine that runs slackware went bad. I have removable drives
> and usually boot windows os's for testing software. Now, I need to use
> linux again, but the network doesn't work because it still thinks that
> I have the linksys card. But now there is a 3com 3C905C... card in the
> machine.
>
> What is the easiest way to get linux to forget about linksys and know
> about the 3com card. My kernel version is 2.4.19.


Find out how your system loads the driver for Linksys. Then, replace
that module with '3x59x'. Usually, put
modprobe 3c59x
somewhere in your boot sequence.

--
William Park, Open Geometry Consulting, <opengeometry@yahoo.ca>
Linux solution for data management and processing.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-18-2008, 07:10 PM
William Hamblen
 
Posts: n/a
Default Re: How can I change network cards?

On 2003-10-25, Julio Uehara <julueh@Shinzen.discovery.net> wrote:
>
>
> William Hamblen <william.hamblen@earthlink.net> writes:
>
>> The easiest way probably is to edit the file /etc/rc.d/rc.netdevice to

> I can't find this file in my Slack 9.0


The file /etc/rc.d/rc.netdevice is created by the Slackware installer when
probing for your ethernet interface during installation. If the installer
did not find your ethernet interface you won't have the file. The file
/etc/rc.d/rc.netdevice is run from the file /etc/rc.d/rc.modules. The
file /etc/rc.d/netdevice contains the command that loads the kernel module
for the ethernet interface. You can create the /etc/rc.d/rc.netdevice
file manually if you have an ethernet interface the installer didn't
recognize rather than edit the fairly long /etc/rc.d/rc.modules file.

--
When the fog came in on little cat feet last night, it left these little
muddy paw prints on the hood of my car.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-18-2008, 07:11 PM
Julio Uehara
 
Posts: n/a
Default Re: How can I change network cards?

William Hamblen <william.hamblen@earthlink.net> writes:

> On 2003-10-25, Julio Uehara <julueh@Shinzen.discovery.net> wrote:
> >
> > I can't find this file in my Slack 9.0

>
> The file /etc/rc.d/rc.netdevice is created by the Slackware installer when
> probing for your ethernet interface during installation. If the installer
> did not find your ethernet interface you won't have the file. The file
> /etc/rc.d/rc.netdevice is run from the file /etc/rc.d/rc.modules. The
> file /etc/rc.d/netdevice contains the command that loads the kernel module
> for the ethernet interface. You can create the /etc/rc.d/rc.netdevice
> file manually if you have an ethernet interface the installer didn't
> recognize rather than edit the fairly long /etc/rc.d/rc.modules file.


Thanks for the detailed explanation. My network card was detected during
installation and I am connected to the internet through this card. Checked
again for the file but it isn't there. The explanation could be that it is
a pcmcia card in my laptop.
Thanks again.

-- Julio

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-18-2008, 07:11 PM
Joost Kremers
 
Posts: n/a
Default Re: How can I change network cards?

Julio Uehara wrote:
> Thanks for the detailed explanation. My network card was detected during
> installation and I am connected to the internet through this card. Checked
> again for the file but it isn't there. The explanation could be that it is
> a pcmcia card in my laptop.


yes. rc.inet1 and rc.netdevice are not used for pcmcia cards. see
/etc/pcmcia/network.opts for that.

--
Joost Kremers
since when is vi an editor? a discussion on vi belongs in
comp.tools.unusable or something... ;-)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-18-2008, 07:12 PM
Arun Dev
 
Posts: n/a
Default Re: How can I change network cards?

Hi

William Wuister wrote:
> ...
> What is the easiest way to get linux to forget about linksys and know
> about the 3com card. My kernel version is 2.4.19.


Rather than rebooting and testing, try it manually first. For
example, as root
# ifconfig -a ; check that you have no ethx device
# modprobe 3c59x ; if no news, its good news
# ifconfig -a ; now there should be a ethx
# ifconfig etx n.n.n.n netmask m.m.m.m ;replace x, n and m!
# ping <your default gateway here> ;should find it!
# route add default gw <your default gw here>
# ping <some ip outside>

If all that works, look at /etc/rc.d/rc.modules and rc.M

Arun.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:05 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com