Dismiss Notice
We would like to remind you that we’re updating our login process for all 3CX forums whereby you will be able to login with the same credentials you use for the Partner or Customer Portal. Click here to read more.

Debian How do you use 2 Nic Cards!?

Discussion in '3CX Phone System - General' started by AZ-Brad, Jan 8, 2018.

Thread Status:
Not open for further replies.
  1. AZ-Brad

    Joined:
    Jun 29, 2017
    Messages:
    20
    Likes Received:
    4
    I need 2 internal network cards on different subnets to accomodate a location that uses 2 networks in one building.

    I've done this before in older versions of 3cx on windows without too much headache and I'm installing a Windows VM just to handle this but would rather get this working on Debian.

    Anyone have any insight on this?

    Thanks
     
  2. sip.bg

    sip.bg Active Member

    Joined:
    Nov 7, 2016
    Messages:
    704
    Likes Received:
    220
    Configure second LAN card without gateway and add static routing to access provider or other network via this card. For example:
    Code:
    # ------------------- Debian 9 --------------------
    
    # Edit /etc/network/interfaces
    
    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).
    
    source /etc/network/interfaces.d/*
    
    # The loopback network interface
    auto lo
    iface lo inet loopback
    
    # The primary network interface
    allow-hotplug ens192
    auto ens192
    iface ens192 inet static
        address 10.10.10.10/24
        gateway 10.10.10.1
    dns-nameservers 8.8.8.8
    
    # Interface to provider
    allow-hotplug ens224
    auto ens224
    iface ens224 inet static
        address 10.251.222.114/30
    
    # static route to provider -- network 213.226.61.0/24
    up route add -net 213.226.61.0/24 gw 10.251.222.113 dev ens224
    
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Edi Kojsi likes this.
  3. jimbo59

    jimbo59 Member

    Joined:
    Nov 17, 2017
    Messages:
    358
    Likes Received:
    77
    It's a NIC, not a NIC card.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Thread Status:
Not open for further replies.