LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   NICs and Internet - Need Help (https://www.linuxquestions.org/questions/linux-hardware-18/nics-and-internet-need-help-199091/)

theGrayFox 06-29-2004 09:50 AM

NICs and Internet - Need Help
 
Hi all, this is my first post here, although i've looked all over the foruns for my problem's solution.

I think my problem is caused by my complete noobness. So i do need begginer-like help.

I installed Linux and configured all that i could by my self, but i can't get to make the internet working.

My 2 nics are correctly recognised in the control panel like app that Mandrake 9.2 has, but i really can't configure the internet connection. I think that i overloked that part on the end of the distro install, but i'm not sure.
I have a 3COM 3C940 (onboard) as eth1 and a realtek chiped Genius as eth0 (PCI).

I do have drivers for both of them, but i don't think that's the problem because they are recognised in the Drak(...).

Thanks for your time.
Joćo Figueira

satinet 06-29-2004 10:27 AM

Hello,

Firstly I am wondering why you would want two NIC's unless you are using the computer as a router or something. What are you doing with it? Personally I would remove one of them before you even start trying to configure things. You could just disable to on-board one....


It sounds like you haven't got DHCP configured, but i think we need more info here. How is the PC conected to the internet (or network). Through a router, a cable modem etc? Presuming you have and normal adsl/cable modem (hopefully with a firewall), I think you need to run the network configuration thingie network + internet configuration (i think) in the mandrax configuration centre. Though you have probably done this.

If that doesn't work. please post the output of the command ifconfig and the contents of /etc/sysconfig/network-scripts/ifcfg-eth0 and
/etc/sysconfig/network-scripts/ifcfg-eth1

But like I say I don't think you need two cards.

take a look at this thread:
http://www.linuxquestions.org/questi...ation+mandrake

good luck

theGrayFox 06-29-2004 04:25 PM

Maybe i don't have the onboard card installed as i thought i did. I say this because it doesn't appear on the ifconfig, and there isn't a eth1 file for it.

I do need the two nics, i use them (at least on XP) to share my connection with a second PC. The onboard 3Com is connected to a cable modem and the PCI realtek connects with the other PC trough a crossover cable.

Here's the output of the ifconfig:
-------------------------------------------------------------------------------------------------
eth0 Link encap:Ethernet HWaddr 00:40:F4:64:61:DB
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:978 (978.0 b) TX bytes:240 (240.0 b)
Interrupt:11 Base address:0x2c00

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

And here's the eth0 file:
-------------------------------------------------------------------------------------------------
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.1.1
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
ONBOOT=yes
-------------------------------------------------------------------------------------------------

There was not another eth1 file as i mentioned before.
Meanwhile i tried installing the card, but was unsuccefull, because (even if the rest of the instructions are very clear) i need to :

1) Make sure that the kernel source is installed in /usr/src/linux
or /usr/src/linux-2.4.

I can't find that, or anything that resembles that. I don't know how to install it or even where to get it.

Again, thank you in advance for your time.

satinet 06-30-2004 04:53 AM

Hello,

Well firstly I note that the eth0 file shows that this NIC is set to a static IP on 192.168.1.1. From your set up it sounds like you are NOT using a router (otherwise you wouldnt need two NICs). I would change where it says static to dhcp. And remove the IP address field.

However I am a slackware user and have not experienced this problem myself and slack is a bit different anyway. Anyone feel free to correct me.

I would suggest something like this:

DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
TYPE=Ethernet
USERCTL=no
PEERDNS=no

As i say i might be wrong. This might not work depending on how you connect. ADSL modem?? I'm not sure about your other NIC. Try typing dmesg | grep -i 3com at a root command prompt. This should search your start up messages for info about how you kernel is feeling about this NIC. Then we can go from there........

I have never done this but i think you need to configure iptables to share an internet connection (i.e use this box as a router). There should be plenty of posts on this erstwhile forum regarding that. Finally backup any files before you make any major alteration. You know it makes sense!!

I would really recommend getting a modem/firewall/switch all in one as it will offer more protection and perform better anyway.


All times are GMT -5. The time now is 10:55 AM.