Solved

NIC setup with RH9

Posted on 2004-11-01
251 Views
Last Modified: 2010-03-17
Experts,

I have Linux Redhat 9 installed on a pc. I use Comcast's cable service, and have two IP addresses available.

My problem lies with my experience with Linux...in that i have almost none. Im hoping that someone could tell me how to setup my linux box to be able to access the net. So far, I only see the loopback address when I do an 'IFCONFIG' .  When I do a 'netconfig' and then restart the network service, it hangs at the 'eth0' part and then fails.

I also have two different NIC cards on the pc, one is 'onboard' and the other is a brand new Linksys card. I assume that eth0 is set to the onboard card but how do I tell it to look at eth1,2,3...etc. The aftermarket card is the one that linux would most likely support best.

Thank you in advance.
-TT
0
Question by:tjtressel
    13 Comments
     
    LVL 40

    Expert Comment

    by:jlevie
    Does your RH installation see either or both of the NIC's? Examine /proc/pci (more /proc/pci) to find out. If the NIC's are seen in /proc/pci you should execute 'lsmod' to see if a driver is being loaded.

    Disabling PnP mode in the system BIOS (if you have that option) has been known to help with problems where NIC's aren't working properly.

    What (make/model) NIC's do you have?
    0
     

    Author Comment

    by:tjtressel
    jlevie,

    Thank you for your prompt response. I looked at /proc/pci and I believe I see both of them in there, the NICs that is. Most of the stuff in there is (VIA) because of the chipset that came on the motherboard. I also see a VIA Ethernet controller. That is the one I believe I should be using then.

    after doing the lsmod, I see two things that seem relevant, but im not sure. Here are the two entries:

    Via-Rhine     15568     1    
    mii               3944      0    [via rhine]

    So to answer you question about the two NICs, one is Linksys and the other is the VIA Rhine that came onboard the motherboard. The linksys is brand new and the via rhine is about a year older. In the mean time I'll see what I can find in the BIOS.

    0
     

    Author Comment

    by:tjtressel
    jlevie,

    upon some more research I don't think the linksys card directly supports linux. Do I need linux friendly NICs specifically?? If so is there a site you can point me to that has a list of compatable NICs? I really don't want to buy another card since I have 4 of them, but I don't think any will work.
    0
     

    Author Comment

    by:tjtressel
    More info....

    Upon looking at the ifconfig for eth0, it is receiving thousands of packets, but only 13 (TX) of the packets. Also, shouldn't there be an (inet address) under eth0?? I don't see any.

    -TT
    0
     
    LVL 40

    Expert Comment

    by:jlevie
    It sounds like the on-board NIC is being detected and a driver is being loaded. At this point I'd suspect an interrupt delivery problem and disabling PnP mode in the BIOS might help. You might also check to see if the MB vendor has a later version of the BIOS than what's currently on the board.
    0
     

    Author Comment

    by:tjtressel
    I just checked the BIOS and the PNP is disabled. Should I try enabling it? I would assume a BIOS this new would be able to work with RH9. Any other ideas? Its so difficult because I have limited knowledge of linux and don't know how to manuever and check the important spots.

    Thx again for your help.

    -TT
    0
     
    LVL 40

    Expert Comment

    by:jlevie
    Linux really likes to see PnP disabled. It is perfectly capable of setting up PCI cards and it doesn't need or want the BIOS deciding how they should be set up.

    Have you checked to see if there's a BIOS update for the motherboard?

    Does your Comcast Cable service use DHCP or PPPoE?
    0
     

    Author Comment

    by:tjtressel
    jlevie,

    Comcast uses DHCP with a lease of about 3 days or so. I called and asked if they could tell me what my two IPs should be, but they said they couldn't tell me until they were assigned.
    ---> I was plainning on trying to assign myself with: ifconfig eth0 (IP) netmask (sub) gw (gateway)   but since I can't find out what my IP is until its assigned, its a catch 22 in my eyes.

    That could be all this is, just a basic setup question...I just don't know what linux needs or wants to do this. Windows does this automatically so I don't know what to do for linux.

    Also, from what the website manufacturer says for the motherboard theres no updates.

    Can you tell me in detail steps:
    1. how to know if the NIC is being accepted by linux, i.e. what command should I use and what results should i look for?
    2. what files or commands can I use to tell linux to us DHCP and to go out and get an IP address from comcast on bootup?

    Thx again in advance.
    -TT
    0
     
    LVL 40

    Accepted Solution

    by:
    What I'd try at this point is remove one of the cards so there's no confusion as what NIC eth0 is. Then I'd verify that eth0 is configured to use DCHP.  /etc/sysconfig/network-scripts/ifcfg-eth0 should look similar to:

    DEVICE=eth0
    HWADDR=00:02:8A:A5:34:32
    ONBOOT=yes
    TYPE=Ethernet
    USERCTL=no
    BOOTPROTO=dhcp

    Then I'd start a tcpdump in one window or terminal (tcpdump -n -i eth0) and execute 'service network restart' in another. You should see evidence of the Linux box sending a DHCP request out and replies coming back.  What you see will help determin where the problem lies.
    0
     

    Author Comment

    by:tjtressel
    Ok, I removed one of the NIC cards. The onboard remains intact. I looked at my /etc/sysconfig/network-scripts/ifcfg-eth0    and here are my results:

    DEVICE=eth0
    ONBOOT=yes
    BOOTPROTO=dhcp

    -However when i do an ifconfig it does display a 'HWaddr'.

    -When I ran the 'tcpdump' command it scrolls away and then returns this information after I run the network restart in another terminal:

    tcpdump: pcap_loop: recvfrom: network is down

    -The results of the 'service network restart' are:

    eth0: promiscuous mode enabled
    eth0: promiscuous mode enabled
    eth0: promiscuous mode enabled
    eth0: promiscuous mode enabled
    eth0: promiscuous mode enabled

    Determining IP information for eth0 ... failed.
    0
     
    LVL 40

    Expert Comment

    by:jlevie
    Okay, what did tcpdump "scroll away"?
    0
     

    Author Comment

    by:tjtressel
    Well I can't post all of it, theres hundreds upon hundreds of lines. I had to Ctrl+C it to stop it after 5 mins. Anyway, the format is basically like this:

    [current time] arp who-has[an IP] tell [an IP]
    I chose one at random so as to show you an example:

    14:52:22.750199  arp who-has 67.176.103.102 tell 67.176.103.1
    0
     
    LVL 40

    Expert Comment

    by:jlevie
    That would say that the NIC is seeing data on your DSL or Cable connection, and that's good. DHCP negotiation is failing for some reason and I need to think about how best to debug that.

    Does your Internet service require that you tell them the MAC of the computer that you connect?
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
    Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
    In this Experts Exchange video Micro Tutorial, I'm going to show how small business owners who use Google Apps can save money by setting up what is called a catch-all email address in their Gmail accounts. By using the catch-all feature, small busin…

    934 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now