Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Slackware

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-16-2008, 09:11 PM
SEri0usj0k3R
 
Posts: n/a
network problems on 12.1

Hello everybody, I installed a Slackware 12.1 a few days ago, but I'm
still stuck on this (very) annoying thing: I can't connect to internet.

I have a D-Link modem/router ADSL (192.168.1.1) connected by a network
cable on eth0.
With netconfig I request a DHCP connection, I reboot the system and I
can read in the boot messages (but not with dmesg!) that an ip is
assigned to the eth0 network card.
But I can't connect.
I've tried many tricks with pppoe-setup too, but seem to be just a LAN
problem because this D-Link is a modem+router set up to keep a
connection open with my internet provider and on windows and ubuntu it's ok.

I've tried also by editing manually these files:
/etc/resolv.conf
/etc/host.conf
/etc/hosts
/etc/rc.d/rc.init1.conf
and using the KDE tool (settings -> network setup) I've been able to
connect some times but it was totally random. I rebooted and all was gone.
During the last tryings I haven't been able to connect at all.

Any suggestions?
Thank you very much in advance.

PS
This is a desktop pc and it's the only one connected to the modem/router.
I also controlled the ethernet port with
ethtool eth0
and it seems ok.
--
.................................................. ......................
~ AleP. ~
- http://anthropos.altervista.org -
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
- La normalità è un concetto di maggioranza -
[R.B.Matheson, "Io sono Leggenda", 1954]
..-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
.................................................. ......................
Reply With Quote
  #2 (permalink)  
Old 07-17-2008, 12:07 AM
Henrik Carlqvist
 
Posts: n/a
Re: network problems on 12.1

SEri0usj0k3R <seri0usj0k3@_NOSPAM_gmail.com> wrote:
> I can't connect to internet.


What does /sbin/ifconfig say?
What does /sbin/route say?
What does /usr/bin/nslookup www.google.com say?
What does /usr/bin/traceroute 64.233.183.99 say?

> I have a D-Link modem/router ADSL (192.168.1.1) connected by a network
> cable on eth0.


> I've tried many tricks with pppoe-setup too


If you have a ADSL router you should probably not mess with pppoe.

> I've tried also by editing manually these files:
> /etc/resolv.conf
> /etc/host.conf
> /etc/hosts
> /etc/rc.d/rc.init1.conf


Their contents might be bad, but its hard to say without knowing what they
look like. A good start is to show us the output from the 4 commands above.

regards Henrik
--
The address in the header is only to prevent spam. My real address is:
hc3(at)poolhem.se Examples of addresses which go to spammers:
root@localhost postmaster@localhost

Reply With Quote
  #3 (permalink)  
Old 07-17-2008, 02:36 AM
notbob
 
Posts: n/a
Re: network problems on 12.1

On 2008-07-16, SEri0usj0k3R <seri0usj0k3@_NOSPAM_gmail.com> wrote:

> I have a D-Link modem/router ADSL (192.168.1.1) connected by a network
> cable on eth0.
> With netconfig I request a DHCP connection, I reboot the system and I
> can read in the boot messages (but not with dmesg!) that an ip is
> assigned to the eth0 network card.
> But I can't connect.


What is the ip?

> I've tried many tricks with pppoe-setup too....


Shouldn't even be messing with that. netconfig should have set you up with
no other hassles.

Try and ping your NIC:

ping 127.0.0.1

If you can ping your NIC ok, ping your router (192.168.1.1). If you can't
ping your NIC, you got bad card. If you can't ping your router, you have a
bad cat 5 cable or connection. Look if the connection lights at each end of
the cable are lit.

nb
Reply With Quote
  #4 (permalink)  
Old 07-17-2008, 06:06 AM
seRi0UsJokeR
 
Posts: n/a
Re: network problems on 12.1

Perhaps I've got it... the ping toward localhost was ok, but the router
didn't reply.
ifconfig said that to eth0 was assigned a 70.30.... ip.
With "route -n" I don't see any router.

So if I give to my eth0 an ip like 192.168.1.2 with ifconfig and then:

route add default gw 192.168.1.1

....everything seem to be right. But during the bootstrap I can read that
to my eth0 is assigned an ip like the one above 70.30.... So, the
question now is, how do I assign a permanent ip to the eth0, and a
permanent gateway in the route map?

Thank you very much!
--
.................................................. ......................
~ AleP. ~
- http://anthropos.altervista.org -
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
- La normalità è un concetto di maggioranza -
[R.B.Matheson, "Io sono Leggenda", 1954]
..-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
.................................................. ......................
Reply With Quote
  #5 (permalink)  
Old 07-17-2008, 06:34 AM
Helmut Hullen
 
Posts: n/a
Re: network problems on 12.1

Hallo, SEri0usj0k3R,

Du meintest am 16.07.08:


> I have a D-Link modem/router ADSL (192.168.1.1) connected by a
> network cable on eth0.


Is this router a DHCP server?
Then yor slackware computer has to ask it for a DHCP connection.

I prefer "pump" for this job:

http://arktur.shuttle.de/CD/5.0/slac....24-2_i386.tgz

Viele Gruesse
Helmut

"Ubuntu" - an African word, meaning "Slackware is too hard for me".

Reply With Quote
  #6 (permalink)  
Old 07-17-2008, 08:10 PM
+Alan Hicks+
 
Posts: n/a
Re: network problems on 12.1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2008-07-17, notbob <notbob@nothome.com> wrote:
> Try and ping your NIC:
>
> ping 127.0.0.1


Note: this will not ping your "NIC". This IP address is assigned to
the virtual loopback device. Even if your NIC was plugged into the
wall socket, smoking, on fire, and too busy sleeping with your sister
to do any work, (or if the module isn't even loaded or there is no NIC
at all), you'll get replies from this address.

- --
It is better to hear the rebuke of the wise,
Than for a man to hear the song of fools.
Ecclesiastes 7:5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkh/p08ACgkQrZS6hX/gvjoJuwCgkHx3Hog9uG22HM3ph60bERqY
npMAoLMIS6iZsA+i23QYIOZGnS6aY3z+
=qmW6
-----END PGP SIGNATURE-----
Reply With Quote
  #7 (permalink)  
Old 07-17-2008, 08:16 PM
+Alan Hicks+
 
Posts: n/a
Re: network problems on 12.1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2008-07-17, seRi0UsJokeR <seri0usj0k3_NOSPAM_@_PLEASE_gmail.com> wrote:
> Perhaps I've got it... the ping toward localhost was ok, but the router
> didn't reply.
> ifconfig said that to eth0 was assigned a 70.30.... ip.
> With "route -n" I don't see any router.


Ah-ha!

Almost certainly your DSL "modem"[0] is misconfigured. It is trying to
send a public IP address to your server. Many DSL "modems" can be
configured in such a way to forward any packets it receives down to a
single host. This is typically done in small business where the
customer has a static IP address, and are sometimes bound to a specific
port on the "modem". If you connected up to an alternate port in the
built-in switch on the back of the "modem", DHCP may work for you.

> So if I give to my eth0 an ip like 192.168.1.2 with ifconfig and then:
>
> route add default gw 192.168.1.1
>
> ...everything seem to be right. But during the bootstrap I can read that
> to my eth0 is assigned an ip like the one above 70.30.... So, the
> question now is, how do I assign a permanent ip to the eth0, and a
> permanent gateway in the route map?


RTFM. http://tinyurl.com/69mtsk

[0] It really pisses me off to call these things modems. They are not
modems since they do not modulate and demodulate. They are DSL
terminal adapters, but I guess that's too much for people to
understand.

- --
It is better to hear the rebuke of the wise,
Than for a man to hear the song of fools.
Ecclesiastes 7:5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkh/qKMACgkQrZS6hX/gvjrY2QCfV1Uh8BPKv8JCNoXUcHlCg0Av
25kAn1xG2g2NbuINsILxUb4q9QdHRn/n
=6AME
-----END PGP SIGNATURE-----
Reply With Quote
  #8 (permalink)  
Old 07-18-2008, 12:35 AM
notbob
 
Posts: n/a
Re: network problems on 12.1

On 2008-07-17, +Alan Hicks+ <alan@lizella.netWORK> wrote:

> Note: this will not ping your "NIC". This IP address is assigned to
> the virtual loopback device. Even if your NIC was plugged into the
> wall socket, smoking, on fire, and too busy sleeping with your sister
> to do any work, (or if the module isn't even loaded or there is no NIC
> at all), you'll get replies from this address.


If Nick (my brother) is sleeping with my sister, he will shortly find
himself plugged into a wall socket with his loopback device on fire, and he
will surely burn in Hell! Fortunately, WE don't have a sister. :)

BTW, if one was unable to ping one's loopback device (lo), just what would
that be indicative of? (leave said sister out of it)

nb


Reply With Quote
  #9 (permalink)  
Old 07-18-2008, 09:36 AM
loki harfagr
 
Posts: n/a
Re: network problems on 12.1

On Fri, 18 Jul 2008 00:35:30 +0000, notbob wrote:

> If Nick (my brother) is sleeping with my sister, he will shortly find
> himself plugged into a wall socket with his loopback device on fire, and
> he will surely burn in Hell! Fortunately, WE don't have a sister. :)


Hoohoo, I want one off your stuff too! And I'm sure you can
count Dan C in as well as he seems in a search for a new connection ;D)
Reply With Quote
  #10 (permalink)  
Old 07-18-2008, 01:42 PM
+Alan Hicks+
 
Posts: n/a
Re: network problems on 12.1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2008-07-18, notbob <notbob@nothome.com> wrote:
> BTW, if one was unable to ping one's loopback device (lo), just what would
> that be indicative of? (leave said sister out of it)


Well, there's several possibilities:

- - Most commonly it would mean that the loopback device isn't present,
probably due to compiling a custom kernel and leaving out this feature
- - You could have really screwed up your netfilter rules
- - You might just have taken the interface down
- - If it's not those, it almost surely indicates some serious internal
kernel problems

- --
It is better to hear the rebuke of the wise,
Than for a man to hear the song of fools.
Ecclesiastes 7:5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkiAnbkACgkQrZS6hX/gvjocXgCfbp8vl4KfqfaaHh9VX0/Dv2tD
SRAAn29qMp762JnIXIcJ052znFd+XNKB
=/EM+
-----END PGP SIGNATURE-----
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Slackware


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:34 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Mortgage Calculator | Mortgage Calculator | Credit Card | Mortgage Calculator | Mobile Phones



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109