AGines
07-05-2001, 07:03 PM
tried to enabled DHCP to eth0 but still can't see the network.
In the Network configurator, what should be the entry in nickname. what should be the address assigned in nameserver :) If anyone can help ASAP.
ZeBuL0N
07-06-2001, 07:40 AM
you need to choose the apropriate driver for Eth0 , and that would depend on the type of Nic in the machine. the nameserver and all the info should be filled in by DHCP once the machine "sees" the appropriate network card,
but here is a lowdown on how to get it working the long way if the kernel cant see the card(s)
OK, so one or both of your cards are not recognized by the kernel. This is not a problem, really. What we're going to have to do is tell the kernel more explicitly how to find your cards. There are lots of twists and turns here, and I'm not going to cover all of them. Remember, when the going gets tough, the tough turn to the Ethernet HOWTO. Here's some summary advice:
You have a PCI network card. You are probably sitting pretty, assuming it is not so new and cutting edge that no drivers exist. You can often find out a great deal about your network cards (and other things) by reading through /proc/pci and noting down makes and models.
You have an ISA network card. It is possible you will have to know the IO base address and the IRQ the card is operating on. You have manuals, right? Right? If not, this would be a good time to surf to the manufacturer's web site and see if they have any online references. Or if you have an old DOS configuration diskette, boot to DOS and see if there is a setup program which will read and set the address and IRQ.
You have an ISA Plug'n'Play card. You'll have to learn how to configure it first -- read the Plug'n'Play HOWTO. Fortunately, once you've configured your card you will know exactly what the IO base and IRQ are.
Now, since you know what the make and model of eth0 and eth1 are you can go to the compatibility page of the Ethernet HOWTO and look up your card. Take note of the recommended driver, and any information about special options your card may require. Write it down.
It's time to edit a configuration file! The file we will be editing is /etc/conf.modules. Open this file up in the text editor of your choice. Because there are so many possibilities and combinations of things which can go in this file, I'm going to give my own gateway as an example. I have a PCI 10/100Mb card based on the VIA Rhine chip, and a plain-jane 10Mb NE2000 ISA clone. I use the 100Mb card for the internal network and the 10Mb card for the external connection. My /etc/conf.modules file looks like this:
alias parport_lowlevel parport_pc
alias eth0 ne
options ne io=0x300 irq=10
alias eth1 via-rhine
My conf.modules file is laid out as follows:
The first line is there to configure my parallel port for printing. You probably have a similar line. Leave it alone.
The second line (alias eth0 ne) tells the kernel to use the ne driver for the eth0 device.
The third line (options ne io=0x300 irq=10) tells the ne driver at which io address and irq interrupt it will find the ISA card at. If you have ISA cards you will probably have to use this kind of directive, just replace the driver, io and irq directives with the correct information for your card.
The fourth line (alias eth1 via-rhine) tells the kernel to use the via-rhine driver for eth1. Because my eth1 card is a PCI card, I do not need to provide io or irq information: the PCI subsystem configures the device automatically.
You will want to ensure that you have alias entries in conf.modules for both your cards, and correct options lines for all your ISA cards. You may already have lines in conf.modules for any ethernet cards you configured during installation.
When you have finished editing conf.modules, try ifconfig eth0 and ifconfig eth1 again. You may have to apply some trial and error if you are messing with IO addresses and IRQs without a manufacturers manual.
Two Identical Network Cards
:D
Chatterjee
07-08-2001, 01:09 AM
Zebulon, thanks for the detailed info!
-S