LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Trouble with new installed lan adapter (https://www.linuxquestions.org/questions/linux-networking-3/trouble-with-new-installed-lan-adapter-445243/)

fara78 05-16-2006 01:14 AM

Trouble with new installed lan adapter
 
Hi folks

I have an old pc which is running RedHat Linux 9.0 as a file sharing
and etc server on a small network.
It already has a Network adapter (D-Link) installed on it and it's
working find with it.
I need to add another Network adapter to the system for sharing my ADSL
connection through this little network, so, i took another D-Link
(exactly the same model as older one) and put it into another PCI slot
and turned on the pc.
Kudzu found the new one and i configured it with an IP address, I was
expecting to see another eth (eth1) device in my ifconfig listing, but
it wasn't so.
I tried ifup eth1 and got a message which says it has not found eth1
configuration. I tried redhat network configuration program under
Gnome, but it was showing me only 1 network device and I couldn't add
any.
I put the Network adapter in another PCI slot but nothing changed.
I would appreciate your help.

Fara

TigerOC 05-16-2006 12:08 PM

You need to assign a new ip address to the card. In this case the address of eth1 must be on a different subnet to eth0. Configure the card connected to the adsl router on that subnet eg 192.168.1.0/24 use 192.168.1.2
If you want to share internet connection then you should install a basic firewall using iptables and then implement ip-masquerading. You can find good howto's on this here. Remember that the gateway for the server box is the ip address of the router and the gateway for boxes connected to the server is the ip address of the card they are connected to.
You now need to restart the network services which are normally in /etc/init.d in Debian the command is /etc/init.d/networking restart.

fara78 05-17-2006 12:32 AM

Thanks for your reply tiger.
The problem was that the system couldn't detect the eth1. So, i couldn't assign any IP address to it.
I could manage solving the problem by adding following line to my /etc/modules.conf

alias eth1 via-rhine

TigerOC 05-17-2006 02:46 AM

If the ethernet card is identical to the existing card then there should be no problem with kernel drivers. To establish whether the kernel is loading the card have a look at your log file in /var/log/dmesg. In order to use the card you must assign an ip address to the card. Unfortunately I am not familiar with RH system for this but believe it has a gui tool for doing it. In Debian system this is done by editing the file /etc/network/interfaces.


All times are GMT -5. The time now is 12:09 AM.