The scenario is that I do have two Raspi 4 bullseye. The first Raspi is connected via the eth0 interface to a switch.The second Raspi is connected to the same switch with the eth0 interface and two USB/ETH interfaces eth1 and eth2. I want that ervery eth interface from Raspi2 have diffrent IP-addresses. As example for eth0->192.169.1.20, for eth1->.21 and for eth2->.22 .
Now I try to ping from Raspi1 all three ip-addresses. My problem is that I am able to ping every ip-addresses over the eth0 interface while the other both interface not acting. But I want every ip-address physically seperated through the interfaces.
I set the config in /etc/dhcpcd.conf
interface eth0
static ip_address=192.168.1.20
interface eth1
static ip_address=192.168.1.21
interface eth2
static ip_address=192.168.1.22
I also tried "inform" but that wasnt working, too.
ifconfig shows me:
eth0: flags 4099 <UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.1.20 netmask 255:255:255:0 broadcast 192.168.1.255
ether e4:5f:01:75:4e:97 txqueuelen 100 (Ethernet)
eth1: flags 4163 <UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.1.21 netmask 255:255:255:0 broadcast 192.168.1.255
ether 00:e0:4c:13:57:e4 txqueuelen 100 (Ethernet)
eth2: flags 4163 <UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.1.23 netmask 255:255:255:0 broadcast 192.168.1.255
ether ec:ad:e0:21:06:be txqueuelen 100 (Ethernet)
I skipped the inet6 line, because I typed it by hand and there was nothing special... Do I miss a point?
In the meantime I heard something about tuneables and sysctl. Does anyone know how to do it this way?