# config router bgp** FGT-II **
set as 65101
# config neighbor
edit "10.5.20.134"
set soft-reconfiguration enable
set remote-as 65102
next
end
# config redistribute "connected"
set status enable
end
end
# config router bgpSince connected routes are advertised over BGP peers, FGT-I is learning a BGP route 10.0.0.0/20 from FGT II as shown in routing table below.
set as 65102
# config neighbor
edit "10.5.19.83"
set soft-reconfiguration enable
set remote-as 65101
next
end
# config redistribute "connected"
set status enable
end
end
FGT-I # get router info routing-table allOn FGT-I, the external distance of 50 will be defined as shown below.
B 10.0.0.0/20 [20/0] via 10.5.20.134, wan1, 00:00:04
# config router bgpAfter making changes, it is advised to perform a soft BGP reset.
set distance-external 50
end
end
FGT-I # execute router clear bgp all softThe route learned from eBGP peer will be advertised now with a distance of 50.
FGT-I # get router info routing-table allLikewise if a route is learned from an iBGP peer, the default distance is set to a value of 200.
B 10.0.0.0/20 [50/0] via 10.5.20.134, wan1, 00:00:00
distance-external Distance for routes external to the AS. integer Minimum value: 1 Maximum value: 255 Default: 20 (eBGP)
distance-internal Distance for routes internal to the AS. integer Minimum value: 1 Maximum value: 255 Deafault: 200 (iBGP)
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.