View previous topic :: View next topic |
Author |
Message |
tinman Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 02 Nov 2003 Posts: 87 Location: Lorena, Texas USA
|
Posted: Thu Mar 02, 2006 2:47 am Post subject: Trying to get my 2nd nic working (SOLVED) |
|
|
I compiled kernel 2.6.15-r1 to get it working.
I recently added another nic to my computer because I'm using the first one to connect to the internet. When I only had one nic I connected to the internet with dial-up and shared my connection with two other computers. Everything worked fine. Since adding the 2nd card I can't get it to work. lshw shows : Code: | *-network:0 UNCLAIMED
description: Ethernet controller
product: RTL-8139/8139C/8139C+
vendor: Realtek Semiconductor Co., Ltd.
physical id: b
bus info: pci@00:0b.0
version: 10
width: 32 bits
clock: 33MHz
capabilities: bus_master cap_list
resources: ioport:d400-d4ff iomemory:e3000000-e30000ff irq:12 |
_________________ I can resist everything except temptation.
Oscar Wilde
Last edited by tinman on Thu Mar 16, 2006 3:17 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
tinman Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 02 Nov 2003 Posts: 87 Location: Lorena, Texas USA
|
Posted: Thu Mar 02, 2006 2:56 am Post subject: |
|
|
Sorry about that. I hit submit instead of preview.
lspci shows: Code: | 0000:00:00.0 Host bridge: VIA Technologies, Inc. VT8377 [KT400 AGP] Host Bridge
0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8235 PCI Bridge
0000:00:0a.0 Serial controller: US Robotics/3Com 56K FaxModem Model 5610 (rev 01)
0000:00:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
0000:00:10.0 USB Controller: VIA Technologies, Inc. USB (rev 80)
0000:00:10.1 USB Controller: VIA Technologies, Inc. USB (rev 80)
0000:00:10.2 USB Controller: VIA Technologies, Inc. USB (rev 80)
0000:00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82)
0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
0000:00:11.1 IDE interface: VIA Technologies, Inc. VT82C586/B/686A/B PIPC Bus Master IDE (rev 06)
0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233 AC97 Audio Controller (rev 50)
0000:00:14.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8029(AS)
0000:01:00.0 VGA compatible controller: nVidia Corporation NV11 [GeForce2 MX] (rev b2)
|
ifconfig shows: Code: | dummy0 Link encap:Ethernet HWaddr 06:33:CE:91:6A:15
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:92 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:8080 (7.8 Kb)
eth0 Link encap:Ethernet HWaddr 00:02:44:09:7C:AC
inet addr:64.194.96.160 Bcast:64.194.111.255 Mask:255.255.240.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:469476 errors:0 dropped:0 overruns:0 frame:2
TX packets:27825 errors:0 dropped:0 overruns:0 carrier:0
collisions:44 txqueuelen:1000
RX bytes:53636265 (51.1 Mb) TX bytes:4169550 (3.9 Mb)
Interrupt:10 Base address:0xec00
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:13184 errors:0 dropped:0 overruns:0 frame:0
TX packets:13184 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2134769 (2.0 Mb) TX bytes:2134769 (2.0 Mb) |
I setup dummy0 because eth1 just will not work. I configured my kernel for the RTL-8139 card.
Can someone shed some light on how I can get eth1 to work. By the way, the network will not work with the card configured as dummy0. _________________ I can resist everything except temptation.
Oscar Wilde |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ketjap Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 03 Nov 2005 Posts: 75 Location: The Netherlands
|
Posted: Thu Mar 02, 2006 12:56 pm Post subject: |
|
|
Correct me if I'm wrong, but you can't just using dummy0. As the name sais, it's just a dummy.
If you do dmesg you can see which eth? is connected to which NIC.
Can you give an output of /etc/conf.d/net. I think you want someting put put in there like this:
Code: | config_eth0=( "dhcp" )
config_eth1=( "192.168.0.1/24" ) |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
tinman Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 02 Nov 2003 Posts: 87 Location: Lorena, Texas USA
|
Posted: Thu Mar 02, 2006 1:17 pm Post subject: |
|
|
ketjap wrote: | Correct me if I'm wrong, but you can't just using dummy0. As the name sais, it's just a dummy.
If you do dmesg you can see which eth? is connected to which NIC.
Can you give an output of /etc/conf.d/net. I think you want someting put put in there like this:
Code: | config_eth0=( "dhcp" )
config_eth1=( "192.168.0.1/24" ) |
|
I tried those entries in /etc/conf.d/net. And I linked eth1 to eth0 by When I try Code: | /etc/init.d/net.eth1 start | I'm told eth1 does not exist. _________________ I can resist everything except temptation.
Oscar Wilde |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ketjap Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 03 Nov 2005 Posts: 75 Location: The Netherlands
|
Posted: Thu Mar 02, 2006 1:34 pm Post subject: |
|
|
But what does dmesg says? There you can find the name of each NIC. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
magic919 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Thu Mar 02, 2006 2:01 pm Post subject: |
|
|
You need to build into the kernel support for your Realtek 8029 card. I think it's the NE2K that supports it. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ketjap Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 03 Nov 2005 Posts: 75 Location: The Netherlands
|
Posted: Thu Mar 02, 2006 3:08 pm Post subject: |
|
|
Quote: |
I tried those entries in /etc/conf.d/net. And I linked eth1 to eth0 by When I try Code: | /etc/init.d/net.eth1 start | I'm told eth1 does not exist. |
Did you do ln -s net.eth0 net.eth1 or ln -s eth0 eth1. If you did the 2nd one then that's (one of the) problem(s). |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
tinman Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 02 Nov 2003 Posts: 87 Location: Lorena, Texas USA
|
Posted: Thu Mar 02, 2006 8:10 pm Post subject: |
|
|
ketjap wrote: | But what does dmesg says? There you can find the name of each NIC. | I'll have to submit that tonight after I get home. _________________ I can resist everything except temptation.
Oscar Wilde |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
tinman Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 02 Nov 2003 Posts: 87 Location: Lorena, Texas USA
|
Posted: Thu Mar 02, 2006 8:13 pm Post subject: |
|
|
magic919 wrote: | You need to build into the kernel support for your Realtek 8029 card. I think it's the NE2K that supports it. | I built support for the 8029, its eth0. I built support for the 8139 card also. Thats the one that should be eth1. _________________ I can resist everything except temptation.
Oscar Wilde |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
tinman Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 02 Nov 2003 Posts: 87 Location: Lorena, Texas USA
|
Posted: Thu Mar 02, 2006 8:14 pm Post subject: |
|
|
ketjap wrote: | Quote: |
I tried those entries in /etc/conf.d/net. And I linked eth1 to eth0 by When I try Code: | /etc/init.d/net.eth1 start | I'm told eth1 does not exist. |
Did you do ln -s net.eth0 net.eth1 or ln -s eth0 eth1. If you did the 2nd one then that's (one of the) problem(s). | I did it the first way. I just brain farted when I typed it here. _________________ I can resist everything except temptation.
Oscar Wilde |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
tinman Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 02 Nov 2003 Posts: 87 Location: Lorena, Texas USA
|
Posted: Thu Mar 02, 2006 11:50 pm Post subject: |
|
|
ketjap wrote: | But what does dmesg says? There you can find the name of each NIC. | I did thisand got nothing. I built the kernel with support for my card so I don't have to load any modules, right? _________________ I can resist everything except temptation.
Oscar Wilde |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Monkeh Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/158504026146c5220a4feda.png)
Joined: 06 Aug 2005 Posts: 1656 Location: England
|
Posted: Thu Mar 02, 2006 11:57 pm Post subject: |
|
|
tinman wrote: | ketjap wrote: | But what does dmesg says? There you can find the name of each NIC. | I did thisand got nothing. I built the kernel with support for my card so I don't have to load any modules, right? |
You don't HAVE eth1, which means you won't find anything in there.
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
tinman Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 02 Nov 2003 Posts: 87 Location: Lorena, Texas USA
|
Posted: Fri Mar 03, 2006 12:16 am Post subject: |
|
|
Monkeh wrote: | tinman wrote: | ketjap wrote: | But what does dmesg says? There you can find the name of each NIC. | I did thisand got nothing. I built the kernel with support for my card so I don't have to load any modules, right? |
You don't HAVE eth1, which means you won't find anything in there.
|
8139 does not show up either. I'm thinking something is not right with my kernel build. Does that make sense? _________________ I can resist everything except temptation.
Oscar Wilde |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Monkeh Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/158504026146c5220a4feda.png)
Joined: 06 Aug 2005 Posts: 1656 Location: England
|
Posted: Fri Mar 03, 2006 12:47 am Post subject: |
|
|
Are you using CONFIG_8139CP or CONFIG_8139TOO? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
JRV Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 10 Jan 2004 Posts: 291
|
Posted: Fri Mar 03, 2006 12:51 am Post subject: |
|
|
tinman wrote: | I'm thinking something is not right with my kernel build. Does that make sense? |
Yes, your kernel definitely doesn't recognize your NIC (showing up in lspci doesn't mean it's recognized by an appropriate driver). As mentioned above, I think you probably enabled CONFIG_8139CP whereas you should have enabled CONFIG_8139TOO. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|