| 1 |
From: Apollon Oikonomopoulos <[email protected]> |
| 2 |
Date: Mon, 9 Jan 2023 21:34:07 +0200 |
| 3 |
Subject: Fix manpage errors |
| 4 |
|
| 5 |
The manpage is using a couple of man macros while it's written with the mdoc |
| 6 |
package. Replace .RS and .RE with .Rs and .Re respectively and format the SEE |
| 7 |
ALSO section a bit better. |
| 8 |
Forwarded: no |
| 9 |
Last-Update: 2015-10-23 |
| 10 |
--- |
| 11 |
bgpq3.8 | 34 ++++++++++++++++++---------------- |
| 12 |
1 file changed, 18 insertions(+), 16 deletions(-) |
| 13 |
|
| 14 |
diff --git a/bgpq3.8 b/bgpq3.8 |
| 15 |
index 724e769..6b7384e 100644 |
| 16 |
--- a/bgpq3.8 |
| 17 |
+++ b/bgpq3.8 |
| 18 |
@@ -138,7 +138,7 @@ those objects will be excluded from expansion. |
| 19 |
.Sh EXAMPLES |
| 20 |
Generating named juniper prefix-filter for AS20597: |
| 21 |
.nf |
| 22 |
-.RS |
| 23 |
+.Rs |
| 24 |
~>bgpq3 -Jl eltel AS20597 |
| 25 |
policy-options { |
| 26 |
replace: |
| 27 |
@@ -158,13 +158,13 @@ replace: |
| 28 |
217.170.80.0/20; |
| 29 |
} |
| 30 |
} |
| 31 |
-.RE |
| 32 |
+.Re |
| 33 |
.fi |
| 34 |
.Pp |
| 35 |
For Cisco we can use aggregation (-A) flag to make this prefix-filter |
| 36 |
more compact: |
| 37 |
.nf |
| 38 |
-.RS |
| 39 |
+.Rs |
| 40 |
~>bgpq3 -Al eltel AS20597 |
| 41 |
no ip prefix-list eltel |
| 42 |
ip prefix-list eltel permit 81.9.0.0/20 |
| 43 |
@@ -178,7 +178,7 @@ ip prefix-list eltel permit 89.112.0.0/18 ge 19 le 19 |
| 44 |
ip prefix-list eltel permit 89.112.4.0/22 |
| 45 |
ip prefix-list eltel permit 89.112.64.0/19 |
| 46 |
ip prefix-list eltel permit 217.170.64.0/19 ge 20 le 20 |
| 47 |
-.RE |
| 48 |
+.Re |
| 49 |
.fi |
| 50 |
- you see, prefixes 89.112.0.0/19 and 89.112.32.0/19 now aggregated |
| 51 |
into single entry 89.112.0.0/18 ge 19 le 19. |
| 52 |
@@ -186,7 +186,7 @@ into single entry 89.112.0.0/18 ge 19 le 19. |
| 53 |
Well, for Juniper we can generate even more interesting policy-options, |
| 54 |
using -M <extra match conditions>, -R <len> and hierarchical names: |
| 55 |
.nf |
| 56 |
-.RS |
| 57 |
+.Rs |
| 58 |
~>bgpq3 -AJEl eltel/specifics -r 29 -R 32 -M "community blackhole" AS20597 |
| 59 |
policy-options { |
| 60 |
policy-statement eltel { |
| 61 |
@@ -207,7 +207,7 @@ replace: |
| 62 |
} |
| 63 |
} |
| 64 |
} |
| 65 |
-.RE |
| 66 |
+.Re |
| 67 |
.fi |
| 68 |
generated policy-option term now allows all specifics with prefix-length |
| 69 |
between /29 and /32 for eltel networks if they match with special community |
| 70 |
@@ -215,17 +215,17 @@ blackhole (defined elsewhere in configuration). |
| 71 |
.Pp |
| 72 |
Of course, this version supports IPv6 (-6): |
| 73 |
.nf |
| 74 |
-.RS |
| 75 |
+.Rs |
| 76 |
~>bgpq3 -6l as-retn-6 AS-RETN6 |
| 77 |
no ipv6 prefix-list as-retn-6 |
| 78 |
ipv6 prefix-list as-retn-6 permit 2001:7fb:fe00::/48 |
| 79 |
ipv6 prefix-list as-retn-6 permit 2001:7fb:fe01::/48 |
| 80 |
[....] |
| 81 |
-.RE |
| 82 |
+.Re |
| 83 |
.fi |
| 84 |
and support for ASN 32 is also here |
| 85 |
.nf |
| 86 |
-.RS |
| 87 |
+.Rs |
| 88 |
~>bgpq3 -J3f 112 AS-SPACENET |
| 89 |
policy-options { |
| 90 |
replace: |
| 91 |
@@ -236,14 +236,14 @@ replace: |
| 92 |
as-path a3 "^112(.)*(35052|41720|43628|44450|196611)$"; |
| 93 |
} |
| 94 |
} |
| 95 |
-.RE |
| 96 |
+.Re |
| 97 |
.fi |
| 98 |
see AS196611 in the end of the list ? That's AS3.3 in 'asplain' notation. |
| 99 |
.Pp |
| 100 |
For non-ASN32 capable routers you should not use switch -3, |
| 101 |
and the result will be next: |
| 102 |
.nf |
| 103 |
-.RS |
| 104 |
+.Rs |
| 105 |
~>bgpq3 -f 112 AS-SPACENET |
| 106 |
no ip as-path access-list NN |
| 107 |
ip as-path access-list NN permit ^112(_112)*$ |
| 108 |
@@ -252,7 +252,7 @@ ip as-path access-list NN permit ^112(_[0-9]+)*_(8878|12136|12931|15909)$ |
| 109 |
ip as-path access-list NN permit ^112(_[0-9]+)*_(21358|23456|23600|24151)$ |
| 110 |
ip as-path access-list NN permit ^112(_[0-9]+)*_(25152|31529|34127|34906)$ |
| 111 |
ip as-path access-list NN permit ^112(_[0-9]+)*_(35052|41720|43628|44450)$ |
| 112 |
-.RE |
| 113 |
+.Re |
| 114 |
.fi |
| 115 |
.Pp |
| 116 |
AS196611 is no more in the list, however, AS23456 (transition AS) |
| 117 |
@@ -262,13 +262,13 @@ If you want to generate configuration not for routers, but for some |
| 118 |
other programs/systems, you may use user-defined formatting, like in |
| 119 |
example below: |
| 120 |
.nf |
| 121 |
-.RS |
| 122 |
+.Rs |
| 123 |
user@host:~>bgpq3 -F "ipfw add pass all from %n/%l to any\\n" as3254 |
| 124 |
ipfw add pass all from 62.244.0.0/18 to any |
| 125 |
ipfw add pass all from 91.219.29.0/24 to any |
| 126 |
ipfw add pass all from 91.219.30.0/24 to any |
| 127 |
ipfw add pass all from 193.193.192.0/19 to any |
| 128 |
-.RE |
| 129 |
+.Re |
| 130 |
.fi |
| 131 |
.Pp |
| 132 |
Recognized format characters: %n - network, %l - mask length, |
| 133 |
@@ -278,10 +278,10 @@ Please note that no new lines inserted automatically after each sentence, |
| 134 |
you have to add them into format string manually, elsewhere output will |
| 135 |
be in one line (sometimes it makes sense): |
| 136 |
.nf |
| 137 |
-.RS |
| 138 |
+.Rs |
| 139 |
user@host:~>bgpq3 -6F "%n/%l; " as-eltel |
| 140 |
2001:1b00::/32; 2620:4f:8000::/48; 2a04:bac0::/29; 2a05:3a80::/48; |
| 141 |
-.RE |
| 142 |
+.Re |
| 143 |
.fi |
| 144 |
.Sh DIAGNOSTICS |
| 145 |
When everything is OK, |
| 146 |
@@ -292,8 +292,10 @@ non-zero status. |
| 147 |
.Sh SEE ALSO |
| 148 |
.Sy http://www.radb.net/ |
| 149 |
Routing Arbiter project |
| 150 |
+.Pp |
| 151 |
.Sy http://tools.ietf.org/html/draft-michaelson-4byte-as-representation-05 |
| 152 |
for information on 'asdot' and 'asplain' notations. |
| 153 |
+.Pp |
| 154 |
.Sy http://www.cisco.com/en/US/docs/ios/12_0s/release/ntes/120SNEWF.html#wp3521658 |
| 155 |
for information on Cisco implementation of ASN32. |
| 156 |
.Sh AUTHOR |