NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

ONTAP Discussions

what is the difference between the result of vlan create and vlan add?

dannyfu0928
3,243 Views

I am new to NetApp world, and trying to create VLAN interface, but I saw all VLAN interfaces of one active-active cluster were created by "vlan create", and all VLAN interfaces of another active-active cluster were created by "vlan add". the output of ifconfig -a of the 2 active-active clusters have no difference.

so what is the difference of the result of vlan create and vlan add?

1 REPLY 1

billshaffer
3,243 Views

Can you post the relevant /etc/rc lines?

vlan create is supposed to create one or more vlanids on an interface.  vlan add will add a vlanid to an interface that already has vlanids configured.

The man page says that vlan create will convert an interface to a vlan only interface, making it sound like you must run vlan create before vlan add - but it's possible that the code will, if vlan add is run on an interface that hasn't had a vlan create run, do the necessary stuff to set the interface up for vlans.

I would change the system that does everything my vlan add to vlan create, just in case that "extra functionality" goes away in the future.

Bill

Public