title: S1E3 - 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)
Connect to the lab server:
Connect to your router:
You will almost always enter enable
as your first
command after logging into your EOS (or IOS) device.
router>enable
router#
prompt#
show
commandsrouter#disable
router>
prompt>
?
and <TAB>
?
and <TAB>
are used for help and
command completion respectively. Try entering these commands:
show ?
show ip ?
show ip route ?
sh<TAB> ip ro<TAB>
show running-config
show running
show run
sh run
sh ru
show
commandShow commands tell us about the device hardware status, its protocols, software version, and so on.
Try these commands:
show version
show running-config
show interface
show interface status
show ip interface
show ip interface brief
Entering “Global Configuration Mode”:
router#configure
router(config)#
Configuring an interface:
router(config)#interface ethernet1
router(config-if-eth1)#description This interface connects to the switch
router(config-if-eth1)#
Exiting interface configuration, back to global config, then exit config mode:
router(config-if-eth1)#exit
router(config)#exit
router#
Look at the configuration:
router#show running-config
Configuring an IP address on an ethernet interface:
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
...
Changing an IP address on an ethernet interface:
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
...
Removing the IP address from an ethernet interface:
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
...