Italiano English
Modifica History Actions

Differenze per "bird_isole"

Differenze tra le versioni 2 e 3
Versione 2 del 2015-09-17 17:39:14
Dimensione: 2448
Autore: BornAgain
Commento: pagina di config bgp con bird
Versione 3 del 2015-09-17 21:54:40
Dimensione: 2466
Autore: BornAgain
Commento:
Le cancellazioni sono segnalate in questo modo. Le aggiunte sono segnalate in questo modo.
Linea 35: Linea 35:
                if net ~ 10.0.0.0/8 then accept;
Linea 37: Linea 38:
  if net ~ 10.0.0.0/8 then accept;   

Configurare tinc seguendo questa pagina

a questo punto installare il pacchetto bird

opkg update
opkg install bird4

Finita l'installazione editare la configurazione

vi /etc/bird4.conf

E modificarla come segue inserendo i parametri opportuni

log syslog all; #SE NON SI VUOLE LOGGARE SI PUO' COMMENTARE
 
# Override router ID
router id 10.89.1.254; #INSERIRE IP LOCALE DELLA MACCHINA CHE TIENE IL BGP
 
 
# This pseudo-protocol performs synchronization between BIRD's routing
# tables and the kernel. You can run multiple instances of the kernel
# protocol and synchronize different kernel tables with different BIRD tables.

protocol kernel {

        scan time 20;           # Scan kernel routing table every 20 seconds
        import none;            # Default is import all

        export filter {
                krt_prefsrc = 10.89.1.254; # Set SRC for routes added by BIRD
                if net ~ 10.0.0.0/8 then accept;
                if net ~ 172.16.0.0/12 then accept; #INSERIRE LE SUBNET CHE SI VOGLIONO ACCETTARE (LE 3 DI NINUX)
                if net ~ 192.168.0.0/16 then accept;                            
                
                else reject;
        };
}
 
# This pseudo-protocol watches all interface up/down events.
protocol device {
        scan time 10;           # Scan interfaces every 10 seconds
}
 
protocol static reggio_bgp { #DARE IL NOME CHE SI VUOLE

        route 10.89.0.0/16 reject; #AGGIUNGI I PREFISSI DELL'ISOLA
        route 172.17.89.0/24 reject;
}
  
protocol bgp {

        import all;
        export where proto = "reggio_bgp"; #RICHIAMARE IL NOME DATO AL BGP QUALCHE RIGA SU
 
        local as 64516; #INSERIRE IL NOSTRO AS 
        neighbor 10.150.254.4 as 64512; #INSERIRE AS E IP DEL BGP DI ROMA (O DI QUELLO A CUI CI COLLEGHIAMO)
 
        source address 10.150.254.7;    # What local address we use for the TCP connection

}

Naturalmente il router avrà già installato il pacchetto olsr, ne editiamo la configurazione

vi /etc/config/olsrd

Alla classica configurazione di olsrd aggiungiamo in coda l'annuncio delle tre subnet

config Hna4
        option netaddr '10.0.0.0'
        option netmask '255.0.0.0'

config Hna4
        option netaddr '172.16.0.0'
        option netmask '255.240.0.0'

config Hna4
        option netaddr '192.168.0.0'
        option netmask '255.255.0.0'

-fine-