Commit 9491f9f5 authored by Ondrej Zajicek's avatar Ondrej Zajicek
Browse files

Use reserved address blocks for documentation (RFC 5737).

parent 32f95476
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -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);
+10 −10
Original line number Diff line number Diff line
@@ -1401,12 +1401,12 @@ with `<tt/O/') are optional.
<p><code>
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
@@ -1416,7 +1416,7 @@ protocol bgp {
		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
}
</code>

@@ -2469,12 +2469,12 @@ definition of the protocol contains mainly a list of static routes:
<p><code>
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
}
</code>