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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I just installed Kubuntu on a PC which is connected to a LAN - router.
But Im unable to connect to the internet.
ping 192.168.1.* works but ping google.com returns unknown host. I can ping to all other PCs.
I have this in my /etc/network/interfaces
Code:
#eth0 main
auto eth0
iface eth0 inet dhcp
auto lo
iface loopback inet loopback
I even tried specifying gateway (192.168.1.1) though it was already detected via DHCP before I added it.
Any idea why my internet isnt working ?
Might be there is no default route set, might be there is no dns server defined, might be the dns server is no dns server, might be ...
We need details about your network config ;-) .
Pls execute this script and check the error messages and fix them by reading the referred URLs. If there are no config errors detected post the output of the log file collectNWData.txt in this forum or phpfi.com. This will give us defails about your network config and we most probably will be able to help you to get your problem fixed.
If you have a dhcp server running you can configure it to give dns information with ip address as well. You need not manually edit your resolv.conf file then.
So you could configure your dhcp to relay dns information as well. If your router acts as a dhcp server then edit the dns information in router manually.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.