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.
Hello!
I took a look many HOWTOs but i can not understand how to connect ot the internet via LAN.
I know that have to be done with PPPoE but in all documentation tha i read i have exaples with ttyS0 port or some other serial port.
I use LAN. How to connect to the internet?
Probably i can't understand or i have wrong documentation.
These are the steps that i do:
- connect to the dhcp server. - DONE
- get IP adress on eth0 interface - DONE.
- connect to internet - FAILED.
I have IP, i know the ISP's DNS server and i have to configure the PPP.
How to connect my computer to internet via LAN?
Thanks in advance if anybody help me.
I am very appreciated at any help.
If you modem/router uses dhcp then eth0 needs to get its ip address via dhcp. i.e. setup your networking to use dhcp. Sorry don't use slack so cannot advise on method.
O.K.
I have only a plain lan. I have no dsl or some other kind of modems. Only a plain lan broadband network.
There is a proxy that i have to access, dhcp that give me IP adress and that is all.
No modems, no dsl, no adsl only a lan cable plugged in to a router from my ISP.
My active network interface is eth0 with dinamically changed IP adress.
I can get a IP now from the dhcp. it is not problem for me.The problem is how to access internet now.
Can you ping a known public ip address? (204.246.1.20) Can you ping a dns address? (www.yahoo.com)
do route -n
is there an entry with a UG next to it? That would be the default gateway. Is it present and correct for your lan?
Also do a cat /etc/resolv.conf -- this file should contain the IP address of the dns server your machine will use. If this entry does not exist, or of the UG entry in route -n display is wrong or non-present, then try manually adding the dns and gateway values. If it still does not work, then there is something wrong with basic ip connectivity.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.