iperf3
iperf3 copied to clipboard
Iperf IP address with macvlan
Hello
I have tried to use this container where it is associated with a macvlan virtual interface, but when doing so I do not get an ip address assigned to the container running iperf
Therefore I have some questions Q1
- Is this a supported configuration, I am using postman , rhce 8, and the driver macvlan for the network namespace while using a vlan subinterface as parent interface The issue I saw is that a IP address was not assigned to the iperf container
- I tested a busybox Image and that is working using the same network name space , while ip is also assigned correctly
Q2
- when doing docker login ( podman login) to that container I have a prompt for admin/password to access the iperf container . What are this credentials ?
Thanks in advance
Hi @jcralbino, apologies for such a slow reply! Comments inline.
Hello
I have tried to use this container where it is associated with a macvlan virtual interface, but when doing so I do not get an ip address assigned to the container running iperf
Therefore I have some questions Q1
- Is this a supported configuration, I am using postman , rhce 8, and the driver macvlan for the network namespace while using a vlan subinterface as parent interface The issue I saw is that a IP address was not assigned to the iperf container
- I tested a busybox Image and that is working using the same network name space , while ip is also assigned correctly
Validate your macvlan issues with the following. Note, macvlan ipam will assign the first address in the subnet range unless excluded with additional parameters on the docker network create. Also, a quirk with macvlan is the parent host cannot connect to the container running the slave interface. Give the following a try replacing 192.168.1.0/24
with the range in your environment.
docker network create -d macvlan \
--subnet=192.168.1.0/24 \
--gateway=192.168.1.1 \
-o parent=enp8s0 macnet
docker run -it --rm --name=iperf3-server --net=macnet -p 5201:5201 networkstatic/iperf3 -s
docker run -it --rm --net=macnet networkstatic/iperf3 -c 192.168.1.2
Connecting to host 192.168.1.2, port 5201
[ 5] local 192.168.1.3 port 42660 connected to 192.168.1.2 port 5201
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 6.09 GBytes 52.3 Gbits/sec 0 532 KBytes
[ 5] 1.00-2.00 sec 6.07 GBytes 52.2 Gbits/sec 0 532 KBytes
[ 5] 2.00-3.00 sec 6.12 GBytes 52.5 Gbits/sec 0 617 KBytes
[ 5] 3.00-4.00 sec 6.05 GBytes 52.0 Gbits/sec 0 646 KBytes
[ 5] 4.00-5.00 sec 6.08 GBytes 52.3 Gbits/sec 0 731 KBytes
[ 5] 5.00-6.00 sec 6.08 GBytes 52.2 Gbits/sec 0 768 KBytes
[ 5] 6.00-7.00 sec 6.13 GBytes 52.6 Gbits/sec 0 848 KBytes
[ 5] 7.00-8.00 sec 6.10 GBytes 52.4 Gbits/sec 0 848 KBytes
[ 5] 8.00-9.00 sec 6.19 GBytes 53.2 Gbits/sec 0 1.00 MBytes
[ 5] 9.00-10.00 sec 6.08 GBytes 52.2 Gbits/sec 0 1.00 MBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 61.0 GBytes 52.4 Gbits/sec 0 sender
[ 5] 0.00-10.00 sec 61.0 GBytes 52.4 Gbits/sec receiver
iperf Done.
Q2
- when doing docker login ( podman login) to that container I have a prompt for admin/password to access the iperf container . What are this credentials ?
Thanks in advance
The docker login
command will try and log into docker hub or quay in the case of podman.
Instead try using:
docker exec -it <container name or ID> sh
Let me know if you have any other questions. I will close this out if I don't hear back, cheers!