Re: How to access hosts in other subnet



On Jul 29, 10:40 am, "lovecreatesbea...@xxxxxxxxx"
<lovecreatesbea...@xxxxxxxxx> wrote:
# route add -net 192.168.4.0 netmask 255.255.255.0 gw 192.168.3.5

to be able to talk to systems on the 192.168.4.0/24 network.

What's the ``24'' at the end of that address.

That's the no. of bits counting from the most-significant-bit position
(i.e. left side) that make up the network mask. So if you have an IPv4
address (which takes 32 bits to represent, 8 bits per octet in dotted-
decimal notation), then this means 3 octets full with 1's, and 1 octet
(LSB) with 0's.

HTH,
bani
.