# config router bgp
set as 65000
set router-id 10.140.1.1
# config neighbor
edit "10.0.0.1"
set remote-as 65000
next
end
# config network
edit 1
set prefix 10.10.10.0 255.255.255.0
# config redistribute "static"
set status enable
# config router static
edit 4
set dst 10.10.10.0 255.255.255.0
set gateway 192.168.10.1
set device "internal"
get router info bgp network 10.10.10.0 <---- On the peer side.
BGP routing table entry for 10.10.10.0/24Advertising to a BGP peer by using both a network statement and redistribute static for a prefix which is also mentioned in a static route entry, the local BGP routing table will have 2 entries:
Paths: (1 available, best 1, table Default-IP-Routing-Table)
Not advertised to any peer
Local
10.140.1.1 from 10.0.8.1 (192.168.10.1)
Origin incomplete metric 0, localpref 100, valid, internal, best
Last update: Tue Feb 4 02:25:22 2020
get router info bgp networkThe first entry does not have a BGP NextHop because it is inserted into the BGP table due to the 'network' statement for 10.10.10.0
BGP table version is 2, local router ID is 10.140.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight RouteTag Path
* 10.10.10.0/24 0.0.0.0 100 32768 0 i <-/-> *>
*> 192.168.10.1 32768 0 ? <-/1>
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.