VMware Cloud Community
SweNor
Contributor
Contributor

ESX Server add a additional subnet

I have ESX Server in subnet B (192.168.10.0)  and I have AD & DNS Server in Subnet A (192.168.0.0)

I have that

[root@localhost:~] esxcli network ip route ipv4 list

Network       Netmask        Gateway       Interface  Source

------------  -------------  ------------  ---------  ------

default       0.0.0.0        192.168.10.1  vmk0       MANUAL

192.168.0.0   255.255.255.0  192.168.10.0  vmk0       MANUAL

192.168.10.0  255.255.255.0  0.0.0.0       vmk0       MANUAL

What will do to get connect from Subnet A to Subnet B ?

Sokoban

Tags (1)
Reply
0 Kudos
4 Replies
jburen
Expert
Expert

If you want routing between two subnets you have to introduce a router... I assume you added a manual route: 192.168.0.0   255.255.255.0  192.168.10.0  vmk0       MANUAL. But this route points to the IP address of the vmkernel adapter... This will not work.

192.168.10.1 is your default gateway so this is where traffic destined to 192.168.0.0 will go to... This must be a router...

Consider giving Kudos if you think my response helped you in any way.
Reply
0 Kudos
SweNor
Contributor
Contributor

Hi Thanks for answer

Sorry,  I don´t understand

It´s that I will change ?

Network       Netmask        Gateway       Interface  Source

------------  -------------  ------------  ---------  ------

default       0.0.0.0       192.168.10.1  vmk0       MANUAL

192.168.0.0   255.255.255.0 192.168.10.0 vmk0       MANUAL

192.168.10.0  255.255.255.0  0.0.0.0       vmk0       MANUAL

To

Network       Netmask        Gateway       Interface  Source

------------  -------------  ------------  ---------  ------

default       0.0.0.0        192.168.0.0  vmk0       MANUAL

192.168.0.0   255.255.255.0 192.168.10.0 vmk0       MANUAL

192.168.10.0  255.255.255.0  0.0.0.0       vmk0       MANUAL

What is the command, to fix that

Sokoban

Reply
0 Kudos
jburen
Expert
Expert

Your host is in subnet A (192.168.10.0/24). All network traffic destined for another subnet must go to your default gateway first. In your case the default gateway is 192.168.10.1. I don't know where the entry 192.168.0.0   255.255.255.0 192.168.10.0 vmk0       MANUAL came from but it is telling your host that traffic for subnet 192.168.0.0 must go to 192.168.10.0 and that will not work... This is basic networking theory and not a specific ESXi issue...

Consider giving Kudos if you think my response helped you in any way.
Reply
0 Kudos
NathanosBlightc
Commander
Commander

Hi

welcome to the community

This is not an issue for the ESXi and vmkernel ports. You should make the related routing access between these two subnets, So you need to consider if there is an network device like router between these subnets to provide routing via two interfaces as the default gateway of each subnet, you must have access from server A to server B, if you configured their default gateway (DNS is not necessary) correctly in the TCP/IP stack configuration on configuration>networking tab.

Please mark my comment as the Correct Answer if this solution resolved your problem
Reply
0 Kudos