Italiano English
Edit History Actions

Diff for "BIRD"

Differences between revisions 2 and 5 (spanning 3 versions)
Revision 2 as of 2014-11-09 22:52:21
Size: 938
Editor: leonaard
Comment:
Revision 5 as of 2015-03-07 02:03:41
Size: 1168
Editor: leonaard
Comment: scan time 3600
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
Esempio di configurazione (`/etc/bird.conf`) per usare BIRD come [[RouterBgpRouteReflectorClient | BGP route reflector client]], se la subnet pubblica e' assegnata allo stesso host su cui gira il demone BGP: /!\ Verificare di avere [[Reverse Path Filter | rp_filter]] a `0` o a `2` sulle interfaccie di rete interessate.
Line 6: Line 6:
Esempio di configurazione (`/etc/bird.conf`) per usare BIRD come [[RouterBgpRouteReflectorClient | BGP route reflector client]]:
Line 7: Line 8:
log "/var/log/bird.log" all;
Line 8: Line 11:
        scan time 10;         scan time 10; # Scan interfaces every 10 seconds
Line 12: Line 15:
        scan time 20;
        export filter {
                krt_prefsrc = 176.62.53.X;
                accept;
        };
# kernel table 5;
        import none; # Default is import all
        export all; # Default is export none
        scan time 3600;
Line 19: Line 21:
protocol direct {
        interface "peering-vpn";
protocol static {
        route 10.6.6.x/24 via "tap0";
Line 23: Line 25:
filter ninux_bgp_filter { # Announce (only) our public subnet
        if ( net = 176.62.53.X/32 ) then {
                accept;
        } else {
                reject;
        }
protocol static static_bgp {
        import all;
        route 176.62.53.x/32 reject;
Line 32: Line 31:
        local 10.6.6.X as 197835;         local 10.6.6.x as 197835;
Line 35: Line 34:
        export filter ninux_bgp_filter;         export where proto = "static_bgp";
Line 38: Line 37:

(!) Ho messo ''scan time'' delle tabelle del kernel a ''3600'' (1 ora, valore piuttosto alto) per allegerire la CPU della mia Cubieboard2, e perche non mi interessa che BIRD impari rotte dal kernel.

BIRD e` un demone di routing multi protocollo.

BGP route reflector client

/!\ Verificare di avere rp_filter a 0 o a 2 sulle interfaccie di rete interessate.

Esempio di configurazione (/etc/bird.conf) per usare BIRD come BGP route reflector client:

log "/var/log/bird.log" all;

protocol device {
        scan time 10; # Scan interfaces every 10 seconds
}

protocol kernel {
#        kernel table 5; 
        import none; # Default is import all
        export all; # Default is export none
        scan time 3600;
}

protocol static {
        route 10.6.6.x/24 via "tap0";
}

protocol static static_bgp {
        import all;
        route 176.62.53.x/32 reject;
}

protocol bgp {
        local 10.6.6.x as 197835;
        neighbor 10.6.6.1 as 197835;
        import all;
        export where proto = "static_bgp";
}

(!) Ho messo scan time delle tabelle del kernel a 3600 (1 ora, valore piuttosto alto) per allegerire la CPU della mia Cubieboard2, e perche non mi interessa che BIRD impari rotte dal kernel.