<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://falz.net/index.php?action=history&amp;feed=atom&amp;title=OpenBGPD_configuration_notes</id>
	<title>OpenBGPD configuration notes - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://falz.net/index.php?action=history&amp;feed=atom&amp;title=OpenBGPD_configuration_notes"/>
	<link rel="alternate" type="text/html" href="http://falz.net/index.php?title=OpenBGPD_configuration_notes&amp;action=history"/>
	<updated>2026-04-21T11:10:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://falz.net/index.php?title=OpenBGPD_configuration_notes&amp;diff=58&amp;oldid=prev</id>
		<title>Falz at 15:21, 9 July 2014</title>
		<link rel="alternate" type="text/html" href="http://falz.net/index.php?title=OpenBGPD_configuration_notes&amp;diff=58&amp;oldid=prev"/>
		<updated>2014-07-09T15:21:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:21, 9 July 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Dev]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Unix]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Unix]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Network]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Network]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Falz</name></author>
	</entry>
	<entry>
		<id>http://falz.net/index.php?title=OpenBGPD_configuration_notes&amp;diff=45&amp;oldid=prev</id>
		<title>Falz at 15:18, 9 July 2014</title>
		<link rel="alternate" type="text/html" href="http://falz.net/index.php?title=OpenBGPD_configuration_notes&amp;diff=45&amp;oldid=prev"/>
		<updated>2014-07-09T15:18:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:18, 9 July 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Tech&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Unix&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Network]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Notes below on experimentation with OpenBGPD&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Notes below on experimentation with OpenBGPD&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Falz</name></author>
	</entry>
	<entry>
		<id>http://falz.net/index.php?title=OpenBGPD_configuration_notes&amp;diff=7&amp;oldid=prev</id>
		<title>Falz: Created page with &quot;Category:Tech Notes below on experimentation with OpenBGPD  == Peers == * Neighbor with password that will work with Cisco, Juniper, etc. Also setting attributes using met...&quot;</title>
		<link rel="alternate" type="text/html" href="http://falz.net/index.php?title=OpenBGPD_configuration_notes&amp;diff=7&amp;oldid=prev"/>
		<updated>2014-07-09T15:00:37Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php?title=Category:Tech&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:Tech (page does not exist)&quot;&gt;Category:Tech&lt;/a&gt; Notes below on experimentation with OpenBGPD  == Peers == * Neighbor with password that will work with Cisco, Juniper, etc. Also setting attributes using met...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Tech]]&lt;br /&gt;
Notes below on experimentation with OpenBGPD&lt;br /&gt;
&lt;br /&gt;
== Peers ==&lt;br /&gt;
* Neighbor with password that will work with Cisco, Juniper, etc. Also setting attributes using methodology [http://puck.nether.net/bgp/cisco-config.html here]. Even though this is an EBGP peer we&amp;#039;re still going to &amp;#039;&amp;#039;&amp;#039;announce all&amp;#039;&amp;#039;&amp;#039; instead of &amp;#039;&amp;#039;&amp;#039;announce self&amp;#039;&amp;#039;&amp;#039; because self will only announce originating prefixes. All will allow you to pass your customer or peer prefxies as well.&lt;br /&gt;
&lt;br /&gt;
 AS 65000&lt;br /&gt;
 router-id 4.1.1.2&lt;br /&gt;
 &lt;br /&gt;
 neighbor 4.1.1.1 {&lt;br /&gt;
 	remote-as 65001&lt;br /&gt;
 	announce all&lt;br /&gt;
 &lt;br /&gt;
 	descr &amp;quot;ebgp1&amp;quot;&lt;br /&gt;
 	local-address   4.1.1.2&lt;br /&gt;
 	tcp md5sig password &amp;#039;&amp;#039;secret&amp;#039;&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
 	set med 10&lt;br /&gt;
 	set localpref 80&lt;br /&gt;
 	set community 65000:180&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Filters ==&lt;br /&gt;
Specific examples for [http://www.openbgpd.org/ OpenBGPD]&amp;#039;s filter syntax seem hard to come by, here&amp;#039;s some documentation from my experimentation based on the [http://www.openbsd.org/cgi-bin/man.cgi?query=bgpd.conf bgpd.conf man page].&lt;br /&gt;
&lt;br /&gt;
* Apply community, med, localpref to a prefix&lt;br /&gt;
 match from any prefix 4.0.0.0/8 set med 10&lt;br /&gt;
 match from any prefix 4.0.0.0/8 set localpref 120&lt;br /&gt;
 match from any prefix 4.0.0.0/8 set community 65000:220&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Same as above but with macros matching multiple prefix&lt;br /&gt;
 PREFIXES_TEST = &amp;quot;{ 4.0.0.0/8, 12.0.0.0/8, 66.1.2.0/24 }&amp;quot;&lt;br /&gt;
 match from any prefix $PREFIXES_TEST set med 10&lt;br /&gt;
 match from any prefix $PREFIXES_TEST set localpref 120&lt;br /&gt;
 match from any prefix $PREFIXES_TEST set community 65000:220&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Same again but condensed&lt;br /&gt;
 PREFIXES_TEST = &amp;quot;{ 4.0.0.0/8, 12.0.0.0/8, 66.1.2.0/24 }&amp;quot;&lt;br /&gt;
 match from any prefix $PREFIXES_TEST set { med 10, localpref 120, community 65000:220 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Previous examples are for exact matches. Below will match anything in 4.0.0.0/8 (/9 is what&amp;#039;s actually currently being advertised)&lt;br /&gt;
 PREFIXES_TEST = &amp;quot;{ 4.0.0.0/8, 12.0.0.0/8 }&amp;quot;&lt;br /&gt;
 match from any prefix $PREFIXES_TEST prefixlen &amp;gt;= 8 set { med 10, localpref 120, community 65000:220 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* And with AS numbers (AS must be uppercase!). This will match anywhere in the AS PATH. &lt;br /&gt;
 AS_TEST = &amp;quot;{ 3356, 7018 }&amp;quot;&lt;br /&gt;
 match from any AS $AS_TEST  set { med 99, localpref 199, community 65000:299 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* You can specify where the AS number is in the path as well, but not from a macro. Valid keywords that you can mix and match:&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;peer-as&amp;#039;&amp;#039;&amp;#039;: leftmost AS number&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;source-as&amp;#039;&amp;#039;&amp;#039;: rightmost AS number&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;transit-as&amp;#039;&amp;#039;&amp;#039;: all but the rightmost AS number&lt;br /&gt;
 match from any AS { source-as 3356, 7018 } set { med 99, localpref 199, community 65000:299 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Only send prefixes to neighbor &amp;#039;&amp;#039;&amp;#039;10.170.7.203&amp;#039;&amp;#039;&amp;#039; with communities matching &amp;#039;&amp;#039;&amp;#039;65000:220&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 deny  to 10.170.7.203&lt;br /&gt;
 allow to 10.170.7.203 community 65000:220&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Same as above but with a macro for community:&lt;br /&gt;
 COMMUNITY_TEST = &amp;quot;65000:220&amp;quot;&lt;br /&gt;
 deny  to 10.170.7.203&lt;br /&gt;
 allow to 10.170.7.203 community $COMMUNITY_TEST&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Same again but to a group named &amp;#039;&amp;#039;&amp;#039;IBGP&amp;#039;&amp;#039;&amp;#039; that contains 10.170.7.203&lt;br /&gt;
 COMMUNITY_TEST = &amp;quot;65000:220&amp;quot;&lt;br /&gt;
 deny  to group IBGP&lt;br /&gt;
 allow to group IBGP community $COMMUNITY_TEST&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Apply attributes from a neighbor&lt;br /&gt;
 COMMUNITY_TRANSIT       = &amp;quot;65000:180&amp;quot;&lt;br /&gt;
 match from group GROUP-EBGP set community $COMMUNITY_TRANSIT&lt;br /&gt;
 match from group GROUP-EBGP set med 10&lt;br /&gt;
 match from group GROUP-EBGP set localpref 80&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Originating networks ==&lt;br /&gt;
* Use the network statement in the global config of bgpd.conf:&lt;br /&gt;
 network 200.0.0.0/24&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Set an attribute:&lt;br /&gt;
 network 200.0.0.0/24 set localpref 140&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Set multiple attributes:&lt;br /&gt;
 network 200.0.0.0/24 set { localpref 140 med 10 community 65000:666 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Or set multiple attributes and communities:&lt;br /&gt;
 network 200.0.0.0/24 set { localpref 140 med 10 community 65000:666  community 65000:777 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== IPv6 ==&lt;br /&gt;
* Configuration is the same. &lt;br /&gt;
* Use the &amp;#039;&amp;#039;&amp;#039;inet6&amp;#039;&amp;#039;&amp;#039; keyword for your &amp;#039;&amp;#039;&amp;#039;show&amp;#039;&amp;#039;&amp;#039; commands. &lt;br /&gt;
* The default config is ipv6 equivalents of the ipv4 filters. If you don&amp;#039;t add any filters the &amp;#039;&amp;#039;&amp;#039;deny from any&amp;#039;&amp;#039;&amp;#039; will do just that- deny all ipv6. These seem to be sane default filters including an adaptation of [http://www.space.net/~gert/RIPE/ipv6-filters.html these relaxed filters]:&lt;br /&gt;
 # filter out ipv6 prefixes longer than 48 bits&lt;br /&gt;
 allow from any inet6 prefixlen &amp;lt;= 48 &lt;br /&gt;
 &lt;br /&gt;
 # filter out ipv6 default route&lt;br /&gt;
 deny from any inet6 prefix ::/0 prefixlen = 0&lt;br /&gt;
 &lt;br /&gt;
 # bogons &lt;br /&gt;
 deny  from any inet6 prefix 3ffe::/16		prefixlen &amp;lt;= 128&lt;br /&gt;
 deny  from any inet6 prefix 2001:db8::/32	prefixlen &amp;lt;= 128&lt;br /&gt;
 deny  from any inet6 prefix 2001::/32		prefixlen &amp;lt;= 128&lt;br /&gt;
 deny  from any inet6 prefix 2002::/16		prefixlen &amp;lt;= 128&lt;br /&gt;
 deny  from any inet6 prefix 0000::/8		prefixlen &amp;lt;= 128&lt;br /&gt;
 deny  from any inet6 prefix fe00::/9		prefixlen &amp;lt;= 128&lt;br /&gt;
 deny  from any inet6 prefix ff00::/8		prefixlen &amp;lt;= 128&lt;br /&gt;
 deny  from any inet6 prefix 0::/0		prefixlen &amp;lt;= 128&lt;br /&gt;
 allow from any inet6 prefix 2000::/3		prefixlen &amp;lt;= 48 &lt;br /&gt;
 allow from any inet6 prefix 2001::/32&lt;br /&gt;
 allow from any inet6 prefix 2002::/16&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Performance ==&lt;br /&gt;
Approximate BGP convergence times. Full feeds in these tests comes from a lowly 7200VXR NPE-400. OpenBSD 4.8 i386 running as VMs each with 1 CPU, 512MB ram on a Dell 1950 with dual Xeons and no CPU limit per VM, no VMWare tools installed. OpenBSD runnnig BGP between loopback interfaces reachable via OSPF.&lt;br /&gt;
&lt;br /&gt;
=== Scenario 1 ===&lt;br /&gt;
Tests are with full feeds (~350k prefixes), no filters on OpenBGPD. C1 is OpenBSD Client. Diagram:&lt;br /&gt;
 [NPE-400] --- [OpenBSD C1]&lt;br /&gt;
* No filters, RIB only: ~12 seconds&lt;br /&gt;
* Full feed, no filters, RIB+FIB: ~17 seconds&lt;br /&gt;
&lt;br /&gt;
=== Scenario 2 ===&lt;br /&gt;
RR = Route Reflector, C is RR Client. Tests are when manually shuting down the BGP peer between NPE and RR 1. RR1 is feeding C1 by matching 5 communities each with their own allow rule totaling full feeds:&lt;br /&gt;
 [NPE-400] --- [OpenBSD RR1] --- [OpenBSD C1]&lt;br /&gt;
* 5 rules matching 5 communities: ~30 seconds&lt;br /&gt;
&lt;br /&gt;
=== Scenario 3 ===&lt;br /&gt;
RR1/RR2 = Route Reflectors, C1/2/3 are clients. Tests are when manually shuting down both BGP feeds peer between NPE and RR&amp;#039;s. Same filters as above&lt;br /&gt;
&lt;br /&gt;
             +--- [OpenBSD RR1] --- [OpenBSD C1]&lt;br /&gt;
             |                   \ /&lt;br /&gt;
 [NPE-400] --|                    x [OpenBSD C2]&lt;br /&gt;
             |                   / \&lt;br /&gt;
             +--- [OpenBSD RR2] --- [OpenBSD C3]&lt;br /&gt;
* Full convergence through to all clients ~1 minute&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== System Resources ==&lt;br /&gt;
=== CPU ===&lt;br /&gt;
=== Memory ===&lt;br /&gt;
Memory usage is stellar, this is with a full ipv4 and ipv6 view:&lt;br /&gt;
 rr1# bgpctl show ip bgp memory&lt;br /&gt;
 RDE memory statistics&lt;br /&gt;
    348715 IPv4 unicast network entries using 13.3M of memory&lt;br /&gt;
      4426 IPv6 unicast network entries using 242K of memory&lt;br /&gt;
    706282 rib entries using 43.1M of memory&lt;br /&gt;
    706339 prefix entries using 43.1M of memory&lt;br /&gt;
    124463 BGP path attribute entries using 14.2M of memory&lt;br /&gt;
     56191 BGP AS-PATH attribute entries using 2.7M of memory,&lt;br /&gt;
           and holding 124463 references&lt;br /&gt;
      7445 BGP attributes entries using 291K of memory&lt;br /&gt;
           and holding 89707 references&lt;br /&gt;
      7444 BGP attributes using 104K of memory&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;RIB using 117M of memory&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Gotchas ==&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DO NOT&amp;#039;&amp;#039;&amp;#039; accidentally start a 2nd instance of bgpd or ospfd. Doing so will happily launch without warning and destroy your sessions from the first instance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Most bgpd.conf settings take when you issue &amp;#039;&amp;#039;&amp;#039;bgpctl reload&amp;#039;&amp;#039;&amp;#039;. Some things such as tcp md5 passwords are not. If you add or remove a &amp;#039;&amp;#039;&amp;#039;tcp md5sig password&amp;#039;&amp;#039;&amp;#039; from a neighbor you must:&lt;br /&gt;
 bgpctl reload&lt;br /&gt;
 bgpctl neighbor &amp;#039;&amp;#039;&amp;lt;name&amp;gt;&amp;#039;&amp;#039; clear&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Changing the &amp;#039;&amp;#039;&amp;#039;announce&amp;#039;&amp;#039;&amp;#039; setting on a neighbor such as from &amp;#039;&amp;#039;&amp;#039;announce self&amp;#039;&amp;#039;&amp;#039; to &amp;#039;&amp;#039;&amp;#039;announce all&amp;#039;&amp;#039;&amp;#039; will not take affect with a bgpctl reload / neighbor refresh. You must also clear as above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If you are making changes to networks you&amp;#039;re originating, editing the &amp;#039;network&amp;#039; statement in the conf and ussuing &amp;#039;&amp;#039;&amp;#039;bgpctl reload&amp;#039;&amp;#039;&amp;#039; will not suffice without [http://marc.info/?l=openbsd-misc&amp;amp;m=130401413108992 this patch]. You must set attributes with &amp;#039;&amp;#039;&amp;#039;bgpctl network&amp;#039;&amp;#039;&amp;#039; syntax as follows:&lt;br /&gt;
 bgpctl network add 200.0.0.0/24 localpref 140&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Be sure to not set attributes as follows. Doing so will set ONLY that attribute and reset the others. If you were to issue these statements you&amp;#039;d end up with just community 65000:777 set, med 0, localpref 100.&lt;br /&gt;
 bgpctl network add 200.0.0.0/24 localpref 140&lt;br /&gt;
 bgpctl network add 200.0.0.0/24 med 10&lt;br /&gt;
 bgpctl network add 200.0.0.0/24 community 65000:666 &lt;br /&gt;
 bgpctl network add 200.0.0.0/24 community 65000:777&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Instead you want something like this:&lt;br /&gt;
 bgpctl network add 200.0.0.0/24 localpref 140 med 10 community 65000:666  community 65000:777&lt;/div&gt;</summary>
		<author><name>Falz</name></author>
	</entry>
</feed>