Jump to content

ESXi 6.0 networking help

Go to solution Solved by Sir Asvald,
1 hour ago, leadeater said:

Only set a default gateway for the primary network adapter, never specify another one on a different interface otherwise Windows gets stupid and confused. Also use powershell to set the interface metric, lower number for the one you want to be primary.

https://www.ghacks.net/2016/12/02/change-network-adapter-priorities-in-windows-10/ (applies to more than Windows 10)

 

Then if you need any network traffic to go out the secondary adapter but is not on that same subnet so needs to be routed use route add cmdlet to setup a route entry.

 

Why do you need the second network adapter btw, direct connection using 10Gb?

 

Edit:

If Linux and not Windows same rules apply, just convert steps to Linux.

 

5 minutes ago, leadeater said:

Also I'm assuming you have setup another vSwitch on the ESXi host and added the other physical NIC to it? Or you are using VLANs and have correctly created a new port group and set the correct VLAN ID?

I got it to work. I removed the 3 NICs from the management side. Created 3 separate vSwitches. One, is DMZ, outside and inside.

Hello everyone. I've got ESXi 6.0 running and I want one of my VM to be on the 2 networks. Network 1 has an IP subnet of 192.168.1.0 and network 2 has IP subnet of 172.16.105.0. I'm trying to add secondary network card, but when i do, it uses the 172.16.105.0 network and not the 192.168.1.0. How would I go about fixing it?

CPU: AMD Ryzen 5 5600X | CPU Cooler: Stock AMD Cooler | Motherboard: Asus ROG STRIX B550-F GAMING (WI-FI) | RAM: Corsair Vengeance LPX 32 GB (4x 8 GB) DDR4-3000 CL16 | GPU: Nvidia GTX 1060 6GB Zotac Mini | Case: K280 Case | PSU: Cooler Master B600 Power supply | SSD: 1TB  | HDDs: 1x 250GB & 1x 1TB WD Blue | Monitor: 24" Acer S240HLBID | OS: Win 11 Pro.

 

Home Lab:  Lenovo ThinkCenter M82 Hyper-V Server 2022 | Dell OptiPlex 9020 Hyper-V Server 2022 | TP-LINK TL-SG108E | Cisco Catalyst C2960CG 8 Port Switch | HP MicroServer G8 SCCM Server | 2x Dell PowerEdge R630 Hyper-V Server 2022

 

 

Link to comment
https://linustechtips.com/topic/896287-esxi-60-networking-help/
Share on other sites

Link to post
Share on other sites

32 minutes ago, Abdul201588 said:

Hello everyone. I've got ESXi 6.0 running and I want one of my VM to be on the 2 networks. Network 1 has an IP subnet of 192.168.1.0 and network 2 has IP subnet of 172.16.105.0. I'm trying to add secondary network card, but when i do, it uses the 172.16.105.0 network and not the 192.168.1.0. How would I go about fixing it?

Only set a default gateway for the primary network adapter, never specify another one on a different interface otherwise Windows gets stupid and confused. Also use powershell to set the interface metric, lower number for the one you want to be primary.

https://www.ghacks.net/2016/12/02/change-network-adapter-priorities-in-windows-10/ (applies to more than Windows 10)

 

Then if you need any network traffic to go out the secondary adapter but is not on that same subnet so needs to be routed use route add cmdlet to setup a route entry.

 

Why do you need the second network adapter btw, direct connection using 10Gb?

 

Edit:

If Linux and not Windows same rules apply, just convert steps to Linux.

Link to comment
https://linustechtips.com/topic/896287-esxi-60-networking-help/#findComment-11043077
Share on other sites

Link to post
Share on other sites

1 hour ago, leadeater said:

Only set a default gateway for the primary network adapter, never specify another one on a different interface otherwise Windows gets stupid and confused. Also use powershell to set the interface metric, lower number for the one you want to be primary.

https://www.ghacks.net/2016/12/02/change-network-adapter-priorities-in-windows-10/ (applies to more than Windows 10)

 

Then if you need any network traffic to go out the secondary adapter but is not on that same subnet so needs to be routed use route add cmdlet to setup a route entry.

 

Why do you need the second network adapter btw, direct connection using 10Gb?

 

Edit:

If Linux and not Windows same rules apply, just convert steps to Linux.

 

5 minutes ago, leadeater said:

Also I'm assuming you have setup another vSwitch on the ESXi host and added the other physical NIC to it? Or you are using VLANs and have correctly created a new port group and set the correct VLAN ID?

I got it to work. I removed the 3 NICs from the management side. Created 3 separate vSwitches. One, is DMZ, outside and inside.

CPU: AMD Ryzen 5 5600X | CPU Cooler: Stock AMD Cooler | Motherboard: Asus ROG STRIX B550-F GAMING (WI-FI) | RAM: Corsair Vengeance LPX 32 GB (4x 8 GB) DDR4-3000 CL16 | GPU: Nvidia GTX 1060 6GB Zotac Mini | Case: K280 Case | PSU: Cooler Master B600 Power supply | SSD: 1TB  | HDDs: 1x 250GB & 1x 1TB WD Blue | Monitor: 24" Acer S240HLBID | OS: Win 11 Pro.

 

Home Lab:  Lenovo ThinkCenter M82 Hyper-V Server 2022 | Dell OptiPlex 9020 Hyper-V Server 2022 | TP-LINK TL-SG108E | Cisco Catalyst C2960CG 8 Port Switch | HP MicroServer G8 SCCM Server | 2x Dell PowerEdge R630 Hyper-V Server 2022

 

 

Link to comment
https://linustechtips.com/topic/896287-esxi-60-networking-help/#findComment-11043214
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×