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
Post a Comment