Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #182045

Re: ifconfig network resolution

From Andy Smith <andy@strugglers.net>
Newsgroups linux.debian.user
Subject Re: ifconfig network resolution
Date 2017-06-11 04:20 +0200
Message-ID <tR0DT-7Av-7@gated-at.bofh.it> (permalink)
References (2 earlier) <tQLER-5LG-3@gated-at.bofh.it> <tQMAW-6l1-3@gated-at.bofh.it> <tQPIu-8h7-5@gated-at.bofh.it> <tQVEd-3Ts-7@gated-at.bofh.it> <tQXwl-5db-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Joel,

On Sun, Jun 11, 2017 at 07:55:50AM +0900, Joel Rees wrote:
> # If the address to be assigned is given first, which I think everyone
> # pretty much does:
> 
> myadm@mycomp:~$ env LANG=en_US.UTF-8 sudo ifconfig eth0:1 down
> myadm@mycomp:~$ env LANG=en_US.UTF-8 sudo ifconfig eth0:1
> 10.19.201.198 netmask 255.255.255.224 broadcast 10.19.201.223
> myadm@mycomp:~$ env LANG=en_US.UTF-8 sudo ifconfig eth0:1
> eth0:1    Link encap:Ethernet  HWaddr 53:bc:81:02:21:bb
>           inet addr:10.19.201.198  Bcast:10.19.201.223  Mask:255.255.255.224
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           Interrupt:42 Base address:0xa000
> 
> # it seems to see the address first and set things as intended in one pass.
> ---------------------------------
> 
> Which is confusing to my middle-aged brain.

Have you considered just using "ip"?

# ip address add 10.19.201.198/27 dev eth0

You don't need to specify the broadcast address as it will by
default be the top-most address (10.19.201.233 for
10.19.201.192/27).

> So I could suggest editing the man page, something along the lines
> of the following…

The binaries provided by the net-tools package are considered
obsolete on Linux, and from stretch onwards the package is not
marked essential. It would only be installed if a dependency pulled
it in (which is admittedly still very likely at this point).

I'm not trying to start an ip vs. ifconfig debate, but it is a fact
that development of net-tools has stagnated and already doesn't
support some kernel features.

It seems likely that eventually net-tools will not be in a default
Debian install and you would have to go out of your way to install
it.

So, I am not sure that anyone would be willing to keep the relevant
net-tools manpages up to date.

Even the net-tools maintainers in Debian have wanted it removed from
the base install for more than 8 years now. I'm not saying they
would refuse to fix documentation bugs, but the motivation may be
very low at this point.

Some more info:

    https://lwn.net/Articles/710533/

Cheers,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

ifconfig network resolution (Re: pointers to material for using  netbook's wireless as access point) Joel Rees <joel.rees@gmail.com> - 2017-06-10 04:00 +0200
  Re: ifconfig network resolution (Re: pointers to material for using  netbook's wireless as access point) Joel Rees <joel.rees@gmail.com> - 2017-06-10 08:50 +0200
  Re: ifconfig network resolution Pascal Hambourg <pascal@plouf.fr.eu.org> - 2017-06-10 09:00 +0200
    Re: ifconfig network resolution Joel Rees <joel.rees@gmail.com> - 2017-06-10 12:20 +0200
      Re: ifconfig network resolution Pascal Hambourg <pascal@plouf.fr.eu.org> - 2017-06-10 13:20 +0200
        Re: ifconfig network resolution Joel Rees <joel.rees@gmail.com> - 2017-06-10 16:40 +0200
          Re: ifconfig network resolution Joe <joe@jretrading.com> - 2017-06-10 17:00 +0200
            Re: ifconfig network resolution Cindy-Sue Causey <butterflybytes@gmail.com> - 2017-06-10 22:10 +0200
              Re: ifconfig network resolution Cindy-Sue Causey <butterflybytes@gmail.com> - 2017-06-10 22:20 +0200
                Re: ifconfig network resolution Lisi Reisz <lisi.reisz@gmail.com> - 2017-06-11 07:10 +0200
                Re: ifconfig network resolution Joel Rees <joel.rees@gmail.com> - 2017-06-11 10:00 +0200
                Re: ifconfig network resolution Greg Wooledge <wooledg@eeg.ccf.org> - 2017-06-13 14:30 +0200
          Re: ifconfig network resolution Joel Rees <joel.rees@gmail.com> - 2017-06-10 23:00 +0200
            Re: ifconfig network resolution Joel Rees <joel.rees@gmail.com> - 2017-06-11 01:00 +0200
              Re: ifconfig network resolution Joel Rees <joel.rees@gmail.com> - 2017-06-11 01:50 +0200
              Re: ifconfig network resolution Andy Smith <andy@strugglers.net> - 2017-06-11 04:20 +0200
                Re: ifconfig network resolution Joel Rees <joel.rees@gmail.com> - 2017-06-11 09:50 +0200
                Re: ifconfig network resolution Richard Owlett <rowlett@cloud85.net> - 2017-06-13 12:30 +0200
                Introductory iproute2 documentation (Was Re: ifconfig network  resolution) Andy Smith <andy@strugglers.net> - 2017-06-13 14:40 +0200
                Re: Introductory iproute2 documentation (Was Re: ifconfig network  resolution) Richard Owlett <rowlett@cloud85.net> - 2017-06-13 16:50 +0200
  Re: ifconfig network resolution (Re: pointers to material for using  netbook's wireless as access point) Joe <joe@jretrading.com> - 2017-06-11 10:00 +0200
    Re: ifconfig network resolution (Re: pointers to material for using  netbook's wireless as access point) Joel Rees <joel.rees@gmail.com> - 2017-06-11 10:10 +0200
      Re: ifconfig network resolution (Re: pointers to material for using  netbook's wireless as access point) Joe <joe@jretrading.com> - 2017-06-11 10:20 +0200

csiph-web