Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
setup dhcp network?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
andcon
n00b
n00b


Joined: 06 Nov 2002
Posts: 53
Location: Manchester, UK

PostPosted: Fri Dec 20, 2002 5:49 pm    Post subject: setup dhcp network? Reply with quote

Hi, I have managed to install Gentoo Linux, for my first time 8) the only problem that I have is that I can't get my NIC to access the Internet via my D-Link DSL-504 router. I ran the net-detect eth0 command on the install and that picked up my network fine. The problem is after i've installed Gentoo and rebooted my network is no longer active... I connect to the internet via eth0 and DHCP and wonder if you could help me get my system back on the internet so that I can install the rest of my Gentoo system.
I think the trouble is when I nano -w /etc/conf.d/net when I did the installation?? Do I leave the default values that are in the file or change them?
Back to top
View user's profile Send private message
rtn
Guru
Guru


Joined: 15 Nov 2002
Posts: 427

PostPosted: Fri Dec 20, 2002 6:19 pm    Post subject: Reply with quote

Is your NIC detected by your custom kernel?

--rtn
Back to top
View user's profile Send private message
andcon
n00b
n00b


Joined: 06 Nov 2002
Posts: 53
Location: Manchester, UK

PostPosted: Fri Dec 20, 2002 6:26 pm    Post subject: Reply with quote

im not sure how to check that... but the network was detected alright on the install... i.e net-detect eth0

Is there a way to check that it is detected by the kernel?
Back to top
View user's profile Send private message
rtn
Guru
Guru


Joined: 15 Nov 2002
Posts: 427

PostPosted: Fri Dec 20, 2002 6:41 pm    Post subject: Reply with quote

andcon wrote:
im not sure how to check that... but the network was detected alright on the install... i.e net-detect eth0

Is there a way to check that it is detected by the kernel?



The kernel that you used for the install supports just about every
network device known to the linux kernel. You had to compile your
own kernel during the install, and that's the one you need to make sure
supports your NIC.

If you compiled the driver as a module, you could see it with
Code:
lsmod


You could also check your kernel output

Code:
# dmesg | grep eth
eth0: Lite-On 82c168 PNIC rev 32 at 0xe400, 02:00:08:xx:xx:xx, IRQ 11.


--rtn
Back to top
View user's profile Send private message
andcon
n00b
n00b


Joined: 06 Nov 2002
Posts: 53
Location: Manchester, UK

PostPosted: Fri Dec 20, 2002 6:53 pm    Post subject: Reply with quote

it doesn't look like my NIC is installed properly since i got no feedback from dmesg | grep eth
or lsmod

Am I still able to install the NIC modules? or is it too late, and i'm going to have to install again?

just checking through the installation instructions again I came across the Final Network COnfiguration again
22.Final Network Configuration

Add the names of any modules that are necessary for the proper functioning of your system to /etc/modules.autoload file (you can also add any options you need to the same line.) When Gentoo Linux boots, these modules will be automatically loaded. Of particular importance is your ethernet card module, if you happened to compile it as a module:

Code listing 22.1: /etc/modules.autoload

This is assuming that you are using a 3com card. Check /lib/modules/`uname -r`/kernel/drivers/net for your
card.
3c59x


Edit the /etc/conf.d/net script to get your network configured for your first boot:

Code listing 22.2: Boottime Network Configuration

# nano -w /etc/conf.d/net
# rc-update add net.eth0 default



If I can find the correct module for my D-Link 504 NIC card can i enter it as above still, or is it too late?
Back to top
View user's profile Send private message
rtn
Guru
Guru


Joined: 15 Nov 2002
Posts: 427

PostPosted: Fri Dec 20, 2002 7:24 pm    Post subject: Reply with quote

You'll need to recompile your kernel.

Code:
cd /usr/src/linux
make menuconfig


Make sure you find and include your ethernet drivers under
Network Device Support --->
Ethernet (10 or 100Mbit) --->

Unfortunatly, I don't have any idea which driver your card needs.

Code:
make dep && make clean bzImage modules modules_install


--rtn
Back to top
View user's profile Send private message
andcon
n00b
n00b


Joined: 06 Nov 2002
Posts: 53
Location: Manchester, UK

PostPosted: Fri Dec 20, 2002 7:44 pm    Post subject: Reply with quote

Thanks for your help, one last thing... after i've recompiled the kernel will I have to go through the installation as if id just compiled the kernel? or will my Grub settings etc still be ok?
Back to top
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Fri Dec 20, 2002 7:44 pm    Post subject: Reply with quote

andcon wrote:
If I can find the correct module for my D-Link 504 NIC card can i enter it as above still, or is it too late?

Are you sure you have a D-Link 504 NIC??? Iin your original post, you said you had a D-Link DSL-504 router. The two are very different.

What kind of NIC do you have any we can probably tell you what driver to use?

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
andcon
n00b
n00b


Joined: 06 Nov 2002
Posts: 53
Location: Manchester, UK

PostPosted: Fri Dec 20, 2002 7:56 pm    Post subject: Reply with quote

yes sorry, reading the wrong thing 8O the actual NIC is the D-Link DFE-530TX+
Back to top
View user's profile Send private message
rtn
Guru
Guru


Joined: 15 Nov 2002
Posts: 427

PostPosted: Fri Dec 20, 2002 8:02 pm    Post subject: Reply with quote

andcon wrote:
Thanks for your help, one last thing... after i've recompiled the kernel will I have to go through the installation as if id just compiled the kernel? or will my Grub settings etc still be ok?


After the kernel is compiled, you'll just have to mount your /boot
filesystem and copy the bzImage file there. You'll probably want to
back up your current bzImage and make sure that your grub.conf
includes stanzas for both kernels (just in case the new kernel doesn't
boot, it's much easier then using the boot cd...)

--rtn
Back to top
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Fri Dec 20, 2002 8:20 pm    Post subject: Reply with quote

andcon wrote:
the actual NIC is the D-Link DFE-530TX+

IIRC, that NIC uses the Tulip driver. When you're recompiling your kernel, try compiling that driver into the kernel. If that still doesn't work, you can try compiling it as a module and modprobing it, but I have better luck compiling NIC drivers directly into the kernel.

hth

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
rtn
Guru
Guru


Joined: 15 Nov 2002
Posts: 427

PostPosted: Fri Dec 20, 2002 8:55 pm    Post subject: Reply with quote

From the Ethernet-HOWTO:

Code:
4.14.8.  DFE-530TX

  Status Supported, Driver Name: via-rhine

  Another card using the VIA Rhine chipset.  (see ``VIA Rhine'') Don't
  confuse this with the DE-530 which is a tulip based card.


Try that one.

--rtn
Back to top
View user's profile Send private message
andcon
n00b
n00b


Joined: 06 Nov 2002
Posts: 53
Location: Manchester, UK

PostPosted: Fri Dec 20, 2002 10:03 pm    Post subject: Reply with quote

thanks guys, i'll better wait until the morning.... made too many mistakes in the past trying to rush things lol, want to get this right :) i'll try and install the VIA Rhine drivers and let you know how I get on
Back to top
View user's profile Send private message
andcon
n00b
n00b


Joined: 06 Nov 2002
Posts: 53
Location: Manchester, UK

PostPosted: Sat Dec 21, 2002 12:38 pm    Post subject: Reply with quote

i tried compiling my NIC in the kernel, by enabling it and also by adding it as a module, but it doesn't seem to be registering when i use lsmod or the #demsg | grep eth commands
Back to top
View user's profile Send private message
grj
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jun 2002
Posts: 96

PostPosted: Sat Dec 21, 2002 2:35 pm    Post subject: Reply with quote

I believe the approprite driver is the 8139too driver for that card. Now lets put all you instructions together.

First rebuild the kernel
cd /usr/src/linux
make menuconfig
under - Network Device Support
[*] Network device support
under - Network Device Support/Ethernet (10 or 100 Mbit) --->
<*> RealTek RTL-8139 PCI Fast Ethernet Adapter Support

<Exit>
<Exit>
<Exit>

<Yes> to save the new kernel configuration

make dep && make clean bzImage modules modules_install
nano -w /etc/modules.autoload
add this without quotes '8139too'
save the changes to modules.autoload

Now lets but the new kernel where it belongs
mount /boot
cp /usr/src/linux/arch/i386/boot/bzImage /boot
umount /boot

shutdown -r now

Hope this helps!
_________________
Hope this helps!

GRJ
Back to top
View user's profile Send private message
pheelay
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2002
Posts: 128
Location: Ireland

PostPosted: Sat Dec 21, 2002 3:32 pm    Post subject: Reply with quote

I originally had the same problem!! My card is a D-Link DFE-530TXs - oh what a differenece that little 's' makes!! I couldn't get linux to recognise it either the Via-Rhine or Tulip drivers :(

Eventually, after many hours of googling, I found that I needed to use the Sundance Alta driver - how random. Different chipset you see - DL-10050

Aw well - of course this message is probably of no use to anyone in this thread! :roll:

Phil
Back to top
View user's profile Send private message
andcon
n00b
n00b


Joined: 06 Nov 2002
Posts: 53
Location: Manchester, UK

PostPosted: Sat Dec 21, 2002 8:07 pm    Post subject: Reply with quote

thanks for the help, the correct driver was the 8139 driver, my system is now capable of accessing the internet 8) now it just leaves me to install a window manager could take some time to download :roll: here goes lol

Once again thanks for the help in getting me going :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum