Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Two NetCard Problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
xmwxd
n00b
n00b


Joined: 17 Sep 2004
Posts: 64

PostPosted: Thu Oct 27, 2005 5:51 am    Post subject: Two NetCard Problem Reply with quote

I have two netcards .one On the motherboard , the Other is PCI card .
I compile the kernel ,and add 8139 in the kernel ,the PCI card can not be found.
when I get the PCI card out ,and recompile the kernel .
then insert The PCI card.
the problem is also: the Motherboard's card can be recognized ,the PCI card can not found
when I input "lspci " , I found the two card can be seen.
Code:
0000:00:0a.0 Ethernet controller: Linksys NC100 Network Everywhere Fast Ethernet 10/100 (rev 11)
0000:00:0b.0 Communication controller: Conexant HSF 56k HSFi Modem (rev 01)
0000:00:0d.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)

what Can I do to find the PCI cards?
I have compiled the 8139 in my kernel . I want to use the card on the motherboard to connect the internet ,and shared .
in order to do this .I want another computer (named sailor)connect to the PCI card ,and the "sailor" computer can connect internet through the first computer.
in addition ,I give the IP address 192.168.0.1 to the PCI card ,the "sailor" computer's IP address will be 192.168.0.2
then the Two computer can connect internet .
also ,DHCP is good method ,but I don't know how to achieve?


Last edited by xmwxd on Sat Oct 29, 2005 4:35 am; edited 4 times in total
Back to top
View user's profile Send private message
SnarlCat
n00b
n00b


Joined: 21 Sep 2005
Posts: 40

PostPosted: Thu Oct 27, 2005 12:57 pm    Post subject: Reply with quote

So does your on-board interface get recognized at all? (look at 'cat /proc/net/dev' for eth0 and eth1)

If it does, then the order interfaces are recognized is determined by PCI probing -- your PCI slots must be probed before the on-board PCI bus (Yes, I know the on-board interface is still PCI, but this language makes sense in my head -- YMMV). Perhaps your on-board interface just became eth1. This happened to me with a server I was working with; the two on-board gigabit interfaces were originally eth{0,1}; with the addition of a dual-port fiber card, they became eth{2,3} and the fiber interfaces became eth{0,1}.

If you do have an eth0, and eth1, you can use the kernel parameter 'netdev' (see the kernel docs for more) to configure them "permanently" based on IO address, IRQ, and a few other parameters.

If you do not have two interfaces, there is something more amuk; try and report back.
_________________
--

Our OS who art in CPU, UNIX be thy name.
Thy programs run, thy syscalls
done, In kernel as it is in user!
Back to top
View user's profile Send private message
xmwxd
n00b
n00b


Joined: 17 Sep 2004
Posts: 64

PostPosted: Sat Oct 29, 2005 4:12 am    Post subject: Reply with quote

SnarlCat wrote:
So does your on-board interface get recognized at all? (look at 'cat /proc/net/dev' for eth0 and eth1)

If it does, then the order interfaces are recognized is determined by PCI probing -- your PCI slots must be probed before the on-board PCI bus (Yes, I know the on-board interface is still PCI, but this language makes sense in my head -- YMMV). Perhaps your on-board interface just became eth1. This happened to me with a server I was working with; the two on-board gigabit interfaces were originally eth{0,1}; with the addition of a dual-port fiber card, they became eth{2,3} and the fiber interfaces became eth{0,1}.

If you do have an eth0, and eth1, you can use the kernel parameter 'netdev' (see the kernel docs for more) to configure them "permanently" based on IO address, IRQ, and a few other parameters.

If you do not have two interfaces, there is something more amuk; try and report back.

I found that Two cards can be recognized ,when I input "lspci"
It gives me :
Code:
0000:00:0a.0 Ethernet controller: Linksys NC100 Network Everywhere Fast Ethernet 10/100 (rev 11)
0000:00:0b.0 Communication controller: Conexant HSF 56k HSFi Modem (rev 01)
0000:00:0d.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)

But when I input
Code:
Gentoo wxd # ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:0A:E6:79:AC:DF
          inet addr:218.193.29.143  Bcast:218.193.29.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:59373 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1000 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:13728100 (13.0 Mb)  TX bytes:143584 (140.2 Kb)
          Interrupt:11 Base address:0xe800

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:263 errors:0 dropped:0 overruns:0 frame:0
          TX packets:263 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:36944 (36.0 Kb)  TX bytes:36944 (36.0 Kb)

that means the
Code:
0000:00:0a.0 Ethernet controller: Linksys NC100 Network Everywhere Fast Ethernet 10/100 (rev 11)
not be recognized by the system
what should I do to find the lost netcard.
Back to top
View user's profile Send private message
xmwxd
n00b
n00b


Joined: 17 Sep 2004
Posts: 64

PostPosted: Sat Oct 29, 2005 4:18 am    Post subject: Re: Two NetCard Problem Reply with quote

Another Problem is how to share the cards On the motherboard?
just like the discription in my first article.
Addition: DHCP is also a Good Idea ! But what should I do ?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum