LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 10-19-2005, 12:16 PM   #1
e13438
LQ Newbie
 
Registered: Oct 2005
Posts: 10

Rep: Reputation: 0
internet SLOW, sometimes ETERNAL


Hello everybody,

I have a GreatSpeed ADSL modem with a switch connected to my two computers, one with windows, and the other, a laptop with netBSD. I managed to configure the network to have internet access, but now it only works with some sites and hangs up with others. For example I can go to google.com without problem, but i'm not able at all to go to free.fr, and so on.
With windows there's no problem.

I don't know if you need more information to help me solve my problem, in that case don't hesitate to ask me.


Thanks a lot!!!


Emilio
 
Old 10-21-2005, 11:13 AM   #2
rleesBSD
LQ Newbie
 
Registered: Jul 2005
Location: Cary, NC U.S.A
Distribution: RedHat/FreeBSD/NetBSD/Solaris
Posts: 29

Rep: Reputation: 15
Yesterday there were serious internet outages .... see slashdot.org for more detail. I had the same problem here, with some sites being very slow and some not connecting at all. The difference between windows and your other machine may be the caching of DNS on windows, or something like that ...
 
Old 11-13-2005, 04:12 PM   #3
e13438
LQ Newbie
 
Registered: Oct 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for your reply, but mine isn't a temporal problem. I cannot reach free.fr where I have an email account under NetBSD at any hour nor day. So the other option is the DNS caching. But how can i modify that in order to get to any site I want? please, help!
 
Old 11-13-2005, 04:43 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Assuming NetBSD's nameservers live in the same place that FreeBSD's do, what does
Code:
cat /etc/resolv.conf
show you?

Confirm that the nameservers here match those that your Windows box is using.
 
Old 11-15-2005, 04:39 PM   #5
e13438
LQ Newbie
 
Registered: Oct 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Dear anomie,





emilio@atenea[~]$ cat /etc/resolv.conf
cat: /etc/resolv.conf: No such file or directory

emilio@atenea[~]$ ls /etc
X11 ftpusers mailcap nsswitch.conf rc skeykeys
bootptab gettytab mailer.conf ntp.conf rc.conf sliphome
cgd group man.conf openssl rc.conf.d spwd.db
changelist hosts master.passwd passwd rc.d ssh
csh.cshrc hosts.equiv mime.types passwd.conf rc.lkm sysctl.conf
csh.login hosts.lpd mk.conf passwd.conf.pre-sysinst rc.local syslog.conf
csh.logout ifconfig.pppoe0 moduli phones rc.shutdown systrace
daily inetd.conf monthly postfix rc.subr ttyaction
daily.conf kerberosIV monthly.conf postinstall release ttys
defaults kerberosV motd powerd remote usermgmt.conf
disktab ld.so.conf mrouted.conf ppp rmt uucp
dm.conf ld.so.conf.orig mtree printcap rpc weekly
dumpdates lkm.conf named.conf profile security weekly.conf
floppytab localtime namedb protocols security.conf wscons.conf
fonts locate.conf netconfig pwd.db services
fstab mail networks racoon shells
ftpchroot mail.rc newsyslog.conf rbootd.conf skel

emilio@atenea[~]$ locate resolv.conf
/usr/share/doc/smm/10.named/resolv.conf
/usr/share/man/cat5/resolv.conf.0
/usr/share/man/man5/resolv.conf.5

emilio@atenea[~]$ man resolv.conf
and it shows the man page for resolv.conf saying that it is located in /etc !!!


are you perhaps speaking about /etc/hosts ?

Last edited by e13438; 11-15-2005 at 04:41 PM.
 
Old 11-15-2005, 08:15 PM   #6
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
No, I am not talking about /etc/hosts.

I would suggest using whatever tool NetBSD gives you for configuring your NIC to manually add your nameservers. If you don't know what they are, you can check your Windows box. Better still, the config tool may give you the option to update your nameservers via dhcp - that might work.

Alternatively, create the /etc/resolv.conf file yourself and add your nameserver entries, like so
Code:
nameserver      x.x.x.x
nameserver      x.x.x.x
 
Old 11-16-2005, 07:22 PM   #7
e13438
LQ Newbie
 
Registered: Oct 2005
Posts: 10

Original Poster
Rep: Reputation: 0
ok, I don't know what is my NIC, I don't know how to check those values in my windows box, I don't how to use a config tool with DHCP, and I don't understand what I have to write in resolv.conf. I'm a newbie!!!

HELP!!!"

If "nameserver" is my machine's name and x.x.x.x is its internal IP, what is the difference between these and hosts ?? and if x.x.x.x is its external IP, I don't have one, because it changes!

hope you can explain me all this stuff!
 
Old 11-16-2005, 10:40 PM   #8
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
From Windows use the command:
Code:
ipconfig /all
Look carefully at the output and locate Primary DNS and Secondary DNS. Write these down.

Now on your BSD box, su to root. Then run the following two commands:
Code:
echo 'nameserver x.x.x.x' >> /etc/resolv.conf
echo 'nameserver x.x.x.x' >> /etc/resolv.conf
The x.x.x.x for the first line should be the Primary DNS server you wrote down. The x.x.x.x for the second line should be the Secondary DNS server you wrote down.
 
Old 11-17-2005, 01:05 PM   #9
e13438
LQ Newbie
 
Registered: Oct 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Here's my 'ipconfig /all' output from my windows box: (in spanish)

-------------------------------------------

Configuración IP de Windows



Nombre del host. . . . . . . . : BISMARK.ORG

Servidores DNS . . . . . . . . :

Tipo de nodo . . . . . . . . . : Difusión

Id. de _mbito NetBIOS. . . . . :

Enrutamiento IP habilitado . . : No

WINS Proxy habilitado. . . . . : No

Resolución NetBIOS usa DNS . . : No



0 Ethernet adaptador :



Descripción . . . . . . . . . : Accton EN1207D/EN2242A Series NDIS 5.0 driver

Dirección física . . . . . . . : 00-10-B5-EF-25-A5

DHCP habilitado. . . . . . . . : No

Dirección IP . . . . . . . . . : 192.168.1.2

M_scara de subred. . . . . . . : 255.255.255.0

Puerta de enlace predeterminada:

Servidor WINS primario . . . . :

Servidor WINS secundario . . . :

Concesión obtenida . . . . . . :

La concesión caduca. . . . . . :



1 Ethernet adaptador :



Descripción . . . . . . . . . : PPP Adapter.

Dirección física . . . . . . . : 44-45-53-54-00-00

DHCP habilitado. . . . . . . . : Sí

Dirección IP . . . . . . . . . : 0.0.0.0

M_scara de subred. . . . . . . : 0.0.0.0

Puerta de enlace predeterminada:

Servidor DHCP. . . . . . . . . : 255.255.255.255

Servidor WINS primario . . . . :

Servidor WINS secundario . . . :

Concesión obtenida . . . . . . :

La concesión caduca. . . . . . :

-----------------------------------


As you can see, the only two things where it tells something about DNS are

DNS servers.........:
and
NetBIOS resolution uses DNS.................: No




What now?!

Anyway, are you sure that making the resolv.conf file will solve my internet problems?


Emilio
 
Old 11-18-2005, 02:40 PM   #10
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
That is a private IP. Apparently you are behind some sort of NAT device (probably a hardware router). Get the nameservers from the NAT device itself. These things usually have a web administration tool or some such. Then add then to /etc/resolv.conf like we discussed.

No, I am not sure this will solve your problems, but it is very possible that it will. This is process-of-elimination time.
 
Old 11-18-2005, 07:09 PM   #11
e13438
LQ Newbie
 
Registered: Oct 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Yes, my modem is connected to a router (or switch?) by an ethernet cable, and then many ethernet cables come out of the router to my two computers. But as far as I know, it doesn't have any administration tool, because I don't think it came with any CD nor floppy. It is an Encore 8 port Nway Switch, but anyway I'm not sure if you are referring to this. Do you want me to connect directly my modem to my laptop to see what happens?
 
Old 11-19-2005, 01:31 AM   #12
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
I would check the router manual. You should be able to log in to it and see which nameservers it was assigned via dhcp.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Slow Internet Connection when Connecting to Internet on Browsers lennysokol Linux - Networking 8 04-09-2011 05:29 PM
New Fedora Internet connection slow slow slow matrim Fedora 9 07-29-2005 02:39 PM
eternal lands help marko92 Linux - Games 1 02-15-2005 11:40 AM
slow internet access. too slow!!! iamstinke Linux - Networking 2 01-01-2004 10:46 PM
Eternal message talmor Linux - Newbie 1 03-27-2002 01:47 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

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