Ip dhcp save configuration on VPCS

hello! i’m trying to figure out if VPCS can save the configuration of its ip dhcp. if i’m not mistaken, static ip configuration can be saved so when i restart the simulation on GNS3 i don’t need to configure it again manually. but when i try to save ip that comes from dhcp, it can’t be saved so i always have to perform “ip dhcp” manually. thank you!

If IP address is handed out using DHCP protocol, then "saving" it makes little sense for a few reasons. One is that lease validity is limited (sometimes to absurdly short times, such as few minutes). And it's perfectly according to RFC for DHCP server to change leased IP address each time lease is renewed (in which case it's technically not renewed but rather revoked and issued a new one). It is customary for DHCP client (with still valid lease) to include "wanted" IP address so it's likely that DHCP server will grant the same IP address if it fits DHCP server's constraints. Mind that DHCP server does keep track of all valid leases so it's likely that DHCP client gets same IP address even if it doesn't request it (e.g. because of reboot which normally causes amnesia to DHCP client). All in all, if client doesn't get same IP address from DHCP server, then there's likely a good reason for it.

ahh okay i see. but is it possible to configure the VPCS to automatically performed the dhcp so that i shouldn’t manually type “ip dhcp” every time i restart the simulation?