Page MenuHomeVyOS Platform

default-lifetime is not reflected in the RA message
Closed, ResolvedPublicBUG

Description

Following config is not reflected in the RA message.
router lifetime send out is still 1800s. So on-link computers regard this router as default gateway.

[edit]
vyos@vyos# set service router-advert interface eth0 default-lifetime 0
[edit]
vyos@vyos# commit
[edit]
vyos@vyos# save
Saving configuration to '/config/config.boot'...
Done
[edit]
vyos@vyos#
vyos@vyos:~$ sudo cat /etc/radvd.conf
### Autogenerated by service-router-advert.py ###

interface eth0 {
    IgnoreIfMissing on;
    AdvDefaultPreference low;
    AdvManagedFlag off;
    MaxRtrAdvInterval 600;
    AdvReachableTime 0;
    AdvIntervalOpt on;
    AdvSendAdvert on;
    AdvOtherConfigFlag off;
    AdvRetransTimer 0;
    AdvCurHopLimit 64;
    prefix fdbe:b950:34a2:0::/64 {
        AdvAutonomous off;
        AdvValidLifetime 2592000;
        AdvOnLink on;
        AdvPreferredLifetime 14400;
    };
};
vyos@vyos:~$

my config below:

interfaces {
    ethernet eth0 {
        address 192.168.2.57/24
        hw-id 00:0c:29:69:f3:6e
        ipv6 {
            address {
                eui64 fdbe:b950:34a2:0::/64
            }
        }
    }
    loopback lo {
    }
}
protocols {
    static {
        route 0.0.0.0/0 {
            next-hop 192.168.2.1 {
            }
        }
        route6 ::/0 {
            next-hop fe80::20c:29ff:feb0:c442 {
            }
        }
    }
}
service {
    router-advert {
        interface eth0 {
            default-lifetime 0
            default-preference low
            prefix fdbe:b950:34a2:0::/64 {
                no-autonomous-flag
            }
        }
    }
    ssh {
    }
}
system {
    config-management {
        commit-revisions 100
    }
    console {
        device ttyS0 {
            speed 115200
        }
    }
    host-name vyos
    login {
        user vyos {
            authentication {
                encrypted-password XXXX
                plaintext-password ""
            }
        }
    }
    name-server 192.168.2.1
    ntp {
        server 0.pool.ntp.org {
        }
        server 1.pool.ntp.org {
        }
        server 2.pool.ntp.org {
        }
    }
    syslog {
        global {
            facility all {
                level info
            }
            facility protocols {
                level debug
            }
        }
    }
}

Details

Difficulty level
Unknown (require assessment)
Version
vyos-1.3-rolling-202006170117
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)