... | @@ -72,29 +72,29 @@ In here, the UUID is also visible which we need for the next step:![Lab00_mne_li |
... | @@ -72,29 +72,29 @@ In here, the UUID is also visible which we need for the next step:![Lab00_mne_li |
|
wget https://code.fbi.h-da.de/danet/gosdn/-/wikis/uploads/7cd972bedd7c3d29f83707907f8c42ae/Lab01.zip
|
|
wget https://code.fbi.h-da.de/danet/gosdn/-/wikis/uploads/7cd972bedd7c3d29f83707907f8c42ae/Lab01.zip
|
|
```
|
|
```
|
|
Afterwards, unzip Lab01.zip:
|
|
Afterwards, unzip Lab01.zip:
|
|
´´´bash
|
|
```bash
|
|
unzip Lab01.zip
|
|
unzip Lab01.zip
|
|
´´´
|
|
```
|
|
### Optional: Use the script in the now unzipped directory Lab01
|
|
### Optional: Use the script in the now unzipped directory Lab01
|
|
The directory Lab01 contains different files for the switch interfaces and routing configurations. For each of this, the path to the file has to be modified manually. To simplify the process and avoid typos, the script delivered with Lab01.zip can be used. To set it up, it has to be built:
|
|
The directory Lab01 contains different files for the switch interfaces and routing configurations. For each of this, the path to the file has to be modified manually. To simplify the process and avoid typos, the script delivered with Lab01.zip can be used. To set it up, it has to be built:
|
|
´´´bash
|
|
```bash
|
|
go build -o buildclicommands main.go
|
|
go build -o buildclicommands main.go
|
|
´´´
|
|
```
|
|
Then, it can simply be used by setting the UUID`s of the switches as parameters by startup:
|
|
Then, it can simply be used by setting the UUID`s of the switches as parameters by startup:
|
|
´´´bash
|
|
```bash
|
|
./buildclicommands -switch0 "<UUID of Switch0>" -switch1 "<UUID of Switch1>"
|
|
./buildclicommands -switch0 "<UUID of Switch0>" -switch1 "<UUID of Switch1>"
|
|
´´´
|
|
```
|
|
Now, you will find `commands-output.txt' which contains the ready-to-copy-paste commands!
|
|
Now, you will find `commands-output.txt' which contains the ready-to-copy-paste commands!
|
|
|
|
|
|
Please note: The path to the files is specified automatically by the location of the directory Lab01. The location of the directory Lab01 can be moved, but the script and configuration files have to stay inside the directory for the script to work!
|
|
Please note: The path to the files is specified automatically by the location of the directory Lab01. The location of the directory Lab01 can be moved, but the script and configuration files have to stay inside the directory for the script to work!
|
|
|
|
|
|
Next, the scheme tree for the switches need to be loaded, otherwise an error message appears it could not be found. For this, following commands need to be typed:
|
|
Next, the scheme tree for the switches need to be loaded, otherwise an error message appears it could not be found. For this, following commands need to be typed:
|
|
´´´
|
|
```bash
|
|
mne get path <UUID of Switch0>
|
|
mne get path <UUID of Switch0>
|
|
´´´
|
|
```
|
|
´´´
|
|
```bash
|
|
mne get path <UUID of Switch1>
|
|
mne get path <UUID of Switch1>
|
|
´´´
|
|
```
|
|
|
|
|
|
### Switch 0
|
|
### Switch 0
|
|
|
|
|
... | | ... | |