[CentOS] nmcli: unwanted secondary ip-address

Tue Sep 22 12:35:53 UTC 2020
Simon Matter <simon.matter at invoca.ch>

> Dear Simon,
>
>
>> And can you diff the config of eno1 and eno4.
>
> # pwd
> /etc/sysconfig/network-scripts

Okay, nothing to find here.

What about eno2, you also have two IP addresses there and even in the same
subnet, is this wanted or not? Can the second address of eno2 be found in
the ifcfg file?

Both eno2 and eno4 have "scope global secondary dynamic" with the second
address and it doesn't seem to come from the base configuration.

Simon

>
> # diff -u ifcfg-eno1 ifcfg-eno4
> --- ifcfg-eno1    2020-09-21 17:23:25.576672703 +0200
> +++ ifcfg-eno4    2020-09-22 07:18:43.160532532 +0200
> @@ -3,15 +3,20 @@
>   BROWSER_ONLY=no
>   BOOTPROTO=none
>   DEFROUTE=no
> -IPV4_FAILURE_FATAL=yes
> -IPV6INIT=no
> -IPV6_AUTOCONF=no
> +IPV4_FAILURE_FATAL=no
> +IPV6INIT=yes
> +IPV6_AUTOCONF=yes
>   IPV6_DEFROUTE=no
>   IPV6_FAILURE_FATAL=no
>   IPV6_ADDR_GEN_MODE=stable-privacy
> -NAME=eno1
> -UUID=1e382037-fec9-493d-a4f2-ace7d73a1e7b
> -DEVICE=eno1
> +NAME=eno4
> +UUID=dbd95c24-1ed7-4292-8dba-3934bd1476a0
> +DEVICE=eno4
>   ONBOOT=yes
> -IPADDR=192.168.1.90
> +IPADDR=192.168.2.98
>   PREFIX=24
> +DNS1=10.10.100.1
> +DNS2=10.10.100.2
> +#DNS3=8.8.8.8
> +PEERDNS=no
> +PEERROUTES=no
>
>> Can you show  the config of eno4?
>
> # cat  ifcfg-eno4
> TYPE=Ethernet
> PROXY_METHOD=none
> BROWSER_ONLY=no
> BOOTPROTO=none
> DEFROUTE=no
> IPV4_FAILURE_FATAL=no
> IPV6INIT=yes
> IPV6_AUTOCONF=yes
> IPV6_DEFROUTE=no
> IPV6_FAILURE_FATAL=no
> IPV6_ADDR_GEN_MODE=stable-privacy
> NAME=eno4
> UUID=dbd95c24-1ed7-4292-8dba-3934bd1476a0
> DEVICE=eno4
> ONBOOT=yes
> IPADDR=192.168.2.98
> PREFIX=24
> DNS1=10.10.100.1
> DNS2=10.10.100.2
> #DNS3=8.8.8.8
> PEERDNS=no
> PEERROUTES=no
>
> Regards,
>
> Felix
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> https://lists.centos.org/mailman/listinfo/centos
>