Description
Solution
FGT1 (bgp) # get | grep network-import-check
network-import-check: enable
config router bgp
config network
edit 1
set prefix 1.1.1.0 255.255.255.0
next
end
FGT1 # get router info routing-table all
Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP
O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default
S* 0.0.0.0/0 [10/0] via 172.16.19.65, port6
C 10.0.0.0/30 is directly connected, port8
C 192.168.152.48/28 is directly connected, port9
C 172.16.19.64/28 is directly connected, port6
config router bgp
set network-import-check disable
end
FGT1 # get router info bgp network
BGP table version is 1, local router ID is 192.168.152.49
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 Path
*> 1.1.1.0/24 0.0.0.0 100 32768 i
Total number of prefixes 1
FGT1 #
FGT2 # get router info bgp network
BGP table version is 10, local router ID is 192.168.152.50
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 Path
*>i1.1.1.0/24 10.0.0.1 0 100 0 i
Total number of prefixes 1
FGT2 #
FGT2 # get router info routing-table all
Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP
O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default
S* 0.0.0.0/0 [10/0] via 172.16.20.66, port6
B 1.1.1.0/24 [200/0] via 10.0.0.1, port8, 00:00:38
C 10.0.0.0/30 is directly connected, port8
C 192.168.152.48/28 is directly connected, port9
C 172.16.20.64/28 is directly connected, port6
You may also disable the network-import-check per prefix if you don’t want it globally.
Note: This setting is only available starting the 7.0.4 firmware version.
# config router bg
# config networ
edit 1
set prefix 2.2.2.3 255.255.255.255
set network-import-check disable
next
edit 2
set prefix 3.3.3.4 255.255.255.255
set network-import-check disable
next
end
end
Related Articles
Technical Note: Common issue when trying to advertise a subnet to BGP peers