Page MenuHomeVyOS Platform

The interface cannot be disabled for network enabled configuration
Closed, ResolvedPublicBUG

Description

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]

Details

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

Event Timeline

c-po triaged this task as High priority.Aug 10 2020, 3:28 PM
c-po changed the task status from Open to Confirmed.Aug 12 2020, 7:23 PM

Reason is that dhclient will admin-up the interface. This issue has been there for a long long time!

erkin set Issue type to Bug (incorrect behavior).Aug 29 2021, 1:33 PM
erkin removed a subscriber: Active contributors.