| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,81 @@ |
| 1 |
+log syslog all; |
|
| 2 |
+# log "/var/log/bird.log" { debug, trace, info, remote, warning, error, auth, fatal, bug };
|
|
| 3 |
+ |
|
| 4 |
+router id 62.44.96.169; |
|
| 5 |
+ |
|
| 6 |
+protocol device {
|
|
| 7 |
+} |
|
| 8 |
+ |
|
| 9 |
+protocol direct {
|
|
| 10 |
+ ipv4; # Connect to default IPv4 table |
|
| 11 |
+ ipv6; # ... and to default IPv6 table |
|
| 12 |
+} |
|
| 13 |
+ |
|
| 14 |
+protocol kernel {
|
|
| 15 |
+ ipv4 { # Connect protocol to IPv4 table by channel
|
|
| 16 |
+ export all; # Export to protocol. |
|
| 17 |
+ }; |
|
| 18 |
+} |
|
| 19 |
+ |
|
| 20 |
+protocol kernel {
|
|
| 21 |
+ ipv6 { # Connect protocol to IPv6 table by channel
|
|
| 22 |
+ export all; # Export to protocol. |
|
| 23 |
+ }; |
|
| 24 |
+} |
|
| 25 |
+ |
|
| 26 |
+function is_distributable_ipv4_network() {
|
|
| 27 |
+ return net ~ [ |
|
| 28 |
+ 62.44.96.141/32 |
|
| 29 |
+ ]; |
|
| 30 |
+} |
|
| 31 |
+ |
|
| 32 |
+function is_distributable_ipv6_network() {
|
|
| 33 |
+ return net ~ [ |
|
| 34 |
+ 2001:67c:20d0:ff::141/128 |
|
| 35 |
+ ]; |
|
| 36 |
+} |
|
| 37 |
+ |
|
| 38 |
+filter export_ospf_v2 |
|
| 39 |
+{
|
|
| 40 |
+ if (is_distributable_ipv4_network()) && (source = RTS_DEVICE) then accept; else reject; |
|
| 41 |
+} |
|
| 42 |
+ |
|
| 43 |
+filter export_ospf_v3 |
|
| 44 |
+{
|
|
| 45 |
+ if (is_distributable_ipv6_network()) && (source = RTS_DEVICE) then accept; else reject; |
|
| 46 |
+} |
|
| 47 |
+ |
|
| 48 |
+protocol ospf v2 {
|
|
| 49 |
+ ipv4 {
|
|
| 50 |
+ import filter {
|
|
| 51 |
+ ospf_metric1 = 50; |
|
| 52 |
+ accept; |
|
| 53 |
+ }; |
|
| 54 |
+ export filter export_ospf_v2; |
|
| 55 |
+ }; |
|
| 56 |
+ area 62.44.96.160 {
|
|
| 57 |
+ interface "eth1" {
|
|
| 58 |
+ type broadcast; # Detected by default |
|
| 59 |
+ cost 10; # Interface metric |
|
| 60 |
+ hello 5; # Default hello perid 10 is too long |
|
| 61 |
+ }; |
|
| 62 |
+ }; |
|
| 63 |
+} |
|
| 64 |
+ |
|
| 65 |
+protocol ospf v3 {
|
|
| 66 |
+ ipv6 {
|
|
| 67 |
+ import filter {
|
|
| 68 |
+ ospf_metric1 = 50; |
|
| 69 |
+ accept; |
|
| 70 |
+ }; |
|
| 71 |
+ export filter export_ospf_v3; |
|
| 72 |
+ }; |
|
| 73 |
+ area 62.44.96.160 {
|
|
| 74 |
+ interface "eth1" {
|
|
| 75 |
+ type broadcast; # Detected by default |
|
| 76 |
+ cost 10; # Interface metric |
|
| 77 |
+ hello 5; # Default hello perid 10 is too long |
|
| 78 |
+ }; |
|
| 79 |
+ }; |
|
| 80 |
+} |
|
| 81 |
+ |