Chapter 19 Routing Protocol
ZyWALL Series CLI Reference Guide
184
19.3.1 BGP Commands
This table lists the commands for BGP configuration.
Table 92 bgp Commands
COMMAND DESCRIPTION
router bgp
Enters router sub-command mode.
[no] as-number <1..4294967295>
Sets the AS number from 1 to 4294967295 in this field. Get the number
from your service provider. The Zyxel Device can only belong to one AS
at a time.
The
no command clears the AS number.
[no] network ipv4_cidr
Add routes that will be announced to all BGP neighbors. You may
configure up to 16 network routes.
ipv4_cidr: IPv4 subnet in CIDR format, i.e. 192.168.1.0/32 <W.X.Y.Z>/
<1..32>
The
no command clears the network.
[no] redistribute connected
Redistributes routes of directly attached devices to the Zyxel Device
into the BGP Routing Information Base (RIB)
The
no command clears the RIB.
[no] router-id router-id
Sets the IP address of the interface on the Zyxel Device. This field is
optional.
The
no command clears the router ID.
quit
Leaves sub-command mode.
exit
Leaves sub-command mode.
[no] neighbor ipv4
Sets the IPv4 address of the peer BGP router in a neighboring AS.
ipv4: IPv4 address <W.X.Y.Z>
The
no command clears the IPv4 address of the peer BGP router.
[no] neighbor ipv4 description
description
Sets a neighbor description to identify the neighbor.
The
no command clears the neighbor description.
[no] neighbor ipv4 remote-as
<1..4294967295>
Sets the AS number of the neighboring AS.
The
no command clears the neighbor AS number.
[no] neighbor ipv4 weight <1..65535>
Specifies a weight value for all routes learned from this peer BGP router
in the specified network. The route with the highest weight gets
preference.
The
no command clears the weight.
[no] neighbor ipv4 ebgp-multihop
hops <1..255>
Sets the maximum hop count that the Zyxel Device can attempt for
BGP connections to external peers on indirectly connected networks.
eBGP neighbors must also perform multihop. Multihop is not established
if the only route to the multihop peer is a default route. This avoids loop
formation.
The
no command forbids the Zyxel Device from attempting BGP
connections to external peers on indirectly connected networks.
[no] maximum-paths <1..255>
Sets the maximum number of paths allowed to a peer BGP router in a
neighboring AS.
The
no command clears the maximum paths.