[Snort-users] No netmask specified for home network!

Erek Adams erek at ...950...
Mon Sep 15 09:34:09 EDT 2003


On Fri, 12 Sep 2003, Robert Perez wrote:

> Try 192.168.1.0/24
> What you have would be 192.168.1.1/32 <-- 24 is not a valid mask

Nope.  That's valid.

[erek at ...6976...]~>ipcalc 192.168.1.1/24

Address:   192.168.1.1           11000000.10101000.00000001 .00000001
Netmask:   255.255.255.0 = 24    11111111.11111111.11111111 .00000000
Wildcard:  0.0.0.255             00000000.00000000.00000000 .11111111
=>
Network:   192.168.1.0/24        11000000.10101000.00000001 .00000000
(Class C)
Broadcast: 192.168.1.255         11000000.10101000.00000001 .11111111
HostMin:   192.168.1.1           11000000.10101000.00000001 .00000001
HostMax:   192.168.1.254         11000000.10101000.00000001 .11111110
Hosts/Net: 254                   (Private Internet RFC 1918)


[erek at ...6976...]~>ipcalc 192.168.1.0/24

Address:   192.168.1.0           11000000.10101000.00000001 .00000000
Netmask:   255.255.255.0 = 24    11111111.11111111.11111111 .00000000
Wildcard:  0.0.0.255             00000000.00000000.00000000 .11111111
=>
Network:   192.168.1.0/24        11000000.10101000.00000001 .00000000
(Class C)
Broadcast: 192.168.1.255         11000000.10101000.00000001 .11111111
HostMin:   192.168.1.1           11000000.10101000.00000001 .00000001
HostMax:   192.168.1.254         11000000.10101000.00000001 .11111110
Hosts/Net: 254                   (Private Internet RFC 1918)

Ipcalc is your friend.

-----
Erek Adams

   "When things get weird, the weird turn pro."   H.S. Thompson




More information about the Snort-users mailing list