VMware Cloud Community
bmaubey
Contributor
Contributor
Jump to solution

VCSA change gateway adress

Hello to all,
 
I can't change the gateway address from the VCSA GUI (6.7).
Operation launches well, but the GW does not change for all that...
 
2021-06-04 11_13_26-VMware Appliance Management - Vivaldi.jpg
 
Always old GW after..
 
So I went from "VAMI" to Shell. But when I enter the correct gateway for my network interface, the change is not taken into account. It stays on the old IP address...
 
So I entered the address directly with the command : 
route add default gw 192.168.1.100
 
And it works ! But at each restart of VCSA, it's the old GW which returns...
My new GW address does not remain..
 
I don't understand anything and I've been looking for 1 day...
 
Can someone help me?
 
Thank you!
 
Baptiste
Labels (1)
0 Kudos
2 Solutions

Accepted Solutions
bmaubey
Contributor
Contributor
Jump to solution

Hello AJ,
 
Thank you for your reply.
 
This is the second thing I have tested.
First by the GUI, and then in command via VAMI (and then via "add route") 
But when I do that, I don't get an error message but it still doesn't take the new GW.
 
With pictures :
step 1 :
2021-06-04 14_54_44-localhost.localdomain - VMware ESXi - Vivaldi.jpg
 
Step 2, ctrl :
2021-06-04 14_53_14-localhost.localdomain - VMware ESXi - Vivaldi.jpg
 
 

View solution in original post

0 Kudos
Ajay1988
Expert
Expert
Jump to solution

Yes..Take a backup and do it. 

If you think your queries have been answered
Mark this response as "Correct" or "Helpful".

Regards,
AJ

View solution in original post

0 Kudos
6 Replies
Ajay1988
Expert
Expert
Jump to solution

Is it only the gateway to be changed ?

from SSH ..Run   /opt/vmware/share/vami/vami_config_net and follow options .

Make sure the VCSA VM can use the same GW using the same VM port group.

 

If you think your queries have been answered
Mark this response as "Correct" or "Helpful".

Regards,
AJ
0 Kudos
bmaubey
Contributor
Contributor
Jump to solution

Hello AJ,
 
Thank you for your reply.
 
This is the second thing I have tested.
First by the GUI, and then in command via VAMI (and then via "add route") 
But when I do that, I don't get an error message but it still doesn't take the new GW.
 
With pictures :
step 1 :
2021-06-04 14_54_44-localhost.localdomain - VMware ESXi - Vivaldi.jpg
 
Step 2, ctrl :
2021-06-04 14_53_14-localhost.localdomain - VMware ESXi - Vivaldi.jpg
 
 
0 Kudos
Ajay1988
Expert
Expert
Jump to solution

Can u check the below file?

/etc/systemd/scripts/network/10-eth0.network

 

If you think your queries have been answered
Mark this response as "Correct" or "Helpful".

Regards,
AJ
0 Kudos
bmaubey
Contributor
Contributor
Jump to solution

This is not exactly the right way (/etc/systemd/scripts/network/10-eth0.network) but here is the file.
The correct gw address is in "Network", the old one in "Route".
2021-06-04 15_13_34-localhost.localdomain - VMware ESXi - Vivaldi.jpg
 
 Can I change it directly in this file with VI?
0 Kudos
Ajay1988
Expert
Expert
Jump to solution

Yes..Take a backup and do it. 

If you think your queries have been answered
Mark this response as "Correct" or "Helpful".

Regards,
AJ
0 Kudos
bmaubey
Contributor
Contributor
Jump to solution

Wonderful! I'm going to go away for the weekend with a free mind 🙂

Thanks AJ !

Have a great weekend