Changes

Jump to: navigation, search

VPS Migration with OSPF

103 bytes added, 20:00, 22 January 2007
VPS -> VE, some formatting, quagga install for Gentoo/Fedora added
[[Category:HOWTO]]
[[Category:Networking]]
This article presents how to be able to migrate VPS a VE between different subnets in the network by using a dynamic routing protocol such as OSPF. An already working OSPF setup is mandatory, this article only shows the OpenVZ specifics.
== Quagga installation ==
Install the Quagga routing suite available on [http://www.quagga.net / the official website].For many distributions, a prebuilt package is available:
Under Debian you can simply use the package.: apt-get install quagga
Under Gentoo: emerge quagga</pre>apt-get Under Fedora: yum install quagga</pre>
== Quagga configuration ==
</pre>
In /etc/quagga/ospfd.conf configure the OSPF network and area in which is OpenVZ server will be and configure the redistribution of routes generated by the VPSVE.
<pre>
!
router ospf
redistribute kernel route-map only-vpsve
network YOUR_NETWORK/XX area 0.0.0.0
!
route-map only-vps ve permit 10
match interface venet0
!
== Usage ==
Once your OpenVZ server takes part in the OSPF network, you can easily use the ‘vzmigrate’ command to migrate a VPS VE between different subnet of the network and the IP of the VPS VE will be redistributed in the whole network as a /32 (host route).
== Bugs ==
To avoid problems with this setup the IP addresses of your VPS VE must be taken outside of any other subnet configured on your network. If the IP address of the VPS VE is taken from an actual subnet, the other hosts of the subnet won't be able to communicate with it, except if you use proxy arp on the router.

Navigation menu