Koozali.org: home of the SME Server

(solved) Dummy NIC - permanent activation/deactivation on SME v9.1

Offline tomi

  • 11
  • +0/-0
Re: how to 'hide' the 2th network card on SME v9.1 installation
« Reply #15 on: October 10, 2016, 02:49:23 PM »
@Daniel B.

... Can you detail the reason not to use one of the real NIC, even if unplugged, as this would have the same effect than using the dummy NIC ...

the reason is the free will  :-|

... (support for the dummy NIC was added only for those case where you have a single NIC, and you can't run in server only mode because this single NIC is the public one)

 :-? 

* from https://bugs.contribs.org/show_bug.cgi?id=7200
Quote
RequestedDeletion 2013-01-07 06:07:01 CET

These patches will add the ability to run SME Server in servergateway mode with only 1 hardware ethernet adapter. It is based on RH/Centos dummy adapter.

(... Of course, I saw your patch also  :-) )

N.B.   I use SME in server&gateway mode
« Last Edit: October 10, 2016, 02:56:44 PM by tomi »

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: how to 'hide' the 2th network card on SME v9.1 installation
« Reply #16 on: October 10, 2016, 03:06:42 PM »
well.. what about explaining us all the plot? it seems you're telling us only a part of the picture ;-)

if you feel more confortable in italian (even if your english is fine), you can find me on the other forum or "offline" (see below my "avatar")

thank you

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: how to 'hide' the 2th network card on SME v9.1 installation
« Reply #17 on: October 10, 2016, 04:12:39 PM »
the reason is the free will  :-|

I'm just trying to understand the use case (maybe it's something useful enough to be added to the base). And as you consider this as urgent, I don't think it's just the free will. Anyway. If the 2 NIC you don't want to use are using a different driver than the one you want to use (you should be able to identify this in the NIC selection screen of the console, or using lscpi -vv), then you should be able to blacklist this single module (in /etc/modprobe.d/), and on next boot your system will see a single NIC, so will present the dummy NIC option
C'est la fin du monde !!! :lol:

guest22

Re: how to 'hide' the 2th network card on SME v9.1 installation
« Reply #18 on: October 10, 2016, 04:17:40 PM »
Here's an example for a use case:


Server (server & gateway) has 2 NIC's. 1 NIC is going to be used as WAN adapter and the other NIC for other purposes such as extra connection to the server (Rsync, monitoring, backup etc etc). The dummy should be used as the LAN adapter.

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: how to 'hide' the 2th network card on SME v9.1 installation
« Reply #19 on: October 10, 2016, 04:19:37 PM »
Server (server & gateway) has 2 NIC's. 1 NIC is going to be used as WAN adapter and the other NIC for other purposes such as extra connection to the server (Rsync, monitoring, backup etc etc). The dummy should be used as the LAN adapter.
I don't see this as a valid use case. Why wouldn't the "other purpose" (backup, monitoring etc...) wouldn't use the LAN NIC, as in such a situations, obviously, nothing else would be using this link.
C'est la fin du monde !!! :lol:

guest22

Re: how to 'hide' the 2th network card on SME v9.1 installation
« Reply #20 on: October 10, 2016, 04:22:14 PM »
I don't see this as a valid use case. Why wouldn't the "other purpose" (backup, monitoring etc...) wouldn't use the LAN NIC, as in such a situations, obviously, nothing else would be using this link.


Different network...

Offline tomi

  • 11
  • +0/-0
Re: how to 'hide' the 2th network card on SME v9.1 installation
« Reply #21 on: October 11, 2016, 08:13:15 AM »
... If the 2 NIC you don't want to use are using a different driver than the one you want to use (you should be able to identify this in the NIC selection screen of the console, or using lscpi -vv), then you should be able to blacklist this single module (in /etc/modprobe.d/) ...

Thanks, unfortunately, not the case.
However, I imagine that any had ever installed nvidia graphics driver on a CentOS system has learned the trick

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: how to 'hide' the 2th network card on SME v9.1 installation
« Reply #22 on: October 11, 2016, 08:53:04 AM »
Or maybe adding something like

Code: [Select]
alias eth1 off
alias eth2 off

In /etc/modprobe.d/disable_nic.conf. To be tested
« Last Edit: October 11, 2016, 09:08:21 AM by Daniel B. »
C'est la fin du monde !!! :lol:

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: how to 'hide' the 2th network card on SME v9.1 installation
« Reply #23 on: October 11, 2016, 10:25:35 AM »
Thanks, unfortunately, not the case.
However, I imagine that any had ever installed nvidia graphics driver on a CentOS system has learned the trick

nope, no Centos desktop here (I use/install other linux flavour..)
and no need for nvidia and/or graphics stuff on any server ;-)

Offline tomi

  • 11
  • +0/-0
Re: how to 'hide' the 2th network card on SME v9.1 installation
« Reply #24 on: October 11, 2016, 10:07:55 PM »
@ Stefano

caro Stefano, you missed a good time to be silent ...  :-(

I suggest you ask here on the forum if there is any connection between SME and RHEL/CentOS!
You might be surprised at the response you'll get.



Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: how to 'hide' the 2th network card on SME v9.1 installation
« Reply #25 on: October 11, 2016, 10:14:29 PM »
caro Stefano, you missed a good time to be silent ...  :-(

I suggest you ask here on the forum if there is any connection between SME and RHEL/CentOS!
You might be surprised at the response you'll get.

Please stay polite. Stefano knows probably better than you that SME is based on CentOS
C'est la fin du monde !!! :lol:

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: how to 'hide' the 2th network card on SME v9.1 installation
« Reply #26 on: October 11, 2016, 10:21:47 PM »
@ Stefano

caro Stefano, you missed a good time to be silent ...  :-(

I suggest you ask here on the forum if there is any connection between SME and RHEL/CentOS!
You might be surprised at the response you'll get.


Offline tomi

  • 11
  • +0/-0
Re: how to 'hide' the 2th network card on SME v9.1 installation
« Reply #27 on: October 12, 2016, 04:56:53 PM »
only polite:

I must first apologize because I could not respond immediately to some posts; unlike others, I do not have time to stay hooked on forums trying to hunt uninformed potential customers; my new clients come exclusively from recommendations of current or former clients.

Personally, I value and respect the generous effort of SME server project developers.
I understand very well the nature of work in the development of sotware package by a team that is based on volunteering; some come with competence in programming, others with willingness to related services such as accounting, cleaning, forums, translations etc ...

As a rule, I am rely on software documentation, when it exists.

About forums, I think (stress, personal opinion) that contain relatively little information directly usable and relatively much noise from dilettantes who have too much free time.

This discussion thread (with one notable exception) reconfirms my opinion.

The exception is the intervention of RequestedDeletion (who authored the Dummy NIC in SME server) with an
extremely elegant solution as update to another solution which he indicated to me via email after my help request by email too.



@Daniel B.

polite in the highest degree:

your statement ...

... Stefano knows probably better than you that SME is based on CentOS

... was made being as well informed as when you said ...

... (support for the dummy NIC was added only for those case where you have a single NIC, and you can't run in server only mode because this single NIC is the public one)

... or maybe  ...

I don't see this as a valid use case. Why wouldn't the "other purpose" (backup, monitoring etc...) wouldn't use the LAN NIC, as in such a situations, obviously, nothing else would be using this link.

... ?


Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: how to 'hide' the 2th network card on SME v9.1 installation
« Reply #28 on: October 12, 2016, 05:06:17 PM »
... was made being as well informed

Indeed, I'm well informed. Thanks for noticing
C'est la fin du monde !!! :lol:

Offline tomi

  • 11
  • +0/-0
Re: how to 'hide' the 2th network card on SME v9.1 installation
« Reply #29 on: October 12, 2016, 06:27:10 PM »
Indeed, I'm well informed. Thanks for noticing

type "def:irony" on Google for help
tapez "def:irony" sur Google pour l'aide