Command map

create bgp peer

Add a peer to the running daemon.

Ze command

Registry path
create bgp peer
Usage
create bgp peer <selector> <asn> [local-as <local-as>] [local-address <local-address>] [router-id <router-id>] [receive-hold-time <receive-hold-time>] [send-hold-time <send-hold-time>] [connect-retry <connect-retry>] [connect <true|false>] [accept <true|false>] [family <family>] [graceful-restart <graceful-restart>] [group-updates <true|false>] [attach <attach>]
Mode
Daemon
Wire method
ze-bgp:peer-create
Backends
any backend
Task support
optional: the MCP call is synchronous, which is the default
Subcommands
none: this command takes no subcommand
Pipes, always
json, ndjson, table, text, yaml, raw, no-more, save
Pipes, when the answer has rows
match, count, first, last, display, fill
Pipes, while streaming
log
Pipes, local process only
save
Column order
peer, remote-as, message

Description

The peer address and 'asn' are required. Every other keyword is
optional. Ze builds the peer, starts it, and dials the address unless 'connect
false' says otherwise. Ze writes nothing to the configuration file, and a
commit or a reload whose configuration does not declare the peer keeps it
running. 'delete bgp peer' is how it leaves, and it does not change the file on
disk either; 'update bgp config' writes the running peers to the file. An
address that already names a peer is refused, and so is a keyword Ze cannot
honor. Each name in 'attach' is bound to the whole surface: that process
receives every message from this peer and can send every type toward it. Write
the receive and send lists in the configuration file when the process needs
less.

Arguments

NameTypeRequiredValuesSummaryDescription
selectorunionyesany value of this typeAddress of the peer to createThe token typed after 'peer' is an IPv4 or IPv6 address and nothing else. A name, a glob or an AS pattern is refused, because a peer that does not exist yet matches none of them. An address that already names a peer is refused.
asnunionyesany value of this typeRemote AS of the peer, in any notation RFC 5396 namesThe value is 1 to 4294967295, in asplain or asdot notation. Ze stores the decimal form whichever notation you typed. AS 0 is refused, because RFC 7607 reserves it.
local-asunionnoany value of this typeLocal AS for this session, overriding the router's, in any notation RFC 5396 namesThe value is 1 to 4294967295, in asplain or asdot notation. Absent, the session uses the router's own AS. AS 0 is refused.
local-addressunionnoany value of this typeLocal address to bind the session toThe value is an IPv4 or IPv6 address of this router. Ze binds the TCP session to it. Absent, the kernel picks the source address.
router-idstringnoany value of this typeBGP Identifier for this session, overriding the router'sThe value is a dotted quad and it MUST NOT be 0.0.0.0. Ze sends it as the BGP Identifier in the OPEN for this session. Absent, the session uses the router's own.
receive-hold-timeuintnoany value of this typeHold time in seconds (RFC 4271)The value is 0 to 65535 seconds and Ze puts it in the Hold Time field of its OPEN. The two peers then hold the lower of the two proposals. Absent, the value is 90.
send-hold-timeuintnoany value of this typeSend hold time in seconds, 0 for automatic (RFC 9687)The value is 0 to 65535 seconds. A non-zero value MUST be at least 480 and more than the receive hold time, or the peer is refused. 0 derives it as the larger of 480 and twice the receive hold time.
connect-retryuintnoany value of this typeConnectRetry interval in secondsThe value is 0 to 65535 seconds and Ze reads it for a dynamic peer alone. A disconnected dynamic peer is removed after this delay when no connection comes back. A static peer reconnects on its own backoff, which this value does not change. Absent, the value is 120.
connectenumnotrue falseDial the peer, default trueThe value is true or false and nothing else. With false, the session comes up only when the peer opens the TCP connection and 'accept' lets it in.
acceptenumnotrue falseAccept a connection from the peer, default trueThe value is true or false and nothing else. With false, the session comes up only when 'connect' lets Ze dial the peer.
familystringnoany value of this typeAddress families to negotiate, comma separatedEach name is an AFI/SAFI pair such as ipv4/unicast, and a name Ze does not know is refused. Ze negotiates each family in the OPEN. Absent, the session uses the configured default families.
graceful-restartuintnoany value of this typeGraceful restart time in seconds (RFC 4724)The value is 0 to 4095 seconds. It is the Restart Time Ze advertises in the graceful restart capability of its OPEN. Absent, the session advertises none.
group-updatesenumnotrue falseGroup this peer's UPDATEs with other peers, default trueThe value is true or false and nothing else. Packing reduces the number of UPDATE messages from one per route to one per set of path attributes. Use false for a peer that requires one prefix per UPDATE.
attachstringnoany value of this typePlugin processes bound to this peer, comma separatedEach name is a plugin process the configuration declares. Ze binds the peer to each one with the whole surface: the process receives every message from this peer and can send every type toward it. An empty name is refused.

Mapping status

No vendor equivalent has been curated yet for this Ze command.

Juniper Junos MX

No equivalent is listed for this vendor yet.

Cisco IOS XR

No equivalent is listed for this vendor yet.

Nokia SR OS

No equivalent is listed for this vendor yet.

VyOS

No equivalent is listed for this vendor yet.