Jonathan Billings
2016-Sep-05 12:27 UTC
[CentOS] more than one IP address on network device?
On Sep 4, 2016, at 1:27 PM, Walter H. <walter.h at mathemainzel.info> wrote:> 'ifconfig' doesn't show these additional addresses ...This is one of the many reasons why people don?t use ?ifconfig? anymore. -- Jonathan Billings <billings at negate.org>
--On Monday, September 05, 2016 9:27 AM -0400 Jonathan Billings <billings at negate.org> wrote:> This is one of the many reasons why people don't use 'ifconfig' > anymore.Is there a preferred tool? Perhaps a script that will dump out the full network configuration for easy checking?
On Mon, 5 Sep 2016 15:05, Kenneth Porter wrote:> On Monday, September 05, 2016 9:27 AM -0400 Jonathan Billings wrote: > >> This is one of the many reasons why people don't use 'ifconfig' >> anymore. > > Is there a preferred tool? Perhaps a script that will dump out the full > network configuration for easy checking?How about using the "ip" tool? "ip addr show" and "ip route show" should give the needed info, at least with Centos 7.x - Yamaban.
Alexander Dalloz
2016-Sep-05 13:28 UTC
[CentOS] more than one IP address on network device?
Am 05.09.2016 um 14:27 schrieb Jonathan Billings:> On Sep 4, 2016, at 1:27 PM, Walter H. <walter.h at mathemainzel.info> wrote: >> 'ifconfig' doesn't show these additional addresses ... > > This is one of the many reasons why people don?t use ?ifconfig? anymore.As additional information: ifconfig as part of net-tools is deprecated since 2009. See for a longer discussion https://serverfault.com/questions/633087/where-is-the-statement-of-deprecation-of-ifconfig-on-linux net-tools isn't any longer installed by default on CentOS 7. It is time to let it go because of its shortcomings.> Jonathan Billings <billings at negate.org>Regards Alexander
On 05.09.2016 15:28, Alexander Dalloz wrote:> Am 05.09.2016 um 14:27 schrieb Jonathan Billings: >> On Sep 4, 2016, at 1:27 PM, Walter H. <walter.h at mathemainzel.info> >> wrote: >>> 'ifconfig' doesn't show these additional addresses ... >> >> This is one of the many reasons why people don?t use ?ifconfig? anymore. > > As additional information: ifconfig as part of net-tools is deprecated > since 2009.of course one can run ip .... commands having the same result as the ifconfig thing, but how would this go, when e.g. eth0 shall be up at OS startup? e.g. /etc/sysconfig/network-scripts/route6-sit1 with this content ::/0 dev sit1 does the job automatically using ip .... (ip route add ::/0 dev sit1) you will find e.g. where one runs iptables -A .... ip6tables -A ... or other firewall solutions; but all this doesn't make any sense as long it is done automatically after OS startup;> > https://serverfault.com/questions/633087/where-is-the-statement-of-deprecation-of-ifconfig-on-linux > > > net-tools isn't any longer installed by default on CentOS 7.no ip ... command?