Skip to content

Arista EOS

Aliases: eos, arista, arista-eos, aristaeos · Filenames: *.eos

EOS configuration and CLI snippets. The lexer knows the short interface forms EOS accepts and prints — Et1, Po10, Ma1, Vl100 — alongside the long ones, and handles subinterfaces (Ethernet1.100) and the platform-specific types (Vxlan1, Recirc-Channel501, Peer-Ethernet1, Dps1).

analyse_text recognizes the ! device: … EOS-… header that show running-config writes, so guess_lexer identifies a saved EOS config without a filename.

```eos
! device: leaf1 (DCS-7050SX3-48YC8, EOS-4.29.2F)
!
transceiver qsfp default-mode 4x10G
!
service routing protocols model multi-agent
!
hostname leaf1
dns domain example.net
!
spanning-tree mode mstp
!
vlan 100
   name tenant-a
!
vrf instance TENANT-A
!
interface Ethernet1
   description spine1:Ethernet1/1
   mtu 9214
   no switchport
   ip address 10.1.1.1/31
!
interface Ethernet48
   description server1:eth0
   switchport access vlan 100
   spanning-tree portfast
!
interface Ethernet49/1
   description leaf2:Ethernet49/1
   channel-group 4094 mode active
!
interface Ethernet50/1
   description leaf2:Ethernet50/1
   channel-group 4094 mode active
!
interface Loopback0
   ip address 10.0.0.1/32
!
interface Management1
   ip address 172.16.0.11/24
!
interface Port-Channel10
   description server2 lag
   switchport access vlan 100
   port-channel min-links 1
   mlag 10
!
interface Port-Channel4094
   description mlag peer-link
   switchport mode trunk
   switchport trunk group MLAGPEER
!
interface Vlan100
   vrf TENANT-A
   ip address virtual 10.100.0.1/24
!
interface Vxlan1
   vxlan source-interface Loopback0
   vxlan udp-port 4789
   vxlan vlan 100 vni 10100
   vxlan vrf TENANT-A vni 50001
!
ip routing
ip routing vrf TENANT-A
!
ip prefix-list PL-LOOPBACKS
   seq 10 permit 10.0.0.0/24 eq 32
!
route-map RM-CONN-2-BGP permit 10
   match ip address prefix-list PL-LOOPBACKS
!
router bgp 65101
   router-id 10.0.0.1
   maximum-paths 4 ecmp 64
   neighbor SPINE peer group
   neighbor SPINE remote-as 65100
   neighbor SPINE send-community extended
   neighbor 10.1.1.0 peer group SPINE
   redistribute connected route-map RM-CONN-2-BGP
   !
   vlan 100
      rd 10.0.0.1:10100
      route-target both 10100:10100
      redistribute learned
   !
   address-family evpn
      neighbor SPINE activate
   !
   address-family ipv4
      no neighbor SPINE activate
!
management api http-commands
   protocol https
   no shutdown
!
end

```
! device: leaf1 (DCS-7050SX3-48YC8, EOS-4.29.2F)
!
transceiver qsfp default-mode 4x10G
!
service routing protocols model multi-agent
!
hostname leaf1
dns domain example.net
!
spanning-tree mode mstp
!
vlan 100
   name tenant-a
!
vrf instance TENANT-A
!
interface Ethernet1
   description spine1:Ethernet1/1
   mtu 9214
   no switchport
   ip address 10.1.1.1/31
!
interface Ethernet48
   description server1:eth0
   switchport access vlan 100
   spanning-tree portfast
!
interface Ethernet49/1
   description leaf2:Ethernet49/1
   channel-group 4094 mode active
!
interface Ethernet50/1
   description leaf2:Ethernet50/1
   channel-group 4094 mode active
!
interface Loopback0
   ip address 10.0.0.1/32
!
interface Management1
   ip address 172.16.0.11/24
!
interface Port-Channel10
   description server2 lag
   switchport access vlan 100
   port-channel min-links 1
   mlag 10
!
interface Port-Channel4094
   description mlag peer-link
   switchport mode trunk
   switchport trunk group MLAGPEER
!
interface Vlan100
   vrf TENANT-A
   ip address virtual 10.100.0.1/24
!
interface Vxlan1
   vxlan source-interface Loopback0
   vxlan udp-port 4789
   vxlan vlan 100 vni 10100
   vxlan vrf TENANT-A vni 50001
!
ip routing
ip routing vrf TENANT-A
!
ip prefix-list PL-LOOPBACKS
   seq 10 permit 10.0.0.0/24 eq 32
!
route-map RM-CONN-2-BGP permit 10
   match ip address prefix-list PL-LOOPBACKS
!
router bgp 65101
   router-id 10.0.0.1
   maximum-paths 4 ecmp 64
   neighbor SPINE peer group
   neighbor SPINE remote-as 65100
   neighbor SPINE send-community extended
   neighbor 10.1.1.0 peer group SPINE
   redistribute connected route-map RM-CONN-2-BGP
   !
   vlan 100
      rd 10.0.0.1:10100
      route-target both 10100:10100
      redistribute learned
   !
   address-family evpn
      neighbor SPINE activate
   !
   address-family ipv4
      no neighbor SPINE activate
!
management api http-commands
   protocol https
   no shutdown
!
end