Visit The New, Modern Unix Linux Community

Linux and UNIX Man Pages

Test Your Knowledge in Computers #397
Difficulty: Medium
HP-UX 11i offers a common shared disks for its clustered file system.
True or False?
Linux & Unix Commands - Search Man Pages

ipcalc(1) [centos man page]

IPCALC(1)						      General Commands Manual							 IPCALC(1)

ipcalc - perform simple manipulation of IP addresses SYNOPSIS
ipcalc [OPTION]... <IP address>[/prefix] [netmask] DESCRIPTION
ipcalc provides a simple way to calculate IP information for a host. The various options specify what information ipcalc should display on standard out. Multiple options may be specified. An IP address to operate on must always be specified. Most operations also require a netmask or a CIDR prefix as well. OPTIONS
-c, --check Validate the IP address under the specified family. If no address family is specified, IPv4 is assumed. -4, --ipv4 Specify IPv4 address family (default). -6, --ipv6 Specify IPv6 address family. -b, --broadcast Display the broadcast address for the given IP address and netmask. -h, --hostname Display the hostname for the given IP address. -m, --netmask Calculate the netmask for the given IP address. It assumes that the IP address is in a complete class A, B, or C network. Many net- works do not use the default netmasks, in which case an inappropriate value will be returned. -p, --prefix Show the prefix for the given mask/IP address. -n, --network Display the network address for the given IP address and netmask. -s, --silent Don't ever display error messages. AUTHORS
Erik Troan <> Preston Brown <> IPv6 supported wedged in by David Cantrell <> REPORTING BUGS
Report bugs at COPYRIGHT
Copyright (C) 1997-2008 Red Hat, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. Red Hat, Inc. April 30 2001 IPCALC(1)

Check Out this Related Man Page

IFCONFIG(8)						      System Manager's Manual						       IFCONFIG(8)

ifconfig - configure a TCP/IP device SYNOPSIS
ifconfig [-I ip-device] [-h ipaddr] [-n netmask] [-iv] DESCRIPTION
Ifconfig initializes a TCP/IP device setting the IP address and/or netmask. It will report the address and netmask set. This command may be used if the system has not been configured properly yet. It is only used at boot time to set a fixed address for a system without a physical ethernet. Normally the inet task will find it out by itself from the RARP server. OPTIONS
-h The decimal TCP/IP address to set. -n The netmask to set. -i Don't set the IP address or netmask if already set. This way ifconfig cannot interfere if the numbers have been found out by RARP. -v Report IP address and netmask. This is the default action if there are no other options. SEE ALSO
hostaddr(1), rarpd(8), set_net_default(8), boot(8). AUTHOR
Kees J. Bot ( IFCONFIG(8)

15 More Discussions You Might Find Interesting

1. IP Networking

I cant network my computer

I have an Octane2 running IRIX 6.4 . The problem is that the machine is not coming on the network . I have put in all the details perfectly , like IP , netmask , name servers , gateway IP , I tried it on a Mac alongside me but On the IRIX it dosent work . I have no idea wats the prob lem .... (2 Replies)
Discussion started by: Jai
2 Replies

2. IP Networking

Nework; how to configure under redhat6?

Hi all, im running a redhat 6 linux on an Laptop. I am unable to find the configuration file where i have to configure all the settings like ip address, netmast, broadcast and gateway. Every time at startup i have wrong settings of the network. Thx all for help! Best regards Frank (2 Replies)
Discussion started by: ortsvorsteher
2 Replies

3. UNIX for Advanced & Expert Users


hi all how can i make network betwen 2 pc one winxp other linux (redhat) thanx (4 Replies)
Discussion started by: islam
4 Replies

4. Solaris

basic unix question

Hello, I'm new to solaris and have an experience with linux. When we see network interface I can see qfe, hme, le0. What is that mean? Is it depend on the network card? (11 Replies)
Discussion started by: mokkan
11 Replies

5. Red Hat

find redhat

how to find out the Red hat version using uname -a command. (7 Replies)
Discussion started by: sudhiroracle
7 Replies

6. Solaris

ifconfig - making netmask & broadcast address permanent?

hi, I am trying to configure one of my interfaces, but after reboot - i lose the changes to the netmask & broadcast address. I have added an entry in /etc/netmasks, but it doesnt pick up the new settings. any ideas - much appreciated. before reboot: eri0:... (3 Replies)
Discussion started by: badoshi
3 Replies

7. Shell Programming and Scripting

how to calculate netwrk from IP address and netmask using Bitwise AND in shell script

Hi, I am having two variables IP="" netmask="" To get network number, I know that a bitwise & will help. networkno=IP & netmask My code is #!/usr/bin/ksh ip="" netmask="" networkno="$ip" & "$netmask" echo $networkno I am... (7 Replies)
Discussion started by: chaitanyapn
7 Replies

8. UNIX for Dummies Questions & Answers

Problems with using less

Hello, I am having problems with using less on Linux version 2.6.18-92.1.17.el5 ( (gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)). I am using csh but have the same problems on bash. If I pipe something to less it works perfectly i.e. cat file | less... (9 Replies)
Discussion started by: z1dane
9 Replies

9. Shell Programming and Scripting

ip range addresses

I am trying to find a script that will generate all the ip addresses in particular range. Example: start: end ip to Please help. Thanks (9 Replies)
Discussion started by: kkkk
9 Replies

10. Red Hat

Registro Redhat Network

Buenas, Tengo 3 sistemas registrados en redhat network; hace un mes modificamos las ip's de los mismos pero en redhat network igue poniendo las antiguas. Como puedo modificarlas? tengo q registrar los sistemas de nuevo? Otra cosilla, he intentado actualizar packages y erratas: en actualizar ahora... (4 Replies)
Discussion started by: fuentepinel
4 Replies

11. Shell Programming and Scripting

Shell script to give broadcast and network address

Hello, I am running a post script in autoyast where I am trying to set the broadcast and network address. I have the ip address and netmask already (reading from a file).. I saw the post from fpmurphy but it is using ksh which isn't an option in autoyast. Thanks in advance! (3 Replies)
Discussion started by: bloodclot
3 Replies

12. Red Hat

Saving TTY settings

I have 4 digi etherlite boards that allow Wyse and VT100 terminals to connect to our network (stop laughing) :) We are switching from an older version of redhat where we have these running to: Red Hat Enterprise Linux Server release 6.5 (Santiago) I finally got them working and copied the tty... (5 Replies)
Discussion started by: mp99
5 Replies

13. Red Hat

Not able to IP address

Hi folks, i am using Oracle Red hat linux 6.5 64 bit operating system. but when i fire a command ifconfig -a it shows me no ip address has been assigned to this server except loop back address.then i done the following things 1) #nm-connection-editor 2) #service NetworkManager stop... (5 Replies)
Discussion started by: younusdba
5 Replies

14. Shell Programming and Scripting

How to change ip addressing format from CIDR notation to netmask and vice versa?

Hi all, I would appreciate if someone could share how to convert CIDR notation to netmask and vice versa. The value below is just an example. it could be different numbers/ip addresses. Initial Output, let say file1.txt Final Output, let say file2.txt (3 Replies)
Discussion started by: type8code0
3 Replies

15. Shell Programming and Scripting

Bash cript to calculate summarize address

Hi, I need to write a bash script that when i enter two ip address, it will calculate summerize address for them. Examlpe: Result will be: can you help me with this script? I even dont know how to start with it (3 Replies)
Discussion started by: Miron
3 Replies

Featured Tech Videos