Change ipv6 address on interface drops ipv4 default route

Hi, when I do any changes with ipv6 address it drops ipv4 default route.

upgraded to latest rolling.

vyos@gate3:~$ conf 
[edit]
vyos@gate3# set interfaces ethernet eth0 address 2a01:xxx:xx::3/64
[edit]
vyos@gate3# ip r
default nhid 9 via 1.2.3.129 dev eth0 proto static metric 20 
1.2.3.128/26 dev eth0 proto kernel scope link src 1.2.3.169 
172.16.0.0/24 dev eth1 proto kernel scope link src 172.16.0.203 
[edit]
vyos@gate3# commit
[edit]
vyos@gate3# ip r
1.2.3.128/26 dev eth0 proto kernel scope link src 1.2.3.169 
172.16.0.0/24 dev eth1 proto kernel scope link src 172.16.0.203 
[edit]
vyos@gate3#

Hello @vaka ,

What version are you using?

latest rolling. updated a hour ago

in 20221227 was the same bug

I checked on the rolling version. I don’t see a problem:

vyos@vyos# ip route
default nhid 8 via 192.168.122.1 dev eth0 proto static metric 20 
172.16.0.0/24 dev eth1 proto kernel scope link src 172.16.0.1
192.168.122.0/24 dev eth0 proto kernel scope link src 192.168.122.200 
[edit]
vyos@vyos# set interfaces ethernet eth0 address 2a01:caf:ee::3/64
[edit]
vyos@vyos# commit
[edit]
vyos@vyos# ip route
default nhid 8 via 192.168.122.1 dev eth0 proto static metric 20 
172.16.0.0/24 dev eth1 proto kernel scope link src 172.16.0.1 
192.168.122.0/24 dev eth0 proto kernel scope link src 192.168.122.200 
[edit]
vyos@vyos# run show interfaces ethernet
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
eth0             192.168.122.200/24                u/u  
                 2a01:caf:ee::3/64                      
eth1             172.16.0.1/24                     u/u  
eth2             -                                 u/D  
eth3             -                                 u/D  
[edit]
vyos@vyos# run show version
Version:          VyOS 1.4-rolling-202301200317
Release train:    current

Built by:         autobuild@vyos.net
Built on:         Fri 20 Jan 2023 03:17 UTC
Build UUID:       cfab8823-ddc2-4ef6-94e9-1d2309f2c1ff
Build commit ID:  35c958cbde618b

Architecture:     x86_64
Boot via:         installed image
System type:      KVM guest

Hardware vendor:  QEMU
Hardware model:   Standard PC (i440FX + PIIX, 1996)
Hardware S/N:     
Hardware UUID:    6f3a791c-bdc6-4a10-9a27-e1fcdddc7374

Copyright:        VyOS maintainers and contributors
[edit]
vyos@vyos#

Are you using bare metal or virtual machine?

@RyVolodya I used vyos on VM KVM-QEMU. Interfaces are virtio.

And I can’t reproduce it on new blank VyOS 1.4-rolling-202212210319 with the sample config.

It’s strange

I attached a sample config I used on two routers.

gate6.conf.txt (3.9 KB)