Re: [vserver] Changing a guest's IP address during runtime

From: Patrick Nagel <patrick.nagel_at_star-group.net>
Date: Sat 12 Jun 2010 - 05:15:02 BST
Message-ID: <4C1309C6.3010903@star-group.net>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks, John.

On 2010-06-11 20:12, John A. Sullivan III wrote:
> On Fri, 2010-06-11 at 08:07 -0400, John A. Sullivan III wrote:
>> On Fri, 2010-06-11 at 19:04 +0800, Patrick Nagel wrote:
>>> Hi,
>>>
>>> can the IP address assigned to a guest be changed from the host during
>>> runtime? If so, how?
>>>
>>> Background info: I have an openvpn client running on the host, which
>>> provides a VPN connection to one of the guests. Recently the IP address of
>>> the local VPN endpoint changed. The guest could no longer use the VPN. I
>>> had to shut the guest down, change /etc/vservers/guest/interfaces/ip to the
>>> new local VPN endpoint IP address and start it up again.
>>>
>>> Patrick.
>>>
>> I'm not sure how well it will play with OpenVPN but you can try
>> naddress. Perhaps remove the current address from the guest, remove it
>> from the host with the ip command, add the new address to the host with
>> ip, and then associate it with the guest via naddress. Then change the
>> configuration files to make the change permanent. Hope that helps -
>> John
>>
> That is, remove it from the guest with naddress :(

- --
STAR Software (Shanghai) Co., Ltd. http://www.star-group.net/
Phone: +86 (21) 3462 7688 x 826 Fax: +86 (21) 3462 7779

PGP key E883A005 https://stshacom1.star-china.net/keys/patrick_nagel.asc
Fingerprint: E09A D65E 855F B334 E5C3 5386 EF23 20FC E883 A005
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iEYEARECAAYFAkwTCcQACgkQ7yMg/OiDoAVq1gCgmTHS3tQvuNaF76r7rIMvU9Y1
Z00AoJ0pY+57PU/gs1rpBHMpMErUAvJ7
=t1Fq
-----END PGP SIGNATURE-----
Received on Sat Jun 12 05:15:44 2010

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Sat 12 Jun 2010 - 05:15:47 BST by hypermail 2.1.8