problem by starting to nics

ny_unity

New Member
Dec 30, 2024
4
0
1
Hello all,

I am new to proxmox and have some issue with set up two nics on host to two bridges and use them as interface in lxc.

Maybe, first my setup:
Code:
#Host
cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto eno1
iface eno1 inet manual

auto enp4s0
iface enp4s0 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.1.2/24
        gateway 192.168.1.1
        bridge-ports enp4s0
        bridge-stp off
        bridge-fd 0

auto vmbr1
iface vmbr1 inet static
        address 192.168.1.11/24
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0
        
#auf dem Container:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address 192.168.1.3/24
        gateway 192.168.1.1

auto eth1
iface eth1 inet static
        address 192.168.1.6/24
        gateway 192.168.1.1

sudo journalctl -xeu networking.service
Apr 09 12:38:58 adguard ifup[140]: RTNETLINK answers: File exists
Apr 09 12:38:58 adguard ifup[98]: ifup: failed to bring up eth1
Apr 09 12:38:58 adguard systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE

ifup -v eth1
ifup: configuring interface eth1=eth1 (inet)
run-parts --exit-on-error --verbose /etc/network/if-pre-up.d
ip addr add 192.168.1.6/255.255.255.0 broadcast 192.168.1.255     dev eth1 label eth1
Error: ipv4: Address already assigned.
ifup: failed to bring up eth1

I dont know whats the problem :-( Do you know what I made wrong?
 
Also, having the same subnet on two interfaces causes issues with routing unless you configure extra rules in your routing table. What's the intention behind having two IPs in the same subnet?
 
so, i have a wireguard server for my ihpone to connect them to my local lan at home. If they are connected, the should use the wireguard connection of my adguard. That works well. Then, my fritzbox is connected to fritzbox of my father. I want to be able to connect to the devices behind the fritzbox of my father. My intention was to have an other nic, which uses default my fritzbox gateway when a device trys to connect to a device to his network. It works now like I want to. But, at my adguard server, my eth1 only can ipv6, when I try to "ping -I eth1 google.de" it works with responding ipv6 adress. when I try to "ping -I eth1 8.8.8.8" it does not work. But, "ping -I eth0 8.8.8.8" works good. Any idea? :-D Thats why I am able to ping devices in network from my dad with my iphone, but not able to ping them at adguard server :-(