Web lists-archives.com

Re: ifconfig network resolution




On Sat, Jun 10, 2017 at 04:18:42PM -0400, Cindy-Sue Causey wrote:
> Anyone have tips for him right now.... *while he can read them*
> related to the language appearing to switch teams on him?

When pasting commands and output to an English-speaking mailing list,
it's often a good idea to do "export LC_ALL=C" beforehand.  Unless your
commands actually involve non-ASCII characters, or the behavior of a
command in a non-C locale, in which case: good luck.

As far as ifconfig goes (which, by the way, is considered deprecated by
many people), the traditional syntax is:

ifconfig <iface> <ip> netmask <netmask>

You generally don't need to specify the broadcast address, or the network
address.  These can be calculated from the IP + netmask.  Those options
exist only for extremely bizarre networks that used "all zeros" for the
broadcast instead of "all ones".  No new networks should be set up this
way.