Problem with Linux PC connecting to Internet, but not LAN.
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Problem with Linux PC connecting to Internet, but not LAN.
Hello,
I have a linux box that for some reason can't go out to the internet. It can ping and resolve all addresses on the local network... but it can't ping anything out on internet. It gets an IP just fine if I set it up as a DHCP client... but the same thing occurs even if I have it with a static IP.
On the otherhand, all my other Windows and Linux boxes, connect just fine. It's soooooooo wierd.
If anyone could please help... I can't seem to figure this out. Below if my configurations... let me know if maybe something seems incorrect.
My Linux Box
-------------------
hostname: asterisk1.local
/etc/resolv.conf
; generated by /sbin/dhclient-script
search localdomain
nameserver 10.10.10.1
/etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 asterisk1.local asterisk1 localhost
10.10.10.12 asterisk1.local asterisk1
Originally posted by rathodr@meeract Couple of question:
1. when you get the DHCP or static IP, is that from your router?
2. are you trying to ping using www.domain.com? or IP?
try using IP (of your ISP, for example) and see if you get anything.
Also try configuring your ISP's DNS server addresses in your interface config. It could be that DHCP isn't passing this info on for some reason or you're gateway doesn't have them configured.
Originally posted by tofu713
I've done it under the resolv.conf and had the same result.
If I should do it the other way... how do i define the DNS?
Various distro's have various tools to config this stuff for you, e.g. with SuSE, you can use YaST to configure this. resolv.conf should work tho. Can you ping the DNS servers from your box?
nm. I just figured out what the problem was. My firewall had an incorrect HOST entry, when I removed it... it cleared up all the problems I was having.
Thanks for all your help, this is an AWESOME forum!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.