mirror of https://github.com/docker/docs.git
fix ip address on L3 network connectivity test
This commit is contained in:
parent
4d4a7352d1
commit
9f38de19a0
|
@ -348,10 +348,10 @@ $ docker network create -d ipvlan \
|
|||
$ docker run --net=ipnet210 --ip=192.168.214.10 -itd alpine /bin/sh
|
||||
$ docker run --net=ipnet210 --ip=10.1.214.10 -itd alpine /bin/sh
|
||||
|
||||
# Test L3 connectivity from 10.1.214.0/24 to 192.168.212.0/24
|
||||
# Test L3 connectivity from 10.1.214.0/24 to 192.168.214.0/24
|
||||
$ docker run --net=ipnet210 --ip=192.168.214.9 -it --rm alpine ping -c 2 10.1.214.10
|
||||
|
||||
# Test L3 connectivity from 192.168.212.0/24 to 10.1.214.0/24
|
||||
# Test L3 connectivity from 192.168.214.0/24 to 10.1.214.0/24
|
||||
$ docker run --net=ipnet210 --ip=10.1.214.9 -it --rm alpine ping -c 2 192.168.214.10
|
||||
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue