NCLU cumulus 3.3.0 SVI delete config error


cumulus 3.3.0 Config Test SVI

SVI add
net add vlan 10 ip address 192.168.10.254/24

SVI Interface delete config
net del vlan 10 ip address

iface vlan10
ip address 192.168.10.254/24 --> delete

but

iface vlan10
vlan-id 10
vlan-raw-device bridge

not deleted.

net del int vlan10 -> command I get the following message:
ERROR: 'net (add|del) vlan ...' must be used to edit a vlan interface

net del vlan -> I can not find anything about that option.

'netd' command not support?

how to delete command option
/etc/network/interface config file self edit ?

3 replies

Userlevel 3
Looks like the command is wrong. Notice to remove the address you entered:
net del vlan 10 ip address
Then to delete the vlan interface, you entered:
net del int vlan 10
Try this:
net del vlan 10

thx, Comment Jason

i try command following message

net del int vlan 10
ERROR: Command not found

net del int vlan 10
^ Invalid value here
Use 'net help KEYWORD(s)' to list all options that use KEYWORD(s)

root@cumulus:~# net del int vlan -> tab
acl : access-list
alias : description/alias
bridge : interface
clag : Multi-Chassis Link Aggregation
igmp : Internet Group Management Protocol
ip : Internet Protocol version 4
ipv6 : Internet Protocol version 6
link : An interface
mtu : interface mtu
ospf : Open Shortest Path First (OSPFv2)
ospf6 : Open Shortest Path First (OSPFv3)
pim : Protocol Independent Multicast
post-down : run command after bringing interface down
post-up : run command after interface bring up
pre-down : run command before bringing the interface down
pre-up : run command before bringing the interface up
ptm-enable : Enable neighbor check with specified topology
stp : Spanning Tree Protocol
vrf : Virtual routing and forwarding


vlan-id parameter not found

try

net del vlan 10 -> success delete automatic config
But VLAN was also deleted.

Is there any way to keep VLAN and delete SVI?

Userlevel 3
Well, deleting the SVI does not delete the VLAN. All VLANs are always available to the bridge.
The vlan interface does not define the VLAN, but rather ties a layer3 endpoint to it. The bridge-vids command under the bridge interface is the easiest place to manage which VLANs you want to allow to transit the switch. This can be set on a per-port basis with a bridge-* command as well.

Reply