View previous topic :: View next topic |
Author |
Message |
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2253 Location: $TERM
|
Posted: Tue Jul 13, 2010 5:25 pm Post subject: Learning the ways to connect to the net... |
|
|
I know very basic networking like subnets, NFS, SSH, Classes of IP DHCP etc... what I do not know is the ways to connect to the net ADSL, T3, T1, dialup etc... etc... etc... and configuring them in each disto is different. I don't know what to make the disto do since I don't know what to actually do to connect to the Internet.
So I was wondering about a book or something which explains the ways to connect to the Internet in Linux and a bit of the protocols internals which I think will be mandatory to accomplish the goals; I should know what to make the OS do so as to get it connected to the net. _________________ My blog |
|
Back to top |
|
|
Jimini l33t
Joined: 31 Oct 2006 Posts: 601 Location: Germany
|
|
Back to top |
|
|
Inodoro_Pereyra Advocate
Joined: 03 Nov 2006 Posts: 2631 Location: En la otra punta del cable
|
Posted: Tue Jul 13, 2010 5:56 pm Post subject: |
|
|
There is only one way to connect to the internet: By telling to the operating system wich net is the local one (assuming you know about subnets as stated above). All other traffic not belonging to a local net will be forwarded to the gateway. That´s all. This is the same no matter what OS we are talking about.
The universal way to do it in Linux:
Code: | ifconfig <ip_number> <subnet_mask> |
There you have, all traffic outside the subnet will be routed by the gateway, so you have to specify one:
Code: | route add default gw <ip_number> |
And for domain name to IP resolution, just specify a DNS:
Code: | echo "nameserver <ip_number>" >> /etc/resolv.conf |
Thats the underlying magic under any script o network manager of every Linux distro.
Cheers! _________________ Mi Blog.
Si no fuera por C, estaríamos escribiendo programas en BASI, PASAL y OBOL. |
|
Back to top |
|
|
Jimini l33t
Joined: 31 Oct 2006 Posts: 601 Location: Germany
|
Posted: Tue Jul 13, 2010 6:21 pm Post subject: |
|
|
Hm...maybe it was a misunderstanding, I understood him in the way that he wants to get information in general how such a connection works :)
Best regards,
Jimini _________________ "The most merciful thing in the world, I think, is the inability of the human mind to correlate all its contents." (H.P. Lovecraft: The Call of Cthulhu) |
|
Back to top |
|
|
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2253 Location: $TERM
|
Posted: Wed Jul 14, 2010 4:54 am Post subject: |
|
|
I know about these protocols... I can configure IP tables. I'm asking for lower (or higher) level protocols at work like ADSL, PPP etc... which are responsible for the authentication to connect to the Internet. A bit info about these protocols like the mechanism of their authentication methods so I know how to configure the OS to connect to the net.
@Inodoro_Pereyra
If we have a gateway, problem is reduced by a fraction. If we don't we need to 'dial up' (i.e direct connection to the modem)... that causes major issues. Each OS has it's separate way to do so. How do I fix that? _________________ My blog |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Wed Jul 14, 2010 8:28 am Post subject: |
|
|
to my knowledge, only by PPP, you have sub-formats (pppoa...) but always PPP, like for a 56k
Even when you are using ethernet to connect to a dsl router, in fact the router itself use pppoe(a) to connect with your modem... that's why you don't need anything else, but still, the protocol is use, just by the router and not the os.
So i would said, for linux, learn pppd usage, you will be able to connect to anything. |
|
Back to top |
|
|
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2253 Location: $TERM
|
Posted: Wed Jul 14, 2010 9:25 am Post subject: |
|
|
What about the interface requirements? pppd will run on this interface, so what will be the configuration of this interface (from the OS side)? For e.g. will it be set to dhcp or static or something else or simply null? _________________ My blog |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Wed Jul 14, 2010 9:41 am Post subject: |
|
|
it will be set by the provider thru dhcp for random ip, or static for fixed ip, as simple as that.
These are part of the connection itself, like password, protocol and implementation, so OS have nothing to do on that, user need to implement them.
Have a look here to see howto setup one (pickup that one, because i answer that one)
https://forums.gentoo.org/viewtopic-t-813542-highlight-ppp.html
Another interesting case, some more hardware specifications need.
https://forums.gentoo.org/viewtopic-t-825214-highlight-module.html
But as you see, from the OS pov, nothing change, pppd at work.
Pretty sure the forum is full of answers from someone else (you don't want to be Krinn, else you'll be as limited as him) that could easy higher your knowledge in minutes. |
|
Back to top |
|
|
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2253 Location: $TERM
|
Posted: Thu Jul 15, 2010 7:46 am Post subject: |
|
|
The usual technique provided in the handbook does not work (maybe cause I'm using baselayout 2). I have to use rp-pppoe.
So basically to connect to the net using ppp, I have to set eth0 to DHCP, then start pppoe-connect after setup through pppoe-setup?
That's it?... will it be the same for all OS? _________________ My blog |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Thu Jul 15, 2010 9:40 am Post subject: |
|
|
yes,
i remember win95 (or was it 98?) didn't provide pppoe layer, and by this time an external program was need for that. I suppose newer windows versions provide pppoe now.
So when using an OS, try to find the ppp program/functions and set it up and you'll be ok. |
|
Back to top |
|
|
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2253 Location: $TERM
|
Posted: Thu Jul 15, 2010 12:12 pm Post subject: |
|
|
But in those times I did not have an ADSL connection.
Apparently it appears to work... all of a sudden, it did not work in Sabayon however and I was head banging for a long time.
Actually here, I did not even start eth0... it's down and the net's still working.
Anyway, thanks. _________________ My blog |
|
Back to top |
|
|
Inodoro_Pereyra Advocate
Joined: 03 Nov 2006 Posts: 2631 Location: En la otra punta del cable
|
Posted: Fri Jul 16, 2010 6:11 pm Post subject: |
|
|
dE_logics wrote: | The usual technique provided in the handbook does not work (maybe cause I'm using baselayout 2). I have to use rp-pppoe.
So basically to connect to the net using ppp, I have to set eth0 to DHCP, then start pppoe-connect after setup through pppoe-setup?
That's it?... will it be the same for all OS? |
Not exactly. PPPoE works encapsulating traffic over ethernet frames, so there is no need of DHCP, IP o any other higher level protocols. If you capture a PPPoE session, you will see ARP broadcast traffic only in the PADI packets. That´s why you don´t need an IP number in the interface connected to a DSL provider and for sure that´s why it works even while net.ethX has not been started.
Cheers! _________________ Mi Blog.
Si no fuera por C, estaríamos escribiendo programas en BASI, PASAL y OBOL. |
|
Back to top |
|
|
|