Author Topic: Dual NIC cards seen as one.  (Read 2093 times)

Offline RET423

  • Jr. Member
  • **
  • Posts: 24
Dual NIC cards seen as one.
« on: March 15, 2010, 07:42:22 PM »
I just installed PcLinuxOS 2010 beta on a server computer to see how it would go.
All is well except 1 issue, the server has two gigabit NIC cards (onboard, same chipset) and the OS sees both of them but calls them both eth0.

I was trying (through the control panel) to configure one card to relieve an address via DHCP and the other to the static IP my network is on.

I would like to use ICS but if I set one card to DHCP the other gets changed to that as well, the same goes if I set one with my static IP, the other changes as well.

The mac addresses are different on the cards but nothing else is, is there some way I can force the OS to let me configure the cards separately?

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6214
Re: Dual NIC cards seen as one.
« Reply #1 on: March 15, 2010, 07:49:42 PM »

go to "pcc -> internet and network -> remove connection" and remove both connections if they show up and then click "set up new network interface" and set up your networks again. Hopefully both will show up

can you open the terminal and type this command and copy and paste its contents here?

dmesg | grep eth
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline RET423

  • Jr. Member
  • **
  • Posts: 24
Re: Dual NIC cards seen as one.
« Reply #2 on: March 15, 2010, 09:25:41 PM »
Thank you for the reply.

I removed all instances and restarted the Computer.
under PCC-Network and Internet-Network Center it still shows up as eth0 twice and no eth1, the wlan0 is correct and functioning.

Under the remove connection section the eth1 is listed along with the two eth0 connections and the wlan0.

Is this the info you wanted me to post?
I had success with "dmesg" but when I added the other commands I got only errors

Quote
CPI: PCI Interrupt Link [LNK1] enabled at IRQ 16
tg3 0000:02:00.0: PCI INT A -> Link[LNK1] -> GSI 16 (level, high) -> IRQ 16
tg3 0000:02:00.0: setting latency timer to 64
eth0: Tigon3 [partno(BCM95721) rev 4101] (PCI Express) MAC address 00:14:c2:3a:3b:39
eth0: attached PHY is 5750 (10/100/1000Base-T Ethernet) (WireSpeed[1])
eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]
eth0: dma_rwctrl[76180000] dma_mask[64-bit]
ACPI: PCI Interrupt Link [LNK4] enabled at IRQ 19
tg3 0000:03:00.0: PCI INT A -> Link[LNK4] -> GSI 19 (level, high) -> IRQ 19
tg3 0000:03:00.0: setting latency timer to 64
eth1: Tigon3 [partno(BCM95721) rev 4101] (PCI Express) MAC address 00:14:c2:3a:3b:3a
eth1: attached PHY is 5750 (10/100/1000Base-T Ethernet) (WireSpeed[1])
eth1: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[1] TSOcap[1]
eth1: dma_rwctrl[76180000] dma_mask[64-bit]
imwheel[1373]: segfault at 4000038 ip 0804c852 sp bfae0610 error 4 in imwheel[8048000+e000]
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
cfg80211: Calling CRDA for country: US
cfg80211: Regulatory domain changed to country: US
        (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
        (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
        (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
        (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
        (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
        (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
        (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
ADDRCONF(NETDEV_UP): wlan0: link is not ready
ADDRCONF(NETDEV_UP): eth1: link is not ready
ADDRCONF(NETDEV_UP): eth0: link is not ready
ADDRCONF(NETDEV_UP): wlan0: link is not ready
wlan0: direct probe to AP 00:1d:7e:4b:9e:8c (try 1)
wlan0: direct probe responded
wlan0: authenticate with AP 00:1d:7e:4b:9e:8c (try 1)
wlan0: authenticated
wlan0: associate with AP 00:1d:7e:4b:9e:8c (try 1)
wlan0: RX AssocResp from 00:1d:7e:4b:9e:8c (capab=0x411 status=0 aid=2)
wlan0: associated
ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
NET: Registered protocol family 17
wlan0: no IPv6 routers present
notification-da[2852]: segfault at 8e9bb1ed ip 088816b7 sp bfbbbd08 error 6
tg3 0000:02:00.0: PME# enabled
tg3 0000:02:00.0: PME# disabled
ADDRCONF(NETDEV_UP): eth0: link is not ready



Offline muungwana

  • Hero Member
  • *****
  • Posts: 6214
Re: Dual NIC cards seen as one.
« Reply #3 on: March 15, 2010, 09:50:13 PM »

did you copy and paste the command? it worked here just fine.

"dmesg" commands given info on what hardware the kernel sees. the remaining part filtered out the irrelevant part in this case and was supposed to only show your ethernet cards.

As you can see from the output, the kernel sees both ethernet cards and the problem could be with your networking.

what does "ifconfig" command give you?

Your problem could come from your network being confused when it start up, try to unplug both network cards from your network, set up one card, connect it to your network and then add the second on.

I too have two network cards and the network did get confused when i started it up while both were connected.

If you want to set up one with a static Ip address to use it to serve dhcp and/or as a gateway in  your local network, unplug it, set up the connection and then plug in afterwards.

it might help running netapp program to see and what network card is being used.

in my network eth1 is connected to the internet and eth0 is connected to my local network serving dhcp requests and also acts as a getway to the internet. The network used to default to eth0 on startup messing things up. Disconnecting this network using netapp would automatically reconnect eth1.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline RET423

  • Jr. Member
  • **
  • Posts: 24
Re: Dual NIC cards seen as one.
« Reply #4 on: March 15, 2010, 10:06:49 PM »
Sorry, I did not copy the command, I must have been typing it wrong.
Here is the data.
Quote
eth0: Tigon3 [partno(BCM95721) rev 4101] (PCI Express) MAC address 00:14:c2:3a:3b:39
eth0: attached PHY is 5750 (10/100/1000Base-T Ethernet) (WireSpeed[1])
eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]
eth0: dma_rwctrl[76180000] dma_mask[64-bit]
eth1: Tigon3 [partno(BCM95721) rev 4101] (PCI Express) MAC address 00:14:c2:3a:3b:3a
eth1: attached PHY is 5750 (10/100/1000Base-T Ethernet) (WireSpeed[1])
eth1: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[1] TSOcap[1]
eth1: dma_rwctrl[76180000] dma_mask[64-bit]
ADDRCONF(NETDEV_UP): eth1: link is not ready
ADDRCONF(NETDEV_UP): eth0: link is not ready
ADDRCONF(NETDEV_UP): eth0: link is not ready
These ares the results of "ifconfig" command.
Quote
th0      Link encap:Ethernet  HWaddr 00:14:C2:3A:3B:39  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:16

eth1      Link encap:Ethernet  HWaddr 00:14:C2:3A:3B:3A  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:19

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:38 errors:0 dropped:0 overruns:0 frame:0
          TX packets:38 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1940 (1.8 KiB)  TX bytes:1940 (1.8 KiB)
I will try unplugging the cables and starting over to see if the network was causing confusion.


« Last Edit: March 15, 2010, 10:23:59 PM by RET423 »

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6214
Re: Dual NIC cards seen as one.
« Reply #5 on: March 15, 2010, 10:18:51 PM »

for security reasons, can you modify your post and mask out your wireless network Ip address?

both your ethernet cards are seen correctly and both dont have ip addresses. Going back to your original post. I do not think both are being seen as "eth0". I think "eth0" shows up twice, i saw that here too.

both dont show up when you go to "pcc -> internet and network -> set up new network -> wired"?

do you go online using your wireless network?
you might need to set up static ip address on the card you want to use as a dhcp server.

.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline RET423

  • Jr. Member
  • **
  • Posts: 24
Re: Dual NIC cards seen as one.
« Reply #6 on: March 15, 2010, 10:23:08 PM »
Ok, I removed all the eth cards and rebooted.
Now under the "setup a network" tab I have 2 eth0 and one eth1 card showing up instead of just two and under the "network center" tab I still have two instances labled eth0 and one wlan0 with no eth1 option.

Could the presence of the wireless card be causing the discrepancy?

I am using the wireless card to connect the machine right now so I can respond from the machine I am configuring.

Offline RET423

  • Jr. Member
  • **
  • Posts: 24
Re: Dual NIC cards seen as one.
« Reply #7 on: March 15, 2010, 10:25:24 PM »
I removed the wlan0 section from the previous post.

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6214
Re: Dual NIC cards seen as one.
« Reply #8 on: March 15, 2010, 10:31:29 PM »

i too have a usb wireless network network and two ethernet cards connected to this computer i remember seeing two eth0 networks showing up and one eth1. I ignored one the second eth0 network and it went away and i cant see it anymore. I dont think your wireless network is causing any problems.

What are you trying to do exactly. Your two cards are up and running, they just dont have IP addresses. You either have to give them through setting up stating IP addresses and let them get it from a dhcp on your network.

Of the two cards, which ones do you want to be used as a dhcp server? what do yo plan to do with the other, what network are both connected to? do you plan to use this computer as a gateway/firewall standing btw your local network and the internet?
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6214
Re: Dual NIC cards seen as one.
« Reply #9 on: March 15, 2010, 10:39:17 PM »
Ok, I removed all the eth cards and rebooted.
Now under the "setup a network" tab I have 2 eth0 and one eth1 card showing up instead of just two and under the "network center" tab I still have two instances labled eth0 and one wlan0 with no eth1 option.

the network center should show atleast one instance of both eth1 and eth0. Try to set up eth1 and see if it will show up there.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline RET423

  • Jr. Member
  • **
  • Posts: 24
Re: Dual NIC cards seen as one.
« Reply #10 on: March 15, 2010, 10:48:38 PM »
What I want is to have eth0 setup with a static ip that matches my LAN
I want eth1 setup to receive an address via dhcp from either my router or dsl modem.

Then use the static ip card to allow the other computers on the LAN to access the web through this machine (ICS). This machine will also host a couple printers for the LAN.

What keeps happening is I can setup eth0 (either through the "network services" tab or the "setup a network" tab) and whatever configuration I attempt to assign it (the static or the dhcp) it copies those setting to the non existent second eth0.
Then it will allow me to configure eth1 (through the "setup a network" tab only because eth1 never shows up under the "network setting" tab) but the settings won't stay and the interface won't start.

So I can successfully configure eth0 but those settings will appear as applied to a second non existent eth0 card and then no setting for eth1 will take.

I have the machine setup at home right now, that is why the usb wlan0 card is inserted (gives me web access) but I want to get this configuration dialed in here before I take this machine to the office and try it out as the server.

It is a dual processor HP Proliant (optiron) so it may just not be what this beta distro is designed to run on, I just liked it so much on the desktop I though I would try it out as a server setup in place of my suse machine.

Except for this glitch with the network configuration it is humming right along on this server, much lighter & faster than opensuse 11.2 on the same machine.

Offline RET423

  • Jr. Member
  • **
  • Posts: 24
Re: Dual NIC cards seen as one.
« Reply #11 on: March 15, 2010, 10:55:44 PM »
When I try to setup eth1 in the "setup a network" section this is the error that shows after I tell it to "start the connection now"
Quote
Problems occured during the network connectivity test.

This can be caused by invalid network configuration, or problems with your modem or router.

You might want to relaunch the configuration to verify the connection settings.
This happens every time I attempt to configure eth1, whether I have a configuration in place on eth0 or not and whether I attempt the static or the DHCP configuration.

The last attempt i made I tried with no Ethernet cable attached to the machine in either port.

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6214
Re: Dual NIC cards seen as one.
« Reply #12 on: March 15, 2010, 11:16:34 PM »
you already have a working net connection through wlan0 and i suspect that is why you are getting that error msg in eth1.

i suspect the correct way to set what you are trying to do is to first disconnect wlan0 and eth0. Then connect eth1 to your modem/router and set it up to go online through "pcc->network and internet-> set network". After this step, open the terminal and type "ifconfig". eth1 will have an ip address and eth0 and wlan0 will not. This should be expected.

go to "pcc->network and internet" and configure eth0 to have a static IP address.typing again "ifconfig" on the terminal and both cards should now have an IP address. Now connect this interface to your local hub or switch

Afterwards, go to "pcc-> network services -> configure dhcp" and set it to listen to  eth0

you will also need to set up iptables to allow packet forwarding but thing is first, make sure eth1 and eth0 have addresses that survive reboots

This is how my network look like:
eth0 is connected to my LAN and dhcp is set to listen to this inteface
eth1 is connected to my modem that connects me to the internet
wlan0 is not in use, I have not configured it and it shows up when it feels like it :-)
Code: [Select]
eth0      Link encap:Ethernet  HWaddr 00:C0:A8:84:ED:AE  
          inet addr:192.168.100.20  Bcast:192.168.100.255  Mask:255.255.255.0
          inet6 addr: fe80::2c0:a8ff:fe84:edae/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:661077 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1049855 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:76329882 (72.7 MiB)  TX bytes:1427815406 (1.3 GiB)
          Interrupt:18 Base address:0xc00

eth1      Link encap:Ethernet  HWaddr 00:1A:66:9F:F8:69  
          inet addr:PUBLIC IP  Bcast:255.255.255.255  Mask:255.255.240.0
          inet6 addr: fe80::21a:66ff:fe9f:f869/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:20717929 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3825949 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2168811494 (2.0 GiB)  TX bytes:307062189 (292.8 MiB)

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:2764 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2764 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:175098 (170.9 KiB)  TX bytes:175098 (170.9 KiB)

wlan0     Link encap:Ethernet  HWaddr 00:22:3F:DE:83:03  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

« Last Edit: March 15, 2010, 11:19:28 PM by muungwana »
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline RET423

  • Jr. Member
  • **
  • Posts: 24
Re: Dual NIC cards seen as one.
« Reply #13 on: March 15, 2010, 11:23:31 PM »
Yeah, your network is exactly what I am trying to get setup.
I will remove all interfaces and reboot without the wireless card and see if I have any better luck. I can't get a cable to the router from here but I can setup a dhcp server on my laptop real fast and simulate the connection to my eth1 card.

I will let you know how it turns out, thanks for all the help.

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6214
Re: Dual NIC cards seen as one.
« Reply #14 on: March 15, 2010, 11:33:39 PM »

This is linux, you dont have to reboot to restart your network, from the terminal as root, type the following command to restart your network: "service network restart"

the following commands are useful when troubleshooting a network

as root user: "service networ restart"
you can pass in "start, stop, restart or status"

"ifconfig" to know what ip address your network cards have if they have any

"ping IP" or "ping google.com" to know if there is a computer on the other side of the address and you can reach them. You will get a "no response" if the other computer ignore you or you cant get their responses because your network isnt set up correctly of you will get a "network is unreachable" if no request can be sent because your network isnt set up correctly

.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..