Hi,
I’ve installed a realtek 4 port eth card on a PC where Vyos is running. I’ve set a static ip address for every ethernet port.
this vyos machine is connected to a router with DHCP server.
If I do a network scan i found all the ip addresses of the realtek card I’ve set.
No bridge is set on the vyos machine.
why ?
is it possible to know trough vyos cmd line the ip adr of the linked eth port ?
1- no arp
2- ip scan with ip-advanced scanner software on windows
3- only ip address set for the ethernet port
4- latest rolling
5- no. just linked to other router
6- no
7- no vlan
If I had to guess though, I suppose the broadcast arp for “Who has 192.168.1.102” is received by 192.168.1.101 and because 102 is also configured on that router, that router replies with “I have 192.168.1.102 at 90:1b:0e:xx:xx:6b” via the known route out eth0.
I don’t really know what the expected behaviour is on a Linux box when you have the same subnet configured on two different L3 interfaces in the same routing domain.
I’m sorry I can’t help further. First we were debugging apparent LAN bridging but now it’s DHCP+Internet. This is such a confusing scattered approach I can’t help.
If you need isolation, all ports need their own IP subnet, now all of them are in the same subnet.
like
192.168.1.101/24
192.168.2.101/24
192.168.3.101/24
192.168.4.101/24
Technically you can use private vlan or more specific protected vlan to use the same subnet but enforce which interface are allowed to speak to which interface.
However I dont think VyOS supports this (mainly a switch feature and not a router feature).