LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 05-16-2006, 01:14 AM   #1
fara78
LQ Newbie
 
Registered: Apr 2005
Posts: 21

Rep: Reputation: 15
Unhappy 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
 
Old 05-16-2006, 12:08 PM   #2
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
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.

Last edited by TigerOC; 05-16-2006 at 12:11 PM.
 
Old 05-17-2006, 12:32 AM   #3
fara78
LQ Newbie
 
Registered: Apr 2005
Posts: 21

Original Poster
Rep: Reputation: 15
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
 
Old 05-17-2006, 02:46 AM   #4
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
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.
 
  


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
Internet sharing with one lan adapter mlin Linux - Networking 5 05-07-2009 02:10 AM
2200b/g and RTL lan adapter nomb Linux - Hardware 0 02-24-2006 03:28 PM
2 intel pro lan on one pci adapter tai_pan28 Slackware 6 11-24-2004 02:06 PM
Compiling drivers for lan adapter MadMonky Linux - Software 2 06-21-2003 12:46 AM
How to detect my onboard LAN adapter? Janus Linux - General 1 08-15-2002 06:11 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration