LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-01-2007, 08:31 AM   #1
lali.p
Member
 
Registered: Jan 2007
Distribution: Slackware 11.0
Posts: 141

Rep: Reputation: 16
Doubt regarding internet connection


1)hi i get internet through ADSL using PPPoE. I have a router at my premise whose default ip is 192.168.1.1.

the router provides my NIC an ip i.e 192.168.1.x

What i want to know is that when i connect the internet (by running RPPPOE)and the run ifconfig i get the interfaces active:

1)ip address of my NIC card i.e 192.168.1.x

2)ip address of router i.e 192.168.1.1

3) Another interface ppp0 with ip 59.94.x.x


What i confuses me is what is this 3rd interface or to which device is this ip address allotted ?

My guess is that each router has 2 interfaces namely LAN and WAN(internet) and the ip 59.94.x.x is for internet. Am i right ? Kindly provide some help.

Also i would like to mention that my ISP provides dynamic addresses to ppp0 and they keep changing but 59.94 remains and last 2 fields change.

2)Another question is what is broadcast address.

3)of late i am finding myself in a problem.
i have no knowledge of ip addresses i.e what is class A,b and c etc etc and what is a subnet.

what is a route and what is router table what is the meaning of ip 0.0.0.0 and the list goes on and on

can some 1 provide a link where a can get this information especially about the type of networks i.e class A ,B etc i.e say i have an ip address 10.10.24.89 (behind a proxy server) then its subnet mask shd be 255.255.0.0. How can i learn all this ?



i hope i made things clear and please correct me if i am wrong anywhere.i would love to correct myself.


:P
 
Old 06-01-2007, 08:54 AM   #2
pdw_hu
Member
 
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346

Rep: Reputation: Disabled
You're in a bit of a mix there.
If you have a router, then that connects to the internet, and only gives you an ip address which you can use (192.168.1.x as you mentioned).
By running PPPOE you try to manually connect to the internet, and that why you get your real IP address (59.x.x.x).

You don't need to connect to the internet twice.
Your router probably uses DHCP (google or wikipedia for it), so what you only need to do is to ask for an ip from it with a util called dhcpcd (or many others available). This apparently has been already done, since you got an 192.168.1.x address.

For broadcast address, check wikipedia. It really describes it better than we (well rather I) could.
Read this: http://www.3com.com/other/pdfs/infra..._US/501302.pdf about IP
 
Old 06-01-2007, 09:15 AM   #3
agentc0re
Member
 
Registered: Apr 2007
Location: SLC, UTAH
Distribution: Slackware
Posts: 200

Rep: Reputation: 32
Quote:
2)Another question is what is broadcast address.
Anyone can correct me if im wrong, cuz im just going off memory here but im pretty sure a broadcast address is where when you send your info across a network that it is sent everyone, and whoever is setup to accept it can take it.
i searched the wiki, it has a more correct way of saying it. http://en.wikipedia.org/wiki/Broadcast_address

Quote:
i have no knowledge of ip addresses i.e what is class A,b and c etc etc and what is a subnet.
Lets start with, http://www.subnet-calculator.com/
http://en.wikipedia.org/wiki/Classful_network explains more on the different classes
a subnet consists of a class a, b or c submask.
a = really large network.
b = large network.
c = regular network.
Use the subnet calculator and play around with different submasks to get a feel of how large you could make a network.
i think the only reason why you would subnet, ie 10.1.0.0/255.255.255.248 gives us 6 usable ips, first and last are subnet id and broadcast address, you could use those to separate them from the rest of the network so no one on the other subnet can see them.

Just remember, GOOGLE IS YOUR FRIEND. GIYF!

anyone feel free to add and or correct me if i made a mistake anywhere.
 
Old 06-01-2007, 11:06 PM   #4
lali.p
Member
 
Registered: Jan 2007
Distribution: Slackware 11.0
Posts: 141

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by pdw_hu
You don't need to connect to the internet twice.
Your router probably uses DHCP (google or wikipedia for it), so what you only need to do is to ask for an ip from it with a util called dhcpcd (or many others available). This apparently has been already done, since you got an 192.168.1.x address.
The thing is that my ISP doesn't store my authentication information in my router.So every time i want to connect i have to manually do so by running PPPoE and thus authenticating myself.
Even in XP i have to do that (although i dont use pppoe as xp has in built pppoe dialer)

So am i correct when i say that every router has 2 interfaces 1 for LAN and other for WAN(internet) ?
 
Old 06-07-2007, 05:09 PM   #5
tomcdyer
Member
 
Registered: Jun 2007
Location: Surrey, UK
Distribution: Slackware 11 (mainly), Vista, XP
Posts: 108

Rep: Reputation: 15
yes, every router has 2 IP addresses. A local (your 192.168.1.1) and a public (your 59.x.x.x (will probably be dynamic and so will change)).
 
  


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
Internet connection problems - connection times out Count_Cloppy Linux - Networking 22 03-15-2007 09:20 AM
my internet connection disconnects my network connection? emre polat Linux - Networking 2 12-19-2006 02:11 PM
Internet connection timeout on Fedora Core 5 using USB connection mike1111 Linux - Networking 0 07-23-2006 10:44 PM
Nic card -> cable internet modem no internet connection zeshan_b Mandriva 21 09-26-2004 12:48 PM


All times are GMT -5. The time now is 04:39 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration