Arista EOS Cheatsheet
#
Arista EOS (Extensible Operating System) is the operating system used by Arista Networks devices, including switches and routers. This cheatsheet provides common commands and configurations for Arista EOS.
Basic Commands
#
Command/Option | Example | Description |
---|
show version | show version | Display the EOS version and system information |
show running-config | show running-config | Display the current configuration |
show system uptime | show system uptime | Display the system uptime |
configure terminal | configure terminal | Enter global configuration mode |
write memory | write memory | Save the configuration to startup configuration |
reload | reload | Reboot the device |
Interface Configuration
#
Command/Option | Example | Description |
---|
interface Ethernet1 | interface Ethernet1 | Enter interface configuration mode |
ip address | ip address 192.168.1.1/24 | Set IP address and subnet mask |
no shutdown | no shutdown | Enable the interface |
shutdown | shutdown | Disable the interface |
show interfaces | show interfaces | Display interface status |
VLAN Configuration
#
Command/Option | Example | Description |
---|
vlan 10 | vlan 10 | Create VLAN with ID 10 |
name | name Management | Name the VLAN |
interface Ethernet1 | interface Ethernet1 | Enter interface configuration mode |
switchport access vlan 10 | switchport access vlan 10 | Assign VLAN to an interface |
no vlan 10 | no vlan 10 | Remove VLAN configuration |
show vlan | show vlan | Display VLAN configuration |
Routing Configuration
#
Command/Option | Example | Description |
---|
router ospf 1 | router ospf 1 | Enter OSPF configuration mode |
network 192.168.1.0/24 | network 192.168.1.0/24 | Configure OSPF network |
router bgp 65001 | router bgp 65001 | Enter BGP configuration mode |
neighbor 192.168.1.2 | neighbor 192.168.1.2 remote-as 65002 | Configure BGP neighbor |
show ip route | show ip route | Display IP routing table |
Access Control
#
Command/Option | Example | Description |
---|
access-list 100 permit ip 192.168.1.0 0.0.0.255 any | access-list 100 permit ip 192.168.1.0 0.0.0.255 any | Create an access control list (ACL) |
interface Ethernet1 | interface Ethernet1 | Enter interface configuration mode |
ip access-group 100 in | ip access-group 100 in | Apply ACL to an interface |
no access-list 100 | no access-list 100 | Remove an ACL |
NAT Configuration
#
Command/Option | Example | Description |
---|
ip nat inside source list 1 interface Ethernet1 overload | ip nat inside source list 1 interface Ethernet1 overload | Configure NAT with access list |
access-list 1 permit 192.168.1.0 0.0.0.255 | access-list 1 permit 192.168.1.0 0.0.0.255 | Define NAT access list |
show ip nat translations | show ip nat translations | Display NAT translations |
Troubleshooting
#
Command/Option | Example | Description |
---|
ping 8.8.8.8 | ping 8.8.8.8 | Test connectivity to a remote host |
traceroute 8.8.8.8 | traceroute 8.8.8.8 | Trace the route to a remote host |
show logging | show logging | Display system logs |
show processes | show processes | Display running processes |
Management
#
Command/Option | Example | Description |
---|
write memory | write memory | Save the configuration |
reload | reload | Reboot the device |
show version | show version | Display EOS version and system information |
This cheatsheet covers essential Arista EOS commands for configuration, management, and troubleshooting of Arista devices. For detailed command syntax and additional options, consult the Arista documentation.