-
Notifications
You must be signed in to change notification settings - Fork 0
/
bgp.1
129 lines (120 loc) · 3.77 KB
/
bgp.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
.SS "bgp MODULE OPTIONS"
.TP
\-bm\ \fIhex\fR[\fB:\fIhex\fR]...
Set the \fBBGP Marker\fR field to the given value. Each \fIhex\fR value
represents 8 bits so {0..ff}. Not more than 16 \fIhex\fR values will be read!
If less than 16 \fIhex\fR values are given, no adjustments will be made, i.e.
an invalid, too short marker will be used.
Beside the colon (\fB:\fR) one may use any non-hex ASCII character
except '\0' as delimiter, but remember quoting if whitespaces are used and
that leading whitespaces get chomped and thus one may loose bounderies.
Empty or invalid strings are handled as \fB0\fR, so e.g. '::'
becomes '00:00:00'.
Default:\ FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF
.TP
\-bl\ \fInum\fR
Set the total \fBMessage Length\fR to \fInum\fR {0..65535}. Default: auto
.TP
\-bt\ \fInum\fR
Set the \fBMessage Type\fR to \fInum\fR {0..255} (1 OPEN, 2 UPDATE,
3 NOTIFICATION, 4 KEEPALIVE). Default:\ 4
.TP
\-bo\ \fIversion\fB:\fIAS_number\fB:\fIhold_time\fB:\fIID\fB:\fIolength\fR
Append the given \fBOPEN\fR message parameters to the message. Any parameter
can be omitted (empty string) to get the default. The parameters are:
.RS
.TP
\fIversion\fR
BGP version {0..255} (\fIrnum\fR). Default:\ 4
.TP
\fIAS_number\fR
Autonomous System number {0..0xffff} (\fIrnum\fR). Default:\ 1
.TP
\fIhold_time\fR
Hold Timer value in seconds {0..0xffff} (\fIrnum\fR). Default:\ 90
.TP
\fIID\fR
BGP Identifier. It can be a normal IPv4 address or a decimal number in the
range of {0..0xffffffff}. Default:\ 127.0.0.1
.TP
\fIolength\fR
The length of the Optional Parameters field {0..255} (\fIrnum\fR).
Default:\ auto
.RE
.TP
\-boo\ \fItype\fB:\fR[\fIlength\fR]\fB:\fIvalue\fR
Append the given \fBOptional parameter\fR to the OPEN message. Any parameter
can be omitted (empty string) to get the default. The parameters
are:
.RS
.TP
\fItype\fR
The parameter type {0..255} (\fIrnum\fR). Default:\ 0
.TP
\fIlength\fR
The length of the parameter value in octets {0..255} (\fIrnum\fR).
Default:\ auto
.TP
\fIvalue\fR
A sequence of max. 255 bytes given as \fIhex\fR values separated by a
colon ('\fB:\fR'), or any other non-hex character.
.RE
.TP
\-bul\ \fInum\fR
Append the total length of \fBWithdrawn routes\fR {0..0xffff} to the UPDATE
message. Default:\ auto
.TP
\-buw\ \fIprefix\fR[\fB:\fIlength\fR]
Append the given \fBWithdrawn route\fR to the UPDATE message. The parameters
are:
.RS
.TP
\fIprefix\fB
An IP address prefix in CIDR notation, i.e. x.x.x.x/n .
.TP
\fIlength\fR
The length of the prefix in octets {0..255} (\fIrnum\fR). Default:\ auto.
.RE
.TP
\-bus\ \fInum\fR
Set the \fBAttributes length\fR to \fInum\fR {0..0xffffffff} for the UPDATE
message. Default: auto
.TP
\-bua\ \fIflags\fB:\fItype\fB:\fR[\fIlength\fR]\fB:\fIdata\fR
Append the given \fBAttribute\fR to the UPDATE message. The parameters are:
.RS
.TP
\fIflags\fR
The flags for the attribute entry {0..255} (\fIrnum\fR).
.TP
\fItype\fR
The attribute type {0..255} (\fIrnum\fR).
.TP
\fIlength\fR
The length of the attribute data in octets, depending on flags {0..255}
or {0..0xffff} (\fIrnum\fR). Default:\ auto
.TP
\fIdata\fR
The attribute data to set represented as sequence of \fIhex\fR bytes separated
by a colon ('\fB:\fR'), or any other non-hex character.
Depending on \fIflags\fR max. 255 or 0xffff bytes will be read.
.RE
.TP
\-bun\ \fIprefix\fR[\fB:\fIlength\fR]
Append the Network Layer Reachability Information (\fBNLRI\fR) to the UPDATE
message. The parameters are the same as for \fB-buw\fR.
.TP
\-bn\ \fIcode\fB:\fIsubcode\fB:\fR[\fIdata\fR]
Append the given \fBNotification\fR to the message. The parameters are:
.RS
.TP
\fIcode\fB
The error code to set {0..255} (\fIrnum\fR). Default:\ 0
.TP
\fIsubcode\fR
The error subcode to set {0..255} (\fIrnum\fR). Default:\ 0
.TP
\fIdata\fR
The reason for the notification - max. 4096 hex bytes. Omit for no data.
Default:\ ""
.RE