-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
159 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
steps: | ||
- bird: | ||
- bird/bird.conf | ||
- birdc: | ||
- show route | ||
- sleep: 20 | ||
- cli: | ||
- rib prefixes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/* | ||
* This is a simple example configuration file with no aim for completeness. | ||
* See documentation for full description. | ||
*/ | ||
|
||
# Router ID in IPv4 format | ||
router id 62.168.0.1; | ||
|
||
# Load device information from kernel. | ||
protocol device {} | ||
|
||
# Generate direct routes for interfaces. Useful on BSD. | ||
protocol direct { | ||
ipv4; | ||
disabled; | ||
} | ||
|
||
protocol direct { | ||
ipv6; | ||
disabled; | ||
} | ||
|
||
# Feed routes to kernel FIB | ||
protocol kernel { | ||
ipv4 { export all; import all; }; | ||
learn; # Learn all routes from the kernel | ||
# scan time 10; # Scan kernel tables every 10 seconds | ||
} | ||
|
||
protocol kernel { | ||
ipv6 { import all; }; | ||
learn; | ||
} | ||
|
||
# Static route feed | ||
protocol static { | ||
ipv4 { export all; }; | ||
route 10.0.0.0/24 via 192.168.1.32; | ||
route 10.10.0.0/16 blackhole; | ||
route 10.20.0.0/20 via 192.168.1.22; | ||
route 10.30.50.0/28 prohibit; | ||
} | ||
|
||
protocol static { | ||
ipv6 { export all; }; | ||
route 2001:db8:1::/48 via 5555::6666; | ||
route 2001:db8:2::/48 blackhole; | ||
route 2001:db8:3::/48 prohibit; | ||
route 2001:db8:4::/48 unreachable; | ||
} | ||
|
||
protocol export { | ||
table master4; | ||
socket "/var/tmp/bird-master4.sock"; | ||
} | ||
|
||
protocol export { | ||
table master6; | ||
socket "/var/tmp/bird-master6.sock"; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"modules": { | ||
"lp0.100": { | ||
"type": "logicalPort", | ||
"physicalPort": "kni0", | ||
"vlanId": "100", | ||
"macAddress": "00:11:22:33:44:55", | ||
"nextModule": "vrf0" | ||
}, | ||
"lp0.200": { | ||
"type": "logicalPort", | ||
"physicalPort": "kni0", | ||
"vlanId": "200", | ||
"macAddress": "00:11:22:33:44:55", | ||
"nextModule": "vrf0" | ||
}, | ||
"vrf0": { | ||
"type": "route", | ||
"interfaces": { | ||
"kni0.100": { | ||
"nextModule": "lp0.100" | ||
}, | ||
"kni0.200": { | ||
"ipv4Prefix": "200.0.0.2/24", | ||
"neighborIPv4Address": "200.0.0.1", | ||
"neighborMacAddress": "00:00:00:11:11:11", | ||
"nextModule": "lp0.200" | ||
} | ||
}, | ||
"birdImport": [ | ||
{ | ||
"socket": "/var/tmp/bird-master4.sock", | ||
"vrf": "master4" | ||
}, | ||
{ | ||
"socket": "/var/tmp/bird-master6.sock", | ||
"vrf": "master6" | ||
} | ||
] | ||
} | ||
} | ||
} |