Author Topic: Help needed with networking in Debian  (Read 544 times)

Faust

  • Member
  • **
  • Posts: 1,223
  • Kudos: 0
Help needed with networking in Debian
« on: 12 May 2003, 15:06 »
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: [Select]

Some relevant lines from my kernel configuration, edited for brevity (followed by comments):

Code: [Select]

Now initially I cannot get to the network at all as this shows:

Code: [Select]

(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: [Select]

I have also seen something like:

Code: [Select]

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: [Select]

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: [Select]

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?
Yesterday it worked
Today it is not working
Windows is like that
 -- http://www.gnu.org/fun/jokes/error-haiku.html

Faust

  • Member
  • **
  • Posts: 1,223
  • Kudos: 0
Help needed with networking in Debian
« Reply #1 on: 12 May 2003, 15:17 »
Yes I have done man DHCP/man DNS etcetera.
Yesterday it worked
Today it is not working
Windows is like that
 -- http://www.gnu.org/fun/jokes/error-haiku.html

KernelPanic

  • VIP
  • Member
  • ***
  • Posts: 1,878
  • Kudos: 222
Help needed with networking in Debian
« Reply #2 on: 12 May 2003, 16:08 »
Did you choose kernel compile options from scratch or use the previous .config as a template?
Contains scenes of mild peril.

Faust

  • Member
  • **
  • Posts: 1,223
  • Kudos: 0
Help needed with networking in Debian
« Reply #3 on: 12 May 2003, 16:29 »
I think from scratch, I didn't think I had a loadable kernel config available.

The kernel config procedure was:
Code: [Select]

If I recompile again how do I load up the config for my previous kernel?
Yesterday it worked
Today it is not working
Windows is like that
 -- http://www.gnu.org/fun/jokes/error-haiku.html

KernelPanic

  • VIP
  • Member
  • ***
  • Posts: 1,878
  • Kudos: 222
Help needed with networking in Debian
« Reply #4 on: 12 May 2003, 17:04 »
Before 'make xconfig' do 'cp /boot/config-2.4.xx .config'
Contains scenes of mild peril.

Faust

  • Member
  • **
  • Posts: 1,223
  • Kudos: 0
Help needed with networking in Debian
« Reply #5 on: 12 May 2003, 17:18 »
Ok thanks Tux cool.  I'll get back to you with how it goes.   ;)
Yesterday it worked
Today it is not working
Windows is like that
 -- http://www.gnu.org/fun/jokes/error-haiku.html

Faust

  • Member
  • **
  • Posts: 1,223
  • Kudos: 0
Help needed with networking in Debian
« Reply #6 on: 13 May 2003, 13:46 »
Woohoo!  It worked!  Obviously newbie me just did not set the right option in the kernel compile procedure, but now I know how to use the previous compiles options so all good.  Thankyou very much Tux!  
Yesterday it worked
Today it is not working
Windows is like that
 -- http://www.gnu.org/fun/jokes/error-haiku.html