Re: newbee question
Tony Nugent <[email protected]>
| Newsgroups | gmane.linux.redhat.release.enigma |
|---|---|
| Organization | Linux Works |
| Message-ID | <[email protected]> |
On Tue Mar 04 2003 at 19:50, "Alex" wrote:
> The two eth cards are different :(
Sorry, I didn't see mention of what the new card actually is.
> What you suggesting seems to need a lot of head scratching ....
> Is'nt there an eth script that I can use for this? I do not
> believe I am the first running in this problem ...
> However , I'll try the suggested path ... Perhaps I'll get lucky :)
Adding a new ethernet card is a relatively easy task to do manually.
The most important initial task is to identify the driver module for
the new card. If you can load the module with modprobe without
complaints, do "/sbin/ip link" and it is listed in the output, then
you almost certainly have the right driver.
Now add an "alias" entry for that interface into /etc/modules.conf
to automatically enable it. For example:
alias eth1 eepro100
So when the network initialisation scripts call for "modprobe eth1"
then the eepro100 driver will be loaded. If you need to pass it any
parameters, then "modinfo eepro100" will list them, and "options
eth1 blah blah" will enable them.
Next thing to look at is /etc/sysconfig/network-scripts/ where the
networking configuration scripts live.
Copy ifcfg-eth0 to ifcfg-eth1, then put ifcfg-eth1 into an editor
and make changes to make it work how you want. There is (should be)
a good description of the different parameters that can be used in
this file in /usr/share/doc/initscripts-*/sysconfig.txt (which is
effectely a shell-script fragment for setting up some environment
variables).
Once you have done this correctly, then "ifup eth1" should actually
enable the device ("ifdown eth1" to shut it down).
> Alex
Cheers
Tony