Page 1 of 1

ip address

Posted: Thu May 17, 2012 3:11 am
by viddz
Iam using dongle to connect to the internet. This what ipconfig shows. any xplanations????

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 101.2.177.103
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 101.2.177.103

Re: ip address

Posted: Thu May 17, 2012 3:19 am
by Saman
I'll tell you some more information ;)

Code: Select all

inetnum:        101.2.176.0 - 101.2.191.255
netname:        AIRTEL
descr:          Bharti Airtel Lanka Pvt. Limited
country:        LK
You are dynamically assigned with WAN IP 101.2.177.103 by Airtel guys and that's your default gateway (the IP used to go to Internet) as well. Say another LAN adapter is there which you share your internet connection. Packets of that network will come to your machine first and then sent to internet over the default gateway (which is your dongle).

I don't see any problem with that, do you?

Re: ip address

Posted: Thu May 17, 2012 3:28 am
by viddz
wat about the subnet mask?? 101.2.177.103 is class A(public) ip address. So subnet mask should be 255.0.0.0. How it becomes 255.255.255.255?

Re: ip address

Posted: Thu May 17, 2012 3:43 am
by Saman
According to the network theory I leaned many years ago, I can't remember I learned any connection between network class and subnet mask. It could be calculated for each class to be useful, that is true.
When your subnet mask is 255.255.255.255, that means it is a single host subnet.

check my setting on a SLT ADSL connection with a class C WAN IP.
sltadsl.jpg
sltadsl.jpg (22.6 KiB) Viewed 7324 times

Re: ip address

Posted: Thu May 17, 2012 3:57 am
by viddz
Got it. 255.255.255.255 is for PTP networks. Thanku :)

Re: ip address

Posted: Thu May 17, 2012 10:18 pm
by SemiconductorCat
are you asking how class A , Class B and class D , E are encoded?
It's encoded using a simple bit parttern .
Image


Network class due to it's bit pattern it restricts to some IP range.And Number of bits
which could be used in the host address and the network address filed.


if you masked a particular IP from a network mask you'll simply obtain the network address.
As Simple as that.

Where subnet mask is totally different from the class A, B, C default network mask.
So generally there is no connection between network mask and the class that your
ip belong.


Hope this may be useful.