The vami_config_net tool was an old tool that was used in SRM, vSphere Replication. Starting in SRM and vSphere Replication 8.8, the vami_config_net tool is deprecated. Any changes via command line to networking should be made using the netmgr command set.
Note: You must be logged in as root user to execute the commands below.
To change the Hostname:
Get the system hostname.
netmgr hostname --get
Set the system hostname.
netmgr hostname --set --name <hostname>
To change DNS Servers details:
Get the list of DNS servers.
netmgr dns_servers --get
Set the DNS mode (DHCP or static) for one or more DNS servers (comma-separated list).
netmgr dns_servers --set --mode <dhcp|static> --servers <server1,server2,...>
Add a DNS server to the list of DNS servers.
netmgr dns_servers --add --servers <server>
Remove a specified DNS server from the list of DNS servers.
netmgr dns_servers --del --servers <server>
Note:
To change the ipv4 Address:
Get the IPv4 address for the specified interface
netmgr ip4_address --get --interface <ifname>
Set the IPv4 address
netmgr ip4_address --set --interface <ifname> --mode <dhcp|static|none> --addr <ipv4_address/prefix> --gateway <gateway_address>
Below commands to be used to restart service.
systemctl restart systemd-networkd (For network)
systemctl restart systemd-resolved (For DNS)
For SRM/VR VAMI access issues, ensure that the IP configuration of the SRM or vSphere Replication appliance includes the correct DNS server and default gateway.
If the configuration is incorrect, update the DNS and IPv4 gateway settings using the steps provided above.