VMware vSphere

 View Only
  • 1.  VCSA change gateway adress

    Posted Jun 04, 2021 09:21 AM
    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


  • 2.  RE: VCSA change gateway adress

    Broadcom Employee
    Posted Jun 04, 2021 12:39 PM

    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.

     



  • 3.  RE: VCSA change gateway adress
    Best Answer

    Posted Jun 04, 2021 12:46 PM
    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
     
     


  • 4.  RE: VCSA change gateway adress

    Broadcom Employee
    Posted Jun 04, 2021 01:02 PM

    Can u check the below file?

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

     



  • 5.  RE: VCSA change gateway adress

    Posted Jun 04, 2021 01:17 PM
    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?


  • 6.  RE: VCSA change gateway adress
    Best Answer

    Broadcom Employee
    Posted Jun 04, 2021 01:23 PM

    Yes..Take a backup and do it. 



  • 7.  RE: VCSA change gateway adress

    Posted Jun 04, 2021 01:47 PM

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

    Thanks AJ !

    Have a great weekend