1.3.0 IP address won't delete from VLAN

set interfaces ethernet eth0 vif 201 address 100.2.51.1/29
commit;save;exit
configure
delete interfaces ethernet eth0 vif 201 address 100.2.51.1/29
commit;save;exit

show interfaces

eth0.201 100.2.51.1/29

I’m labbing up a new config for our network using BGP + OSPF in GNS3 with 1.3.0-epa3 and this is causing me issues. Is there some command to clear an IP from an interface after you “delete” it? Only way I’ve found so far is to delete the entire interface and rebuild it.

I haven’t tested this to see if it does it on a native interface or just a VLAN. But I will need to know how to fix it before I deploy VyOS into our core anywhere. My google fu has seemed to fail me on anyone else with this issue.

Hello @trendal,

We fixed this bug in the next version.
You can use the following command:

delete interfaces ethernet eth1 vif 201

vyos@vyos# run show interfaces
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
eth0             192.168.122.55/24                 u/u  
eth1             -                                 u/D  
eth1.201         100.2.51.1/29                     u/D  
eth2             -                                 u/D  
eth3             -                                 u/D  
lo               127.0.0.1/8                       u/u  
                 ::1/128                                
[edit]
vyos@vyos# delete interfaces ethernet eth1 vif 201
[edit]
vyos@vyos# commit
[edit]
vyos@vyos# run show interfaces 
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
eth0             192.168.122.55/24                 u/u  
eth1             -                                 u/D  
eth2             -                                 u/D  
eth3             -                                 u/D  
lo               127.0.0.1/8                       u/u  
                 ::1/128                                
[edit]
vyos@vyos#
1 Like

@RyVolodya perfect, and yes I was using the delete interface option to clear it in my testing but that isn’t really an option on a router in production.

I’ll carry on with testing on the 1.3.0 version and then look into a newer version test before I put anything in production.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.