V
V
Vladislav2013-08-10 00:14:57
KVM
Vladislav, 2013-08-10 00:14:57

Dynamic IP routing from virtual machine localhosts to a large OSPF area

We have:

  1. vlan group
  2. one of them uses two networks / 26 reals.
  3. in the same vlan there are 10 nodes based on Proxmox, they are in the same OSPF area 0.0.0.1.
  4. each node has several virtual machines with a single venetX interface with an IP from this special vlan, and on the localhost there are gray IPs like 10.10.10.10, 10.10.10.11, 10.10.10.12 and 10.10.10.13. Some services hang on them.

Question : What
dynamic protocol is used to announce IP from localhosts in 0.0.0.1 area?

Raise an ospf session from each virtual machine from the IP of the node on which it is running?
But the node can shut down or the virtual machine can be migrated to another node...

Raise two OSPF sessions with route servers, and from there relay to area 0.0.0.1?
Too complicated...


UPD. My scheme partially overlaps with the scheme of using anycast service (DNS) using OSPF.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladislav, 2013-08-10
@click0

On the virtual machine, you need to raise OSPF:

hostname myhost
password mysecretpassword
log syslog
!
router ospf
  ! Local segments (adjust for your network config and ospf areas)
  network 10.10.10.0/24 area 0.0.10.10
  ! Anycast address redistribution
  redistribute connected metric-type 1
  distribute-list ANYCAST-10.10 out connected
!
access-list ANYCAST-10.10 permit 10.10.10.10/32
access-list ANYCAST-10.10 permit 10.10.10.11/32

On the node, accept these routes.

M
mayorovp, 2013-08-10
@mayorovp

I understand correctly that you have
1. a separate vlan with nodes,
2. virtual machines that have an interface in this vlan?
In this case, there is no need to announce anything - just write on the routers serving this vlan that it has addresses 10.10.10.*

O
Ovsiannikov, 2013-11-20
@Ovsiannikov

saw the date, erased

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question