Commit 1d15a06f authored by Matous Holinka's avatar Matous Holinka Committed by Ondřej Zajíček
Browse files

mh-ospf-vrf: conf files were added/modified

parent 4c7b056e
......@@ -5,6 +5,9 @@ router id 10.0.1.1;
ipv4 table t100v4;
ipv4 table t200v4;
ipv4 table t300v4;
ipv6 table t100v6;
ipv6 table t200v6;
ipv6 table t300v6;
protocol device {
scan time 10;
......@@ -13,16 +16,19 @@ protocol device {
protocol direct dir1 {
vrf "vrf1";
ipv4 { table t100v4; };
ipv6 { table t100v6; };
}
protocol direct dir2 {
vrf "vrf2";
ipv4 { table t200v4; };
ipv6 { table t200v6; };
}
protocol direct dir3 {
vrf "vrf3";
ipv4 { table t300v4; };
ipv6 { table t300v6; };
}
protocol kernel kern1v4 {
......@@ -43,6 +49,24 @@ protocol kernel kern3v4 {
scan time 10;
}
protocol kernel kern1v6 {
ipv6 { table t100v6; export all; };
kernel table 100;
scan time 10;
}
protocol kernel kern2v6 {
ipv6 { table t200v6; export all; };
kernel table 200;
scan time 10;
}
protocol kernel kern3v6 {
ipv6 { table t300v6; export all; };
kernel table 300;
scan time 10;
}
protocol static stat1v4 {
ipv4 { table t100v4; };
route 10.10.0.0/24 via 10.0.1.2;
......@@ -61,12 +85,62 @@ protocol static stat3v4 {
route 10.10.1.0/24 via 10.0.1.2;
}
protocol ospf ospfv4 {
protocol static stat1v6 {
ipv6 { table t100v6; };
route 2001:db8:10:10::/64 via 2001:db8:2:1::10;
}
protocol static stat2v6 {
ipv6 { table t200v6; };
route 2001:db8:10:10::/64 via 2001:db8:2:2::10;
}
protocol static stat3v6 {
ipv6 { table t300v6; };
route 2001:db8:10:10::/64 via 2001:db8:2:3::10;
}
protocol ospf v2 ospfv4 {
vrf "vrf1";
ipv4 { table t100v4; import all; export none; };
area 0 {
interface "ve0" { stub; };
interface "vf0" { stub; };
interface "vf1" { stub; };
interface "ve1" { type ptp; hello 5; };
interface "ve2" { type ptp; hello 5; };
interface "ve3" { type ptp; hello 5; };
interface "ve4" { type ptp; hello 5; };
interface "ve5" { type ptp; hello 5; };
interface "ve6" { type ptp; hello 5; };
};
}
protocol ospf v3 ospf1v6 {
vrf "vrf2";
ipv6 { export where source = RTS_STATIC; import all; };
area 0 {
interface "vf0" { stub; };
interface "vf1" { stub; };
interface "ve1" { type ptp; hello 5; };
interface "ve2" { type ptp; hello 5; };
interface "ve3" { type ptp; hello 5; };
interface "ve4" { type ptp; hello 5; };
interface "ve5" { type ptp; hello 5; };
interface "ve6" { type ptp; hello 5; };
};
}
protocol ospf v3 ospf2v6 {
vrf "vrf3";
ipv6 { export where source = RTS_STATIC; import all; };
area 0 {
interface "vf0" { stub; };
interface "vf1" { stub; };
interface "ve1" { type ptp; hello 5; };
interface "ve2" { type ptp; hello 5; };
interface "ve3" { type ptp; hello 5; };
interface "ve4" { type ptp; hello 5; };
interface "ve5" { type ptp; hello 5; };
interface "ve6" { type ptp; hello 5; };
};
}
\ No newline at end of file
log "bird.log" all;
router id 10.0.3.4;
protocol device {
scan time 10;
}
protocol kernel kern1v4 {
ipv4 { export all; };
kernel table 300;
scan time 10;
}
protocol kernel kern1v6 {
ipv6 { export all; };
kernel table 300;
scan time 10;
}
protocol static stat1v4 {
ipv4;
route 10.30.1.0/24 via 10.0.3.2;
}
protocol static stat1v6 {
ipv6;
route 2001:db8:30:10::/64 via 2001:db8:3:1::10;
}
protocol ospf v3 ospf2v6 {
vrf "vrf3";
ipv6 { export where source = RTS_STATIC; import all; };
area 0 {
interface "ve0" { stub; };
interface "ve1" { type ptp; hello 5; };
interface "ve2" { type ptp; hello 5; };
interface "ve4" { type ptp; hello 5; };
};
}
......@@ -12,14 +12,27 @@ protocol kernel kern1v4 {
scan time 10;
}
protocol kernel kern1v6 {
ipv6 { export all; };
kernel table 100;
scan time 10;
}
protocol static stat1v4 {
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;
route 10.20.2.0/24 via 10.0.2.2;
}
protocol static stat1v6 {
ipv6;
route 2001:db8:50:1::/64 via 2001:db8:1:1::10;
route 2001:db8:50:2::/64 via 2001:db8:1:2::10;
route 2001:db8:20:10::/64 via 2001:db8:1:3::10;
}
protocol ospf ospfv4 {
protocol ospf v2 ospfv4 {
vrf "vrf1";
ipv4 { export where source = RTS_STATIC; import all;};
area 0 {
......
......@@ -12,12 +12,23 @@ protocol kernel kern1v4 {
scan time 10;
}
protocol kernel kern1v6 {
ipv6 { export all; };
kernel table 100;
scan time 10;
}
protocol static stat1v4 {
ipv4;
route 10.30.0.0/24 via 10.0.3.2;
}
protocol ospf ospfv4 {
protocol static stat1v6 {
ipv6;
route 2001:db8:30:10::/64 via 2001:db8:3:1::10;
}
protocol ospf v2 ospfv4 {
vrf "vrf1";
ipv4 { export where source = RTS_STATIC; import all;};
area 0 {
......
log "bird.log" all;
router id 10.0.1.3;
router id 10.0.1.4;
protocol device {
scan time 10;
......@@ -12,6 +12,12 @@ protocol kernel kern1v4 {
scan time 10;
}
protocol kernel kern1v6 {
ipv6 { export all; };
kernel table 100;
scan time 10;
}
protocol static stat1v4 {
ipv4;
route 10.50.0.0/24 via 10.0.4.2 { bgp_local_pref = 500; };
......@@ -20,7 +26,14 @@ protocol static stat1v4 {
route 10.40.1.0/24 via 10.0.4.2 mpls 400 { bgp_local_pref = 500; };
}
protocol ospf ospfv4 {
protocol static stat1v6 {
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 ospfv4 {
vrf "vrf1";
ipv4 { export where source = RTS_STATIC; import all;};
area 0 {
......
router id 10.0.1.2;
log "bird.log" all;
protocol device {
scan time 10;
}
protocol kernel kern1v4 {
ipv4 { export all; };
kernel table 200;
scan time 10;
}
protocol kernel kern1v6 {
ipv6 { export all; };
kernel table 200;
scan time 10;
}
protocol static stat1v4 {
ipv4;
route 10.10.0.0/24 via 10.0.1.2;
route 10.10.1.0/24 via 10.0.1.2;
}
protocol static stat1v6 {
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 v3 ospf1v6 {
vrf "vrf2";
ipv6 { export where source = RTS_STATIC; import all;};
area 0 {
interface "ve0" { stub; };
interface "ve1" { type ptp; hello 5; };
interface "ve2" { type ptp; hello 5; };
};
}
log "bird.log" all;
router id 10.0.2.3;
protocol device {
scan time 10;
}
protocol kernel kern1v4 {
ipv4 { export all; };
kernel table 200;
scan time 10;
}
protocol kernel kern1v6 {
ipv6 { export all; };
kernel table 200;
scan time 10;
}
protocol static stat1v4 {
ipv4;
route 10.30.1.0/24 via 10.0.3.2;
}
protocol static stat1v6 {
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 v3 ospf1v6 {
vrf "vrf2";
ipv6 { export where source = RTS_STATIC; import all;};
area 0 {
interface "ve0" { stub; };
interface "ve1" { type ptp; hello 5; };
interface "ve2" { type ptp; hello 5; };
};
}
log "bird.log" all;
router id 10.0.2.4;
protocol device {
scan time 10;
}
protocol kernel kern1v4 {
ipv4 { export all; };
kernel table 200;
scan time 10;
}
protocol kernel kern1v6 {
ipv6 { export all; };
kernel table 200;
scan time 10;
}
protocol static stat1v4 {
ipv4;
route 10.30.1.0/24 via 10.0.3.2;
}
protocol static stat1v6 {
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 v3 ospf1v6 {
vrf "vrf2";
ipv6 { export where source = RTS_STATIC; import all;};
area 0 {
interface "ve0" { stub; };
interface "ve1" { type ptp; hello 5; };
interface "ve2" { type ptp; hello 5; };
interface "ve4" { type ptp; hello 5; };
};
}
log "bird.log" all;
router id 10.0.3.2;
protocol device {
scan time 10;
}
protocol kernel kern1v4 {
ipv4 { export all; };
kernel table 300;
scan time 10;
}
protocol kernel kern1v6 {
ipv6 { export all; };
kernel table 300;
scan time 10;
}
protocol static stat1v4 {
ipv4;
route 10.30.0.0/24 via 10.0.3.2;
}
protocol static stat1v6 {
ipv6;
route 2001:db8:30:10::/64 via 2001:db8:3:1::10;
}
protocol ospf v3 ospf2v6 {
vrf "vrf3";
ipv6 { export where source = RTS_STATIC; import all; };
area 0 {
interface "ve0" { stub; };
interface "ve1" { type ptp; hello 5; };
interface "ve2" { type ptp; hello 5; };
interface "ve5" { type ptp; hello 5; };
};
}
log "bird.log" all;
router id 10.0.3.3;
protocol device {
scan time 10;
}
protocol kernel kern1v4 {
ipv4 { export all; };
kernel table 300;
scan time 10;
}
protocol kernel kern1v6 {
ipv6 { export all; };
kernel table 300;
scan time 10;
}
protocol static stat1v4 {
ipv4;
route 10.30.1.0/24 via 10.0.3.2;
}
protocol static stat1v6 {
ipv6;
route 2001:db8:30:10::/64 via 2001:db8:3:1::10;
}
protocol ospf v3 ospf2v6 {
vrf "vrf3";
ipv6 { export where source = RTS_STATIC; import all; };
area 0 {
interface "ve0" { stub; };
interface "ve1" { type ptp; hello 5; };
interface "ve2" { type ptp; hello 5; };
};
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment