log syslog { debug, trace, info, remote, warning, error, auth, fatal, bug }; router id 192.168.1.1; table t_tranzit; table t_nix; protocol device { scan time 10; # Scan interfaces every 10 seconds } protocol kernel { persist; # Don't remove routes on bird shutdown scan time 20; # Scan kernel routing table every 20 seconds import all; # Default is import all export all; # Default is export none } ## kernelova tabule 10 je plnena z birdovy tabule nix protocol kernel k_nix { kernel table 10; # Kernel table to synchronize with (default: main) table t_nix; persist; # Don't remove routes on bird shutdown scan time 20; # Scan kernel routing table every 20 seconds import all; # Default is import all export all; # Default is export none } ## kernelova tabule 11 je plnena z birdovy tabule tranzit protocol kernel k_tranzit { kernel table 11; # Kernel table to synchronize with (default: main) table t_tranzit; persist; # Don't remove routes on bird shutdown scan time 20; # Scan kernel routing table every 20 seconds import all; # Default is import all export all; # Default is export none } ## do hlavni tabule posleme vsechno z tabule nix, zpet nic #protocol pipe p_nix { # table t_nix; # peer table master; # import none; # export all; #} ## do hlavni tabule posleme vsechno z tabule tranzit, zpet nic #protocol pipe p_tranzit { # table t_tranzit; # peer table master; # import none; # export all; #} protocol static s_master{ table master; route 4.4.4.0/24 via 172.17.1.1; } protocol static s_nix{ table t_nix; route 5.5.5.0/24 via 172.17.1.1; } protocol static s_tranzit{ table t_tranzit; route 6.6.6.0/24 via 172.17.1.1; } protocol bgp nix1_nix { table t_nix; debug {events, states}; local as 64000; neighbor 192.168.1.3 as 65000; hold time 90; startup hold time 90; connect retry time 30; keepalive time 30; start delay time 5; error wait time 60, 300; error forget time 300; # disable after error; gateway direct; igp metric off; next hop self; path metric 1; default bgp_med 0; import all; export all; }