Editing VPS Migration with OSPF
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
[[Category:HOWTO]] | [[Category:HOWTO]] | ||
− | |||
− | This article presents how to be able to migrate | + | This article presents how to be able to migrate VPS 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 == | == Quagga installation == | ||
− | Install the Quagga routing suite available on [http://www.quagga.net | + | Install the Quagga routing suite available on [http://www.quagga.net the official website]. |
− | Under Debian | + | Under Debian you can simply use the package. |
− | |||
− | + | <pre> | |
− | + | apt-get install quagga | |
− | + | </pre> | |
− | |||
− | |||
== Quagga configuration == | == Quagga configuration == | ||
Line 25: | Line 21: | ||
</pre> | </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 | + | 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 VPS. |
<pre> | <pre> | ||
Line 31: | Line 27: | ||
! | ! | ||
router ospf | router ospf | ||
− | redistribute kernel route-map only- | + | redistribute kernel route-map only-vps |
− | network | + | network 62.220.128.0/19 area 0.0.0.0 |
! | ! | ||
− | route-map only- | + | route-map only-vps permit 10 |
match interface venet0 | match interface venet0 | ||
! | ! | ||
Line 42: | Line 38: | ||
== Usage == | == Usage == | ||
− | Once your OpenVZ server takes part in the OSPF network, you can easily use the ‘vzmigrate’ command to migrate a | + | Once your OpenVZ server takes part in the OSPF network, you can easily use the ‘vzmigrate’ command to migrate a VPS between different subnet of the network and the IP of the VPS will be redistributed in the whole network as a /32 (host route). |
== Bugs == | == Bugs == | ||
− | To avoid problems with this setup the IP addresses of your | + | To avoid problems with this setup the IP addresses of your VPS must be taken outside of any other subnet configured on your network. If the IP address of the VPS 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. |