router : bgp : config redistribute, config redistribute6
config redistribute, config redistribute6
Use this subcommand to set or unset BGP redistribution table parameters. Use config redistribute6 for IPv6 routing. You can enable BGP to provide connectivity between connected, static, RIP, and/or OSPF routes. BGP redistributes the routes from one protocol to another. When a large internetwork is divided into multiple routing domains, use the subcommand to redistribute routes to the various domains. As an alternative, you can use the config network subcommand to advertise a prefix to the BGP network (see “config network, config network6”).
The BGP redistribution table contains four static entries. You cannot add entries to the table. The entries are defined as follows:
connected — Redistribute routes learned from a direct connection to the destination network.
isis — Redistribute routes learned from ISIS.
static — Redistribute the static routes defined in the FortiGate unit routing table.
rip — Redistribute routes learned from RIP.
ospf — Redistribute routes learned from OSPF.
When you enter the subcommand, end the command with one of the four static entry names (that is, config redistribute {connected | isis | static | rip | ospf}).
The status and route-map fields are optional.
status {enable | disable}
Enable or disable the redistribution of connected, static, RIP, or OSPF routes.
Specify the name of the route map that identifies the routes to redistribute. You must create the route map before it can be selected here. See router route-map and “Using route maps with BGP”. If a route map is not specified, all routes are redistributed to BGP.
The following example changes the status and route-map fields of the connected entry.
config router bgp
config redistribute connected
set status enable
set route-map rmap1