title: flokinet-010 - putting it together |
author: Nicholas Morrison nick@nanocat.net |
draft: false |
tags: [network, workshop, arista] |
categories: [workshop] |
noindex: true |
Open your favourite Terminal Emulator
SSH to the netlab server:
$ ssh-keygen -R netlab.nanocat.net <- delete the cached fingerprint
(lab server rebuilt frequently)
$ ssh lab@netlab.nanocat.net
Password: (generated fresh each week)
List the running containerlab devices:
$ sudo containerlab inspect --all
Connect to an Arista device:
$ sudo docker exec -it clab-device–name Cli
.. or connect to a Linux device:
$ sudo docker exec -it clab-pcXX-name bash
Choose your root bridge, and then:
!
spanning-tree root primary
!
Verify the configuration with show spanning-tree
.
Please ignore the official management interface. We will create our own.
!
vlan XXX
name management
!
interface vlanXXX
description --- management
ip address x.x.x.x/x
!
interface ethXXX
description --- trunk to xxx:ethx
switchport mode trunk
switchport trunk allowed vlan XXX
!
Three customers, one VLAN each.
!
vlan XXX
name customer-XXX
!
interface ethXXX
switchport trunk allowed vlan add XXX
!
interface ethX
description --- customer pcX:eth1
switchport mode access
switchport access vlan XXX
!
On your router,
!
ip routing
!
and then for each VLAN:
!
interface vlanXXX
ip address x.x.x.1/x
!