LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-07-2003, 12:49 PM   #1
AndyD
LQ Newbie
 
Registered: Dec 2003
Posts: 7

Rep: Reputation: 0
configuring Mandrake 9.2 on home LAN with ADSL connection


Hi

I have just installed Mandrake 9.2 on my pc alongside XP Home, mainly to see how it goes and if Linux is worth the swap. Having gone through the install without a hitch and having enough brief previous experience of Linux to install the extra packages and stuff that I wanted from the CD and make my desktop look about as sexy as a piece of plate glass with a *very* fat backside is ever likely to get, the next task was getting the thing onto the net.

Unfortunately, I'm having a bit of a problem, as you may have guessed...

I live in the UK, and have a home adsl network (ISP PlusNet ) with 3 PCs attached - one running Win95, one Win2kPro and this one running XP Home and now Mandrake 9.2. All the PCs are connected via ethernet to a D-Link 8-port switch, which is then connected to a Zoom X4 ADSL router/modem which plugs into the phone line. None of the Windows boxes have had even the slightest hitch when I've set them up on the network - they can all share files with each other and get on the net quite happily, so I am assuming there is no problem with the setup of my hardware.

As far as I understand it, the X4 router assigns each PC an IP address dynamically via DHCP when they boot up - its own IP is 10.0.0.2 and it assigns addresses from 10.0.0.3 to 10.0.0.14 in what appears to me to be a fairly random fashion.

However, when I tried to set up the network for Linux from the Mandrake Control Centre, I was completely stuck. The wizard correctly surmised that I had an ethernet card (onboard Broadcom NetXtreme 5705K, according to my motherboard manual) and asked me to enter the IP address and subnet, or select automatic config - I selected automatic, assuming the router would assign me an IP next time I booted. I put the IP of the router as the gateway - 10.0.0.2 in the "Configure your internet connection" dialog, applied the settings and rebooted. All to no avail. The Control Centre shows the network connection as "down", and if I try to ping the router or the other PCs it says "Network Unreachable". I briefly had the network connection showing as "up" by entering a static IP, but even then all pings to other machines and the router timed out and said "Destination Host Unreachable", and of course I still couldn't get anywhere near the net. No traffic appeared to be moving through the switch whilst I was doing the pings (ie: no lights flashing).

I have tried to install the latest driver for the ethernet card to see if that would help, but when i came to build the RPM it gave me the error message "Makefile:46 Unable to locate Kernel Source Tree" (it may not have been those exact words), and the same message when I tried instead to compile the source using make.

I'm sure there are some config files somewhere that can be edited, but being a newbie I don't know what they are or where or what to do with them. The manual that came with the X4 has *very* brief instructions on configuring a Red Hat system, but nothing for Mandrake.

Any help would be much appreciated! If you need more info just let me know.
 
Old 12-07-2003, 01:05 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Welcome to LQ.

Try to restart the ethernet device then obtain an IP:
ifdown eth0
ifup eth0
dhclient

Post any output you get.
 
Old 12-07-2003, 04:50 PM   #3
AndyD
LQ Newbie
 
Registered: Dec 2003
Posts: 7

Original Poster
Rep: Reputation: 0
Here's the results of what you suggested plus a couple of other commands in case they give any more clues:

[root@Andrew root]# ifdown eth0
[root@Andrew root]# ifup eth0
Determining IP information for eth0... done.
[root@Andrew root]# dhclient
Internet Software Consortium DHCP Client V3.0.1rc11
Copyright 1995-2002 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

Listening on LPF/lo/
Sending on LPF/lo/
Listening on LPF/eth0/00:50:2c:09:49:4a
Sending on LPF/eth0/00:50:2c:09:49:4a
Sending on Socket/fallback
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 20
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
[root@Andrew root]# ping 10.0.0.2
connect: Network is unreachable
[root@Andrew root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:2C:09:49:4A
UP BROADCAST 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:17 Memory:e7010000-e7020000

eth0:9 Link encap:Ethernet HWaddr 00:50:2C:09:49:4A
inet addr:127.255.255.255 Bcast:127.255.255.255 Mask:255.0.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
Interrupt:17 Memory:e7010000-e7020000

lo Link encap:Local Loopback
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:362 errors:0 dropped:0 overruns:0 frame:0
TX packets:362 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:35525 (34.6 Kb) TX bytes:35525 (34.6 Kb)

[root@Andrew root]# dmesg | grep -i eth
Broadcom Gigabit Ethernet Driver bcm5700 with Broadcom NIC Extension (NICE) ver. 6.2.11 (05/16/03)
eth0: Broadcom BCM5705 1000Base-T found at mem e7010000, IRQ 17, node addr 00502c09494a
eth0: Broadcom BCM5705 Integrated Copper transceiver found
eth0: Scatter-gather ON, 64-bit DMA ON, Tx Checksum ON, Rx Checksum ON, 802.1Q VLAN ON, NAPI ON
bcm5700: eth0 NIC Link is DOWN
bcm5700: eth0 NIC Link is DOWN
bcm5700: eth0 NIC Link is DOWN
bcm5700: eth0 NIC Link is DOWN
device eth0 entered promiscuous mode
device eth0 left promiscuous mode
device eth0 entered promiscuous mode
device eth0 left promiscuous mode
bcm5700: eth0 NIC Link is DOWN
device eth0 entered promiscuous mode
device eth0 left promiscuous mode
[root@Andrew root]#
 
Old 12-09-2003, 12:30 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
It is funny it doesn't pick up an IP.

I assume there are link lights at each end othe cable?

Try it with a fixed IP address and netmask. Copy the netmask as it is on the router and use an unused IP address in your subnet range.
 
Old 12-11-2003, 04:26 PM   #5
AndyD
LQ Newbie
 
Registered: Dec 2003
Posts: 7

Original Poster
Rep: Reputation: 0
Yep, all the relevant lights are on and green, but they never flicker when I am attempting to communicate (eg with ping or http request). I would take this to mean the pc is still not able to talk to the network in any way, but then I'm far from an expert.

I did as you suggested and set up the machine with a static IP of 10.0.0.10 and subnet mask of 255.255.255.0 (which is what is shown on the router).

Mandrake Control Centre now shows the ethernet card as "up", but i still cannot ping the router or access the http interface: pinging produces the "Destination Host Unreachable" message, (which I supose is a slight improvement on "Network unreachable"!) and Mozilla says "The connection was refused when attempting to contact 10.0.0.2" for the http request. Obviously the wider internet is also still unreachable.

Do I have some kind of problem with routing do you think?

Or is it the network card? It appears, superficially at least, to be installed properly, but as I said before, I couldn't install the updated drivers I got from the Broadcom website, for reasons I didn't really comprehend.
 
Old 12-12-2003, 12:38 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Can you ping your own address from yourself - eg:
ping -c 3 10.0.0.10

The light will not flicker unless they are activity lights.
 
Old 12-13-2003, 12:15 PM   #7
bobinglis
Member
 
Registered: Dec 2003
Location: MK
Distribution: \\slackware 10.1
Posts: 50

Rep: Reputation: 15
Mandrake 9.2 net connect

I have the same problem, I can now ping my ISP, I cannot use the config for the router from the Linux box, no prob from the Xp box. I have had to replace the Mandrake shorewall with the 2 interface version from the net, by Tom Eastep. This allowed me to ping through the router. But still no web contact throught the browser.
DHCP is showing a problem that ETH1 is not authoritative whatever that means?
Strangely things seem to change each time I start the box up.
I have managed once to share files with XP but that is no longer possible, I can see the XP box LinNeighbourhood, but it no longer mounts, all very strange.
In a few days I'll be an expert at this rate???????????????????
 
Old 12-17-2003, 01:44 PM   #8
AndyD
LQ Newbie
 
Registered: Dec 2003
Posts: 7

Original Poster
Rep: Reputation: 0
David

I can ping the linux box from itself as you suggested using the static IP, no problems at all.

I checked what you said about activity lights, and the lights on the switch and on the ethernet card both flicker when there is network traffic under windows, eg web access or ping or tracert, but they never flicker when i attempt any of these in Mandrake.

Just as a double-check, I tried to ping the static linux IP from one of the other windows machine, and it said Request Timed Out.
 
Old 12-17-2003, 02:37 PM   #9
beyer42
Member
 
Registered: Dec 2003
Location: San Jose
Distribution: Redhat WS 3
Posts: 410

Rep: Reputation: 30
Try using older driver tg3 instead of bcm5700

alias eth0 tg3 in /etc/modules.conf
 
Old 12-17-2003, 03:34 PM   #10
beyer42
Member
 
Registered: Dec 2003
Location: San Jose
Distribution: Redhat WS 3
Posts: 410

Rep: Reputation: 30
Also type the following command and post the output
lspci | grep -i Ethernet

This is to get information on the ethernet card make and model.

There is Linux config info on Appendix C of
Zoom X4 ADSL Modem User Guide

It looks like the problem is with the linux ethernet card driver. Getting the ethernet card make and model you can search web for other linux user's experiences with the card. You should not make any changes on the Zoom modem.
 
Old 12-17-2003, 03:39 PM   #11
beyer42
Member
 
Registered: Dec 2003
Location: San Jose
Distribution: Redhat WS 3
Posts: 410

Rep: Reputation: 30
Oops, Ignore my previous post, didn't see the card info already posted.
 
Old 12-17-2003, 04:13 PM   #12
beyer42
Member
 
Registered: Dec 2003
Location: San Jose
Distribution: Redhat WS 3
Posts: 410

Rep: Reputation: 30
Try installing not from the .rpm driver software from broadcom, but
from the tar file. This should allow you to build the driver seperate
from the kernel and install it as a loadable module.

1. Create a directory and extract the files:

tar xvzf bcm5700-<version>.tar.gz

2. Build the driver bcm5700.o as a loadable module for the running kernel:

cd src
make

3. Test the driver by loading it:

insmod bcm5700.o

If loading the driver on Red Hat 7.3, 2.1 AS or other newer kernels with the
tg3 driver, refer to the "Removing tg3 Driver" in DISTRIB.TXT before loading
the driver.

4. Install the driver and man page:

make install
 
Old 12-18-2003, 03:49 PM   #13
AndyD
LQ Newbie
 
Registered: Dec 2003
Posts: 7

Original Poster
Rep: Reputation: 0
Hi

Still no luck!

I tried using the tg3 driver, but the eth0 failed to start (ie: when I did service network restart it said "Bringing up device eth0: FAILED).

When I try installing the new driver from the tar file, I unzipped it fine, and changed to the src directory, but when I ran make I got the following error message:

[root@Andrew src]# make
Makefile:46: *** Linux kernel source tree not found. Stop.
[root@Andrew src]#
 
Old 12-18-2003, 03:52 PM   #14
AndyD
LQ Newbie
 
Registered: Dec 2003
Posts: 7

Original Poster
Rep: Reputation: 0
P.S. If it helps you any, the exact message when I tried to use the tg3 driver was:
Bringing up interface eth0: tg3 device eth0 does not seem to be present, delaying initialization. [FAILED]
 
Old 12-18-2003, 06:51 PM   #15
beyer42
Member
 
Registered: Dec 2003
Location: San Jose
Distribution: Redhat WS 3
Posts: 410

Rep: Reputation: 30
check that kernel-source is installed, rpm -qa | grep kernel-source
If it is not installed , then install it.

If it is installed , then check Makefile and search for /usr/src/linux and see what the Makefile is looking for.

Hope this helps.
 
  


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
lan connection works but adsl doesn't, why? trendsetter Linux - Networking 25 11-04-2005 12:31 PM
configuring internet connection thru lan jared78 Linux - Networking 5 05-08-2005 09:51 AM
configuring ADSL connection with USB Modem nemesix Linux - Networking 3 01-06-2005 01:47 PM
Mandrake 10 - computer freezing after configuring adsl connection. BluePyre Mandriva 9 06-06-2004 08:13 PM
Mandrake ADSL and Win NT LAN connection willieDunno Mandriva 6 08-25-2003 01:12 AM

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

All times are GMT -5. The time now is 10:30 PM.

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