To start this, access the vCenter Appliance Management Interface aka VAMI, with your root credentials. 

Use https://[VCENTER_SERVER_IP]:5480 to access the VAMI

Navigate to Networking -> Manage -> Expand the “Networking Interfaces” -> Edit

vcsa change ip&&change ip for VMware vCenter Server Appliance

Change the IP Settings and save the settings with “OK” button

vcsa change ip&&change ip for VMware vCenter Server Appliance

Reboot the vCenter Server and check the accessibility of the vCenter with the new IP address. If you can access the vCenter just try to login and check the inventory objects.

My ESXi Servers were in disconnected state as below

vcsa change ip&&change ip for VMware vCenter Server Appliance

To change the IP address changes in the ESXi Hosts we need to manually edit the vpxa.cfg file located in the /etc/vmware/vpxa location otherwise remove the ESXi Hosts from the inventory and re-adding is required

 

1

cat /etc/vmware/vpxa/vpxa.cfg | grep "serverIp"

Edit the vpxa.cfg file with a text editor, I used vi editor which is very common one

vcsa change ip&&change ip for VMware vCenter Server Appliance

Find the “<serverIp>IP_ADDRESS</serverIp>” field and change to the new IP address

vcsa change ip&&change ip for VMware vCenter Server Appliance

Verify the changes

vcsa change ip&&change ip for VMware vCenter Server Appliance

Restart the hostd and vpxa services

vcsa change ip&&change ip for VMware vCenter Server Appliance

Use below commands to restart the services

 

1

/etc/init.d/hostd restart

 

1

/etc/init.d/vpxa restart

Once, those services restarted host will be automatically connected again to the vCenter server.

Feel free to use scripts to the bulk execution using your coding skills. I hope this helps.

VMware vSphere – How to Change VCSA 6.x IP address ?

JULY 10, 2019 BY LINGESWARAN R 2 COMMENTS

How to change VCSA (vCenter Server Appliance) 6.x IP address? VMware vSphere 6.7 U1 is the last version which offers Windows-based vCenter Server. Going forward, we must start adapting in-house vCenter appliance which runs on VMware Photon OS (Linux Variant). VMware doesn’t recommend to change the vCenter appliance IP address.  If  FQDN is set as an IP address during deployment, you can’t change the IP address. If you change from CLI or Linux console (editing network file), the vCenter page can’t be accessed due to broken SSO.

This article assumes that you have set the FQDN as a name during the deployment.

 

1. Login to VCSA Management page as root.  By default, VCSA management portal listens on 5480 port.

https://VCSA_Hostname:5480

vcsa change ip&&change ip for VMware vCenter Server Appliance

VMware vSphere Appliance Management – Login Page

 

2. Navigate to the networking tab and click on Manage.   Click on Edit to update the IP.

vcsa change ip&&change ip for VMware vCenter Server Appliance

VCSA – Networking – ipv4 Edit

 

3. If you are unable to update the IP using VAMI (vCenter Appliance Management Interface), we can use the VAMI cli from the console or using SSH. This issue is more likely that you have deployed VCSA  using IP address as FQDN.

vcsa change ip&&change ip for VMware vCenter Server Appliance

VCSA – ipv4 Updating disabled

 

4. Login to vCenter Appliance console directly as root user.

login as: root

VMware vCenter Server Appliance 6.5.0.12000

Type: vCenter Server with an embedded Platform Services Controller

[email protected]'s password:
Connected to service

    * List APIs: "help api list"
    * List Plugins: "help pi list"
    * Launch BASH: "shell"

Command> shell
Shell access is granted to root
[email protected] [ ~ ]#

 

5. Invoke VAMI config cli utility to update the ipv4 IP address.

[email protected] [ /etc/systemd/network ]# /opt/vmware/share/vami/vami_config_net

 Main Menu

0)      Show Current Configuration (scroll with Shift-PgUp/PgDown)
1)      Exit this program
2)      Default Gateway
3)      Hostname
4)      DNS
5)      Proxy Server
6)      IP Address Allocation for eth0
Enter a menu number [0]: 0

Network Configuration for eth0
IPv4 Address:   192.168.2.213
Netmask:        255.255.255.0
IPv6 Address:
Prefix:

Global Configuration
IPv4 Gateway:   192.168.2.1
IPv6 Gateway:
Hostname:       photon-machine
DNS Servers:
Domain Name:
Search Path:
Proxy Server:


 Main Menu

0)      Show Current Configuration (scroll with Shift-PgUp/PgDown)
1)      Exit this program
2)      Default Gateway
3)      Hostname
4)      DNS
5)      Proxy Server
6)      IP Address Allocation for eth0
Enter a menu number [0]: 6
Type Ctrl-C to go back to the Main Menu

Configure an IPv6 address for eth0? y/n [n]:
Configure an IPv4 address for eth0? y/n [n]: y
Use a DHCPv4 Server instead of a static IPv4 address? y/n [n]:
IPv4 Address [192.168.2.213]: 192.168.2.212
Netmask [255.255.255.0]:
IPv4 Address:   192.168.2.212
Netmask:        255.255.255.0

Is this correct? y/n [y]:

Reconfiguring eth0...

 

6. Reboot the appliance to take effect the new IP address.

 

7. Login back to VAMI console to check the new IP of VCSA.

vcsa change ip&&change ip for VMware vCenter Server Appliance

After changing IP address – VCSA

 

8. vCenter should be accessible using the new IP.

vcsa change ip&&change ip for VMware vCenter Server Appliance

vCenter – Login Page

 

 

If you are more familiar with the Linux operating system, you could directly edit the system network configuration and reboot the appliance.

[email protected] [ /etc/systemd/network ]# cat 10-eth0.network

[Match]
Name=eth0

[Network]
Gateway=192.168.2.1
Address=192.168.2.212/24
DHCP=no

[DHCP]
UseDNS=false
[email protected] [ /etc/systemd/network ]#

 

Hope this article is informative to you. Share it! Be Sociable !!!

Advertisements

FILED UNDER: VCSA APPLIANCEVMWARE VSPHERE 6.5TAGGED WITH: VCSA 6.XVMWARE VSPHERE

相关文章:

  • 2021-08-19
  • 2021-07-27
  • 2021-05-08
  • 2021-11-28
  • 2021-11-22
  • 2022-01-21
  • 2021-07-03
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2021-09-10
  • 2022-12-23
  • 2021-10-12
  • 2022-12-23
相关资源
相似解决方案