Motto:
"Each expert has a horizon of knowledge:
when it narrows enough, he will proclaim
'this is my point of view!'"
Hello everybody,
I have a remote (vps) server that has 3 NICs but can only use one of them.
I am not able to remove or disable any of these boards before installing the operating system's.
I installed SME9.1 and everything works perfectly. SME automatically detects all 3 NICs (obviously, 2nd and 3rd lack of connectivity).
I need to 'hide' from SME the NICs without connectivity in order to be able to use a a Dummy NIC for the internal interface.
I tried removing them within Centos but after reconfiguration SME automatically reactivates them.
Eternal gratitude for help!
the solution:Here is an approach that might be worth a NFR for it touches 1 line in e-smith-base...
Use at your own risk!
edit /usr/share/perl5/vendor_perl/esmith/console/configure.pm
find the line: if (scalar @adapters == 1)
and change it to:
if (scalar @adapters == 1 || $db->get_value('ForceDummyNic') eq 'enabled')
Now you can toggle the yes/no listing of the Dummy NIC by setting the db key:
config set ForceDummyNic enabled and config delete ForceDummyNic
After setting the db key, you can run console and the dummy NIC will be listed and available to pick as the internal (LAN) adapter only.
HTH