#config router bgp
set as 65000
set router-id 2.2.2.2
config neighbor
edit "10.109.16.85"
set capability-default-originate enable
set soft-reconfiguration enable
set remote-as 65001
set route-map-out "prepend_all"
next
end
config network
edit 1
set prefix 2.2.2.2 255.255.255.255
next
end
end
#config router route-map
edit "prepend_default_route"
config rule
edit 1
set match-ip-address "default_route_only"
set set-aspath "65000 65000"
next
end
next
edit "prepend_all"
config rule
edit 1
set match-ip-address "any_prefix"
set set-aspath "65000 65000 65000 65000"
next
end
next
end
#config router prefix-list
edit "any_prefix"
config rule
edit 1
set prefix any
unset ge
unset le
next
end
next
#config router prefix-listFGT2 (root) # show router route-map
edit "default_route_only"
config rule
edit 1
set prefix 0.0.0.0 0.0.0.0
unset ge
unset le
next
end
next
end
#config router route-mapFGT3 (root) # show router bgp
edit "prepend_default_route"
config rule
edit 1
set match-ip-address "default_route_only"
set set-aspath "65000 65000"
next
end
next
#config router bgpStatus on FGT1 now:
set as 65000
set router-id 2.2.2.2
config neighbor
edit "10.109.16.85"
set capability-default-originate enable
set soft-reconfiguration enable
set default-originate-routemap "prepend_default_route" <<<<
set remote-as 65001
set route-map-out "prepend_all"
next
end
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.