nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

How to add 3rd NIC card

This is a discussion on How to add 3rd NIC card within the Linux software forums, part of the Linux Getting Started category; Dear All I have redhat linux 9 , alrdy have two ethernet cards one is connecting to my internet gateway ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 12-03-2006, 05:33 PM
Member
User
 
Join Date: Nov 2006
Location: Bangalore
Posts: 32
Rep Power: 0
bubloob_13
Default How to add 3rd 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
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-04-2006, 12:22 AM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

Why you are using Redhat 9? It is outdated and not supported software. Get something like CentOS or Fedora Core. Use ifconfig command to configure NIC

Code:
ifconfig eth3 IP-address up
ifconfig eth3 192.168.1.100 up
ping 192.168.1.154
Reply With Quote
  #3 (permalink)  
Old 12-04-2006, 12:25 AM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 581
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

First make sure card is detected with ifconfig -a and dmesg | grep -i eth commands.

Use Network Administration Tool, click on the Panel => System Settings => Network

Or type command at shell prompt:
Code:
redhat-config-network &
If you are not using GUI type the command:
Code:
redhat-config-network-tui
Now setup IP and other stuff.
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
  #4 (permalink)  
Old 12-04-2006, 09:05 PM
Member
User
 
Join Date: Nov 2006
Location: Bangalore
Posts: 32
Rep Power: 0
bubloob_13
Default

My card is not detected i believe..... but i am able to see my 3rd NIC card in harware browser.


After fixing the card the card i am booting the server , that time my card is getting detected and even i am assigning ip address.

After configuring that , if i reboot the server i am able to see

starting eth2 -- ok.

but if i give ifconfig -a command i am not able to see eth2 NIC details

even i tried with this command also

dmesg | grep -i eth2

couldn't see any output,

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
Reply With Quote
  #5 (permalink)  
Old 12-04-2006, 11:13 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

Can you paste output of following command
Code:
ifconfig -a
General file syntax for ifcfg-eth0
Code:
DEVICE=eth0
BOOTPROTO=static
IPADDR=10.5.123.2
NETMASK=255.255.255.192
Reply With Quote
  #6 (permalink)  
Old 12-05-2006, 10:37 AM
Member
User
 
Join Date: Nov 2006
Location: Bangalore
Posts: 32
Rep Power: 0
bubloob_13
Default

[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]#


[root@ismartblr2 network-scripts]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:50:BA:34:45:C9
inet addr:192.168.1.5 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:191321 errors:0 dropped:0 overruns:0 frame:0
TX packets:64590 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:20658066 (19.7 Mb) TX bytes:58962693 (56.2 Mb)
Interrupt:10 Base address:0xa000

eth1 Link encap:Ethernet HWaddr 00:50:8B:A2:2C:E9
inet addr:59.144.40.173 Bcast:59.144.40.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:61653 errors:0 dropped:0 overruns:0 frame:0
TX packets:56209 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:57079307 (54.4 Mb) TX bytes:10233411 (9.7 Mb)
Interrupt:10 Base address:0x1c00 Memory:40500000-40500038

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:676 (676.0 b) TX bytes:676 (676.0 b)
Reply With Quote
  #7 (permalink)  
Old 12-05-2006, 11:37 AM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

Your card / NIC is not detected; u need to assign driver for same; open /etc/modules.conf file and add a line for eth2:
/etc/modules.conf
Code:
alias eth2 driver-name
Then restart system and it should work. Let me know...
Reply With Quote
  #8 (permalink)  
Old 12-10-2006, 05:12 PM
Member
User
 
Join Date: Nov 2006
Location: Bangalore
Posts: 32
Rep Power: 0
bubloob_13
Default

No , my card is detected, i can see the output of lspci |grep Ethernet

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)

As you suggested added the driver name modules.conf like

[root@ismartblr2 network-scripts]# cat /etc/modules.conf
alias eth0 8139too
alias eth1 e100
alias eth2 8139C+
alias scsi_hostadapter sym53c8xx
alias usb-controller usb-uhci
[root@ismartblr2 network-scripts]#

but in Network Device control menu still eth2 is showing inactive only. If i try to probe , it's showing as " No such device"

I am clueless!!!!
Reply With Quote
  #9 (permalink)  
Old 12-10-2006, 07:12 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 581
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

Try as follows:
Code:
alias eth0 8139too
alias eth1 8139C+ 
alias eth2 e100
Reboot system and run ifconfig -a
Or may be u need to use driver 8139too for eth2
Code:
alias eth0 8139too
alias eth1 8139C+ 
alias eth2 8139too
Reboot system and run ifconfig -a
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
  #10 (permalink)  
Old 12-14-2006, 12:42 PM
Member
User
 
Join Date: Nov 2006
Location: Bangalore
Posts: 32
Rep Power: 0
bubloob_13
Default

Ya, tried the same thing.. But no gain.
After modifying the modules.conf file restarted the network service but still one eth2 goes to inactive mode while checking in the Network Device Control menu.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Gentoo Linux ATM card bringup ps_biju Linux hardware 0 10-03-2007 02:22 PM
LAN Card in fedora Core 6 SwiftSoft Linux software 0 04-07-2007 05:03 AM
my HCL laptop Lan Card and Sound Card Not Detecting imported_vishal_titre Getting started tutorials 2 02-23-2007 03:20 PM
ethernet card error netstat Linux software 1 01-30-2006 05:25 PM
network card not being recognized Linux software 1 01-28-2006 12:25 PM


All times are GMT +5.5. The time now is 01:15 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36