question

LutzRahe-8474 avatar image
0 Votes"
LutzRahe-8474 asked LutzRahe-8474 answered

Windows 2019 with Container instance and 2x NIC

Hi

Is this possible on a Windows 2019 server?

88413-docker.jpg

On a Windows 2019 server with 2x NIC
NIC1 is using GW1 (for all windows traffic)
NIC2 only for the Container instance with a different network and gateway
There is NO data traffic between these 2 networks

How can I use the gateway 2? I have only one default gateway (as normal) :-)
Can I setup a routing table that when the destination is somewhere destination 2, the interface 2 and gateway 2 must be used?

Best,
Lutz


windows-server-2019
docker.jpg (21.4 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
Thank you for your understanding and support.

0 Votes 0 ·
SunnyQi-MSFT avatar image
0 Votes"
SunnyQi-MSFT answered

Hi,

Thanks for your patience during my consultancies.

My understanding is your Windows server 2019 has 2 NICs, NIC 1 has an IP address and gateway 1, NIC 2 has an IP address and gateway 2. And these 2 NICs are in different subnet. Please understand that I'm a little confused about your question, may I know if your goal is configure gateway 2 on NIC 1? If yes, I'm afraid your goal cannot be achieved, since IP of NIC 1 and gateway 2 are in different subnet, they cannot contact each other so that gateway 2 cannot route the traffic from NIC1 to the correct destination.

Best Regards,
Sunny


If the Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LutzRahe-8474 avatar image
0 Votes"
LutzRahe-8474 answered

Hi Sunny

Sorry for the delay
The goal is: All Windows related traffic shall use Gateway 1, all Docker related traffic (e.g. the Website or App inside the Docker instance) shall use gateway 2.
Both are different subnets
GW 1 = subnet 1 will user Express Route 1 to the on-premise datacenter (with an Azure Firewall)
GW 2 + subnet 2 shall use Express Route 2 to another site (video source without Azure Firewall)

My question is: how can I do this?
2x NIC? (as in the drawing above?)
I dont want to send ALL traffic the the Firewall and then based on the port / destination redirect this to another point. This can !!! be too slow.

Can I do this like above? With a local routing table in the windows host?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.