Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

subnetcalc(8) [debian man page]

subnetcalc(8)						    BSD System Manager's Manual 					     subnetcalc(8)

NAME
subnetcalc -- IPv4/IPv6 Subnet Calculator SYNOPSIS
subnetcalc [Address] [Netmask/Prefix] [-n] [-uniquelocal] [-uniquelocalhq] DESCRIPTION
subnetcalc is an IPv4/IPv6 subnet address calculator. For given IPv4 or IPv6 address and netmask or prefix length, it calculates network address, broadcast address, maximum number of hosts and host address range. Also, it prints the addresses in binary format for better under- standability. Furthermore, it prints useful information on specific address types (e.g. type, scope, interface ID, etc.). ARGUMENTS
The following arguments have to be provided: Address The IP address. If a hostname is provided here, it is tried to resolve the address by a DNS server and the first returned address is used. Internationalized Domain Names (IDN) are supported. Netmask/Prefix The netmask or prefix length (0-32 for IPv4; 0-128 for IPv6). -n Skip trying a reverse DNS lookup. -uniquelocal Given an IPv6 address, the first 48 bits of the address are replaced by a randomly chosen IPv6 Unique Local prefix in fc00::/7 (see also RFC 4193). Under Linux, /dev/urandom is used for random number generation. -uniquelocalhq Like -uniquelocal, but using /dev/random instead on Linux systems for highest-quality random number generation. On other systems, this option is equal to -uniquelocal. Note, that reading from /dev/random may take some time. You can speed up this process by deliv- ering random input e.g. by pressing keys or moving the mouse. EXAMPLES
subnetcalc 132.252.250.0 255.255.255.0 subnetcalc 132.252.250.0/255.255.255.0 subnetcalc 132.252.250.0 24 subnetcalc 132.252.250.0/24 subnetcalc fec0:2345:6789:1111:221:6aff:fe0b:2674 56 subnetcalc 2a00:1450:8007::69 64 subnetcalc ff08::1:2:3 subnetcalc 131.220.6.5/24 subnetcalc 132.252.181.87 -n subnetcalc www.iem.uni-due.de 24 subnetcalc www.six.heise.de subnetcalc fd00:: 64 -uniquelocal subnetcalc fd00::9876:256:7bff:fe1b:3255 56 -uniquelocalhq subnetcalc dusseldorf.de 28 subnetcalc www.koln.de subnetcalc raksmorgas.josefsson.org 24 AUTHORS
Thomas Dreibholz http://www.iem.uni-due.de/~dreibh/subnetcalc mailto://dreibh@iem.uni-due.de subnetcalc June 19, 2010 subnetcalc

Check Out this Related Man Page

_UPDOWN(8)							  [FIXME: manual]							_UPDOWN(8)

NAME
ipsec__updown - kernel and routing manipulation script SYNOPSIS
_updown is invoked by pluto when it has brought up a new connection. This script is used to insert the appropriate routing entries for IPsec operation on some kernel IPsec stacks, such as KLIPS and MAST, and may do other necessary work that is kernel or user specific, such as defining custom firewall rules. The interface to the script is documented in the pluto man page. VARIABLES
The _updown is passed along a number of variables which can be used to act differently based on the information: PLUTO_VERSION indicates what version of this interface is being used. This document describes version 1.1. This is upwardly compatible with version 1.0. PLUTO_VERB specifies the name of the operation to be performed, which can be one of prepare-host, prepare-client, up-host, up-client, down-host or down-client. If the address family for security gateway to security gateway communications is IPv6, then a suffix of -v6 is added to this verb. PLUTO_CONNECTION is the name of the connection for which we are routing. PLUTO_NEXT_HOP is the next hop to which packets bound for the peer must be sent. PLUTO_INTERFACE is the name of the ipsec interface to be used. PLUTO_ME is the IP address of our host. PLUTO_MY_CLIENT is the IP address / count of our client subnet. If the client is just the host, this will be the host's own IP address / max (where max is 32 for IPv4 and 128 for IPv6). PLUTO_MY_CLIENT_NET is the IP address of our client net. If the client is just the host, this will be the host's own IP address. PLUTO_MY_CLIENT_MASK is the mask for our client net. If the client is just the host, this will be 255.255.255.255. PLUTO_PEER is the IP address of our peer. PLUTO_PEER_CLIENT is the IP address / count of the peer's client subnet. If the client is just the peer, this will be the peer's own IP address / max (where max is 32 for IPv4 and 128 for IPv6). PLUTO_PEER_CLIENT_NET is the IP address of the peer's client net. If the client is just the peer, this will be the peer's own IP address. PLUTO_PEER_CLIENT_MASK is the mask for the peer's client net. If the client is just the peer, this will be 255.255.255.255. PLUTO_MY_PROTOCOL lists the protocols allowed over this IPsec SA. PLUTO_PEER_PROTOCOL lists the protocols the peer allows over this IPsec SA. PLUTO_MY_PORT lists the ports allowed over this IPsec SA. PLUTO_PEER_PORT lists the ports the peer allows over this IPsec SA. PLUTO_MY_ID lists our id. PLUTO_PEER_ID lists our peer's id. PLUTO_PEER_CA lists the peer's CA. SEE ALSO
ipsec(8), ipsec_pluto(8). HISTORY
Man page written for the Linux FreeS/WAN project <http://www.freeswan.org/> by Michael Richardson. Original program written by Henry Spencer. [FIXME: source] 10/06/2010 _UPDOWN(8)
Man Page