Azure Windows Server: the Serial console (SAC) - changing IP address

 If you have a server running in Azure you cant log into anymore. You can use the Serial Console to get into the server. But there are not many commands, espeically if you can't log into a command prompt.

I wanted to set the network adapter, as it had lost the Gateway.

Here is the command to see the network adapters config:

SAC>i

Net: 4, Ip=172.22.10.9  Subnet=255.255.255.0  Gateway=0.0.0.0

As you can see, the Gateway has been set to 0.0.0.0
To set a new Gateway, issue the command:

i 4 172.22.10.9 255.255.255.0 172.22.10.1

Where the number 4 is the identified for the network adapter.

Now I can ping my VM again!


Comments

Popular posts from this blog

Restore a deleted OneDrive for Business account from Office365: "A site collection with the same Site Id or Path already exists."

Server Manager will not start, error .NET Framework: "This application requires one of the following versions of the .NET Framework:"