... | ... | @@ -121,28 +121,45 @@ mne path set <UUID of Switch1> network-instances/network-instance[name=default]/ |
|
|
|
|
|
## CLI and the controller
|
|
|
|
|
|
### Setup centos devices
|
|
|
### Setup centos clients
|
|
|
|
|
|
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
|
|
|
`docker exec -it clab-gosdn_csbi_arista_base-centos1 bash`
|
|
|
#### Client Centos0
|
|
|
|
|
|
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:
|
|
|
|
|
|
```text
|
|
|
[root@centos1 /]# ip address add 10.0.0.100/24 dev eth1
|
|
|
[root@centos1 /]# ip route del default
|
|
|
[root@centos1 /]# ip route add default via 10.0.0.1 dev eth1
|
|
|
[root@centos1 /]# exit
|
|
|
```bash
|
|
|
ip address add 10.0.0.100/24 dev eth1
|
|
|
ip route del default
|
|
|
ip route add default via 10.0.0.1 dev eth1
|
|
|
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
|
|
|
[root@centos2 /]# ip address add 192.168.0.100/24 dev eth1
|
|
|
[root@centos2 /]# ip route del default
|
|
|
[root@centos2 /]# ip route add default via 192.168.0.1 dev eth1
|
|
|
[root@centos2 /]# exit
|
|
|
```bash
|
|
|
ip address add 192.168.0.100/24 dev eth1
|
|
|
ip route del default
|
|
|
ip route add default via 192.168.0.1 dev eth1
|
|
|
```
|
|
|
Afterwards, exit the bash:
|
|
|
```bash
|
|
|
exit
|
|
|
```
|
|
|
|
|
|
## Testing our setup
|
... | ... | @@ -150,6 +167,6 @@ and run the following commands: |
|
|
### Ping the centos devices with their ip's
|
|
|
|
|
|
```bash
|
|
|
docker exec -ti clab-gosdn_csbi_arista_base-centos1 ping 192.168.0.1
|
|
|
docker exec -ti clab-gosdn_csbi_arista_base-centos2 ping 10.0.0.1
|
|
|
docker exec -ti clab-gosdn_csbi_arista_base-centos0 ping 192.168.0.1
|
|
|
docker exec -ti clab-gosdn_csbi_arista_base-centos1 ping 10.0.0.1
|
|
|
``` |