Merge pull request #54 from eloicaso/master
[feed/routing.git] / bird-openwrt / bird4-openwrt / src / config / bird4
1 config bird 'bird'
2 option use_UCI_config '1'
3 #Caution! Enabling this option, Bird will translate this
4 #UCI file and use it instead of /etc/bird4.conf
5 option UCI_config_file '/tmp/bird4.conf'
6 #If you enable useUCIconfig, UCIconfigFile will be Bird's
7 #configuration file location.
8
9 config global 'global'
10 option log_file '/tmp/bird4.log'
11 option log 'all'
12 option debug 'off'
13 option router_id '172.16.1.6'
14
15 config table
16 option name 'aux'
17
18 config kernel kernel1
19 option table 'aux'
20 option import 'all'
21 option export 'all'
22 option kernel_table '100'
23 option scan_time '10'
24 option learn '1'
25 option persist '0'
26 option disabled '0'
27
28 config device device1
29 option scan_time '10'
30 option disabled '0'
31
32 config static static1
33 option table 'aux'
34 option disabled '0'
35
36 config bgp bgp1
37 option template 'bgp_common'
38 option description 'Description of the BGP instance'
39 option neighbor_address '172.16.1.5'
40 option neighbor_as '65530'
41 option source_address '172.16.1.6'
42 option next_hop_self '0'
43 option next_hop_keep '0'
44 option rr_client '1'
45 option rr_cluster_id '172.16.1.6'
46
47 config bgp_template bgp_common
48 option table 'aux'
49 option import 'all'
50 option export 'all'
51 option local_address '172.16.1.6'
52 option local_as '65001'
53 option import_limit '100'
54 option import_limit_action 'warn'
55 option export_limit '100'
56 option export_limit_action 'warn'
57 option receive_limit '100'
58 option receive_limit_action 'warn'
59 option disabled '0'
60
61 config ospf ospf1
62 option cfg1583compat '1'
63
64 config ospf_area '0.0.0.0'
65 option instance 'ospf1'
66 option stub '0'
67
68 config ospf_interface '*'
69 option area '0.0.0.0'
70 option cost '100'
71 option type 'broadcast'
72 option hello '5'
73 option password '1'
74
75 config ospf_password '1'
76 option authentication 'cryptographic'
77 option passphrase '1234'
78
79 config ospf_networks
80 option area '0.0.0.0'
81 list prefix '10.0.0.0/24'
82
83 config ospf_hidden_networks
84 option area '0.0.0.0'
85 option prefix '12.0.0.0/24'
86
87 config ospf_stubnet '11.0.0.0/24'
88 option area '0.0.0.0'
89 option hidden '0'
90 option summary '0'
91 option cost '101'
92
93 config route
94 option instance 'static1'
95 option type 'router'
96 option prefix '192.168.9.0/24'
97 option via '10.99.105.159'
98
99 config route
100 option instance 'static1'
101 option type 'special'
102 option prefix '192.168.2.0/24'
103 option attribute 'unreachable'
104
105 config route
106 option instance 'static1'
107 option type 'iface'
108 option prefix '192.168.3.0/24'
109 option iface 'mgmt0'
110
111 config route
112 option instance 'static1'
113 option type 'recursive'
114 option prefix '192.168.4.0/24'
115 option ip '192.168.1.1'
116
117 config route
118 option instance 'static1'
119 option type 'multipath'
120 option prefix '192.168.30.0/24'
121 list l_via '172.16.1.5'
122 list l_via '172.16.1.6'
123
124 config filter 'firstFilter'
125 option type 'bgp'
126 option instance 'bgp1'
127 option file_path '/var/filters/f1'
128
129