Add support for IPv6

The 40 bits in the ULA global prefix fdce:73a4:0b00::/48 were generated
by Python's `random.randint(0,2**40-1)` call
master
LEdoian 1 year ago
parent 5a446aa6ef
commit 0396099bcd

@ -11,7 +11,15 @@ protocol kernel {
};
}
protocol ospf v3 {
protocol kernel {
ipv6 {
preference 100;
import none;
export all;
};
}
protocol ospf v2 {
ipv4 {
preference 10;
import all;
@ -27,3 +35,19 @@ protocol ospf v3 {
};
}
protocol ospf v3 {
ipv6 {
preference 10;
import all;
export all;
};
area 0 {
{% for br in c.bridges %}
interface "net_{{br.num}}" {
cost 10;
type broadcast;
};
{% endfor %}
};
}

@ -1,5 +1,6 @@
{% for br in c.bridges %}
172.23.{{ br.num }}.{{ c.num }} host-{{ c.name }}-net-{{ br.num }}
fdce:73a4:0b00:{{ "%x" % (br.num) }}::{{ "%x" % (c.num) }} host-{{ c.name }}-net-{{ br.num }}-v6
{% endfor %}
127.0.0.1 host-{{ c.name }} localhost localhost.localdomain
::1 host-{{ c.name }} localhost localhost.localdomain

@ -6,5 +6,7 @@ auto net_{{ br.num }}
iface net_{{br.num}} inet static
pre-up nameif -s
address 172.23.{{ br.num }}.{{ c.num }}/24
iface net_{{br.num}} inet6 static
address fdce:73a4:0b00:{{ "%x" % (br.num) }}::{{ "%x" % (c.num) }}/64
{% endfor %}

@ -1 +1,2 @@
net.ipv4.conf.all.forwarding=1
net.ipv6.conf.all.forwarding=1

Loading…
Cancel
Save