router : bgp : config network, config network6
 
config network, config network6
Use this subcommand to set or unset BGP network configuration parameters. The subcommand is used to advertise a BGP network (that is, an IP prefix) — you specify the IP addresses making up the local BGP network. Use config network6 for IPv6 routing.
When you enable the network-import-check attribute in the config router bgp subcommand, (see network-import-check {disable | enable}) and you specify a BGP network prefix through the config network subcommand, the FortiGate unit searches its routing table for a matching entry. If an exact match is found, the prefix is advertised. A route-map can optionally be used to modify the attributes of routes before they are advertised.
The prefix field is required. All other fields are optional.
 
Variable
Description
Default
edit <network_id>
Enter an ID number for the entry. The number must be an integer.
No default.
backdoor
{enable | disable}
Enable or disable the route as a backdoor, which causes an administrative distance of 200 to be assigned to the route. Backdoor routes are not advertised to EBGP peers.
disable
prefix <address_ipv4mask>
Enter the IP address and netmask that identifies the BGP network to advertise.
0.0.0.0
0.0.0.0
prefix6 <address_ipv6mask>
Enter the IP address and netmask that identifies the BGP network to advertise.
::/0
route-map
<routemap-name_str>
Specify the name of the route-map that will be used to modify the attributes of the route before it is advertised. You must create the route-map before it can be selected here. See “route-map” and “Using route maps with BGP”.
Null.
Example
This example defines a BGP network at IP address 10.0.0.0/8. A route map named BGP_rmap1 is used to modify the attributes of the local BGP routes before they are advertised.
config router bgp
config network
edit 1
set prefix 10.0.0.0/8
set route-map BGP_rmap1
end
end
 
config router route-map
edit BGP_rmap1
config rule
edit 1
set set-community no-export
end
end