title: flokinet-001 - Introduction to the Arista CLI |
author: Nicholas Morrison nick@nanocat.net |
draft: false |
tags: [network, workshop, arista] |
categories: [workshop] |
noindex: true |
(and a bit about how it works with containerlab and docker)
$ ssh-keygen -R netlab.nanocat.net <- delete the cached fingerprint
(lab server rebuilt frequently)
$ ssh lab@netlab.nanocat.net
Password: (generated fresh each week)
$ sudo containerlab inspect --all
$ sudo docker exec -it clab-device–name Cli
$ sudo docker exec -it clab-pcXX-name bash
You will almost always enter enable
as your first
command after logging into your EOS (or IOS) device.
enable (privileged) mode
router>enable
router#
show
commandsdisable (unprivileged) modes
router#disable
router>
?
and <TAB>
are used for help and
command completion respectively. Try entering these commands: router#show ?
router#show ip ?
router#show ip route ?
router#sh<TAB> ip ro<TAB>
router#show running-config
router#show running
router#show run
router#sh run
router#sh ru
show version
show running-config
show interface
show interface status
show ip interface
show ip interface brief
router#configure
router(config)#
router(config)#interface ethernet1
router(config-if-eth1)#description This interface connects to the switch
router(config-if-eth1)#
router(config-if-eth1)#exit
router(config)#exit
router#
router#show running-config
router#configure
router(config)#interface ethernet1
router(config-if)#ip address 172.17.0.1/24
! IP configuration will be ignored while interface Ethernet1 is not a routed port.
router(config-if)#no switchport
router(config-if)#exit
router(config)#exit
router#show ip interface brief
...
router#configure
router(config)#interface ethernet1
router(config-if-eth1)#ip address 10.0.0.1/24
router(config-if-eth1)#end
router#show ip interface brief
...
router#configure
router(config)#interface ethernet1
router(config-if-eth1)#no ip address
router(config-if-eth1)#end
router#show ip int brief
...
Checking our LLDP neighbours:
router#show lldp neighbor
...
Ping another device:
router#ping 10.0.0.4
...