Sa Part I, pinag-usapan natin ang pinaka-basic ng ip addressing. Ngayon naman, itutuloy natin ito. Ang pag-uusapan naman natin ngayon ay about IP address classes and Private IP address.
IP Address classes
Sa IPv4 addressing, meron tayong tinatawag na classes ng mga IP address. Ito ang mga sumusunod.

Sa image natin sa itaas, makikita mo na meron tayong 5 classes of ip addresses. Pero 3 classes lamang ang usable sa mga yan. Sila ay ang class A, class B and class C. Ito ang mga usable IP addresses para sa network at sa mga host or end devices.
Ang class D(224 – 239) & class E (240 – 254.x.x.x) ay hindi ginagamit dahil ito ay for multicast(class D) and reserved sa research or future use(class E). Hindi na rin natin isinama sa range ng class A ang 0.0.0.0 dahil s’ya ay ginagamit naman sa default routing. At ang range din na 127.x.x.x ay hindi kasama dahil ito naman ay ginagamit sa loopbacks.
So in real world, talagang ang mga class A, B and C lang ang ginagamit as usable ip addresses in the network.
By knowing the ip address classes, we can now identify kung anong class ang isang given ip address.
Paano?
By looking at its first octet numbers.
For example kapag nakita natin na ang umpisa ng isang given ip is between 1 and 126, that means it’s a class A ip address. Kung nag-start sa 128 hanggang 191, it’s a class B. Then kung ang start naman is 192 hanggang 223, it is a class C ip address.
Again, by looking on the first octet, kailangan lang natin matandaan kung saang range pumapasok ang naturang ip address. If the ip address starts with 10, that means it’s a class A. If it starts with 20, class A pa rin. If it starts with 121 class A pa rin.
Examples of class A ip address: 10.10.10.1, 125.100.10.1, 121.10.10.1.
As you can see, ang first octet nila ay pasok sa range ng class A ip address(1 – 126). Again, ang kailangan lang natin tingnan ay ang first octet.
Examples of class B ip address: 128.1.1.1, 130.10.10.1, 190.10.10.1
If you take a look, their first octet(128) belongs to class B range(128 – 191). Again ha, first octet ang ginagawang batayan.
Examples of class C ip address: 192.168.1.1, 200.10.10.1, 195.10.10.1
Ganun din. Ang mga first octet nila ay nabibilang sa range ng class C ip address (192 – 223). Madali lang di ba?
So kapag nakakita ka ng isang ipv4 address, tingnan mo lang ang unang octet and boom! Malalman mo na agad kung saang class siya nabibilang.
Kung ang UNANG OCTET ng given IP address ay nagsisimula or less than sa 126, ito ay pasok sa class A. Kung ito naman ay less than or nagsisimula sa 191 pasok ito sa class B then kung less than or nagsisimula sa 223 pasok ito sa class C.
So ang technic, tingnan mo yung FIRST OCTET ng given IP address, then isipin mo kung nagsisimula or less than ba sila sa 126, 191 or 223. From there madali mong makukuha kung saan class ng IP address sila pasok.
More examples:
10.160.193.129 – class A IP address
139.81.218.58 – class B IP address
203.55.45.100 – class C IP address
By just looking at the first octet, alam na agad natin kung anong ip address class sila pumapasok. To make it easier to remember, we can summarize the ip address classes like the sample image below.

Two Reasons why we need to know IP address classes
Una, kailangan natin maka-bisado ang mga classes na ito dahil kasama ito sa CCNA exam.
For example, sa exam, may mga random questions na what class of ip address is 10.25.26.254?
So para masagot mo ito ng tama, dapat kabisado at naiintindihan mo ang table natin sa taas. Para mas madali mo itong matandaan, ang pinaka-madaling technic ay kabisaduhin mo ung octet or number before the period or dot. In short, ito lang ang kailangan mong tandaan, 126, 191 and 223. Base dito maari mo ng malaman kung ano ang class ng isang IP address.
Pangalawa at ang pinaka-importanteng dahilan kung bakit natin malaman at makabisado ang classes ng IP address ay para malaman din natin ang kanilang default subnet mask. Kung natatandaan mo, nabanggit natin sa previous lesson na ang subnet mask ang nagtatakda kung alin ang network portion at host portion sa isang IP address.
Ang mga classes ng IP address na napag-usapan natin sa itaas ay may kanya-kanyang default subnet mask.

Sa sample image natin sa itaas, ipinapakita ng table kung ano ang default subnet mask ng bawat class ng IP address. Nakikita n’yo rin ang kanilang kaukulang slash notation format.
Sa ating class A ip address, ang default mask nito ay 255.0.0.0 or /8. Ibig sabihin, ang first octet ay para sa network portion at ang 3 remaining octets ay para naman sa mga hosts (Network.Host.Host.Host). Ibig sabihin, ang first octet ng subnet mask natin kung binary ay 11111111.00000000.0000000.00000000. Ito ay katumbas din nga ng /8(8 consecutive 1s) or 255.0.0.0 in long format.
Sa class B ip address naman natin, ang default subnet mask ay 255.255.0.0 or /16. So ganun din, meron tayong 16 consecutive 1s kung binary(11111111.11111111.00000000.00000000). Sa slash notation or short format ito ay /16 or in long format naman ito ay 255.255.0.0.
Pagdating naman sa class C ip address, same concept lang din. So this time, we have /24 or in long format 255.255.255.0. Ito ay katumbas din ng 24 consecutive 1s in binary(11111111.11111111.11111111.00000000).
Ano ang relasyon ng ip address class sa ating subnet mask? Well, gaya nga ng sinabi ko kanina, each ip address class has their own default subnet mask. Meaning pagnaka-kita ka ng isang ip at nalaman mo kung anong class ito, automatic alam mo na din ang kanyang default subnet mask.
For example, ang given ip natin ay 10.10.10.1. From our table, alam natin na ito ay isang class A ip address. At based from that, alam natin na ang default subnet mask ng class A na ip address ay /8 or 255.0.0.0. Ibig sabihin, ang network portion ay ang first octet na 10, and the last 3 octets ay for hosts.
Kung ang given ip natin ay 195.10.10.1, alam natin na ang default subnet mask nito ay /24 or 255.255.255.0 dahil ito ay isang class C ip address. Ibig sabihin, ang network portion niya ay 195.10.10 at ang host portion niya ay 1 – 255. Again, kagaya ng napag-usapan natin, hindi kasama ang first ip(dahil it ay network address) at ang pinaka-huling ip ng isang subnet(dahil ito ay broadcast address).
Does it make sense?
Kung medyo hindi agad makuha, break muna then basa ulit. Lalo sa mga beginners. It can take time pero once nan a-gets mo ito, tuloy-tuloy nay an.
Let’s move on.
Private and Public IP address
Kung kanina, classes ang pinag-usapan natin, let’s talk about public and private ip addresses on this one. Kada-class(A, B or C) ng ating ip address, meron tayong tinatawag na public and private ip address. From the word itself, ang private ip address ay ang mga ip address na pwede natin magamit privately.
Meaning, inside our organization or our company. Ang mga public ip addresses naman ay siyang ginagamit sa internet or outside our organization.
Take note, hindi mo pwedeng magamit or hindi gagana outside or in public ang mga private ip addresses. It can only be used inside our organization.

Sa image natin sa itaas, ipinapakita ang mga private ip address na pwede natin gamitin sa loob ng isang organization or internal network.
Bawat classes ng IP address ay may naka-define na private IP address range na maaring gamitin ng isang company or organization.
Ginagamit ang mga ito upang ma-segragate ang mga addresses na ginagamit internally at sa public gaya ng internet. At ang mga private ip addresses na ito ay hindi maaring gamitin in public or sa internet.
Pano ito nangyayari at pano ito gumagana?
Let’s see.

Sa isang internal network or kahit sa inyong bahay, most likely na pasok sa alin man sa private ip address range na nasa sample natin ang iyong ip address. Kagaya nga ng sinabi ko, ito ang ginagamit internally at hindi pwedeng gamitin outside or in public.
Kapag tayo ay nag-browse sa internet or sa labas ng ating internal network, dumadaan tayo sa router at itina-translate nito ang ating private ip address into a public ip address. Ito ang tinatawag na NAT or network address translation. Pag-uusapan natin ito in the future.

All private ip addresses going out to internet are being translated into a public ip address. This process is called NAT(Network Address Translation).
Let’s say ang ip ng iyong pc ngayon (run ipconfig in command prompt) ay 192.168.1.5, that is a private ip address at ang nakakakita lamang nito ay ang ibang devices na naka-connect din sa iyong network or iyong router (internal!).
Pag-browse mo ng internet, let say nag-login ka sa facebook, hindi nakikita ni facebook at ng ibang users or network na ang ip mo is 192.168.5. Ang nakikita ni facebook or ng iba ay ang iyong public ip address which is ang ip address na allocated ng iyong ISP (PLDT, Globe, Bayan etc.).

You can check your private ip in the command prompt by using the command ‘ipconfig’. Then you can check your public ip by going to whatismyip.com Try and see.
Now you understand?
Remember, sa bawat classes ng IP meron tayong private and public ip addresses. To make it more easier to understand, please see image below that shows the private and public ip ranges.

Para sa karagradagang kaalaman, ito ang hierarchy kung papaano na-aasign at namamange ang mga public ip addresses natin over the internet.
Ang IANA(Internet Assigned Numbers Authority) ang nagde-delegate sa mga RIR(Regional Internet Registry) upang mag-organize at mag-manage ng allocation at registration ng mga internet number resources within particular region sa buong mundo.
Kasama dito ang IP addresses(public) at mga AS or autonomous system numbers. Under IANA, meron tayong kabuuang limang RIRs. Ito ang mga sumusunod.
- African Network Information Center (AFRINIC) for Africa
- American Registry for Internet Numbers (ARIN) for the United States, Canada, several parts of the Caribbean region, and Antarctica.
- Asia-Pacific Network Information Centre (APNIC) for Asia, Australia, New Zealand, and neighboring countries
- Latin America and Caribbean Network Information Centre (LACNIC) for Latin America and parts of the Caribbean region
- Réseaux IP Européens Network Coordination Centre (RIPE NCC) for Europe, Russia, the Middle East, and Central Asia
Ito naman ang world-map view ng mga RIRs na ito.

Para mas maintindihan pa natin kuna papaano na-aassign ang public IP address or internet address dito sa atin, ito naman ang hierarchy ng APNIC(Asia-Pacipic) kung saan tayo nabibilang. Image was taken from APNIC official website.

Ang ISP na nakikita natin sa image ay ang mga internet providers natin gaya ng PLDT, Globe, Bayan etc. Then tayo yung mga EU or end users.
Woohooo!
Another long lesson pero I’m sure marami kang natutunan idol.
I hope by this far, you now understand the basics and fundamentals of IP addressing. Kung papaano nalalaman ang mga classes, kung ano ang mga default subnet mask nito at kung para saan ito in general.
In the CCNA Masterclass, we get deeper into this. We have more examples how it is being use in the real world and more deeper explanation in videos. If you’re interested, send me an email or wait for my announcement when it will be open again. For now, enjoy the free lessons we have here on the blog.
Let’s keep moving.
Thank you very much for this tutorials 🙂
You’re welcome Romerlo. Thanks for visiting the blog!
Mind Blowing for me..pero ayos lang..ungot2x ika nga..tnx Billy..
Welcome. Thanks din idol Jonathan!
Sir, yung sa Private IP address > Class B > Network range. Tama po ba yung 172.31.255.255.255?? parang sobra po yata ng Octet yung sa table nyo sir. Tnx
Nice catch Robi! I updated the article. Thanks!
sir ask lang po mejo nalito lang po ako
sa chart sa taas first octet 192-223 is class c the default sub net is 255.255.255.0
tapos bakit po sa chart ng private ip address sa class c yung first octet is 192
pano po naging 255.255.0.0 ung subnet hindi po ba sya parehas ng nasa first chart
na dapat 255.255.255.0
sensya na sir parang magulo rin yata ung tanong ko
salamat sa blogs sir malaking tulong saamin..
Because of the CIDR also known as slash notation is in the 2nd octet, thats why 255.255.0.0 is the default subnet, and kaya po yung default subnet sa unang chart is 255.255.255.0 kasi yung slash notation nya is /24 which is nasa 3rd octet po napapabilang. correct me if im wrong idol billy. any correction would be greatly appreciated . Sana nalinawan ka kahit konti kaibigang Nhielo
Sir tanung lang po.
ung mga EU or end user na directly connected si local Internet Registries(LIR). Ito po ba ung mga tulad ng Static IP’s na nabibili sa mga ISP or iba pa po cia??? Mel Antonio po ulit toh. sorry ung lagi sa bawat article nio may tanung aq. Pasensya na po
Yes po. Pero kadalasan sa end user e shared pa rin ksi parang hinahati-hati ni ISP sa mga customers. Example: Si PLDT mga home users minsan isang public IP lang ang ginagamit at hinahati ni PLDT pero pag sa mga corporate na END users or clients meron sila kanya kanyang public IP na binabayaran or binibili. I hope it helps.
sir question po.. ano po yung available addreses per subnet? thanks po
Tnx Boss Very Informative..ngaun ko lng nkita tong blog mo
kakapasa ko lng ng CCNAx last June 14..
Pero Magssubscribe p dn ako dto mdami akong mtututunan…
Ayos idol! Congrats! You can also share your knowledge to fellow aspiring pinoy CCNA. 🙂
sir question po. basic lng to pero super akng nguguluhan, anu po ba ang technique para madali mong makuha ang subnet mask at default gateway, jan po kc aq nguguluhan eh…. for ex. 192.168.254.66 yan ang ip add, db po class c yan? olweis po bang 255.255.255.0 ang subnet mask nyan? yan npo b ang standard nyan?panu po mlalaman kng klan babaguhin ung .0 ng subnet mask? at panu rin po mkukuha ang gateway nyan? haaay simple lng pero nd q mgets..
Yan ang default, so ung subnet mo magbabatay dun s hinihingi or kelangan. Thanks!
Sir tanong kulang yung sa part ng Private Ip Address sa class B na range 172.16.0.0 – 172.31.255.255 nay may subnet mask na 255.240.0.0/12.
Sa second octet na may ip range na 16 to 31.. na may slash notation na /12.. 12 bits minus 8bits is 4 bits 4 bits is 15 in decimal value .. ee ang kaylangan po diba is 31? so it should be 5bits para maging 31 na cover yung 16 to 31 sa second octet.. so yung subnet mask should be 255.248.0.0/13 ??
paano po yung explanation sa part na yun? thanks po advance sa sagot.
Tama po yung subnet mask na /12 sa Class B Private IP Address
Explain:
/12 = 255. 240. 0. 0
Binary: 11111111.11110000.00000000.00000000 = /12
Decimal value per bit: 128 64 32 16 8 4 2 1
Second octet in binary: 1 1 1 1 0 0 0 0 = 240 = 128+64+32+16
The last bit of second octet falls on the value of 16 which determines the block size of the subnet or network. Which therefore covers ip address range:
172.16.0.0 through 172.31.255.255
Next network 16+16=32 would be 172.32.0.0 which is already a public ip address.
Hope this answers your question……..
idol anu yung loopback (127.0.0.0 ) at saan to ginagamit? anung nagagawa nun? tsaka yung default routing na 0.0.0.0 anung usage at purpose in enterprise?
isa ako sa nag buy ng ebook mo pero tingin ko need ng forum sa questions ^_^ or saan ba pwede idol. thank you.
Yung loopback kapag sa mga blog or training videos is being used for internal network or other network connected doon s interface na un, ibig sabihin instead na magconnect ka pa ng router or device, loopback na lang. Pro in real world, gingamit yan as for real connectivity instead na yung physical interface. Why? Si loopback kasi hindi nagdodown unless down tlaga yung device. Si physical interface nagdodown yan kahit wala naman issue sa device. Un ang main reason.
Ung default routing is for routes na ndi naka-define sa routing table ni router. Ibig sabihin, kung walang 10.10.10.0/24 sa routing table, magdedefault route siya. So kung ano ang statement or configuration mo for default route, yun ang gagawin niya(like drop, router to specific IP etc.).
Hope it helps idol. Salamat!
malaking tulong po, I studied cisco when i’m college but because of financial problem nde na nakapag ccna, so ngaung may work na, ipon to continue the journey and luckily i found your blog, specially for this topic. really love how network works. Thanks a lot.
Welcome rootbeer. Keep learning!
students passing 545 Questions , any one has this https://www.marks4sure.com/400-151-exam.html 5th January update. just confirm the new questions also coming. please update if any one has this 545 questions
Sir, ano po bang pingkaiba ng PROXY server SA real PROXY server? Ano gamit nito. ? Newbie lang po. Salamat
Hindi ko gets question mo idol, cnxa na. Hehe
Idol Billy,
Maari bang gumamit ng class C private IP for class B subnet mask? Kung ganito ang configurations anu magiging effect?
At kailan tau mag dedecide gumamit ng Class A, B or C?
Thanks idol,
Ruck
Yes, that’s where subnetting comes in. 😉
Idol,
Kailan po ba mag dedecide gumamit ng Class A, B or C?
Thanks Idol
When you need it. Depends in every company’s goal and design. If you have thousands and really large company, malamang class A kung hindi kakasya ang class B or C. 😉
Sir,
Question lang about IP Classes, sa explanation mo yung 1-126.x.x.x ay Class A at ang subnet mask nya ay 255.0.0.0, kaso nagcheck ako sa IP ng company ko 10.20.NNN.NNN, so ang expected ko ang subnet mask nya ay 255.0.0.0, kaso 255.255.255.0.
Paki explain po, bago lang po kasi ako kaya nguguluhan ako
Maraming salamat Sir Billy dame ko natutunan dto sa blog mo, matagal na akong graduate ng IT since 2013 at nung tinuruan kame sa networking halos basic lang, may basic pa po dito.
ngayon ko lang po nag pagtanto na mas ok matutunan ang networking (sa computer :D) at tama po kayo at proven ko po ito na malaki ang sahod ng mga Network admin kasi sa previous OJT ko napaka lawak ng System nila dun at sila po nagprove saken na malaki talga ang sinasahod nila, pero that time hehe wala po sa isip ko ung networking.
Hopefully din po mabili ko po ung EBOOK nyo para maging reference ko po kapag kukuha na ako ng CCNA exam 😀
slmt idol
Sir, Pwede po bang maging any subnet ang kahit anong network address? for example po:
192.168.0.1 \12?
or 10.0.0.1 \26?
thanks po
Pass the exam with Professional Acams CAMS PDF Questions https://neodumps.com/shop/
on the first attempt with up-to-dated exam dumps designed by the NeoDumps.
Pass my AWS SAA-C03 exam with the help of certspilot SAA-C03 dumps, if you want to pass you can download latest exam questions from this site.
My confusion about Public and private IP addresses will be clear after reading your article.
Thanks to your explanation, I finally understand the difference between public and private IP addresses.
If I read your essay, all the questions I have concerning public and private IP addresses will be answered.
My confusion about public and private IP addresses will be put to rest once I read your essay.
Muchas personas anhelan salir con mujeres con curvas que les proporcionen la máxima diversión y felicidad sensual.
ExamsVCE provides a comprehensive range of exam preparation materials, including verified and authentic braindumps created by IT experts. The platform guarantees 100% success and offers a money-back guarantee. They support over 3500 exams with detailed PDFs and a 24/7 customer support system to aid in effective exam preparation.
https://www.examsvce.com/PSE-Strata-exam.html