|
| 1 | +--- |
| 2 | +title: Windows Images - Network configuration now uses DHCP. Serial console enabled |
| 3 | +status: changed |
| 4 | +date: 2025-08-25 |
| 5 | +category: compute |
| 6 | +product: instances |
| 7 | +--- |
| 8 | + |
| 9 | +The newly released Windows server 2022 and Windows server 2022 core images now use DHCP for network configuration. This is the default mechanism for all existing Instances O/S Images. |
| 10 | + |
| 11 | +For currently running instances, no specific network configuration is required unless you decide to change the public IPv4 address of your instance. |
| 12 | + |
| 13 | +In this case, the existing static configuration will remain and your instance will keep using the previous public IPv4 address. To enable DHCP configuration for your instance do the following prior to setting a new public IPv4 address. |
| 14 | + |
| 15 | +<Message type=important> There is a risk of loosing network connectivity while doing the following steps. It is advisable to enable the serial console prior to run those steps so you keep serial access to your instance. The method is described in the document [Azure Serial Console for Windows](https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/windows/serial-console-windows)</Message> |
| 16 | + |
| 17 | +Not that the last step reboots your instance. This step may be delayed until a reboot is possible : |
| 18 | +``` |
| 19 | + ================================================================================ |
| 20 | + Welcome to Windows Server 2022 Datacenter |
| 21 | + ================================================================================ |
| 22 | + |
| 23 | + 1) Domain/workgroup: Workgroup: WORKGROUP |
| 24 | + 2) Computer name: WIN-010DQB68HIR |
| 25 | + 3) Add local administrator |
| 26 | + 4) Remote management: Enabled |
| 27 | + |
| 28 | + 5) Update setting: Download only |
| 29 | + 6) Install updates |
| 30 | + 7) Remote desktop: Enabled (all clients) |
| 31 | + |
| 32 | + 8) Network settings |
| 33 | + 9) Date and time |
| 34 | + 10) Telemetry setting: Required |
| 35 | + 11) Windows activation |
| 36 | + |
| 37 | + 12) Log off user |
| 38 | + 13) Restart server |
| 39 | + 14) Shut down server |
| 40 | + 15) Exit to command line (PowerShell) |
| 41 | + |
| 42 | +Enter number to select an option: 8 |
| 43 | + ================================================================================ |
| 44 | + Network settings |
| 45 | + ================================================================================ |
| 46 | + |
| 47 | + Available network adapters: |
| 48 | + |
| 49 | + Index # | IP address | Description |
| 50 | + 1 | 1.1.1.1 | Red Hat VirtIO Ethernet Adapter |
| 51 | + |
| 52 | + Select network adapter index # (Blank=Cancel): 1 |
| 53 | + ================================================================================ |
| 54 | + Network adapter settings |
| 55 | + ================================================================================ |
| 56 | + |
| 57 | + NIC index: 1 |
| 58 | + Description: Red Hat VirtIO Ethernet Adapter |
| 59 | + IP address: 1.1.1.1, |
| 60 | + fe80::dc00:ff:ff:ff:ff:ff |
| 61 | + Subnet mask: 255.255.255.255 |
| 62 | + DHCP enabled: False |
| 63 | + |
| 64 | + Default gateway: 62.210.0.1 |
| 65 | + Preferred DNS server: |
| 66 | + Alternate DNS server: |
| 67 | + |
| 68 | + 1) Set network adapter address |
| 69 | + 2) Set DNS servers |
| 70 | + 3) Clear DNS server settings |
| 71 | + |
| 72 | + Enter selection (Blank=Cancel): 1 |
| 73 | +Select (D)HCP or (S)tatic IP address (Blank=Cancel): D |
| 74 | + Setting NIC to use DHCP... |
| 75 | + Successfully set gateway. |
| 76 | + Successfully enabled DHCP. |
| 77 | + Successfully released DHCP lease.. : 00-01-00-01-30-3E-73-36-DE-00-00-84-DB-2B |
| 78 | + (Press ENTER to continue): |
| 79 | + ================================================================================ |
| 80 | + Welcome to Windows Server 2022 Datacenter |
| 81 | + ================================================================================ |
| 82 | + |
| 83 | + 1) Domain/workgroup: Workgroup: WORKGROUP |
| 84 | + 2) Computer name: WIN-010DQB68HIR |
| 85 | + 3) Add local administrator |
| 86 | + 4) Remote management: Enabled |
| 87 | + |
| 88 | + 5) Update setting: Download only |
| 89 | + 6) Install updates |
| 90 | + 7) Remote desktop: Enabled (all clients) |
| 91 | + |
| 92 | + 8) Network settings |
| 93 | + 9) Date and time |
| 94 | + 10) Telemetry setting: Required |
| 95 | + 11) Windows activation |
| 96 | + |
| 97 | + 12) Log off user |
| 98 | + 13) Restart server |
| 99 | + 14) Shut down server |
| 100 | + 15) Exit to command line (PowerShell) |
| 101 | + |
| 102 | + Enter number to select an option:.8: 13 |
| 103 | +Are you sure you want to restart? (Y)es or (N)o: Y |
| 104 | + |
| 105 | +``` |
| 106 | +This will ensure that DHCP network configuration is properly configured and activated in your windows instance. |
| 107 | + |
| 108 | + |
| 109 | + |
0 commit comments