Fixing your debian 7+ Linux cannot connect to two network interfaces simultaneously issue

Get all network interface via ifconfig -a

root@kali:~# ifconfig -a
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::a00:27ff:feb9:4199  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:b9:41:99  txqueuelen 1000  (Ethernet)
        RX packets 519  bytes 48678 (47.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 435  bytes 67138 (65.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.3.15  netmask 255.255.255.0  broadcast 10.0.3.255
        ether 08:00:27:50:61:71  txqueuelen 1000  (Ethernet)
        RX packets 87  bytes 18078 (17.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 203  bytes 21117 (20.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 160  bytes 9648 (9.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 160  bytes 9648 (9.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

For this case, we have eth0, eth1 to connect.

add the following lines to your /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

### Add the following
allow-hotplug eth0
iface eth0 inet dhcp

allow-hotplug eth1
iface eth1 inet dhcp

Save it.

And activate the network via ifup

ifup eth0
ifup eth1

Now you should be able to connect via 2 networks at the sametime, confirm it via ifconfig

root@kali:~# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.56.101  netmask 255.255.255.0  broadcast 192.168.56.255
        inet6 fe80::a00:27ff:feb9:4199  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:b9:41:99  txqueuelen 1000  (Ethernet)
        RX packets 655  bytes 58846 (57.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 543  bytes 93098 (90.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.3.15  netmask 255.255.255.0  broadcast 10.0.3.255
        ether 08:00:27:50:61:71  txqueuelen 1000  (Ethernet)
        RX packets 87  bytes 18078 (17.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 203  bytes 21117 (20.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 160  bytes 9648 (9.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 160  bytes 9648 (9.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0