Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 289
  • Last Modified:

NIC setup with RH9

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
tjtressel
Asked:
tjtressel
  • 7
  • 6
1 Solution
 
jlevieCommented:
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
 
tjtresselAuthor Commented:
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
 
tjtresselAuthor Commented:
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
Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

 
tjtresselAuthor Commented:
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
 
jlevieCommented:
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
 
tjtresselAuthor Commented:
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
 
jlevieCommented:
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
 
tjtresselAuthor Commented:
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
 
jlevieCommented:
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
 
tjtresselAuthor Commented:
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
 
jlevieCommented:
Okay, what did tcpdump "scroll away"?
0
 
tjtresselAuthor Commented:
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
 
jlevieCommented:
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

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 7
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now