Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions lab1/part1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ In this lab you need to create a bridge for the provided containerlab topology.

Put all of your commands in do-lab.sh

For this lab, you will need to create a switch/bridge, that will allow for transfer of data through the switch.

* Before submitting you lab, be sure to run `./provided/make_dirs.sh`
* When adding commands to the do-lab.sh the alias may or may not work, so the full command is recommended.
* Before running capture_submission.sh ensure that you have run `containerlab destroy` or the script will fail



# Provided

Expand Down
8 changes: 4 additions & 4 deletions lab1/part1/provided/capture_submission.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ chmod +x ./provided/change_mac_addrs.sh


# clear pcap files
docker exec clab-lab1-part1-host1 touch /lab-folder/h1.pcap
docker exec clab-lab1-part1-host2 touch /lab-folder/h2.pcap
docker exec clab-lab1-part1-host3 touch /lab-folder/h3.pcap
docker exec clab-lab1-part1-host4 touch /lab-folder/h4.pcap
docker exec clab-lab1-part1-host1 rm /lab-folder/h1.pcap
docker exec clab-lab1-part1-host2 rm /lab-folder/h2.pcap
docker exec clab-lab1-part1-host3 rm /lab-folder/h3.pcap
docker exec clab-lab1-part1-host4 rm /lab-folder/h4.pcap

# start packet capture in background
docker exec clab-lab1-part1-host1 tshark -i eth1 -f "host 1.1.1.1" -w /lab-folder/h1.pcap &
Expand Down
6 changes: 6 additions & 0 deletions lab1/part1/provided/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

rm -rf submission*
rm lab-host*/*pcap