I'm kinda new to networking so I'm going to do my best to try explain my issue.
The issue that I have is that I want to delete all default configuration for my xe interface.
Current configuration:
set interfaces xe-0/0/24 ether-options auto-negotiation
set interfaces xe-0/0/24 unit 0 family ethernet-switching vlan members default
set interfaces xe-0/0/24 unit 0 family ethernet-switching storm-control default
What I'm trying to do is make it look like this:
set interfaces xe-0/0/20 unit 0 family ethernet-switching interface-mode access
set interfaces xe-0/0/20 unit 0 family ethernet-switching storm-control default
How I am trying to do that:
delete interfaces xe-0/0/24 unit 0 family ethernet-switching
delete interfaces xe-0/0/24 ether-options
set interfaces xe-0/0/24 unit 0 family ethernet-switching storm-control default
set interfaces xe-0/0/24 unit 0 family ethernet-switching interface-mode access
After commit checking, there's an output error:
[edit interfaces xe-0/0/24 unit 0 family]
'ethernet-switching'
For access interface, please ensure vlan members is configured
error: configuration check-out failed
Somehow, it asks for a vlan for the interface to be on access mode. I know for sure, that our other switches are configured just like I'm trying to do here now.
Could it be because another switch has no default vlan configuration and this one still has?
OS Version: 13.2X51-D25.2
Model: QFX5100-48C-6Q
Other Switch Version: 14.1X53-D47.
Other Switch Model: EX4300-48T
Best Answer
I believe this is probably just an issue with the version of code on your QFX (it is quite old).
Junos ELS configuration (Layer 2 configuration used on EX4300 and QFX5100) commits fine when you don't specify a VLAN on an access port - it maps all traffic to the
default
VLAN (ID 1) that exists on every switch by default. In fact, you don't even need to specifyinterface-mode access
- all ports assume access mode whenfamily ethernet-switching
is enabled, unless you specify that they are in trunk mode.Having the
default
VLAN specifically defined on the switch makes no difference - even if you delete thedefault
VLAN configuration, it will still exist and still be mapped to all access ports.The only time the above is not true is if you create a custom-named VLAN 1 eg:
set vlans V1-DEFAULT vlan-id 1
- thedefault
VLAN will be deleted, and unconfigured access ports will no longer have an automatic mapping to VLAN 1, but this won't cause the commit error you see above.The most likely solution to your problem is to leave the default VLAN membership on your interface eg: