Re: ifconfig not showing virtual IP when using NetworkManager

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



> On Oct 26, 2021, at 16:03, Jerry Geis <jerry.geis@xxxxxxxxx> wrote:
> 
> When using NetworkManager instead of the ifcfg-eth1/eth0 files - I make a
> nmcli connection and modify "Wired connection 1" +ipv4.addr IP/22
> kind of command - it works - which is great. It "adds" the virtual IP.
> 
> However - when doing ifconfig that "virtual" IP does not show up.  When
> using NetworkManager - to add the virtual IP - how do I get that to show
> using ifconfig also ?
> it used to show as eth1:0

1.) The “ifconfig” command is deprecated. Use the “ip” command instead, or “nmcli” to interact with NetworkMamager.

2.) “ifconfig” can’t show multiple IPs on an interface, one of the reasons why it is deprecated.

3.) Don’t use “eth0:1” style virtual interfaces, that was a hack for ifconfig to support multiple IPs.

—
Jonathan Billings

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux