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 03-09-2008, 11:01 AM   #1
Monfort.Brice
LQ Newbie
 
Registered: Jan 2006
Location: France
Distribution: Slackware
Posts: 6

Rep: Reputation: 0
Exclamation Internet problem on slackware 12.0


I just installed slack yesterday and i'm having some problem to connect my computer to internet.

IP : 172.20.5.108
Netmask : 255.255.0.0
Gateway : 172.20.0.1
DNS : 208.67.222.222 - 208.67.222.220

here is what my /etc/rc.d/rc.inet1.conf look like after i put my settings :

Code:
......
#Config information for eth0:
IPADDR[0]="172.20.5.108"
NETMASK[0]="255.255.0.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""
......
#Default gateway IP address :
GATEWAY="172.20.0.1"
......
DEBUG_ETH_UP="yes"
......
If i ping a computer on the network :

Code:
#ping -c 5 172.20.3.102
PING 172.20.3.102 (172.20.3.102) 56(84) bytes of data.
64 bytes from 172.20.3.102: icmp_seq=1 ttl=128 time=1.17 ms
64 bytes from 172.20.3.102: icmp_seq=2 ttl=128 time=0.342 ms
64 bytes from 172.20.3.102: icmp_seq=3 ttl=128 time=0.350 ms
64 bytes from 172.20.3.102: icmp_seq=4 ttl=128 time=0.352 ms
64 bytes from 172.20.3.102: icmp_seq=5 ttl=128 time=0.329 ms

--- 172.20.3.102 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4000ms
rtt min/avg/max/mdev = 0.329/0.510/1.178/0.334 ms
So it seems to be ok with the local network.

here is my /etc/resolv.conf :

Code:
search slackware.com
nameserver 213.244.0.15
nameserver 213.244.0.16
nameserver 208.67.222.222
nameserver 208.67.222.220
but if i try a :

Code:
#links www.google.fr
i have :

Code:
Error loading http://www.google.fr : Host not found
as i know the DNS are fine, i look my route :

Code:
#route
Kernel IP routing table
Destination     Gateway       Genmask     Flags  Metric  Ref  Use  Iface
localnet        *             255.255.0.0 U      0       0      0  eth0
loopback        *             255.0.0.0   U      0       0      0  lo
default         172.20.0.1    0.0.0.0     UG     1       0      0  eth0
I think the 0.0.0.0 netmask for my gateway is weird and it also take a little longer for this line to appear so i decide to del it and to make a new route

Code:
#route del default
#route add default gateway 172.20.0.1 netmask 255.255.0.0 dev eth0
#route
Kernel IP routing table
Destination     Gateway       Genmask     Flags  Metric  Ref  Use  Iface
default         172.20.0.1    255.255.0.0 UG     1       0      0  eth0
localnet        *             255.255.0.0 U      0       0      0  eth0
loopback        *             255.0.0.0   U      0       0      0  lo
it seems to be better as the line appear a lot faster now but i still can't reach the internet. If someone have an idea i take it.
 
Old 03-09-2008, 12:32 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
here is my /etc/resolv.conf :

Code:

search slackware.com
nameserver 213.244.0.15
nameserver 213.244.0.16
nameserver 208.67.222.222
nameserver 208.67.222.220
Since you said your dns servers are the 2 starting with 208.x.x.x, change the order in /etc/resolv.conf and put them in top of the other 2 and then try to resolve a domain to see if it works, i.e:
Code:
dig www.google.com
 
Old 03-09-2008, 01:06 PM   #3
Monfort.Brice
LQ Newbie
 
Registered: Jan 2006
Location: France
Distribution: Slackware
Posts: 6

Original Poster
Rep: Reputation: 0
Code:
#dig www.google.fr

; <<>> DiG 9.4.1 <<>> www.google.fr
;; global options: printcmd
;; connection timed out; no server could be reached
I don't think the order matter, it takes the first DNS then the second and so on until it gets an answer. Any other idea ?
 
Old 03-09-2008, 07:17 PM   #4
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
Try changing your netmask to 255.255.255.255
 
Old 03-10-2008, 09:20 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Use
Code:
route add default gw 172.20.0.1
to define gateway.
Then try to ping gateway and if you succeed run dig changing dns servers to see which one works:
Code:
dig www.google.com @213.244.0.15
dig www.google.com @208.67.222.222
Regards
 
  


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
Slackware + internet problem danne123 Linux - Newbie 7 03-19-2007 08:33 AM
Slackware 10.2: 2.4 to 2.6 kernel upgrade no Internet problem. CaptainKirk Slackware 2 03-07-2006 10:46 PM
Slackware 9.1 - Wireless Internet problem jelitegamer Linux - Software 3 09-01-2004 05:39 PM
No internet on slackware 9 jr6676 Slackware 9 08-05-2003 08:31 PM
slackware 8.1 internet problem patiklipenguen Slackware 3 11-17-2002 03:37 PM

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

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