Cannot add new external interface to the same ip range of Lan

Hi
i did try to adding an extra lan port via an usb dongle. But what i cannot do is how to set this eth2 on the same ip realm as the main Lan eth1 ? I'm pretty sure we can assign different ip to any port...

Default install v23.05.2 : Wan (dhcp) and Lan 10.10.20.1 /28
usb-nic is: eth2

When i create an interface and set the usb nic with an ip like 10.10.20.5 it did not work. But if i put:

/etc/config/network
config interface 'nic25usb'
        option proto 'static'
        option device 'eth2'
        option ipaddr '10.10.50.5'
        option netmask '255.255.255.240'

i can ping directlty the other pc2 with a static ip 10.10.50.3.

I try to edit the Lan in Firewall Zone setting / advance setting and add the usb device to the Covered device. Then put pc2 in dhcp.. but nothing.

I try to set the eth2 as Unmanaged interface, and still set in the Lan covered device of the firewall zone = Not working.

Also, i never see either the eth2 info data over the Port Status or the Luci overview.

Thanks for letting me know what is missing or so..

If the interface is declared separately, you cannot have the same subnet - all interfaces must have different, non-overlapping subnets.

Instead, you use a bridge to put the two physical interfaces together into one logical device.

Let’s see your complete network config. We can advise specifics.

1 Like