native vlans are set per interface
en - super user mode
config - configure mode
vlan 10 - creates vlan 10
interface vlan 10 - selects vlan 10 for configuring
interface ge 1 - selects interface 1
name dmz - names the vlan "dmz"
exit - exits the interface configuration, but remain in configure mode
end - exits configure mode all together
write or copy running-config startup-config - writes the running config to the startup config
show - show all running config of the current session, this has options that can be used along with it
? - gives hints and shows available options for commands
this is what a quick setup would look like to create vlan 10, rename it to printers, exit and save the config
en
vlan 10
interface vlan 10
name printers
end
write
setting a trunk port, changing the native vlan and allowing vlans
interafce ge 1
switchport mode trunk
switchport trunk native vlan 999
switchport trunk allowed vlan 1,10
end
write
removing vlans
switchport trunk allowed only vlan 1,10
end
write
set an interface to access, and add it to a vlan
interface ge 2
switchport mode access
switchport access vlan 10
end write