docker network “l2bridge” - how to determine values for: subnet, gateway, DNS server and VLAN ID

%3CLINGO-SUB%20id%3D%22lingo-sub-2074327%22%20slang%3D%22en-US%22%3Edocker%20network%20%E2%80%9Cl2bridge%E2%80%9D%20-%20how%20to%20determine%20values%20for%3A%20subnet%2C%20gateway%2C%20DNS%20server%20and%20VLAN%20ID%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2074327%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22votecell%20post-layout--left%22%3E%3CDIV%20class%3D%22js-voting-container%20grid%20jc-center%20fd-column%20ai-stretch%20gs4%20fc-black-200%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22postcell%20post-layout--right%22%3E%3CDIV%20class%3D%22s-prose%20js-post-body%22%3E%3CP%3EI%20have%20VM%20with%20virtual%20network%2C%20let's%20say%20%22VN1%22%20and%20I%20need%20to%20connect%20from%20my%20docker%20container%20to%20that%20VM%20in%20Windows%20in%20Azure%20for%20Azure%20Container%20Instance.%20The%20proper%20way%20is%20that%20I%20need%20to%20create%20new%20l2bridge%20network%3A%3C%2FP%3E%3CPRE%3Edocker%20network%20create%20-d%20%22l2bridge%22%20--subnet%2010.244.0.0%2F24%20--gateway%2010.244.0.1%20%0A-o%20com.docker.network.windowsshim.vlanid%3D7%20%0A-o%20com.docker.network.windowsshim.dnsservers%3D%2210.244.0.7%22%20my_transparent%3C%2FPRE%3E%3CP%3EHow%20I%20could%20determine%20these%20values%20in%20Azure%3A%20%3CSTRONG%3Esubnet%3A%20gateway%3A%20DNS%20Server%3A%20VLANID%3A%3C%2FSTRONG%3E%20because%20I%20did%20not%20conifgure%20any%20of%20those%20previously%20once%20my%20VM%20has%20been%20created%20(only%20the%20name%20of%20Virtual%20Network)%20but%20now%20I%20need%20to%20re-use%20those%20in%20this%20kind%20of%20setup%20for%20l2%20network%20driver%3F%3CBR%20%2F%3E%3CBR%20%2F%3EMaybe%20I%20am%20lacking%20some%20permissions%20(for%20example%20even%20for%20my%20company%20subscription%20resource%20I%20cannot%20see%20all%20the%20details)%20but%20I%20am%20really%20confused%20how%20I%20should%20obtain%20values%20which%20I%20will%20use%20in%20my%20l2bridge%20network%20driver%20configuration%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E
New Contributor
 

I have VM with virtual network, let's say "VN1" and I need to connect from my docker container to that VM in Windows in Azure for Azure Container Instance. The proper way is that I need to create new l2bridge network:

docker network create -d "l2bridge" --subnet 10.244.0.0/24 --gateway 10.244.0.1 
-o com.docker.network.windowsshim.vlanid=7 
-o com.docker.network.windowsshim.dnsservers="10.244.0.7" my_transparent

How I could determine these values in Azure: subnet: gateway: DNS Server: VLANID: because I did not conifgure any of those previously once my VM has been created (only the name of Virtual Network) but now I need to re-use those in this kind of setup for l2 network driver?

Maybe I am lacking some permissions (for example even for my company subscription resource I cannot see all the details) but I am really confused how I should obtain values which I will use in my l2bridge network driver configuration?

Thanks

0 Replies