The Default Switch (default network)
that exists by default in Hyper-V virtual switches is
It has the characteristics of.
This article is troubled by ** IP address is automatically assigned ** </ font>! Must be ** fixed IP address ** </ font>! This article is for those who say.
I think this is the easiest way to set it. Edit Ubuntu configuration file and do not operate PowerShell.
From Hyper-V Manager Virtual Switch Manager New Virtual Network Switch> Internal> Create Virtual Switch
The name can be anything you like. Here, it is ʻInternal Switch`. VLAN ID> Check "Enable virtual LAN ID for management operating system".
The following is the setting of the virtual machine to be fixed IP address. Add "Network Adapter" from Add Hardware and add a network adapter. Specify the ʻInternal Switch` created earlier, and check" Enable Virtual LAN ID "again.
This completes the settings on the Hyper-V side. Set up the Windows network adapter.
This is a setting on the Windows side.
On the network adapter settings screen,
You can see that the vEthernet (Internal Switch)
created earlier has been newly added.
Right-click on vEthernet (Internal Switch)
to go to the properties screen.
Uncheck Internet Protocol version 6 (TCP / IPv6)
Go to the Internet Protocol version 4 (TCP / IPv4) properties screen.
Select Use the following IP address and set the IP address and subnet mask of your choice.
That's all for the settings on the Windows side. Finally, configure the Ubuntu network settings.
Click the upper right corner of the screen> Click the setting mark> Network
Ethernet (eth0)
Click the "gear" mark to go to the settings screen.
IPv6
Disable IPv6 for Ethernet (eth0).
Ethernet (eth1)
Assign ʻInternal Switchto Ethernet (eth1) to make it a fixed IP address. Click the "+" mark to move to the setting screen.
Identity`
Set the MAC Address to (eth1).
IPv4
Select Manual for IPv4 Method.
Set the IP address. Note that the IP address is different from the one set on the Windows side.
IPv6
Disable IPv6 for Ethernet (eth1) as well as Ethernet (eth0).
Ping the guest OS at the command prompt, and if there is a response, the setting is complete.
I was able to communicate all the time, but which configuration file did I change? ?? Because it was We have summarized the procedure for making a fixed IP address in the simplest way possible.
I'm not a person who is familiar with networks, so if there are any deficiencies, I would appreciate it if you could point out in the comments.