Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Two NIC Problem

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
rxkmir
Posts: 3
Joined: 2017-10-23 00:34

Two NIC Problem

#1 Post by rxkmir »

Installed debian 9 for the first time.
Problem: I've two nics enp9s0 and enp11s0, whenever I try to enable enp11s0 it copies enp9s0's ip and configuration.
# 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
iface enp9s0 inet static
address 192.168.0.179
netmask 255.255.255.0
gateway 192.168.0.1

#Secondary
iface enp11s0 inet static
address 192.168.1.179
netmask 255.255.255.0# 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
iface enp9s0 inet static
address 192.168.0.179
netmask 255.255.255.0
gateway 192.168.0.1

#Secondary
iface enp11s0 inet static
address 192.168.1.179
netmask 255.255.255.0
gateway 192.168.1.1
gateway 192.168.1.1
I've tried to configure my interfaces and restart my network but it didn't seem to take any effect. Help would be appreciated :D

Bulkley
Posts: 6386
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: Two NIC Problem

#2 Post by Bulkley »

I'm just an amateur at networking but the first thing I'd do/etc/network/interfaces.d is remove everything above the second "source /etc/network/interfaces.d/*". You have repeats in there. Start by getting the primary working properly. Then you can tinker with the secondary.

rxkmir
Posts: 3
Joined: 2017-10-23 00:34

Re: Two NIC Problem

#3 Post by rxkmir »

I will try your suggestion. Thank you!

rxkmir
Posts: 3
Joined: 2017-10-23 00:34

Re: Two NIC Problem

#4 Post by rxkmir »

Follow up status:

the ip address 192.168.0.179 already works as is, only problem is getting the 2nd nic to work as another static ip address with a subnet of 1.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Two NIC Problem

#5 Post by p.H »

Is this the exact contents of /etc/network/interfaces ? It looks like you pasted it twice.
For now I am failing to understand what your problem is, information is missing or too vague.

Notes :
You must not have multiple "gateway" options on one interface.
You must not have multiple "gateway" options on interfaces which may be activated at the same time.

Post Reply