LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 12-03-2006, 05:58 AM   #1
sakthi.s
Member
 
Registered: Nov 2006
Posts: 42

Rep: Reputation: 15
Couldn't add NIC card


Dear All

I have redhat linux 9 , alrdy have two ethernet cards one is connecting to my internet gateway and otherone is connecting to my LAN. I want to add one more NIC, after fixing the working lan card into PCI slot , linux server detecting this new hardware, and i am configuring the same. But in network devices couldn't find eth2 ( eth0 - Lan, eth1- internet gateway). If i try to add manually also it's not getting activated... but in hardware list i am able to see the 3rd NIC card.

So i understood card is getting detected and configured, but i am not able to see eth2 anyware.... as i want to configure static routing for one more network.

Can anyone help me

Thanks in advance

Sakthi
 
Old 12-03-2006, 06:35 AM   #2
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Hi sakthi.s,

On RH distribution there is a program called netconfig; you should use it as below:
Code:
netconfig -d eth2
You must be root to do it. Don't fill the Gateway field as it is the default gateway for the system.

This program will create a config file "/etc/sysconfig/network-scripts/ifcfg-eth2", which will be used by "/etc/rc.d/init.d/network" script to configure the network.
 
Old 12-03-2006, 07:48 AM   #3
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Hey sakthi,

Create a config file like /etc/sysconfig/network-scripts/ifcfg-eth2 (copy paste from eth0 or 1) & prior to it fix this lan card in any other box(windows also), note down the mac address & copy paste that into the ifcfg-eth2 over the existing mac of other device.

Do a service network restart & its all done.
 
Old 12-04-2006, 09:26 AM   #4
sakthi.s
Member
 
Registered: Nov 2006
Posts: 42

Original Poster
Rep: Reputation: 15
Hi

Even i tried to configure my 3rd NIC by using netconfig -d eth2 , able to configure but if i go to network device control and see the status of that card it's showing as inactive.

but eth2 starting when i reboot the server. like

starting etho - ok
starting eth1 - ok
starting eth2 - ok

but in network device control it's showing as inactive.

Even i tried Mr.Amit procedure by coping ifcfg-eth0 to ifcfg-eth2 and changed the ipaddress as per my requirements, but i don't how to put mac address in that config files. Can u give me exact syntax.

But one thing i noticed , after fixing the 3rd NIC card, if i go to network device control and if try to see the configuration for eth0 or eth1 i am getting the following msg before going that Card properties.

" eth1 has an alias to module e100 in module.conf,instead of currently loaded module 8139too "



Pls. help me
 
Old 12-04-2006, 09:36 AM   #5
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Can you post the output of
Code:
cat /etc/sysconfig/network-script/ifcfg-eth0
cat /etc/sysconfig/network-script/ifcfg-eth1
cat /etc/sysconfig/network-script/ifcfg-eth2
&
Code:
lspci | grep Ethernet
&
Code:
cat /etc/modules.conf or cat /etc/modprobe.conf
The format for MAC address in network scripts is like
Code:
HWADDR=00:0C:F1:EC:3D:EA
 
Old 12-04-2006, 10:25 PM   #6
sakthi.s
Member
 
Registered: Nov 2006
Posts: 42

Original Poster
Rep: Reputation: 15
[root@ismartblr2 network-scripts]# cat ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
IPADDR=192.168.1.5
NETMASK=255.255.255.0
USERCTL=no
PEERDNS=no
TYPE=Ethernet
NETWORK=192.168.1.0
BROADCAST=192.168.1.255


[root@ismartblr2 network-scripts]# cat ifcfg-eth1
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
PEERDNS=no
TYPE=Ethernet
IPADDR=59.144.40.173
NETMASK=255.255.255.0
NETWORK=59.144.40.0
BROADCAST=59.144.40.255
GATEWAY=59.144.40.1
[root@ismartblr2 network-scripts]#


[root@ismartblr2 network-scripts]# cat ifcfg-eth2
DEVICE=eth2
ONBOOT=yes
BOOTPROTO=none
IPADDR=192.168.100.251
NETMASK=255.255.255.0
USERCTL=no
PEERDNS=no
TYPE=Ethernet
NETWORK=192.168.100.0
BROADCAST=192.168.100.255
[root@ismartblr2 network-scripts]#


[root@ismartblr2 network-scripts]# lspci | grep Ethernet
00:10.0 Ethernet controller: D-Link System Inc RTL8139 Ethernet (rev 10)
02:05.0 Ethernet controller: Intel Corp. 82557/8/9 [Ethernet Pro 100] (rev 05)
[root@ismartblr2 network-scripts]#


[root@ismartblr2 network-scripts]# cat /etc/modules.conf
alias eth0 8139too
alias eth1 e100
alias scsi_hostadapter sym53c8xx
alias usb-controller usb-uhci
[root@ismartblr2 network-scripts]#
 
Old 12-04-2006, 10:32 PM   #7
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Hi Sakthi,

Your lspci list shows only 2 nics. Where is the 3rd which you are trying to install?
 
Old 12-10-2006, 05:37 AM   #8
sakthi.s
Member
 
Registered: Nov 2006
Posts: 42

Original Poster
Rep: Reputation: 15
Sorry , here is the correct output lspci

lspci | grep Ethernet
00:0e.0 Ethernet controller: Realtek Semiconductor Co., Ltd RTL-8139/8139C/8139C+ (Rev 10)
00:10.0 Ethernet controller: D-Link System Inc RTL8139 Ethernet (rev 10)
02:05.0 Ethernet controller: Intel Corp. 82557/8/9 [Ethernet Pro 100] (rev 05)
 
Old 12-10-2006, 07:31 AM   #9
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Hi Sakthi,

Every time more than one nic with the same chipset are plugged onto the system, it's almost impossible to determine which of each must be the desired ethernet port number.

On your "12-04-06, 01:26 PM" post you showed an alert message:
Code:
eth1 has an alias to module e100 in module.conf,instead of currently loaded module 8139too
That means that when the kernel loaded the 8139too driver, it discovered both nics and associated it with eth0 and eth1.

I think that you could only decide on two configurations:
Code:
eth0 - e100
eth1 - 8139
eth2 - 8139
or
Code:
eth0 - 8139
eth1 - 8139
eth2 - e100
Try to change the alias on /etc/modules.conf to
Code:
alias eth2 e100
and see if the 3 interfaces work. Then, if you prefer, you can change the order, placing the e100 as the first, editing the modules.conf again as below
Code:
alias eth0 e100
alias eth1 8139too
 
  


Reply



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
eth0 NIC Card Not Working! 3com 3c501 NIC. Mustard010 Linux - Networking 16 08-15-2007 02:22 AM
Steps to add second NIC to RH soutTech Linux - Hardware 1 10-06-2006 10:07 PM
NIC Of NIC/Graphics Card Combo Not Detected username132 Linux - Hardware 2 04-04-2006 10:16 PM
Add more NIC cards nkutty Linux - Networking 1 08-05-2005 11:02 PM
cannot add second ip to the second nic card shardam *BSD 1 04-23-2005 12:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration