how to check mac in vlan id
Torch the interface on which VLAN is running:
sorry it seems that our question is incomplete, for CRS-like devices.
If we create a new vlan, how to know if the vlan id we created is already read by CRS For example,
some features from other switches
xxx#sho mac-address-table vlan 968
VlanId Mac Address Type Interface State
968 xx:xx:xx:9f:f8:e0 Dynamic Te 0/41 Active
968 xx:xx:xx:f0:98:05 Dynamic Te 0/41 Active
968 xx:xx:xx:4a:72:4b Dynamic Te 0/41 Active
968 xx:xx:xx:f3:a0:f3 Dynamic Fo 0/52 Active
If you have bridge with vlan-filtering, then something like
/interface/bridge/host/print where vid=<vlan id>
where is VLAN ID you want to query.
Another possibility (not sure if it’s available on all ROS devices):
/interface/ethernet/switch/host/print where vlan-id=<vlan id>
thanks …
it works