Suppose the following interface configuration exists:
set interfaces ethernet eth0 address dhcp set interfaces ethernet eth0 ipv6 address commit
Get the following address:
Interface IP Address S/L Description --------- ---------- --- ----------- eth0 192.168.101.200/24 u/u fc00:470:f1cd:101:e3e:bfff:fe9d:7d00/64 240e:fe:8cdd:5001:e3e:bfff:fe9d:7d00/64 eth1 - A/D eth2 - A/D eth3 - A/D lo 127.0.0.1/8 u/u ::1/128
Modify the configuration to do the following:
set interfaces ethernet eth0 disable
Its interface management state is not "admin down", and it can still obtain the relevant address of IPv4
vyos@vyos# run show int Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down Interface IP Address S/L Description --------- ---------- --- ----------- eth0 192.168.101.200/24 u/u eth1 - A/D eth2 - A/D eth3 - A/D lo 127.0.0.1/8 u/u ::1/128 [edit]