Commit 724b739f authored by Ondřej Zajíček's avatar Ondřej Zajíček
Browse files

Merge branch 'mh-ospf-single-area'

parents 78d716ec 28f9aefc
log "bird.log" all;
router id 10.0.0.1;
ipv4 table master4;
ipv6 table master6;
protocol device {
scan time 10;
}
protocol kernel kernel4 {
scan time 10;
ipv4 {
export where source = RTS_OSPF;
};
}
protocol kernel kernel6 {
scan time 10;
ipv6 {
export where source = RTS_OSPF;
};
}
protocol static static4 {
ipv4;
route 10.10.0.0/24 via 10.0.1.2;
route 10.10.1.0/24 via 10.0.1.2 {
bgp_large_community.add((10,20,30));
bgp_large_community.add((10,(20*3),10));
};
}
protocol static static6 {
ipv6;
route 2001:db8:10:10::/64 via 2001:db8:1:1::10;
route 2001:db8:10:11::/64 via 2001:db8:1:1::10;
}
protocol ospf v2 ospf2 {
ipv4 {
import all;
export where source = RTS_STATIC;
};
area 0 {
stubnet 10.1.20.0/24;
stubnet 10.1.21.0/24;
interface "ve0" { stub; };
interface "ve1" {
hello 5;
type ptp;
authentication cryptographic;
password "12345678" {
algorithm keyed md5;
};
};
interface "ve2" {
hello 5;
type ptp;
authentication simple;
password "12345678";
};
};
}
protocol ospf v3 ospf4 {
ipv4 {
import all;
export where source = RTS_STATIC;
};
area 0 {
stubnet 10.1.20.0/24;
stubnet 10.1.21.0/24;
interface "ve0" { stub; };
interface "ve1" {
hello 5;
type ptp;
authentication cryptographic;
password "12345678" {
algorithm hmac sha256;
};
};
interface "ve2" {
hello 5;
type ptp;
authentication cryptographic;
password "12345678";
};
};
}
protocol ospf v3 ospf6 {
ipv6 {
import all;
export where source = RTS_STATIC;
};
area 0 {
stubnet 2001:db8:1:20::/64;
stubnet 2001:db8:1:20::/64;
interface "ve0" { stub; };
interface "ve1" {
hello 5;
type ptp;
authentication cryptographic;
password "12345678" {
algorithm hmac sha256;
};
};
interface "ve2" {
hello 5;
type ptp;
authentication cryptographic;
password "12345678" {
algorithm hmac sha1;
};
};
};
}
log "bird.log" all;
router id 10.0.0.2;
ipv4 table master4;
ipv6 table master6;
protocol device {
scan time 10;
}
protocol kernel kernel4 {
scan time 10;
ipv4 {
export where source = RTS_OSPF;
};
}
protocol kernel kernel6 {
scan time 10;
ipv6 {
export where source = RTS_OSPF;
};
}
protocol static static4 {
ipv4;
route 10.50.0.0/24 via 10.0.2.2;
route 10.50.1.0/24 via 10.0.2.2;
route 10.20.0.0/24 via 10.0.2.2;
}
protocol static static6 {
ipv6;
route 2001:db8:50:1::/64 via 2001:db8:2:1::10;
route 2001:db8:50:2::/64 via 2001:db8:2:1::10;
route 2001:db8:20:10::/64 via 2001:db8:2:1::10;
}
protocol ospf v2 ospf2 {
ipv4 {
import all;
export where source = RTS_STATIC;
};
area 0 {
stubnet 10.2.20.0/24;
stubnet 10.2.21.0/24;
interface "ve0" { stub; };
interface "ve1" {
hello 5;
type ptp;
authentication cryptographic;
password "12345678" {
algorithm hmac sha256;
};
};
interface "ve2" {
hello 5;
type ptp;
authentication cryptographic;
password "12345678" {
algorithm keyed md5;
};
};
};
}
protocol ospf v3 ospf4 {
ipv4 {
import all;
export where source = RTS_STATIC;
};
area 0 {
stubnet 10.2.20.0/24;
stubnet 10.2.21.0/24;
interface "ve0" { stub; };
interface "ve1" {
hello 5;
type ptp;
authentication cryptographic;
password "12345678" {
algorithm hmac sha512;
};
};
interface "ve2" {
hello 5;
type ptp;
authentication cryptographic;
password "12345678" {
algorithm hmac sha256;
};
};
};
}
protocol ospf v3 ospf6 {
ipv6 {
import all;
export where source = RTS_STATIC;
};
area 0 {
stubnet 2001:db8:2:20::/64;
stubnet 2001:db8:2:21::/64;
interface "ve0" { stub; };
interface "ve1" {
hello 5;
type ptp;
authentication cryptographic;
password "12345678" {
algorithm hmac sha512;
};
};
interface "ve2" {
hello 5;
type ptp;
authentication cryptographic;
password "12345678" {
algorithm hmac sha256;
};
};
};
}
log "bird.log" all;
router id 10.0.0.3;
ipv4 table master4;
ipv6 table master6;
protocol device {
scan time 10;
}
protocol kernel kernel4 {
scan time 10;
ipv4 {
export where source = RTS_OSPF;
};
}
protocol kernel kernel6 {
scan time 10;
ipv6 {
export where source = RTS_OSPF;
};
}
protocol static static4 {
ipv4;
route 10.30.0.0/24 via 10.0.3.2;
}
protocol static static6 {
ipv6;
route 2001:db8:30:10::/64 via 2001:db8:3:1::10;
}
protocol ospf v2 ospf2 {
ipv4 {
import all;
};
area 0 {
stubnet 10.3.20.0/24;
stubnet 10.3.21.0/24;
interface "ve0" { stub; };
interface "ve1" {
hello 5;
type ptp;
authentication simple;
password "87654321";
};
interface "ve3" {
hello 5;
type bcast;
authentication cryptographic;
password "12345678" {
algorithm keyed md5;
};
};
};
}
protocol ospf v3 ospf4 {
ipv4 {
import all;
};
area 0 {
stubnet 10.3.20.0/24;
stubnet 10.3.21.0/24;
interface "ve0" { stub; };
interface "ve1" {
hello 5;
type ptp;
authentication cryptographic;
password "87654321";
};
interface "ve3" {
hello 5;
type bcast;
authentication cryptographic;
password "12345678" {
algorithm hmac sha256;
};
};
};
}
protocol ospf v3 ospf6 {
ipv6 {
import all;
};
area 0 {
stubnet 2001:db8:3:20::/64;
stubnet 2001:db8:3:21::/64;
interface "ve0" { stub; };
interface "ve1" {
hello 5;
type ptp;
authentication cryptographic;
password "87654321" {
algorithm hmac sha1;
};
};
interface "ve3" {
hello 5;
type bcast;
authentication cryptographic;
password "12345678" {
algorithm hmac sha256;
};
};
};
}
log "bird.log" all;
router id 10.0.0.4;
ipv4 table master4;
ipv6 table master6;
protocol device {
scan time 10;
}
protocol kernel kernel4 {
scan time 10;
ipv4 {
export where source = RTS_OSPF;
};
}
protocol kernel kernel6 {
scan time 10;
ipv6 {
export where source = RTS_OSPF;
};
}
protocol static static4 {
ipv4;
route 10.50.0.0/24 via 10.0.4.2 { bgp_local_pref = 500; };
route 10.50.1.0/24 via 10.0.4.2 { bgp_local_pref = 500; };
route 10.40.0.0/24 via 10.0.4.2 { bgp_local_pref = 500; };
route 10.40.1.0/24 via 10.0.4.2 mpls 400 { bgp_local_pref = 500; };
}
protocol static static6 {
ipv6;
route 2001:db8:50:1::/64 via 2001:db8:4:1::10;
route 2001:db8:50:2::/64 via 2001:db8:4:1::10;
route 2001:db8:40:10::/64 via 2001:db8:4:1::10;
}
protocol ospf v2 ospf2 {
ipv4 {
import all;
};
area 0 {
stubnet 10.4.20.0/24;
stubnet 10.4.21.0/24;
interface "ve0" { stub; };
interface "ve2" {
hello 5;
type ptp;
authentication cryptographic;
password "12345678" {
algorithm hmac sha256;
};
};
interface "ve3" {
hello 5;
type bcast;
authentication cryptographic;
password "12345678" {
algorithm keyed md5;
};
};
};
}
protocol ospf v3 ospf4 {
ipv4 {
import all;
};
area 0 {
stubnet 10.4.20.0/24;
stubnet 10.4.21.0/24;
interface "ve0" { stub; };
interface "ve2" {
hello 5;
type ptp;
authentication cryptographic;
password "12345678" {
algorithm hmac sha512;
};
};
interface "ve3" {
hello 5;
type bcast;
authentication cryptographic;
password "12345678" {
algorithm hmac sha256;
};
};
};
}
protocol ospf v3 ospf6 {
ipv6 {
import all;
};
area 0 {
stubnet 2001:db8:4:20::/64;
stubnet 2001:db8:4:21::/64;
interface "ve0" { stub; };
interface "ve2" {
hello 5;
type ptp;
authentication cryptographic;
password "12345678" {
algorithm hmac sha512;
};
};
interface "ve3" {
hello 5;
type bcast;
authentication cryptographic;
password "12345678" {
algorithm hmac sha256;
};
};
};
}
log "bird.log" all;
router id 10.0.0.5;
ipv4 table master4;
ipv6 table master6;
protocol device {
scan time 10;
}
protocol kernel kernel4 {
scan time 10;
ipv4 {
export where source = RTS_OSPF;
};
}
protocol kernel kernel6 {
scan time 10;
ipv6 {
export where source = RTS_OSPF;
};
}
protocol static static4 {
ipv4;
route 10.10.0.0/24 via 10.0.1.2;
route 10.10.1.0/24 via 10.0.1.2 { bgp_large_community.add((10,20,30)); bgp_large_community.add((10,(20*3),10)); };
}
protocol static static6 {
ipv6;
route 2001:db8:10:10::/64 via 2001:db8:1:1::10;
route 2001:db8:10:11::/64 via 2001:db8:1:1::10;
}
protocol ospf v2 ospf2 {
ipv4 {
import all;
};
area 0 {
stubnet 10.5.20.0/24;
stubnet 10.5.21.0/24;
interface "ve0" { stub; };
interface "ve1" {
hello 5;
type ptp;
authentication simple;
password "12345678";
};
interface "ve3" {
hello 5;
type bcast;
authentication cryptographic;
password "12345678" {
algorithm keyed md5;
};
};
};
}
protocol ospf v3 ospf4 {
ipv4 {
import all;
};
area 0 {
stubnet 10.5.20.0/24;
stubnet 10.5.21.0/24;
interface "ve0" { stub; };
interface "ve1" {
hello 5;
type ptp;
authentication cryptographic;
password "12345678";
};
interface "ve3" {
hello 5;
type bcast;
authentication cryptographic;
password "12345678" {
algorithm hmac sha256;
};
};
};
}
protocol ospf v3 ospf6 {
ipv6 {
import all;
};
area 0 {
stubnet 2001:db8:5:20::/64;
stubnet 2001:db8:5:21::/64;
interface "ve0" { stub; };
interface "ve1" {
hello 5;
type ptp;
authentication cryptographic;
password "12345678" {
algorithm hmac sha1;
};
};
interface "ve3" {
hello 5;
type bcast;
authentication cryptographic;
password "12345678" {
algorithm hmac sha256;
};
};
};
}
log "bird.log" all;
router id 10.0.0.6;
ipv4 table master4;
ipv6 table master6;
protocol device {
scan time 10;
}
protocol kernel kernel4 {
scan time 10;
ipv4 {
export where source = RTS_OSPF;
};
}