Hello,
My laptop connects to the local network via Wi-Fi, receives an IP address via DHCP, I want the laptop to have two IP addresses. Is there any way to give a laptop two IP addresses from router DHCP server?
this depends above all on the operating system installed on the laptop, can I ask you what it is?
and above all does the router serve two classes of IP addresses?
example:
192.168.1.x lan
192.168.2.x guest
Laptops os is Windows 11, router is wrt3200ac OpenWRT 19.07,.
Primary network 192.168.100.0/24 home network
Secondary must be a 10.23.0.0/24 data to my office
I can assign manually in windows, but I need to get it from the DHCP server, because if I connect to another Wi-Fi I will have to manually change the ip again.
19.07 is very old -- it is EOL and unsupported. And it has many known security vulnerabilities.
Your device (I assume it is the WRT3200ACM) is supported by the latest (23.05) so I would highly recommend upgrading.
https://firmware-selector.openwrt.org/?version=23.05.2&target=mvebu%2Fcortexa9&id=linksys_wrt3200acm
How do you connect to your network? via wifi or via ethernet (or both)?
Also, why are two addresses necessary on your computer -- your router could handle inter-vlan routing fairly easily.
No direct solution other then let the router do the routing but for Windows you can use a utility called NetSetMan or Free IP Switcher to easy switch IP address