Skip to main content
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
Source Link
added 150 characters in body
Source Link
Formatting
Source Link
Chris Davies
  • 128k
  • 16
  • 178
  • 323

The subnets for eth0eth0 and wlan0wlan0 both have the same subnet/network address.

The subnet address (a.k.a. the network address) for eth0eth0 in interfaces is 192.168.1192.168.1 (a.k.a 192.168.1.0192.168.1.0). It is determined by taking the "logical and" of the "address" and the "netmask". The "address" is 192.168.1.100192.168.1.100 and the "netmask" is 255.255.255.0255.255.255.0. In

In decimal notation the value of digit locations are ... 10000,1000,100,10,1. In

In binary notation the values are ... 128, 64, 32, 16, 8, 4, 2, 1. 128 64 32 16 8 4 2 1 Since 192=128+64 it is 1 1 0 0 0 0 0 0 or 11000000 in binary. Since 168=128+32+8 it is 1 0 1 0 1 0 0 0 or 10101000 in binary. Since 1=1 it is 0 0 0 0 0 0 0 1 or 00000001 in binary. Since 100=64+32+4 it is 0 1 1 0 0 1 0 0 or 01100100 in binary. Since 200=128+64+8 it is 1 1 0 0 1 0 0 0 or 11001000 in binary. 255=128+64+32+16+8+4+2+1 or 1 1 1 1 1 1 1 1 or 11111111 in binary.

                           128 64 32 16 8 4 2 1 
 Since 192=128+64  it is     1  1  0  0 0 0 0 0  or 11000000  in binary.
 Since 168=128+32+8 it is    1  0  1  0 1 0 0 0  or 10101000  in binary.
 Since 1=1  it is            0  0  0  0 0 0 0 1  or 00000001  in binary.
 Since 100=64+32+4  it is    0  1  1  0 0 1 0 0  or 01100100  in binary.
 Since 200=128+64+8 it is    1  1  0  0 1 0 0 0  or 11001000  in binary.
 255=128+64+32+16+8+4+2+1 or 1  1  1  1 1 1 1 1  or 11111111  in binary.

To find the subnet or network address we must do a "logical and" of the "address" and the "netmask". The "logical and" of 0 and 0 = 0, 1 and 0 = 0, 0 and 1 = 0, and finally 1 and 1 = 1. Therefore 192.168.1.100192.168.1.100 logical and 255.255.255.0255.255.255.0 is 11000000.10101000.00000001.01100100 "logical and" 11111111.11111111.11111111.00000000 gives 11000000.10101000.00000001.00000000 which equals 192. 168. 1. 0 or 192.168.1.0

                  11000000.10101000.00000001.01100100
 "logical and"    11111111.11111111.11111111.00000000  gives
                  11000000.10101000.00000001.00000000 which equals
                       192.     168.       1.       0  or 192.168.1.0 

  

Likewise 192.168.1.200192.168.1.200 logical and 255.255.255.0255.255.255.0 is 11000000.10101000.00000001.11001000 "logical and" 11111111.11111111.11111111.00000000 gives 11000000.10101000.00000001.00000000 which equals 192. 168. 1. 0 or 192.168.1.0

                  11000000.10101000.00000001.11001000
 "logical and"    11111111.11111111.11111111.00000000  gives
                  11000000.10101000.00000001.00000000 which equals
                       192.     168.       1.       0  or 192.168.1.0 

  

The fix is to change 192.168.1.200192.168.1.200 to 192.168.2.200192.168.2.200 or to change 192.168.1.100192.168.1.100 to 192.168.2.100192.168.2.100.

The subnets for eth0 and wlan0 both have the same subnet/network address.

The subnet address (a.k.a. the network address) for eth0 in interfaces is 192.168.1 (a.k.a 192.168.1.0). It is determined by taking the "logical and" of the "address" and the "netmask". The "address" is 192.168.1.100 and the "netmask" is 255.255.255.0. In decimal notation the value of digit locations are ... 10000,1000,100,10,1. In binary notation the values are ... 128, 64, 32, 16, 8, 4, 2, 1. 128 64 32 16 8 4 2 1 Since 192=128+64 it is 1 1 0 0 0 0 0 0 or 11000000 in binary. Since 168=128+32+8 it is 1 0 1 0 1 0 0 0 or 10101000 in binary. Since 1=1 it is 0 0 0 0 0 0 0 1 or 00000001 in binary. Since 100=64+32+4 it is 0 1 1 0 0 1 0 0 or 01100100 in binary. Since 200=128+64+8 it is 1 1 0 0 1 0 0 0 or 11001000 in binary. 255=128+64+32+16+8+4+2+1 or 1 1 1 1 1 1 1 1 or 11111111 in binary.

To find the subnet or network address we must do a "logical and" of the "address" and the "netmask". The "logical and" of 0 and 0 = 0, 1 and 0 = 0, 0 and 1 = 0, and finally 1 and 1 = 1. Therefore 192.168.1.100 logical and 255.255.255.0 is 11000000.10101000.00000001.01100100 "logical and" 11111111.11111111.11111111.00000000 gives 11000000.10101000.00000001.00000000 which equals 192. 168. 1. 0 or 192.168.1.0

Likewise 192.168.1.200 logical and 255.255.255.0 is 11000000.10101000.00000001.11001000 "logical and" 11111111.11111111.11111111.00000000 gives 11000000.10101000.00000001.00000000 which equals 192. 168. 1. 0 or 192.168.1.0

The fix is to change 192.168.1.200 to 192.168.2.200 or to change 192.168.1.100 to 192.168.2.100.

The subnets for eth0 and wlan0 both have the same subnet/network address.

The subnet address (a.k.a. the network address) for eth0 in interfaces is 192.168.1 (a.k.a 192.168.1.0). It is determined by taking the "logical and" of the "address" and the "netmask". The "address" is 192.168.1.100 and the "netmask" is 255.255.255.0.

In decimal notation the value of digit locations are ... 10000,1000,100,10,1.

In binary notation the values are ... 128, 64, 32, 16, 8, 4, 2, 1.

                           128 64 32 16 8 4 2 1 
 Since 192=128+64  it is     1  1  0  0 0 0 0 0  or 11000000  in binary.
 Since 168=128+32+8 it is    1  0  1  0 1 0 0 0  or 10101000  in binary.
 Since 1=1  it is            0  0  0  0 0 0 0 1  or 00000001  in binary.
 Since 100=64+32+4  it is    0  1  1  0 0 1 0 0  or 01100100  in binary.
 Since 200=128+64+8 it is    1  1  0  0 1 0 0 0  or 11001000  in binary.
 255=128+64+32+16+8+4+2+1 or 1  1  1  1 1 1 1 1  or 11111111  in binary.

To find the subnet or network address we must do a "logical and" of the "address" and the "netmask". The "logical and" of 0 and 0 = 0, 1 and 0 = 0, 0 and 1 = 0, and finally 1 and 1 = 1. Therefore 192.168.1.100 logical and 255.255.255.0 is

                  11000000.10101000.00000001.01100100
 "logical and"    11111111.11111111.11111111.00000000  gives
                  11000000.10101000.00000001.00000000 which equals
                       192.     168.       1.       0  or 192.168.1.0 

  

Likewise 192.168.1.200 logical and 255.255.255.0 is

                  11000000.10101000.00000001.11001000
 "logical and"    11111111.11111111.11111111.00000000  gives
                  11000000.10101000.00000001.00000000 which equals
                       192.     168.       1.       0  or 192.168.1.0 

  

The fix is to change 192.168.1.200 to 192.168.2.200 or to change 192.168.1.100 to 192.168.2.100.

Source Link
Loading