How to “fix” VCSA IP settings from command line.

More and more often customers are looking for an easier method to deploy their vsphere management.

Vcenter traditionally has been an application loaded on top of Windows. .. but “the times they are a changing”

There are more use cases that the business requirements will allow for deployment of vcenter appliance.

But here is a quick post to help you “fix” your IP configuration for your appliance. Sometimes during the deploy of the VCSA OVA there is a miss communication or fat finger incident.. Here is how to address that.

It also allows you to change hostname, DNS, default gateway and proxy.

Summary:

Open a console session of the VCSA
Login as: root
Default password is: vmware
Execute the following command: /opt/vmware/share/vami/vami_config_net

/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

After executing the command, a menu is displayed. Within the menu It is possible to change the IP address, hostname, DNS, Default gateway and proxy server.
After allocating a static IP Address to the VCSA, the post configuration can be done by using the following URL:

https://static-ip-address:5480

Symptoms:

VCSA was powered on.

ping was not responsive

Verified IP address

cat /etc/sysconfig/networking/devices/ifcfg-eth0 showed

cat /etc/sysconfig/networking/devices/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=’static’
STARTMODE=’auto’
TYPE=Ethernet
USERCONTROL=’no’
IPADDR=’10.72.60.53′
NETMASK=’255.255.255.192′
BROADCAST=’10.72.60.63′

Advertisements

3 thoughts on “How to “fix” VCSA IP settings from command line.

  1. I have done this however the change does not occur even though the script confirms it is changing the gateway.

    Choose the interface to associate with default gateway [0]:
    Gateway will be associated with eth0
    IPv4 Default Gateway [xxxxxxxx.102]: xxxxxxxxxx.101
    IPv6 Default Gateway []:
    Reconfiguring eth0…
    net.ipv6.conf.eth0.disable_ipv6 = 1
    Network parameters successfully changed to requested values
    Enter a menu number [0]:

    Network Configuration for eth0
    IPv4 Address: xxxxxxxxx.244
    Netmask: xxxxxxxxxx
    IPv6 Address:
    Prefix:

    Global Configuration
    IPv4 Gateway: xxxxxxxxx.102 <<<<<<—— What it was just changed???!!!
    IPv6 Gateway:
    Hostname: localhost.localdom
    DNS Servers: 127.0.0.1, xxxxxxxxxx.253
    Domain Name:
    Search Path:
    Proxy Server:

    Like

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.