Ghost network adapter eth2

Document ID : KB000095834
Last Modified Date : 15/05/2018
Show Technical Document Details
Question:
There is an issue with networking. 
Although eth0 is configured under option 1) Configure system settings and  then option 1) Configure networking and system time settings , the eth0 interface does not show when we select option 2) Display current network configuration. 
We fixed this with command: chmod 755 /etc/sysconfig/network-scripts/ifcfg-eth0 
Still the system gives messages regarding eth2. This interface was configured in the passed, but was removed some time ago. 
When we reboot the virtual appliance we get issues with this ghost eth2 adapter. 

Can you tell me where the CA API Gateway stores the network configuration entered on the ssgconfig menu? Perhaps some old configuration still exists somewhere under /opt/SecureSpan/... 
Environment:
9.3
Answer:
To remove a network interface ie. eth2 in your case: 

1. Ensure that NO Listen Ports are tied to the interface and if so configure so they are using another interface; which can be verified by the policy manager; 
2. Log into the Gateway through an SSH connection as the ssgconfig user 
3. Select option 3 for privileged user access 
4. Remove the network interface file by running the command: 
>> rm /etc/sysconfig/network-scripts/ifcfg-ethX. 
Replace the x with the number of the interface, in your case, it would be eth2. 
5. Verify that no custom rules have been generated in the iptables file at /etc/sysconfig/iptables for this interface. 
If so, please change the rules accordingly to reflect available interfaces. 
There are references to eth2 and eth3 in /etc/sysconfig/iptables for things like DNS and NTP but they can be left alone as they are default for all the Layer 7 Gateway.   They will be ignored if no interfaces exist and eth0 already exists to handle this traffic. 
6. Finally, please Restart the appliance