Error Adding Firewall Rule in vCenter VAMI: 'Unexpected error occurred while adding the firewall rule. Error in method invocation Invalid interface name entered.'
book
Article ID: 385034
calendar_today
Updated On:
Products
VMware vCenter ServerVMware vCenter Server 7.0VMware vCenter Server 8.0
Issue/Introduction
You are unable to add, edit, or remove firewall rules in vCenter by following the steps outlined here: VMware Documentation.
When attempting to add a firewall rule, the following error appears: "Unexpected error occurred while adding the firewall rule. Error in method invocation: Invalid interface name entered."
Cause
This issue may occur if the eth1 or another network interface was previously removed from the vCenter.
Resolution
Shutdown vCenter.
Take an offline snapshot of vCenter for backup purposes.
Power vCenter back on.
Connect to vCenter via SSH.
Enter shell mode.
Backup the current firewall configuration:
cd /etc/vmware/appliance/ cp firewall.conf firewall.conf.bak
Use vi to remove all lines referencing the missing NIC: