Changes
Page history
Update Lab01
authored
Jan 25, 2024
by
Katharina Renk
Show whitespace changes
Inline
Side-by-side
Labs/Lab01.md
View page @
2db98e27
...
@@ -121,28 +121,45 @@ mne path set <UUID of Switch1> network-instances/network-instance[name=default]/
...
@@ -121,28 +121,45 @@ mne path set <UUID of Switch1> network-instances/network-instance[name=default]/
## CLI and the controller
## CLI and the controller
### Setup centos
device
s
### Setup centos
client
s
Since we do not have access via gNMI on those devices, we have to perform some steps manually, within the container itself.
Since we do not have access via gNMI on those devices, we have to perform some steps manually, within the container itself.
First we have to get into the centos device via
#### Client Centos0
`docker exec -it clab-gosdn_csbi_arista_base-centos1 bash`
First we have to get into the first client centos0 via
```
bash
docker
exec
-it
clab-gosdn_csbi_arista_base-centos0 bash
`
```
and run the following commands:
and run the following commands:
```
text
```
bash
[root@centos1 /]# ip address add 10.0.0.100/24 dev eth1
ip address add 10.0.0.100/24 dev eth1
[root@centos1 /]# ip route del default
ip route del default
[root@centos1 /]# ip route add default via 10.0.0.1 dev eth1
ip route add default via 10.0.0.1 dev eth1
[root@centos1 /]# exit
exit
```
Afterwards, exit the bash:
```
bash
exit
```
```
#### Client Centos1
Now we access the bash of centos1:
`docker exec -it clab-gosdn_csbi_arista_base-centos2 bash`
```
bash
docker
exec
-it
clab-gosdn_csbi_arista_base-centos2 bash
```
And execute following commands:
```
text
```
bash
[root@centos2 /]# ip address add 192.168.0.100/24 dev eth1
ip address add 192.168.0.100/24 dev eth1
[root@centos2 /]# ip route del default
ip route del default
[root@centos2 /]# ip route add default via 192.168.0.1 dev eth1
ip route add default via 192.168.0.1 dev eth1
[root@centos2 /]# exit
```
Afterwards, exit the bash:
```
bash
exit
```
```
## Testing our setup
## Testing our setup
...
@@ -150,6 +167,6 @@ and run the following commands:
...
@@ -150,6 +167,6 @@ and run the following commands:
### Ping the centos devices with their ip's
### Ping the centos devices with their ip's
```
bash
```
bash
docker
exec
-ti
clab-gosdn_csbi_arista_base-centos
1
ping 192.168.0.1
docker
exec
-ti
clab-gosdn_csbi_arista_base-centos
0
ping 192.168.0.1
docker
exec
-ti
clab-gosdn_csbi_arista_base-centos
2
ping 10.0.0.1
docker
exec
-ti
clab-gosdn_csbi_arista_base-centos
1
ping 10.0.0.1
```
```