LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-31-2004, 08:49 PM   #1
Whatshisface
Member
 
Registered: Aug 2003
Location: Chesapeake Beach, MD
Distribution: Mandrake 9.2
Posts: 58

Rep: Reputation: 15
Can't connect to internet through the LAN


I can't connect my Mandrake 9.2 machine to the internet through my DSL modem and router. I have a Windows 98 machine with a verizon modem and a Linksys router. I have the Mandrake box hard connected from the router to the card. I get an error message when I type in an address or click on a bookmark. I've attempted to configure my ethernet card in KDE to no avail.
 
Old 02-01-2004, 12:28 AM   #2
jarib
Member
 
Registered: Jun 2003
Location: British Columbia
Distribution: Slackware
Posts: 112

Rep: Reputation: 15
Can you ping? Open a terminal and type ping 127.0.0.1 Any replies? While in the terminal type su and then your root password. Then type ifconfig What's the output?
 
Old 02-01-2004, 10:08 AM   #3
Whatshisface
Member
 
Registered: Aug 2003
Location: Chesapeake Beach, MD
Distribution: Mandrake 9.2
Posts: 58

Original Poster
Rep: Reputation: 15
I get : " 64 bytes from 127.0.0.1 icmp_seq=138 ttl=64 time=0.092 " and it keeps giving me this on new lines with the numbers incrementing.

For ifconfig under root I get :
eth0 Link encap:Ethernet Hiaddr 00:20:35:81:A1:4A
UP BROADCAST RUNNING MILTICAST MTU:1500 Metri:1
RX packets:60 errors:0 dropped:0 overruns:0 frame:0
TX [ackets:0 errors:0 dropped:0 overruss:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:9226 (9.0 Kb) TX bytes: 0 (0.0 b)
Interupt:11ase address:0xdf80

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:1254 errors:0 dropped:0 overruns:0
TX packets:1254 errors:0 dropped:0 overruns;0 carrier:0
collisions:0 txqueuelen:0
RX bytes:104042 (101.6 Kb) TX bytes:104042 (101.6 Kb)

Last edited by Whatshisface; 02-01-2004 at 10:30 AM.
 
Old 02-01-2004, 10:16 AM   #4
AUSanders79
Member
 
Registered: Aug 2003
Location: Alabama
Distribution: Slack 10.1/FreeBSD 5.4
Posts: 37

Rep: Reputation: 15
Might have been a typo in your request. Try ifconfig, with an f in there. That's definitely the best thing we could have right now is the ifconfig output.
 
Old 02-01-2004, 10:22 AM   #5
jarib
Member
 
Registered: Jun 2003
Location: British Columbia
Distribution: Slackware
Posts: 112

Rep: Reputation: 15
It's ifconfig and looks like your nic is not setup. Take a look in /var/log/messages and see if the nic is detected. There should be a line that starts with eth0

edit: looks like the nic is setup but missing the dns address. Check with windows to see what it is. ipconfig /all

Last edited by jarib; 02-01-2004 at 10:27 AM.
 
Old 02-01-2004, 10:36 AM   #6
Whatshisface
Member
 
Registered: Aug 2003
Location: Chesapeake Beach, MD
Distribution: Mandrake 9.2
Posts: 58

Original Poster
Rep: Reputation: 15
At the prompt I type ipconfig/all and get " no such file or directory "
I get permission denied when I try /var/log/messages , even as root

Last edited by Whatshisface; 02-01-2004 at 10:40 AM.
 
Old 02-01-2004, 10:53 AM   #7
jarib
Member
 
Registered: Jun 2003
Location: British Columbia
Distribution: Slackware
Posts: 112

Rep: Reputation: 15
Quote:
Originally posted by Whatshisface
At the prompt I type ipconfig/all and get " no such file or directory "
I get permission denied when I try /var/log/messages , even as root
To confirm it is just DNS try ping 216.40.32.30 any replies?

In windows 98 either from start>run winipcfg or from a command prompt type ipconfig /all Then look for the DNS ip

in Mandrake open a terminal and su to root and type netconfig and fill in the blanks. If you still can't connect then it might be dhcp thats not setup.
 
Old 02-01-2004, 04:29 PM   #8
Whatshisface
Member
 
Registered: Aug 2003
Location: Chesapeake Beach, MD
Distribution: Mandrake 9.2
Posts: 58

Original Poster
Rep: Reputation: 15
pinging gets: " Network is unreachable "
This is stricly a Mandrake box - no Windows 98 - that's my other box with which I want to share the connection
netconfig doesn't work - I get " command not found "
 
Old 02-01-2004, 04:51 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,730

Rep: Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920
Your NIC is not being assigned an IP address.

Use the Mandrake Control network wizard to configure a static ip address for your local network. linksys uses 192.168.1.xxx as the default local network. Set the gateway for the router's local IP address (default = 192.168.1.1).

You should be able to ping the router's local IP address if successfull.
 
Old 02-01-2004, 04:53 PM   #10
jarib
Member
 
Registered: Jun 2003
Location: British Columbia
Distribution: Slackware
Posts: 112

Rep: Reputation: 15
Quote:
Originally posted by Whatshisface
pinging gets: " Network is unreachable "
This is stricly a Mandrake box - no Windows 98 - that's my other box with which I want to share the connection
netconfig doesn't work - I get " command not found "
Is the win98 connected to the internet? I just assumed it was. If it is you can get the dns info from win98. But looking at your ifconfig it kinda looks like dhcp isn't picking up an ip from your router. Does dhcp try to connect when you're booting?

You need to run netconfig as root. Open a terminal and type su then the root password then netconfig
 
Old 02-02-2004, 04:42 PM   #11
Whatshisface
Member
 
Registered: Aug 2003
Location: Chesapeake Beach, MD
Distribution: Mandrake 9.2
Posts: 58

Original Poster
Rep: Reputation: 15
Yes, I su'ed to root and typed netconfig, and got "bash: netconfig: command not found"
 
Old 02-02-2004, 09:53 PM   #12
jarib
Member
 
Registered: Jun 2003
Location: British Columbia
Distribution: Slackware
Posts: 112

Rep: Reputation: 15
Quote:
Originally posted by Whatshisface
Yes, I su'ed to root and typed netconfig, and got "bash: netconfig: command not found"
I'm not familiar with Mandrake. Maybe it doesn't have netconfig. Try Michaelks suggestion and use the control centre for Mandrake. Since your using a router you probably don't need dhcp so maybe assign a static ip to Mandrake.
 
Old 02-03-2004, 08:37 AM   #13
jokerls240
LQ Newbie
 
Registered: Feb 2004
Location: Nashville, TN
Distribution: Slack 10.0 - 2.6.7
Posts: 17

Rep: Reputation: 0
I'm getting the same thing from ifconfig in Mandrake 9.1 and 9.2. So I'm pretty sure he's typing the command right.

A little extra info tho: it looks like at boot eth0 is getting a 169.x.x.x IP address, which is invalid. I know the NIC and the cable work cause I reimaged into Windows and it picked up an IP address without any problems.

Whatshisface - press ESC when the system is booting up and watch what it does when it's 'Bringing up eth0'. If it says anything about a 169.x.x.x IP address, we're having the same problem.

I'm gonna look for an updated NIC driver for mine and let you know later today what happens.
 
Old 02-03-2004, 09:54 AM   #14
Whatshisface
Member
 
Registered: Aug 2003
Location: Chesapeake Beach, MD
Distribution: Mandrake 9.2
Posts: 58

Original Poster
Rep: Reputation: 15
Yes.. When I esc, I get an error message " mask not found " and "some other host already uses address 192.168.0.101"
 
Old 02-03-2004, 10:50 AM   #15
Whatshisface
Member
 
Registered: Aug 2003
Location: Chesapeake Beach, MD
Distribution: Mandrake 9.2
Posts: 58

Original Poster
Rep: Reputation: 15
I'm back online! I went back to Mandrake configuration wizard and played with the settings. After launching the wizard, I unchecked Auto detection -> next, then for connection type I checked Lan AND cable (not adsl - what's the a for anyway?) -> next, then pretty much accepted all the default settings. Now onto file sharing and SAMBA! Thanks everyone for your help.
 
  


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
No Internet but LAN and VPN connect LAN work fine??? xavior SUSE / openSUSE 7 11-09-2005 01:14 PM
How to connect to Internet using LAN bongski55 Linux - Networking 2 10-13-2005 08:29 AM
how to connect to internet by lan??? duzy Linare 3 09-21-2004 07:27 AM
I cant connect to the internet via LAN BroinK Slackware - Installation 9 01-22-2004 03:32 PM
Cant connect to the internet through LAN Jimmyscab Linux - Networking 5 12-09-2002 08:48 AM

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

All times are GMT -5. The time now is 04:11 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