Two NIC Problem

New to Debian (Or Linux in general)? Ask your questions here!

Two NIC Problem

Postby rxkmir » 2017-10-23 00:53

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
rxkmir
 
Posts: 3
Joined: 2017-10-23 00:34

Re: Two NIC Problem

Postby Bulkley » 2017-10-23 02:01

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.
Bulkley
 
Posts: 5324
Joined: 2006-02-11 18:35

Re: Two NIC Problem

Postby rxkmir » 2017-10-23 02:21

I will try your suggestion. Thank you!
rxkmir
 
Posts: 3
Joined: 2017-10-23 00:34

Re: Two NIC Problem

Postby rxkmir » 2017-10-23 02:24

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.
rxkmir
 
Posts: 3
Joined: 2017-10-23 00:34

Re: Two NIC Problem

Postby p.H » 2017-10-24 07:17

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.
p.H
 
Posts: 160
Joined: 2017-09-17 07:12


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable