vCenter

 View Only
Expand all | Collapse all

Changing default gateway on vCenter Appliance version 6

  • 1.  Changing default gateway on vCenter Appliance version 6

    Posted Jun 01, 2015 11:54 PM

    I just installed the VCSA 6.0 without any problems. Only issue is that the customer told me the wrong default gateway. I'd rather not redeploy the appliance. How do I go about changing the default gateway?



  • 2.  RE: Changing default gateway on vCenter Appliance version 6

    Posted Jun 02, 2015 01:56 AM

    access your VCSA Console using the below URL --> Login with root and password --> Network Tab --> Address Tab and change the Default Gateway here.

    https://VCSA(IP or FQDN):5480

    Good Luck :smileyhappy:



  • 3.  RE: Changing default gateway on vCenter Appliance version 6

    Posted Jun 02, 2015 01:58 AM

    6.0 doesn't listen on 5480 anymore.



  • 4.  RE: Changing default gateway on vCenter Appliance version 6

    Posted Jun 02, 2015 02:07 AM

    Try this:

    A. To apply a static route on an ESXi host, effective immediately, but not persistent across a reboot:

    Connect to host with a ssh client (I prefer putty) and execute the following command:

    # route add -net <TargetNetwork> netmask <NetmaskAddress> gw <GatewayAddress> dev <interface>

    e.g. route add -net 10.1.2.0 netmask 255.255.255.0 gw 10.1.1.1 dev eth0

    then run # route

    to verify that the route was added successfully. In our example, the entry 10.1.2.0 10.1.1.1 255.255.255.0 UG 0 0 0 eth0 should appear.

    B. To apply a persistent static route on the appliance:

    Connect to host with a ssh client and open the static-routes file with a text editor:

    # vi /etc/sysconfig/network/ifroute-eth0

    (supposing the interface is eth0)

    For every route add a line with the following format:

    <TargetNetwork> <GatewayAddress> <Netmask> <Interface>

    Then run the following command:

    # service network restart

    and finally verify the route with:# route



  • 5.  RE: Changing default gateway on vCenter Appliance version 6

    Posted Jun 02, 2015 03:50 PM

    That is for adding static routes. I need to change the default route.



  • 6.  RE: Changing default gateway on vCenter Appliance version 6

    Posted Jun 29, 2016 12:28 PM

    Yes it does, it works for me with version 6.0.0.20000



  • 7.  RE: Changing default gateway on vCenter Appliance version 6

    Posted Aug 27, 2016 01:11 AM

    How about after moving a vCenter installation the IP address shows last https://localhost.  I don't want to change my IP address - I just want my IP address back.  I used the Standalone converter to move it.  Any ideas?



  • 8.  RE: Changing default gateway on vCenter Appliance version 6

    Posted Jul 04, 2015 06:27 PM

    You'll have to redeploy because altering the Management network is not permitted in the current version of vCenter 6. I can't find proper documentation on the subject, but you get the following warning from the vCenter 6 console: 'Management network configuration is not allowed.'; screenshot attached.

    Never mind the following, it is fore ESXi

    There is this in the documentation, but I suspect it may be vestigial. (I'll look into it after the holiday.)

    vSphere 6.0 Documentation Center



  • 9.  RE: Changing default gateway on vCenter Appliance version 6

    Posted Jan 15, 2016 08:05 AM

    I dont know about vcenter appliance 6.But in vcenter appliance 5.5.You can change the default password by running the below command.

    /opt/vmware/share/vami/vami_config_net

    please update are you able to change the default gateway using this method.

    thanks

    regards

    Ritchie James



  • 10.  RE: Changing default gateway on vCenter Appliance version 6

    Posted Oct 08, 2017 06:25 PM

    Thank you! I was looking for a way to update my VMware vCenter Server Appliance and this script did the trick. Only caveat if you do not an additional interface it did need to be shutdown to add it. I keep my management and internet segmented and once I had the interface I changed the default gateway and it was off to the update races!

    This was on vCSA 6.5 and I confirmed with this post -How to “fix” VCSA IP settings from command line. | Digital Kungfu #Virtualization et al



  • 11.  RE: Changing default gateway on vCenter Appliance version 6

    Posted Sep 17, 2020 01:32 AM

    For this way was very usefull and I did

    I changed default gateway in VCSA 6.7 whit this methode it worked

    Thank you very much  for your info!

    Regards



  • 12.  RE: Changing default gateway on vCenter Appliance version 6

    Posted Jan 22, 2016 02:15 PM

    This is how I will answer to this question: No.

    With VCSA 6.0 GA, to change default gateway, you will have to re-deploy appliance.

    Workaround:

    Upgrade to U1, Get access to VAMI page now (5480), change the default gateway from VAMI page.

    Suhas



  • 13.  RE: Changing default gateway on vCenter Appliance version 6

    Posted Oct 09, 2017 02:35 PM

    Hi,

    You can use yast command.

    Just write yast  on command line, it will open the network configuration, use the tab and arrow key to go further.

    if you feel hard, you can also edit the route config file.

    Try to search route file under etc/

    Thanks



  • 14.  RE: Changing default gateway on vCenter Appliance version 6

    Posted Feb 23, 2018 02:54 PM

    1. Open a console session of vCenter Appliance 6 >>> Type "root" >>> Type "Password of root" >>> Run below cmd.

    2. # /opt/vmware/share/vami/vami_config_net
    3. # Enter No. 2 to change the default gateway >>> enter new gateway >> exit .

    Try this and it will help you .



  • 15.  RE: Changing default gateway on vCenter Appliance version 6

    Posted Feb 24, 2018 07:31 AM

    use below command by taking Vcsa on putty.

    yast

    it will show you the option to change the ip configuration alternatively you can use vcsa configure portle.

    https://vcenter-server-fqdn:5480

    Thanks

    Vmwarediary.com