LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-13-2011, 11:50 PM   #1
wang
Member
 
Registered: Dec 2010
Distribution: ubuntu 10.04
Posts: 43

Rep: Reputation: 0
true experts will enlighten me


hello!
My computer is a host of the lan,throgh which i can access the Internet.
by ipconfig(XP),i know my ip address is 10.139.35.55,mask is 255.255.255.0,default gate is 10.139.35.1.
Now i change the mask(my computer) to 255.255.0.0 or 255.0.0.0 i won't be able to access some sites.however,when i change to 255.255.255.128, 255.255.255.192, 255.255.255.224,etc,it seems work well.
so,can anybody explain why this happens with an example ?For instance,i want to talk with a host in the Internet,what does my computer do(involving ip and mask)?,the router(gate) ?That is,if the mask changes,what happens to them?
the more specific,the better!
Simple question?maybe.looking forward to your accurate and confident explanation!i don't want to be mislead! thanks.
 
Old 01-14-2011, 12:47 PM   #2
tsg
Member
 
Registered: Mar 2008
Posts: 155

Rep: Reputation: 30
If you're really interested, you can start here, but briefly:

The subnet mask tells the computer what its subnet is, that is, what addresses will it be able to reach without having to go through a router. The ip address contains the network number and the host number. The subnet mask is used to retrieve both from the ip address. When you change the subnet mask to 255.255.0.0 or 255.0.0.0, you are telling the computer that more hosts are reachable without going through a router which is why some of them stop working. Changing the subnet mask to 255.255.255.128 tells is fewer hosts are available without going through a router, so your computer sends the messages through the router first. It will still work, but is not as efficient and you will lose communication unnecessarily with some hosts on your subnet if the router should go down.
 
Old 01-15-2011, 06:01 AM   #3
wang
Member
 
Registered: Dec 2010
Distribution: ubuntu 10.04
Posts: 43

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by tsg View Post
If you're really interested, you can start here, but briefly:

The subnet mask tells the computer what its subnet is, that is, what addresses will it be able to reach without having to go through a router. The ip address contains the network number and the host number. The subnet mask is used to retrieve both from the ip address. When you change the subnet mask to 255.255.0.0 or 255.0.0.0, you are telling the computer that more hosts are reachable without going through a router which is why some of them stop working. Changing the subnet mask to 255.255.255.128 tells is fewer hosts are available without going through a router, so your computer sends the messages through the router first. It will still work, but is not as efficient and you will lose communication unnecessarily with some hosts on your subnet if the router should go down.
thanks very much! that is exactly what i wanted,it cleared my biggest confusion,thanks!
 
  


Reply



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
Enlighten me... thomasfingram Linux - Newbie 2 08-13-2005 11:32 PM
enlighten me on email server ziggie216 Linux - General 4 12-14-2003 04:00 AM
Enlighten and overall speed poeta_boy Linux - Newbie 3 10-23-2003 09:49 AM
can some one enlighten me on this parted problem? saturn_vk Linux - Software 1 06-28-2003 03:34 PM
Could some enlighten me!!!! CyberDrake Linux - Newbie 10 02-09-2002 04:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:10 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration