LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-07-2003, 10:28 AM   #1
daren
LQ Newbie
 
Registered: May 2003
Location: Iowa, USA
Distribution: Debian
Posts: 10

Rep: Reputation: 0
Unhappy Network card unable to work after compling kernel!


I decided to compile a new kernel after the kernel that Debian gave me did not provide sound. I also wanted to build the kernel for a firewall server that is still not ready.

I compiled the kernel and loaded up the modules. After I was satisfied with my sound working, the internet was not working at all. I was not exactly sure what to do, so I had my linux guru friend figure out what was going on. He couldn't figure out what was wrong either.

The odd thing is that I used the VIA Rhine module which loaded up fine. The problem with this is that my LAN card is onboard. The manufacturer also does not specify in the manual what card it is. I am assuming it is a VIA PCI 10/100 Fast Ethernet Adapter Driver since it was the only driver offered in the support page of my motherboard.

I am using a Biostar M7VIQ.

Could it be that I don't have my firewall setup perfectly? I haven't had the time to install a second network card. Or could it be that the modules wrong? Help!

Note: I was an off and on Linux newbie, but I am starting to use it as I am prepared to go into college.
 
Old 05-07-2003, 10:38 AM   #2
td3201
Member
 
Registered: Jan 2002
Location: Omaha, NE US
Distribution: Red Hat/CentOS
Posts: 226

Rep: Reputation: 30
an 'ifconfig -a' will tell you if you have the right module or not. if your ethernet card is there and has an ip, then the module was loaded correctly.

if not, then you need to figure out what card is in there....check the mobo website...look around the ethernet module on the board for chipsets. usually they have the name/model written on the chipset.
 
Old 05-07-2003, 05:15 PM   #3
daren
LQ Newbie
 
Registered: May 2003
Location: Iowa, USA
Distribution: Debian
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by td3201
an 'ifconfig -a' will tell you if you have the right module or not. if your ethernet card is there and has an ip, then the module was loaded correctly.

if not, then you need to figure out what card is in there....check the mobo website...look around the ethernet module on the board for chipsets. usually they have the name/model written on the chipset.
Oh my! There is no IP! Why is that?
 
Old 05-07-2003, 07:58 PM   #4
td3201
Member
 
Registered: Jan 2002
Location: Omaha, NE US
Distribution: Red Hat/CentOS
Posts: 226

Rep: Reputation: 30
well, you need to configure it:
ifconfig eth0 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255 up

^ fill in your own ip address. i dont know debian so I am not sure where you need to put those values to make it permanent, maybe netconfig?
 
Old 05-07-2003, 10:01 PM   #5
daren
LQ Newbie
 
Registered: May 2003
Location: Iowa, USA
Distribution: Debian
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by td3201
well, you need to configure it:
ifconfig eth0 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255 up

^ fill in your own ip address. i dont know debian so I am not sure where you need to put those values to make it permanent, maybe netconfig?
I tried this out just now and it didn't work. I think I also tried it out with my friend earlier this week and it also didn't work.
 
Old 05-08-2003, 09:04 AM   #6
td3201
Member
 
Registered: Jan 2002
Location: Omaha, NE US
Distribution: Red Hat/CentOS
Posts: 226

Rep: Reputation: 30
Telling me 'it didnt work' isnt going to help me much. Any errors? After you tried the above command, do an ifconfig -a, what happens?
 
Old 05-08-2003, 04:56 PM   #7
daren
LQ Newbie
 
Registered: May 2003
Location: Iowa, USA
Distribution: Debian
Posts: 10

Original Poster
Rep: Reputation: 0
ifconfig -a gives me this:

dummy0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

eth0 Link encap:Ethernet HWaddr 00:E0:4C:89:83:82
inet addr:10.0.0.12 Bcast:255.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:16 Base address:0xe000

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:24 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1648 (1.6 KiB) TX bytes:1648 (1.6 KiB)

I tried pinging to google.com, but I kept receiving unknown host errors.
 
Old 05-08-2003, 10:12 PM   #8
darkstarreddiam
LQ Newbie
 
Registered: Mar 2003
Location: china
Distribution: i am zhang
Posts: 3

Rep: Reputation: 0
Smile hihi

suggest that rebuild the kernel by module ethernet card!
such as
1> cd /usr/src/linux
2> make menuconfig
<M> your net card types
3>save and make
4>lsmod
if your net card have insmod ,please jump to (6);
5>insmod your-net-card-types
6>ifconfig eth0 up 0.0.0.0
7>ifconfig eth0 192.168.1.20.
ok! good luck!
 
Old 05-08-2003, 10:57 PM   #9
daren
LQ Newbie
 
Registered: May 2003
Location: Iowa, USA
Distribution: Debian
Posts: 10

Original Poster
Rep: Reputation: 0
My kernel is compiled with the ethernet card as a module. I have to load up the following though:

mii
via-rhine

After doing a lsmod command, it shows mii being used by via-rhine, but via-rhine is shown as unused.
 
Old 05-09-2003, 09:12 AM   #10
td3201
Member
 
Registered: Jan 2002
Location: Omaha, NE US
Distribution: Red Hat/CentOS
Posts: 226

Rep: Reputation: 30
what does your routing table look like?
route
 
Old 05-11-2003, 09:58 PM   #11
daren
LQ Newbie
 
Registered: May 2003
Location: Iowa, USA
Distribution: Debian
Posts: 10

Original Poster
Rep: Reputation: 0
this is what it looks like

Chain PREROUTING (policy ACCEPT)
target prot opt source destination

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
 
Old 05-12-2003, 02:52 AM   #12
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
that's not the routing table, that's your firewall rules (or lack thereof)

type "route" at the prompt
 
Old 05-12-2003, 05:42 AM   #13
johann_faust
LQ Newbie
 
Registered: May 2003
Distribution: Debian
Posts: 3

Rep: Reputation: 0
Ok I have been having some network troubles after a kernel compile.

I decided to recompile so that I could install the new nvidia drivers without downloading the kernel headers. Also it gives me practice for when kernel 2.6.0 arrives.

Could any Linux gurus help me re-establish proper networking? (The actual questions are right at the bottom.)

My relevant machine details:

Code:
Debian 3 stable (woody)

New kernel : 2.4.20

Old kernel : 2.4.18-bf (installed by typing bf24 at Debian first install prompt)

Intel celeron 1300 cpu

Asus motherboard

RTL8139 (realtek) 10/100 network card on PCI slot
Some relevant lines from my kernel configuration, edited for brevity (followed by comments):

Code:
CONFIG_NET=y //network support

CONFIG_PNP=y //plug and play support

# Networking options

CONFIG_PACKET=y

# CONFIG_PACKET_MMAP is not set

# CONFIG_NETLINK_DEV is not set

# CONFIG_NETFILTER is not set

# CONFIG_FILTER is not set

CONFIG_UNIX=y

CONFIG_INET=y

# CONFIG_IP_MULTICAST is not set

# CONFIG_IP_ADVANCED_ROUTER is not set

CONFIG_IP_PNP=y

CONFIG_IP_PNP_DHCP=y //enables auto DHCP support

# CONFIG_IP_PNP_BOOTP is not set

# CONFIG_IP_PNP_RARP is not set

# CONFIG_NET_IPIP is not set

# CONFIG_NET_IPGRE is not set

# CONFIG_INET_ECN is not set

# CONFIG_SYN_COOKIES is not set

# CONFIG_VLAN_8021Q is not set

# CONFIG_IPX is not set

# CONFIG_ATALK is not set

# Network device support

CONFIG_NETDEVICES=y

# Ethernet (10 or 100Mbit)

//stuff has been cut out here

CONFIG_NET_PCI=y

//stuff has been cut out here

CONFIG_8139TOO=y

# CONFIG_8139TOO_PIO is not set

# CONFIG_8139TOO_TUNE_TWISTER is not set

# CONFIG_8139TOO_8129 is not set

# CONFIG_8139_OLD_RX_RESET is not set
Now initially I cannot get to the network at all as this shows:

Code:
PING 150.203.110.1 (150.203.110.1): 56 data bytes

ping: wrote 150.203.110.1 64 chars, ret=-1

ping: sendto: Network is unreachable

ping: wrote 150.203.110.1 64 chars, ret=-1

ping: sendto: Network is unreachable

ping: wrote 150.203.110.1 64 chars, ret=-1

ping: sendto: Network is unreachable

--- 150.203.110.1 ping statistics ---

3 packets transmitted, 0 packets received, 100% packet loss
(150.203.110.1 is my gateway by the way.)

Now this isn't a problem with the card as it runs fine under my old kernel and "other" Operating Systems.

(The card is fully Linux compatible by the way, I bought the only one in the store which had "Linux support" written on front of it - and it worked fine before the recompile.)

I check to see if maybe the kernel hasn't modprobed the card by doing "cat /proc/pci":

Code:
PCI devices found:

=========================&gt;8============================================================

  Bus  2, device   9, function  0:

    Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 16).

      IRQ 9.

      Master Capable.  Latency=32.  Min Gnt=32.Max Lat=64.

      I/O at 0xd800 [0xd8ff].

      Non-prefetchable 32 bit memory at 0xed800000 [0xed8000ff].

=========================&gt;8============================================================
I have also seen something like:

Code:
(funny letters):eth0 setting 100mbps based on auto negotiated partner ability
flash by in the boot process.

After a long time I worked out that I should do an "ifconfig eth0" which indicates that I have no IP address nor netmask.

I am on a DHCP dynamic IP so I figure I should try and find a way to reget my IP, but the best thing I can find is dhclient.

So I do "dhclient eth0" as root and get no output, but upon re-pinging 150.203.110.1 there is no change. I re-check my IP and find I still don't have one.

I then do:

Code:
#ifconfig eth0 150.203.110.1 netmask 255.255.255.0 up

#ifconfig eth0

eth0      Link encap:Ethernet  HWaddr 00:05:1C:0D:82:C8  

          inet addr:150.203.110.255  Bcast:150.203.255.255  Mask:255.255.255.0

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:1252 errors:0 dropped:0 overruns:0 frame:0

          TX packets:3 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:100 

          RX bytes:145692 (142.2 KiB)  TX bytes:256 (256.0 b)

          Interrupt:9
So now I at least have an IP and netmask even if my admin will be upset at me for not using DHCP.

I re-ping 150.203.110.1 and I get normal output. (As in the ping is succesful.)

But when I ping an actual domain name I get "unknown host":

Code:
ping: unknown host fennetic.anu.edu.au

ping: unknown host www.anu.edu.au

ping: unknown host debian.anu.edu.au

(these are all valid address.)
So I still have no DNS, even though I am on the network.

My questions:

1:What have I done wrong in the recompile process? (Do I need to recompile "# CONFIG_IP_PNP_BOOTP" in?)

2:How do I set up my computer for full DHCP assignment? (Preferably on boot instead of by hand.)

3:If I am stuck with manual IP assignment (which will mean having to boot into Windows to find an unused IP address - ie the one assigned to my Windows box) then can I just shove the dns' IP address into /etc/hosts.conf? What would the formatting of that be?

Last edited by johann_faust; 05-12-2003 at 05:46 AM.
 
Old 05-12-2003, 05:56 AM   #14
johann_faust
LQ Newbie
 
Registered: May 2003
Distribution: Debian
Posts: 3

Rep: Reputation: 0
Ok the output of route:

Code:
Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
(As you can see it's quite short.)
I guess this means I have no routing table?
 
Old 05-12-2003, 10:35 PM   #15
daren
LQ Newbie
 
Registered: May 2003
Location: Iowa, USA
Distribution: Debian
Posts: 10

Original Poster
Rep: Reputation: 0
I do not have my routing set up. Sorry about that. Like I said, I just wanted part of my firewall set up, but not running since I already have one set up at home and am currently using that until the end of the month.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiled 2.6.9 kernel - Intel PRO/100 VE Network Card won't work Jonescity Linux - Networking 5 10-24-2004 09:39 PM
Compiled 2.6.9 kernel - Intel PRO/100 VE Network Card won't work Jonescity Slackware 4 10-24-2004 02:59 AM
Compling A New Kernel mullet Slackware 7 08-26-2004 05:04 PM
Wireless card is unable to see network moosedaddy Linux - Wireless Networking 0 07-31-2003 07:52 AM
When compling kernel... nutshell Linux - General 1 03-09-2002 08:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration