Fortinet black logo

Examples

Configuring BGP on spokes

Configuring BGP on spokes

Use a CLI template to configure the router-bgp in the branches.

To create the CLI template:
  1. Go to Device Manager > Provisioning Templates > CLI Template.
  2. In the toolbar, click Create New > CLI Template.
  3. In the Template Name box, type Spoke-Routing-BGP.
  4. In the Script details field, paste the commands, and click OK.
To add the CLI template to the CLI template group:
  1. Go to Device Manager > Provisioning Templates > CLI Template.
  2. Under CLI Template Group, select Spoke-Template, and click Edit.
  3. Beside Members, click Add (+), and select the CLI template named Spoke-Routing-BGP, and click OK.
  4. Click OK to save changes to the CLI template group.
  5. Install the CLI template to all spokes by using Install > Quick Install (Device DB).
Example of spoke script details

config router bgp

set as 65501

set router-id 10.254.40.2

set keepalive-timer 1

set holdtime-timer 3

set ebgp-multipath enable

set scan-time 5

set distance-external 1

config neighbor

edit "10.254.40.1"

set advertisement-interval 1

set link-down-failover enable

set soft-reconfiguration enable

set remote-as 65500

set keep-alive-timer 1

set holdtime-timer 3

next

edit "10.254.41.1"

set advertisement-interval 1

set link-down-failover enable

set soft-reconfiguration enable

set remote-as 65500

set keep-alive-timer 1

set holdtime-timer 3

next

end

config network

edit 1

set prefix 10.100.4.0 255.255.255.0

next

end

end

Configuring BGP on spokes

Use a CLI template to configure the router-bgp in the branches.

To create the CLI template:
  1. Go to Device Manager > Provisioning Templates > CLI Template.
  2. In the toolbar, click Create New > CLI Template.
  3. In the Template Name box, type Spoke-Routing-BGP.
  4. In the Script details field, paste the commands, and click OK.
To add the CLI template to the CLI template group:
  1. Go to Device Manager > Provisioning Templates > CLI Template.
  2. Under CLI Template Group, select Spoke-Template, and click Edit.
  3. Beside Members, click Add (+), and select the CLI template named Spoke-Routing-BGP, and click OK.
  4. Click OK to save changes to the CLI template group.
  5. Install the CLI template to all spokes by using Install > Quick Install (Device DB).
Example of spoke script details

config router bgp

set as 65501

set router-id 10.254.40.2

set keepalive-timer 1

set holdtime-timer 3

set ebgp-multipath enable

set scan-time 5

set distance-external 1

config neighbor

edit "10.254.40.1"

set advertisement-interval 1

set link-down-failover enable

set soft-reconfiguration enable

set remote-as 65500

set keep-alive-timer 1

set holdtime-timer 3

next

edit "10.254.41.1"

set advertisement-interval 1

set link-down-failover enable

set soft-reconfiguration enable

set remote-as 65500

set keep-alive-timer 1

set holdtime-timer 3

next

end

config network

edit 1

set prefix 10.100.4.0 255.255.255.0

next

end

end