flokinet-002 - Introduction to the Arista CLI, continued

title: flokinet-002 - Introduction to the Arista CLI, continued
author: Nicholas Morrison
draft: false
tags: [network, workshop, arista]
categories: [workshop]
noindex: true

Connecting to the lab server

Diagram

Topology 01
Topology 01

The Final Goal

Step 0.5 - connect to your router

$ sudo containerlab inspect --all          <- show all running devices
$ sudo docker exec -it DEVICE-NAME Cli     <- connect to your device

Step 1 - configure eth1

The first step is to configure the IP address on your router’s eth1 interface.

Configure as follows:

rX#config                                   <- enter configuration mode

rX(config)#interface eth1                   <- enter the interface
                                               configuration context

rX(config-if-eth1)#show active              <- shows the configuration
                                               just for this context

rX(config-if-eth1)#description to Switch    <- create a human-readable
                                               description for this interface

rX(config-if-eth1)#no switchport            <- make this a routed (L3) port
                                               (default is switched (L2) port)

rX(config-if-eth1)#ip address 10.0.0.x/24   <- refer to the diagram
rX(config-if-eth1)#show active
rX(config-if-eth1)#end                      <- exit configuration mode

rX#show ip interface brief                  <- print a list of all interfaces
                                               with an IPv4 (L3) address

Step 1.5 - testing

Test by seeing if you can ping another router’s IP address. You might need to ask your lab-mates whether they have already configured their devices.

rX#ping 10.0.0.X
...

Step 2 - configure eth2

This is the interface that connects to the PC.

This interface will serve as the default gateway or gateway of last resort for the PC.

Configure as follows:

rX#config
rX(config)#interface eth2
rX(config-if-eth2)#show active
rX(config-if-eth2)#description to PC
rX(config-if-eth2)#no switchport
rX(config-if-eth2)#ip address 192.168.X.1/24   <- refer to the diagram
rX(config-if-eth2)#show active
rX(config-if-eth2)#end                         <- fully exit configuration mode
rX#show ip interface brief                     <- print a list of all interfaces with
                                                  a IPv4 (L3) address
...

Step 2.5 - testing

Test to see if you can ping your PC (192.168.X.2)

rX#ping 192.168.X.2

Step 3 - static routes

Step 3.1 - configure the static routes

Step 3.5 - testing

Test by pinging a remote PC from your own PC. You might have to check with the other lab members to make sure they’re up and running.

pcX$ ping 192.168.X.2

You can also try a traceroute:

pcX$ traceroute -n 192.168.X.2    <- the -n tells traceroute not to try to resolve
                                     the IP addresses into names
...

Things to try

Questions