Arista EOS Commands
Arista EOS CLI commands for data center switching.
Switch Startup Procedure
Step 1: Power on switchConnect power and boot the switch
Step 2: Wait for bootWait 2-4 minutes for EOS to fully load
Step 3: Verify systemCheck system status after boot
show versionDisplay EOS version and uptime
show boot-configDisplay boot configuration
Step 4: Check interfacesVerify interface states
show interfaces statusDisplay interface status summary
Step 5: Verify protocolsCheck routing and switching protocols
show ip route summaryDisplay routing table summary
Basic Navigation
enableEnter privileged EXEC mode
configure terminalEnter global configuration mode
endExit to privileged EXEC mode
exitExit current mode
show running-configDisplay running configuration
show startup-configDisplay startup configuration
write memorySave configuration
bashEnter Linux shell
show versionDisplay EOS version and system info
show boot-configDisplay boot configuration
Interface Configuration
interface Ethernet<slot>/<port>Enter interface configuration mode
description <text>Set interface description
no shutdownEnable interface
shutdownDisable interface
speed <speed>Set interface speed (auto, 10, 100, 1000, 10g, 25g, 40g, 100g)
duplex <mode>Set duplex mode (auto, full, half)
switchport mode accessSet port to access mode
switchport access vlan <vlan-id>Assign VLAN to access port
switchport mode trunkSet port to trunk mode
switchport trunk allowed vlan <vlan-list>Set allowed VLANs on trunk
switchport trunk native vlan <vlan-id>Set native VLAN for trunk
channel-group <id> mode activeAdd interface to LACP port-channel
mtu <bytes>Set MTU size
VLAN Configuration
vlan <vlan-id>Create VLAN and enter VLAN config mode
name <vlan-name>Name the VLAN
state activeActivate VLAN
show vlanDisplay VLAN information
show vlan id <vlan-id>Display specific VLAN
no vlan <vlan-id>Delete VLAN
interface vlan <vlan-id>Create SVI for VLAN
ip address <ip> <mask>Assign IP to SVI
Port-Channel/MLAG
interface port-channel <id>Create or enter port-channel interface
show port-channelDisplay port-channel summary
show port-channel <id> detailedDisplay detailed port-channel info
show lacp neighborDisplay LACP neighbor information
mlag configurationEnter MLAG configuration mode
domain-id <id>Set MLAG domain ID
local-interface Vlan<id>Set MLAG local interface
peer-address <ip>Set MLAG peer IP address
peer-link Port-Channel<id>Set MLAG peer-link interface
show mlagDisplay MLAG status
show mlag detailDisplay detailed MLAG information
interface port-channel <id> mlag <id>Configure MLAG on port-channel
Routing - BGP
router bgp <as-number>Enter BGP configuration mode
router-id <router-id>Set BGP router ID
neighbor <ip> remote-as <as-number>Configure BGP neighbor
neighbor <ip> peer-group <group>Assign neighbor to peer group
neighbor <ip> maximum-routes <count>Set max routes from neighbor
network <prefix>Advertise network in BGP
aggregate-address <prefix> summary-onlyAggregate and suppress specific routes
show ip bgp summaryDisplay BGP neighbor summary
show ip bgp neighborsDisplay BGP neighbor details
show ip bgpDisplay BGP routing table
clear ip bgp * softSoft reset all BGP sessions
Routing - OSPF
router ospf <process-id>Enter OSPF configuration mode
router-id <router-id>Set OSPF router ID
network <network> <wildcard> area <area>Enable OSPF on network
passive-interface <interface>Set interface as passive
default-information originateAdvertise default route
max-lsa <count>Set maximum LSAs
show ip ospf neighborDisplay OSPF neighbors
show ip ospf interfaceDisplay OSPF interface info
show ip ospf databaseDisplay OSPF database
clear ip ospf processReset OSPF process
VXLAN/EVPN
interface vxlan <id>Create VXLAN interface
vxlan source-interface <interface>Set VXLAN source interface
vxlan udp-port <port>Set VXLAN UDP port (default 4789)
vxlan vlan <vlan-id> vni <vni>Map VLAN to VNI
vxlan flood vtep <ip-list>Configure flood list for BUM traffic
router bgp <as> vlan <vlan-id>Enter VLAN BGP config for EVPN
rd <rd-value>Set route distinguisher
route-target import <rt>Set import route target
route-target export <rt>Set export route target
redistribute learnedRedistribute learned routes
show vxlan vtepDisplay VXLAN VTEP information
show vxlan vniDisplay VNI mapping
show bgp evpn summaryDisplay EVPN BGP summary
QoS & Traffic Management
qos map cos <cos> to traffic-class <tc>Map CoS to traffic class
qos map dscp <dscp> to traffic-class <tc>Map DSCP to traffic class
priority-flow-control mode onEnable PFC on interface
priority-flow-control priority <priority> no-dropSet no-drop priority
policy-map type quality-of-service <name>Create QoS policy map
class <class-name>Enter class configuration
set traffic-class <tc>Set traffic class in policy
service-policy type qos input <policy>Apply QoS policy to interface
show qos interfaceDisplay QoS interface configuration
show policy-map interfaceDisplay applied policy maps
Security & ACLs
ip access-list <name>Create named ACL
permit <protocol> <source> <dest>Add permit rule
deny <protocol> <source> <dest>Add deny rule
ip access-group <acl> inApply ACL to interface inbound
show ip access-listsDisplay all ACLs
switchport port-securityEnable port security
switchport port-security maximum <count>Set max MAC addresses
switchport port-security violation shutdownSet violation action
storm-control broadcast level <percentage>Configure broadcast storm control
storm-control multicast level <percentage>Configure multicast storm control
spanning-tree bpduguard enableEnable BPDU Guard
spanning-tree portfastEnable PortFast
Monitoring & Troubleshooting
show interfacesDisplay all interface status
show interfaces statusDisplay interface line status
show interfaces countersDisplay interface counters
show interfaces counters errorsDisplay interface error counters
show mac address-tableDisplay MAC address table
show arpDisplay ARP table
show lldp neighborsDisplay LLDP neighbors
show lldp neighbors detailDisplay detailed LLDP info
show ip routeDisplay routing table
show loggingDisplay system logs
show processes topDisplay top processes
show system environment allDisplay environmental status
watch <seconds> <command>Repeat command at interval
tcpdump interface <interface>Capture packets on interface
System Management
hostname <name>Set hostname
ip name-server <ip>Configure DNS server
ntp server <ip>Configure NTP server
clock timezone <zone>Set timezone
username <user> privilege 15 secret <password>Create admin user
enable secret <password>Set enable password
management api http-commandsEnable HTTP API (eAPI)
no shutdownEnable HTTP API
snmp-server community <string> roConfigure SNMP read-only community
logging host <ip>Configure syslog server
show extensionDisplay installed extensions
extension <file.rpm>Install extension
copy <source> <destination>Copy files
dir flash:List files in flash