VMware Horizon Community
Dongjianhua
Enthusiast
Enthusiast

Will a view desktop get a fixed IP from DHCP after reset/reboot/refrash ?

Hello,

Will a view desktop get a fixed IP from DHCP after reset/reboot/refrash ? Thanks.

0 Kudos
3 Replies
PCTechStream
Hot Shot
Hot Shot

TRY THIS!

LINK: https://www.jasonpearce.com/2012/04/13/vmware-view-static-ip-addresses-for-linked-clones/

Raul.

VMware VDI Administrator.

http://ITCloudStream.com/

Stay Connected Don't forget to:

Like > Share > Comment > Reply > Helpful > Answered

www.ITSA.Cloud
0 Kudos
Dongjianhua
Enthusiast
Enthusiast

According to the article at https://www.jasonpearce.com/2012/04/13/vmware-view-static-ip-addresses-for-linked-clones/ , the desktop VM needs a second vNIC, why the second vNIC is required ?

0 Kudos
PCTechStream
Hot Shot
Hot Shot

One for normal DHCP that remains unchanged.

The second vNIC targets the script to give it a static IP address that matches a pre-determined computer name.

The script looks like this:

IF %computername%==VDI-1 NETSH interface ip set address name="Local Area Connection 5" static 172.2.50.51 255.255.255.0 172.2.50.1 1

IF %computername%==VDI-2 NETSH interface ip set address name="Local Area Connection 5" static 172.2.50.52 255.255.255.0 172.2.50.1 1

Raul.

VMware VDI Administrator.

http://ITCloudStream.com/

Stay Connected :smileyplus: Don't forget to:

Like > Share > Comment > Reply > Helpful > Answered

www.ITSA.Cloud
0 Kudos