I have made vlan in my openwrt router using following commands:-
vconfig add eth1 10
ifconfig eth1.10 up
I have my isc-dhcp-server setup at ubuntu with interface enp4s0.10 having ip as 10.0.0.1
I am unable to get ip on eth1.10 from dhcp server. Even if I give static ip as
ifconfig eth1.10 10.0.0.25 up
That also didn't work.
But if I save settings in my /etc/config/network file then everything works fine.
I want to make vlan as dhcp client but using cli only and not by using any network configuration file, How can I achieve it?