Arista EOS Commands

Arista EOS CLI commands for data center switching.

Switch Startup Procedure

Step 1: Power on switch

Connect power and boot the switch

Step 2: Wait for boot

Wait 2-4 minutes for EOS to fully load

Step 3: Verify system

Check system status after boot

show version

Display EOS version and uptime

show boot-config

Display boot configuration

Step 4: Check interfaces

Verify interface states

show interfaces status

Display interface status summary

Step 5: Verify protocols

Check routing and switching protocols

show ip route summary

Display routing table summary

Basic Navigation

enable

Enter privileged EXEC mode

configure terminal

Enter global configuration mode

end

Exit to privileged EXEC mode

exit

Exit current mode

show running-config

Display running configuration

show startup-config

Display startup configuration

write memory

Save configuration

bash

Enter Linux shell

show version

Display EOS version and system info

show boot-config

Display boot configuration

Interface Configuration

interface Ethernet<slot>/<port>

Enter interface configuration mode

description <text>

Set interface description

no shutdown

Enable interface

shutdown

Disable interface

speed <speed>

Set interface speed (auto, 10, 100, 1000, 10g, 25g, 40g, 100g)

duplex <mode>

Set duplex mode (auto, full, half)

switchport mode access

Set port to access mode

switchport access vlan <vlan-id>

Assign VLAN to access port

switchport mode trunk

Set 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 active

Add 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 active

Activate VLAN

show vlan

Display 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-channel

Display port-channel summary

show port-channel <id> detailed

Display detailed port-channel info

show lacp neighbor

Display LACP neighbor information

mlag configuration

Enter 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 mlag

Display MLAG status

show mlag detail

Display 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-only

Aggregate and suppress specific routes

show ip bgp summary

Display BGP neighbor summary

show ip bgp neighbors

Display BGP neighbor details

show ip bgp

Display BGP routing table

clear ip bgp * soft

Soft 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 originate

Advertise default route

max-lsa <count>

Set maximum LSAs

show ip ospf neighbor

Display OSPF neighbors

show ip ospf interface

Display OSPF interface info

show ip ospf database

Display OSPF database

clear ip ospf process

Reset 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 learned

Redistribute learned routes

show vxlan vtep

Display VXLAN VTEP information

show vxlan vni

Display VNI mapping

show bgp evpn summary

Display 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 on

Enable PFC on interface

priority-flow-control priority <priority> no-drop

Set 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 interface

Display QoS interface configuration

show policy-map interface

Display 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> in

Apply ACL to interface inbound

show ip access-lists

Display all ACLs

switchport port-security

Enable port security

switchport port-security maximum <count>

Set max MAC addresses

switchport port-security violation shutdown

Set violation action

storm-control broadcast level <percentage>

Configure broadcast storm control

storm-control multicast level <percentage>

Configure multicast storm control

spanning-tree bpduguard enable

Enable BPDU Guard

spanning-tree portfast

Enable PortFast

Monitoring & Troubleshooting

show interfaces

Display all interface status

show interfaces status

Display interface line status

show interfaces counters

Display interface counters

show interfaces counters errors

Display interface error counters

show mac address-table

Display MAC address table

show arp

Display ARP table

show lldp neighbors

Display LLDP neighbors

show lldp neighbors detail

Display detailed LLDP info

show ip route

Display routing table

show logging

Display system logs

show processes top

Display top processes

show system environment all

Display 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-commands

Enable HTTP API (eAPI)

no shutdown

Enable HTTP API

snmp-server community <string> ro

Configure SNMP read-only community

logging host <ip>

Configure syslog server

show extension

Display installed extensions

extension <file.rpm>

Install extension

copy <source> <destination>

Copy files

dir flash:

List files in flash