NIC change; network doesn't work properly

MisterY

Renowned Member
Oct 10, 2016
141
4
83
38
hi,

I replaced the motherboard of my server. I got the problem that eth0 wasn't there anymore after the change so I had to set up the new LAN-Port zu eth1.

My /etc/network/interfaces looks something like that:
Code:
auto lo
iface lo inet loopback

auto eth1
iface eth1 inet manual (after the change this two lines were missing. no eth0 or eth1 was in the interfaces config, except the one at vmbr0)

auto vmbr0
iface vmbr0 inet static
        address  192.168.0.107
        netmask  255.255.255.0
        gateway  192.168.0.1
        bridge_ports eth1
        bridge_stp off
        bridge_fd 0

now I got the problem that the connection is sometimes there and sometimes lost. ping loses 50%, sometimes SSH works, sometimes not. Sometimes samba works, sometimes not.
what is the problem?


edit: I'm official an idiot...I should change the DHCP-Server bound as well....
 
Last edited:
hi,

I replaced the motherboard of my server. I got the problem that eth0 wasn't there anymore after the change so I had to set up the new LAN-Port zu eth1.

My /etc/network/interfaces looks something like that:
Code:
auto lo
iface lo inet loopback

auto eth1
iface eth1 inet manual (after the change this two lines were missing. no eth0 or eth1 was in the interfaces config, except the one at vmbr0)

auto vmbr0
iface vmbr0 inet static
        address  192.168.0.107
        netmask  255.255.255.0
        gateway  192.168.0.1
        bridge_ports eth1
        bridge_stp off
        bridge_fd 0

now I got the problem that the connection is sometimes there and sometimes lost. ping loses 50%, sometimes SSH works, sometimes not. Sometimes samba works, sometimes not.
what is the problem?


edit: I'm official an idiot...I should change the DHCP-Server bound as well....
edit 2: ssh, samba, nextcloud and webgui works. but apt-get update not. I got stucked here:

root@pve:~# apt-get update
0% [Connecting to ftp.de.debian.org (141.76.2.4)] [Connecting to download.proxmox.com (79.133.36.246)] [Connecting to security.debian.org (149.20.4.14)]

and I can't ping anything.

edit3: after changing the IP it works for now..
 
Last edited:
Hi, MisterY!

hi,
I replaced the motherboard of my server. I got the problem that eth0 wasn't there anymore after the change so I had to set up the new LAN-Port zu eth1.

Assigning interfaces (eth...) to networking adapters regulated in file:
/etc/udev/rules.d/70-persistent-net.rules
It looks like this:
Code:
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x8086:/sys/devices/pci0000:00/0000:00:1c.4/0000:02:00.0 (igb)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="2c:59:e5:42:94:e0", ATTR{dev_id}=="0x0",
ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x8086:/sys/devices/pci0000:00/0000:00:1c.4/0000:02:00.1 (igb)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="2c:59:e5:42:94:e1", ATTR{dev_id}=="0x0",
ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

For example: You can modify NAME="eth2" to "eth0"
and reboot node.
Or just delete all the lines in this file and reboot. Naming adapters will happen automatically for a new Motherboard.

Best regards,
Gosha
 
Last edited: