-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Iperf IP address with macvlan #13
Comments
Hi @jcralbino, apologies for such a slow reply! Comments inline.
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 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.
The Instead try using:
Let me know if you have any other questions. I will close this out if I don't hear back, cheers! |
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
The issue I saw is that a IP address was not assigned to the iperf container
Q2
Thanks in advance
The text was updated successfully, but these errors were encountered: