Lesson 4

Dates: 2/12/2014
Linux networking
Linux for Engineering and IT Applications


Subnet Mask

  • Subnet mask defines the network and the host parts of the IP address
  • Network address = Host address (logical AND) Netmask:
    
             Decimal                  Binary
    
    Host:     192.168.5.10        11000000 10010100 00000101 00001010
                                             
    Netmask:  255.255.255.0       11111111 11111111 11111111 00000000
    
    Network: 192.168.5.0 11000000 10010100 00000101 00000000

  • The network address is the smallest address on the network:
    
    11000000 10010100 00000101 00000000 = 192.168.5.0
    

  • The broadcast address is the largest address on the network:
    
    11000000 10010100 00000101 11111111 = 192.168.5.255
    

  • Max number of hosts on the subnet: 254 = 256 - 2
  • The gateway address should be on the same subnet with the host


  • Take me to the Course Website