-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBIRD.conf
30 lines (27 loc) · 1.4 KB
/
BIRD.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
router id 10.0.0.27; ipv4 table t_direct; protocol device {
}
protocol kernel { ipv4 { import all; export all;
}; learn; }
protocol direct local_nets {
ipv4 { table t_direct; import all;
};
interface "net0";
}
define LOCAL_COMM = (161, 0, 0); define CUSTOMER_COMM = (161, 1, 0); define PEER_COMM = (161, 2, 0);
define PROVIDER_COMM = (161, 3, 0); ipv4 table t_bgp; protocol pipe { table t_bgp; peer table master4; import none; export all;
} protocol pipe { table t_direct; peer table t_bgp; import none;
export filter { bgp_large_community.add(LOCAL_COMM); bgp_local_pref = 40; accept; };
}
protocol bgp u_as3 { ipv4 { table t_bgp; import filter {
bgp_large_community.add(PROVIDER_COMM);
bgp_local_pref = 10; accept;
};
export where bgp_large_community ~ [LOCAL_COMM, CUSTOMER_COMM]; next hop self;
};
local 10.103.0.161 as 161; neighbor 10.103.0.3 as 3;
} ipv4 table t_ospf; protocol ospf ospf1 { ipv4 { table t_ospf; import all; export all;
}; area 0 {
interface "dummy0" { stub; }; interface "ix103" { stub; }; interface "net0" { hello 1; dead count 2; };
};
} protocol pipe { table t_ospf; peer table master4; import none; export all;
}