IPCALC(1) General Commands Manual IPCALC(1)NAME
ipcalc - perform simple manipulation of IP addresses
ipcalc [OPTION]... <IP address>[/prefix] [netmask]
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.
Specify IPv4 address family (default).
Specify IPv6 address family.
Display the broadcast address for the given IP address and netmask.
Display the hostname for the given IP address.
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.
Show the prefix for the given mask/IP address.
Display the network address for the given IP address and netmask.
Don't ever display error messages.
Erik Troan <email@example.com>
Preston Brown <firstname.lastname@example.org>
IPv6 supported wedged in by David Cantrell <email@example.com>
Report bugs at http://bugzilla.redhat.com/
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-
Red Hat, Inc. April 30 2001 IPCALC(1)
Check Out this Related Man Page
IFCONFIG(8) System Manager's Manual IFCONFIG(8)NAME
ifconfig - configure a TCP/IP device
ifconfig [-I ip-device] [-h ipaddr] [-n netmask] [-iv]
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).
Kees J. Bot (firstname.lastname@example.org)
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)
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!
Frank (2 Replies)
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.
eri0:... (3 Replies)
I am having two variables
To get network number, I know that a bitwise & will help.
networkno=IP & netmask
My code is
networkno="$ip" & "$netmask"
I am... (7 Replies)
I am having problems with using less on
Linux version 2.6.18-92.1.17.el5 (email@example.com) (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)
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)
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)
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)
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
#service NetworkManager stop... (5 Replies)
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)
I need to write a bash script that when i enter two ip address, it will calculate summerize address for them.
Result will be:
can you help me with this script?
I even dont know how to start with it (3 Replies)