Use reserved address blocks for documentation (RFC 5737).
This commit is contained in:
parent
32f95476a8
commit
9491f9f593
2 changed files with 19 additions and 19 deletions
|
@ -10,7 +10,7 @@
|
||||||
#log "tmp" all;
|
#log "tmp" all;
|
||||||
|
|
||||||
# Override router ID
|
# Override router ID
|
||||||
#router id 62.168.0.1;
|
#router id 198.51.100.1;
|
||||||
|
|
||||||
# You can define your own symbols...
|
# You can define your own symbols...
|
||||||
#define xyzzy = (120+10);
|
#define xyzzy = (120+10);
|
||||||
|
@ -66,12 +66,12 @@ protocol static {
|
||||||
# preference 1000; # Default preference of routes
|
# preference 1000; # Default preference of routes
|
||||||
# debug { states, routes, filters, interfaces, events, packets };
|
# debug { states, routes, filters, interfaces, events, packets };
|
||||||
# debug all;
|
# debug all;
|
||||||
# route 0.0.0.0/0 via 62.168.0.13;
|
# route 0.0.0.0/0 via 198.51.100.13;
|
||||||
# route 62.168.0.0/25 reject;
|
# route 198.51.100.0/25 reject;
|
||||||
# route 10.0.0.0/8 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.1.0:255.255.255.0 via 198.51.100.3;
|
||||||
# route 10.1.2.0:255.255.255.0 via 62.168.0.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 62.168.0.4;
|
# route 10.1.3.0:255.255.255.0 via 198.51.100.4;
|
||||||
# route 10.2.0.0/24 via "arc0";
|
# route 10.2.0.0/24 via "arc0";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -168,7 +168,7 @@ protocol static {
|
||||||
# disabled;
|
# disabled;
|
||||||
# description "My BGP uplink";
|
# description "My BGP uplink";
|
||||||
# local as 65000;
|
# local as 65000;
|
||||||
# neighbor 62.168.0.130 as 5588;
|
# neighbor 198.51.100.130 as 64496;
|
||||||
# multihop;
|
# multihop;
|
||||||
# hold time 240;
|
# hold time 240;
|
||||||
# startup hold time 240;
|
# startup hold time 240;
|
||||||
|
@ -183,7 +183,7 @@ protocol static {
|
||||||
# path metric 1; # Prefer routes with shorter paths (like Cisco does)
|
# 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_med 0; # MED value we use for comparison when none is defined
|
||||||
# default bgp_local_pref 0; # The same for local preference
|
# 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
|
# password "secret"; # Password used for MD5 authentication
|
||||||
# rr client; # I am a route reflector and the neighor is my client
|
# 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
|
# 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_community = -empty-; bgp_community = add(bgp_community,(65000,5678));
|
||||||
# bgp_origin = 0;
|
# bgp_origin = 0;
|
||||||
# bgp_community = -empty-; bgp_community.add((65000,5678));
|
# 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));
|
# bgp_community.add((0, 1));
|
||||||
# if bgp_path ~ [= 65000 =] then
|
# if bgp_path ~ [= 65000 =] then
|
||||||
# bgp_path.prepend(65000);
|
# bgp_path.prepend(65000);
|
||||||
|
|
|
@ -1401,12 +1401,12 @@ with `<tt/O/') are optional.
|
||||||
<p><code>
|
<p><code>
|
||||||
protocol bgp {
|
protocol bgp {
|
||||||
local as 65000; # Use a private AS number
|
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
|
multihop; # ... which is connected indirectly
|
||||||
export filter { # We use non-trivial export rules
|
export filter { # We use non-trivial export rules
|
||||||
if source = RTS_STATIC then { # Export only static routes
|
if source = RTS_STATIC then { # Export only static routes
|
||||||
# Assign our community
|
# Assign our community
|
||||||
bgp_community.add((65000,5678));
|
bgp_community.add((65000,64501));
|
||||||
# Artificially increase path length
|
# Artificially increase path length
|
||||||
# by advertising local AS number twice
|
# by advertising local AS number twice
|
||||||
if bgp_path ~ [= 65000 =] then
|
if bgp_path ~ [= 65000 =] then
|
||||||
|
@ -1416,7 +1416,7 @@ protocol bgp {
|
||||||
reject;
|
reject;
|
||||||
};
|
};
|
||||||
import all;
|
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
|
||||||
}
|
}
|
||||||
</code>
|
</code>
|
||||||
|
|
||||||
|
@ -2469,12 +2469,12 @@ definition of the protocol contains mainly a list of static routes:
|
||||||
<p><code>
|
<p><code>
|
||||||
protocol static {
|
protocol static {
|
||||||
table testable; # Connect to a non-default routing table
|
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
|
route 10.0.0.0/8 multipath # Multipath route
|
||||||
via 62.168.0.14 weight 2
|
via 198.51.100.10 weight 2
|
||||||
via 62.168.1.10
|
via 198.51.100.20
|
||||||
via 62.168.1.11;
|
via 192.0.2.1;
|
||||||
route 62.168.0.0/25 reject; # Sink route
|
route 203.0.113.0/24 reject; # Sink route
|
||||||
route 10.2.0.0/24 via "arc0"; # Secondary network
|
route 10.2.0.0/24 via "arc0"; # Secondary network
|
||||||
}
|
}
|
||||||
</code>
|
</code>
|
||||||
|
|
Loading…
Reference in a new issue