Jump to content

Recommended Posts

Posted

It's a relatively minor annoyance, but I wondered if anyone's found a non-manual workaround for this? Specifically on Xen.

 

A physical or vmware to xen conversion creates a new virtual nic, which gets a dhcp lease instead of the static ip set to the physical card. When Xen tools is installed, the card changes again (default virtual realtek to Xen PV Nic) and grabs a dhcp lease again.

 

I'm going to end up scripting something that reapplies the original ip settings and forces re-registration in dns based on hostname aren't I?

Posted

I think you will need to script it, the script would look something like this:

netsh interface ip set address "Local Area Connection" static 192.168.0.1 255.255.255.0 192.168.0.254 1

netsh interface ip set dns "Local Area Connection" static 192.168.1.200 primary

ipconfig /registerdns

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...