set protocols bgp network


The set protocols bgp network command specifies the IPv4/IPv6 networks to be advertised by the Border Gateway Protocol (BGP) routing processes.
The delete protocols bgp network command removes an entry from the routing table.


Command Syntax

set protocols bgp [vrf <vrf-name> {ipv4-unicast|ipv6-unicast} network <ip-address/prefixlen> [label-index<label-index>|route-map <ROUTE-MAP-NAME>]

delete protocols bgp [vrf <vrf-name>] {ipv4-unicast|ipv6-unicast} network <ip-address/prefixlen> [label-index<label-index>|route-map <ROUTE-MAP-NAME>]


Parameter

Parameter

Description

vrf <vrf-name>

Optional. Specifies a VRF name. The value is a string. It’s a user-defined VRF set by the command set ip vrf <vrf-name> [description <string>].

{ipv4-unicast|ipv6-unicast}Required. Specifies the IP address family type.
<ip-address/prefixlen>Specifies the IPv4/IPv6 network with mask. For example: 1.1.1.0/24
label-index <label-index>Optional parameter. Specifies a route label.
route-map <ROUTE-MAP-NAME>Optional parameter. Specifies a route map to apply to the prefixes advertised by this specific network statement.


Usage Guidelines
• This command is used to advertise prefixes currently installed in the routing table into the BGP table.
• Use the route-map keyword to apply the specified route map to network advertisements. The mask length as configured in the network statement must match the mask length of prefixes in the routing table.


Example
• This example specifies the networks to be advertised by the Border Gateway Protocol (BGP) routing processes. 

admin@XorPlus# set protocols bgp ipv4-unicast network 11.11.11.0/24
admin@XorPlus# commit


Copyright © 2024 Pica8 Inc. All Rights Reserved.