Debian How do you use 2 Nic Cards!?

Status
Not open for further replies.

AZ-Brad

Platinum Partner
Advanced Certified
Joined
Jun 29, 2017
Messages
39
Reaction score
15
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
 
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
 
It's a NIC, not a NIC card.
 
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
111,880
Messages
589,533
Members
164,735
Latest member
998742