Find the answer to your Linux question:
Results 1 to 5 of 5
Hi, I have observed that, some routers has /16 and some has /24and some has /32 . For exaple : 172.26.0.0/16 via 192.168.154.254 dev eth0 192.168.198.0/24 via 192.168.154.254 dev eth0 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    May 2012
    Posts
    110

    Regarding Permanent Routing in Linux servers...Need Help.


    Hi,

    I have observed that, some routers has /16 and some has /24and some has /32 .

    For exaple :

    172.26.0.0/16 via 192.168.154.254 dev eth0

    192.168.198.0/24 via 192.168.154.254 dev eth0

    62.40.32.33/32 via 192.168.154.254 dev eth0


    What does these digits means ?

    Please share your knowledge.

    Regards,
    Aparna.

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,377
    The /16, /24 and /32 here are examples for netmasks in classless inter-domain routing notation.
    An IPv4 address is a 32bit number, the familiar four segments (e.g. 192.168.178.1) are just a more human readable representation.
    The netmask tells, how many bits of an IPv4 address shall be used for routing.
    You must always face the curtain with a bow.

  3. #3
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    This may help a little bit: Subnetwork - Wikipedia, the free encyclopedia
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

  4. #4
    Linux Newbie
    Join Date
    May 2012
    Posts
    110
    Thanks a Lot to all for replying to my question.

    It was a great Help.


    Regards,
    Aparna.

  5. #5
    Linux User Krendoshazin's Avatar
    Join Date
    Feb 2005
    Location
    London, England
    Posts
    471
    The /24 and /16 suffixes tell you how many bits are used for the subnet. It's a little complicated to get into as a proper understanding requires you to deal with it on a binary level, but a suffix of /16 would give you a subnet mask of 255.255.0.0; if you apply this to the address 192.168.5.4, the router looks at this and then at the subnet mask and sees that anything starting with 192.168 belongs to this network -- thus if you try to send something to 192.168.20.7 from 192.168.5.4 with a subnet of 255.255.0.0, the router will look at the subnet and then attempt to route it internally on your network.

    This means that by borrowing bits from the network address you can increase the amount of hosts that are available on your network.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •