title: flokinet-004 - VLANs |
author: Nicholas Morrison nick@nanocat.net |
draft: false |
tags: [network, workshop, arista] |
categories: [workshop] |
noindex: true |
$ 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
!
vlan 10
name web
vlan 20
name mail
!
! etc etc
!
interface ethernet 2
description -- link to web-b --
switchport
switchport mode access
switchport access vlan 10
!
!
interface ethernet 1
description -- link to switch-01 --
switchport
switchport mode trunk
switchport trunk allowed vlan 10,20
!
Look at packets without VLAN tags:
switch-01#bash
bash# tcpdump -i eth2 icmp
web-a# ping 192.168.10.20
Look at packets with VLAN tags:
switch-01#bash
bash# tcpdump -i eth1 icmp
web-a# ping 192.168.10.20
show mac address-table
show ip arp
show ip route
ping 192.168.x.x