Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1360
  • Last Modified:

Four port NIC card - only two (eth0 and eth1) visible.

I  have an issue with the four port NIC card. In network settings I only see eth0 and eth1.
Here is the ifconfig:
_______________________________________________________________________________
> ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1A:4B:AE:75:A3  
          inet addr:xxx.xxx.xxx..123  Bcast:xxx.xxx.xxx.127  Mask:255.255.255.248
          inet6 addr: fe80::21a:4bff:feae:75a3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12605527 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14922590 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3709116682 (3.4 GiB)  TX bytes:3084327167 (2.8 GiB)
          Interrupt:16

eth1      Link encap:Ethernet  HWaddr 00:15:60:A3:C1:12  
          inet addr:xxx.xxx.xxx.122  Bcast:xxx.xxx.xxx.127  Mask:255.255.255.248
          inet6 addr: fe80::215:60ff:fea3:c112/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:68 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:10011 (9.7 KiB)
          Interrupt:17

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:680215 errors:0 dropped:0 overruns:0 frame:0
          TX packets:680215 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:164142772 (156.5 MiB)  TX bytes:164142772 (156.5 MiB)
________________________________________________________________________
Here is the result of lspci:
_________________________________________________________________________
> lspci
00:00.0 Host bridge: Intel Corporation E7230 Memory Controller Hub (rev c0)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.4 PCI bridge: Intel Corporation 82801GR/GH/GHM (ICH7 Family) PCI Express Port 5 (rev 01)
00:1c.5 PCI bridge: Intel Corporation 82801GR/GH/GHM (ICH7 Family) PCI Express Port 6 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 RAID bus controller: Intel Corporation 82801GR/GH (ICH7 Family) Serial ATA Storage Controllers cc=RAID (rev 01)
03:00.0 VGA compatible controller: Matrox Graphics, Inc. Unknown device 0522 (rev 02)
04:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5721 Gigabit Ethernet PCI Express (rev 21)
0a:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5705_2 Gigabit Ethernet (rev 03)
________________________________________________________________________________
My goal is to assign static ips for eCommerce web sites. We have several projects our Web Developers are working on that require this.
Thanks in advance for your assistance
0
Bradley Haynes
Asked:
Bradley Haynes
  • 13
  • 5
  • 4
  • +4
1 Solution
 
WizRd-LinuxCommented:
Check /etc/sysconfig/network-scripts/ you will find you only have ifcfg-eth0 and ifcfg-eth1 files in there.  You will need to setup the files ifcfg-eth2 and ifcfg-eth3, use the existing ones as references.

Once you have these setup a quick /etc/init.d/network restart will get you going on all 4 nics.
0
 
Bradley HaynesAuthor Commented:
The only difference is the hardware address. Where do I get that?
0
 
sanjoozCommented:
try as a super user

ifup eth2
ifup eth3
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
WizRd-LinuxCommented:
Given the fact they are all on the same card, if you have the hardware address of the first two cards, just increment the last bit.

If the files already exist, make sure that they are not set to not start on bootup.
0
 
WizRd-LinuxCommented:
Also if you use ifconfig -a it may show you the cards and their mac addresses
0
 
Bradley HaynesAuthor Commented:
Here is what I have. I am changing the boot option to "No".  

         vi ifcfg-eth1
[root@ns2 network-scripts]# vi ifcfg-eth1
# Broadcom Corporation NetXtreme BCM5705_2 Gigabit Ethernet
DEVICE=eth1
BOOTPROTO=none
BROADCAST=158.222.94.127
HWADDR=00:15:60:A3:C1:12
IPADDR=158.222.94.122
NETMASK=255.255.255.248
NETWORK=158.222.94.120
ONBOOT=yes
GATEWAY=158.222.94.121
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes

and

 vi ifcfg-eth0
# Broadcom Corporation NetXtreme BCM5721 Gigabit Ethernet PCI Express
DEVICE=eth0
BOOTPROTO=none
BROADCAST=158.222.94.127
HWADDR=00:1A:4B:AE:75:A3
IPADDR=158.222.94.123
NETMASK=255.255.255.248
NETWORK=158.222.94.120
ONBOOT=yes
GATEWAY=158.222.94.121
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes

0
 
Bradley HaynesAuthor Commented:
ifconfig -a gives me what is in the previous post.
0
 
Bradley HaynesAuthor Commented:
ifup --> results in the device does not appear to be present. msg.
0
 
WizRd-LinuxCommented:
what does "ip link show" return?  Does this show all of the interfaces?

Basically you need to create the files I specified above (ifcfg-eth2, ifcfg-eth3) in /etc/sysconfig/network-scripts/.

You need to include the MAC address of each interface, it isn't listed on the card? or the box the card came in?
0
 
Gabriel OrozcoSolution ArchitectCommented:
try

ifconfig eth2 up
ifconfig eth3 up
ifconfig

if that works, then all you need is to define the files for eth2 and eth3 as told on previous post.
0
 
ravenplCommented:
/sbin/ip link
will shouw You all available links. But according to to Your lspci command output You have only two NICs
> 04:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5721 Gigabit Ethernet PCI Express (rev 21)
> 0a:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5705_2 Gigabit Ethernet (rev 03)
And it's surely nor four-headed card. Those are two separate cards, as they live on different PCI buses!
0
 
sanjoozCommented:
>> ifup --> results in the device does not appear to be present. msg.
>>04:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5721 Gigabit Ethernet PCI Express (rev 21)
>>0a:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5705_2 Gigabit Ethernet (rev 03)

Looks like there are only two network cards. What makes you think there are four?
0
 
Bradley HaynesAuthor Commented:
My System Engineer installed a four port NIC card.
0
 
Bradley HaynesAuthor Commented:
The four port NIC card was install when our Sys Eng built the server.
He deployed the server in our Co-Lo and the Network Eng configure the ips. At which time the ifconfig did not reflect the four port NIC. That was a few weeks ago. Now we have a client that needs static ips  .  .  .
I have been set to task to enable this.
0
 
sanjoozCommented:
As far as  I know, if lspci is not listing four ethernet controllers and if you are absolutely sure there are four nic ports, make sure remaining two are recognized and drivers loaded in kernel for them.

It would also help you to actually look behind the server box to make sure there are four ports.
0
 
Gabriel OrozcoSolution ArchitectCommented:
which model of lan card did you used? do you have the module for that card? is recognized by linux?
0
 
Bradley HaynesAuthor Commented:
Ethernet controller: Broadcom Corporation NetXtreme BCM5721 Gigabit Ethernet PCI Express (rev 21) is the four port NIC.
0
 
ravenplCommented:
Then maybe other ports are disabled?
If it was 4port it would look in lspci like (next function numbers)
04:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5721 Gigabit Ethernet PCI Express (rev 21)
04:00.1 Ethernet controller: Broadcom Corporation NetXtreme BCM5721 Gigabit Ethernet PCI Express (rev 21)
04:00.2 Ethernet controller: Broadcom Corporation NetXtreme BCM5721 Gigabit Ethernet PCI Express (rev 21)
04:00.3 Ethernet controller: Broadcom Corporation NetXtreme BCM5721 Gigabit Ethernet PCI Express (rev 21)
0
 
sanjoozCommented:
See this from Broadcom. Nowhere it says it is four port. Not only that it does not even say it is two port.
http://www.broadcom.com/collateral/pb/5721-PB00-R.pdf

check the image of the network card
http://www.ictcompany.com/store/products.php?id=746&pt=1


0
 
Bradley HaynesAuthor Commented:
>"if lspci is not listing four ethernet controllers and if you are absolutely sure there are four nic ports, make >sure remaining two are recognized and drivers loaded in kernel for them.

>It would also help you to actually look behind the server box to make sure there are four ports."
--------------------------------------------------------------------------------------------------------------------------------
I am not able to do a physical inspection until about two weeks from now.
How can make sure the drivers are installed in the kernel?
I have searched for a command to list the drivers installed on my Linux box and found nothing on Google.
Is there a way to enumerate the installed drivers?
0
 
sanjoozCommented:
Well its a catch 22 situation actually.

If remaining two nics are missing because kernel modules are not loaded, you will need to know which nic it is to find out exact kernel module and you can't do that right now.

And you also won't be able to find out the what nic card it is because lspci won't list it.

Anyway, to check for kernel modules do a

lsmod

and see if you can find broadcom module in there. I don't know the module name, so you will have to look at the list and take a guess or search google for module name. Good luck.
0
 
Bradley HaynesAuthor Commented:
In the lsmod result I see e1000 which is the driver for this NIC card.

[usst@~]# lsmod
Module                  Size  Used by
loop                   19657  0
ip_conntrack_netbios_ns     6977  0
ipt_LOG                10049  4
iptable_filter          7105  1
iptable_mangle          6849  0
iptable_nat            12101  0
ip_nat                 20717  1 iptable_nat
ip_conntrack           54040  3 ip_conntrack_netbios_ns,iptable_nat,ip_nat
nfnetlink              10457  2 ip_nat,ip_conntrack
ip_tables              16389  3 iptable_filter,iptable_mangle,iptable_nat
x_tables               16965  3 ipt_LOG,iptable_nat,ip_tables


e1000                 103853  0


autofs4                22981  0
i2c_dev                12741  0
i2c_core               24897  1 i2c_dev
hidp                   24001  2
rfcomm                 42709  0
l2cap                  31681  10 hidp,rfcomm
bluetooth              52901  5 hidp,rfcomm,l2cap
sunrpc                140925  1
video                  18885  0
button                 10577  0
battery                13253  0
ac                      8901  0
ipv6                  246433  40
lp                     16265  0
parport_pc             29413  0
parport                38281  2 lp,parport_pc
nvram                  12617  0
sg                     36317  0
uhci_hcd               33233  0
tg3                    95173  0
ehci_hcd               33229  0
dm_snapshot            20205  0
dm_zero                 6209  0
dm_mirror              24081  0
dm_mod                 54745  6 dm_snapshot,dm_zero,dm_mirror
ext3                  121929  2
jbd                    57173  1 ext3
ahci                   16837  3
libata                 58321  1 ahci
sd_mod                 20545  5
scsi_mod              129641  4 sg,ahci,libata,sd_mod

0
 
Bradley HaynesAuthor Commented:
Also;
In the fcfg-eth2 and fcfg-eth3 files, shouldn't the HWADDR  be the same as fcfg-eth0 (which I was told by our System Eng is the four port NIC card)?
0
 
Kerem ERSOYPresidentCommented:
Hi,

There must be a mistake. Your lspci output clearly indicates that it detects only two single port ehternet adapters.  It clearley detects two different adapters on spearate cards. (In fact the first one is PCI-ex ant the second is a PCI adapter) That is it. Besides I am not aware of any 4 port GB adapters using any of the broadcom chips you've mentioned above unless they are some special edition adapters for some Server. Somehow even if ths is the case it is very unlikely that your system detects only one port of a 4 port ethernet adapter.

I suggest you to physically check the system and product litterature.
0
 
Bradley HaynesAuthor Commented:
Some how I remember installing the Intel e1000 driver for this card.

The Sys Eng says there is an internal and an external NIC card the latter being the aftermarket he purchased to enable multiple ips for eCommerce web sites.
0
 
Kerem ERSOYPresidentCommented:
BTW to have multiple IP addresses you don't need an extra adapter. You can assign multiple adresess to a single adapter too. to add multiple addresess:
- go to /etc/sysconfig/network-scripts
- copy the ifcfg-eth0 to ifcfg-eth0:0
- edit the file
  change DEVICE to eth0:0
  change the IPADDR
  remove GATEWAY line alltogether
  add ONPARENT=yes
  check for ONBOOT=yes
then save the script
- restart networking
- repeat this process for eth0:1, eth0:2, eth0:3

now you have 4 IP's ata single interface. May be this was what your Sys Engineer was referring as he added single ethernet adapter.
0
 
billndotnetCommented:
Adding comment to this thread since my own search for answers got me here.

This card:
Ethernet controller: Broadcom Corporation NetXtreme BCM5705_2 Gigabit Ethernet (rev 03)

Does exist in a quad port architecture, but the original poster's System Engineer didn't read the fine print when he ordered an HP NC150T PCI 4-port Gigabit Combo Switch Adapter  (http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c00245681&prodTypeId=329290&prodSeriesId=428161)

This device is actually a Switch adaptor, presenting a single interface to the host OS, which, by default, shares a broadcast domain / basic switched environment with the 4 gigabit ethernet ports physically present on the card. This is not a quad port NIC. It's a 4 port switch on a PCI card.

Since this is a PCI card, the bandwidth to the host OS would never support 4 gb/sec throughputs. HP's mark
0
 
Bradley HaynesAuthor Commented:
Thanks for the update. I have moved on to another company but I am always learning more and more. I find Linux to be great, if only it is used in a pervasive server role. End users are habitually Windows centric so the resistance to change is paramount. The battle continues.......
0
 
Kerem ERSOYPresidentCommented:
b_haynes: You're extremely right. Linux desktops thing is just in early infancy now but I don't think windows is not great for anything that a server does may be except for Active Directory.
0
 
Bradley HaynesAuthor Commented:
So true . . . I would like to move to "Virtual Desktops" and push users the Windows Shell they are used to with Linux and say [VMWare] on the back end.
The would reduce the cost to replace Desktop PC as attrition takes its' course.
In the end we are pretty much back at the start. Can U(nix) say MainFrame.  LOL
0
 
Kerem ERSOYPresidentCommented:
Yeah but there are someting that is diffrent than Mianframe/PC thing.
Especially with the demise of Vista and Microsofts inability to sustain an OS, the speedup in OS development leading to nicer looking and very usable Linux Desktops (such as Ubuntu etc) and Availablity of very usable programs like OpenOvvice, Firefox, Thunderbird etc. allows a migration to Linux desktops faster than ever too.
According to Gartner only 10% percent of all enterprise users are using Vista on their desktops today. Again Gartner predicts 7,5% of all dektop compuerts will be shipped have Linux as desktops.

So you'll never know may be in 2-3 years we can see the boom in desktops too.

Linux already the pervasive OS in all embedded market includin network devices like ADSL routes, switches, Acces points, Satellite receivers and recorders, GPS devices, hand held  phones etc.
 
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 13
  • 5
  • 4
  • +4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now