How to Manage VLANs on Arista EOS: Create, Assign and Verify - 夜莺博客

How to Manage VLANs on Arista EOS: Create, Assign and Verify

Arista EOS handles VLANs the same way industry-standard 802.1Q networks expect, but the exact CLI steps are worth having memorized: create the VLAN, name it, assign ports in access or trunk mode, save, and verify. This quickstart walks through the complete lifecycle of a VLAN on an Arista switch — from the first vlan 10 to deletion — with copy-pasteable commands for your lab or production rollout.

Create a VLAN on Arista EOS

Access the switch CLI via SSH, console or Telnet, then enter privileged and configuration mode:

enable
configure terminal

Create the VLAN and give it a descriptive name. Valid VLAN IDs range from 1 to 4094:

vlan 10
name Marketing

Assign Ports to the VLAN

To assign an access port (single untagged VLAN):

interface Ethernet1
switchport mode access
switchport access vlan 10

To make the port a trunk carrying VLAN 10:

interface Ethernet1
switchport mode trunk
switchport trunk allowed vlan add 10

Save the Configuration

Exit to privileged EXEC mode and write the configuration to flash so the changes survive a reboot:

write memory

Verify the VLAN Configuration

show vlan
show vlan brief

show vlan brief gives a compact table of VLAN IDs, names and member ports — the fastest way to confirm your assignment took effect.

Delete a VLAN

To remove a VLAN that is no longer in use:

no vlan 10
write memory

Make sure the VLAN is not assigned to any active interface or virtual interface before deleting it, or the deletion will fail.

More Arista Content on This Site

Dive deeper with our Arista EOS VLAN configuration step-by-step guide, VLAN trunk and port-channel configuration, or brush up on the Cisco vs Arista command cheat sheet.

原文链接:https://help.quickhost.uk/index.php/knowledge-base/how-to-manage-vlans-arista