Forum Discussion
Deleted
Nov 29, 2023ISSUE - sconfig interface index different / cannot edit static IP
Dear Microsoft Team, I would like to request looking into these issues: 1. Get-Netadapter ifIndex is different in sconfig. Sconfig ifindex do not match an are apparently wrong. this is reprodu...
Karl-WE
Jan 07, 2024MVP
I believe the underlying issue for issue #2 re-assigning the IP address is that the switching from DHCP to static ip uses new-netipadress and always requires a gateway.
there is "single way" to remove an existing gateway in sconfig. And if you just change the IP address, which would be possible without specifying the gateway once again, it could solve the issue,
the issue that once a static IP / gateway is set and you switch to DHCP, sconfig needs to take care to remove the NetIPAddress and the NetRoute. It seems it does not do this correctly.
filed in feedback hub, please consider looking into these.
#1 https://aka.ms/AAoha4y
#2 https://aka.ms/AAoha5j
there is "single way" to remove an existing gateway in sconfig. And if you just change the IP address, which would be possible without specifying the gateway once again, it could solve the issue,
the issue that once a static IP / gateway is set and you switch to DHCP, sconfig needs to take care to remove the NetIPAddress and the NetRoute. It seems it does not do this correctly.
filed in feedback hub, please consider looking into these.
#1 https://aka.ms/AAoha4y
#2 https://aka.ms/AAoha5j