From 9491f9f593c1195039cecd1bb2a502363b58c66d Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Thu, 6 Oct 2011 23:01:23 +0200 Subject: Use reserved address blocks for documentation (RFC 5737). --- doc/bird.conf.example | 18 +++++++++--------- doc/bird.sgml | 20 ++++++++++---------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/doc/bird.conf.example b/doc/bird.conf.example index 36aa21a..339898f 100644 --- a/doc/bird.conf.example +++ b/doc/bird.conf.example @@ -10,7 +10,7 @@ #log "tmp" all; # Override router ID -#router id 62.168.0.1; +#router id 198.51.100.1; # You can define your own symbols... #define xyzzy = (120+10); @@ -66,12 +66,12 @@ protocol static { # preference 1000; # Default preference of routes # debug { states, routes, filters, interfaces, events, packets }; # debug all; -# route 0.0.0.0/0 via 62.168.0.13; -# route 62.168.0.0/25 reject; +# route 0.0.0.0/0 via 198.51.100.13; +# route 198.51.100.0/25 reject; # route 10.0.0.0/8 reject; -# route 10.1.1.0:255.255.255.0 via 62.168.0.3; -# route 10.1.2.0:255.255.255.0 via 62.168.0.3; -# route 10.1.3.0:255.255.255.0 via 62.168.0.4; +# route 10.1.1.0:255.255.255.0 via 198.51.100.3; +# route 10.1.2.0:255.255.255.0 via 198.51.100.3; +# route 10.1.3.0:255.255.255.0 via 198.51.100.4; # route 10.2.0.0/24 via "arc0"; } @@ -168,7 +168,7 @@ protocol static { # disabled; # description "My BGP uplink"; # local as 65000; -# neighbor 62.168.0.130 as 5588; +# neighbor 198.51.100.130 as 64496; # multihop; # hold time 240; # startup hold time 240; @@ -183,7 +183,7 @@ protocol static { # path metric 1; # Prefer routes with shorter paths (like Cisco does) # default bgp_med 0; # MED value we use for comparison when none is defined # default bgp_local_pref 0; # The same for local preference -# source address 62.168.0.14; # What local address we use for the TCP connection +# source address 198.51.100.14; # What local address we use for the TCP connection # password "secret"; # Password used for MD5 authentication # rr client; # I am a route reflector and the neighor is my client # rr cluster id 1.0.0.1; # Use this value for cluster id instead of my router id @@ -193,7 +193,7 @@ protocol static { # bgp_community = -empty-; bgp_community = add(bgp_community,(65000,5678)); # bgp_origin = 0; # bgp_community = -empty-; bgp_community.add((65000,5678)); -# if (65000,5678) ~ bgp_community then +# if (65000,64501) ~ bgp_community then # bgp_community.add((0, 1)); # if bgp_path ~ [= 65000 =] then # bgp_path.prepend(65000); diff --git a/doc/bird.sgml b/doc/bird.sgml index c929dbe..d454629 100644 --- a/doc/bird.sgml +++ b/doc/bird.sgml @@ -1401,22 +1401,22 @@ with ` protocol bgp { local as 65000; # Use a private AS number - neighbor 62.168.0.130 as 5588; # Our neighbor ... + neighbor 198.51.100.130 as 64496; # Our neighbor ... multihop; # ... which is connected indirectly export filter { # We use non-trivial export rules if source = RTS_STATIC then { # Export only static routes # Assign our community - bgp_community.add((65000,5678)); + bgp_community.add((65000,64501)); # Artificially increase path length # by advertising local AS number twice - if bgp_path ~ [= 65000 =] then - bgp_path.prepend(65000); + if bgp_path ~ [= 65000 =] then + bgp_path.prepend(65000); accept; } reject; }; import all; - source address 62.168.0.1; # Use a non-standard source address + source address 198.51.100.14; # Use a non-standard source address } @@ -2469,12 +2469,12 @@ definition of the protocol contains mainly a list of static routes:

protocol static { table testable; # Connect to a non-default routing table - route 0.0.0.0/0 via 62.168.0.13; # Default route + route 0.0.0.0/0 via 198.51.100.130; # Default route route 10.0.0.0/8 multipath # Multipath route - via 62.168.0.14 weight 2 - via 62.168.1.10 - via 62.168.1.11; - route 62.168.0.0/25 reject; # Sink route + via 198.51.100.10 weight 2 + via 198.51.100.20 + via 192.0.2.1; + route 203.0.113.0/24 reject; # Sink route route 10.2.0.0/24 via "arc0"; # Secondary network } -- cgit v1.2.3