ā04-09-2017 07:18 PM - edited ā03-08-2019 10:08 AM
in bgp session, my int g0/0/3 ip address 192.168.1.2/24, i enter command network 192.168.1.0 255.255.255.0 under router bgp 65111,
then i show ip route 192.168.1.0,but it says subnet not in table.
do i need to clear ip bgp * so, or there is other reason for it?
ā04-09-2017 10:11 PM
Hi
Is the interface g0/0/3 no shutdown?
Please correct me, is the network 192.168.1.0 255.255.255.0 configured on the same router where BGP is running?
If the network is not known on the router where BGP is configured it will not advertised the network. BGP will advertised the network always the prefix is known through the routing table and it is configured with the proper subnet mask through the network command line.
If the prefix has no entry on the routing table you can use a routing protocol to reach it.
ā04-09-2017 11:22 PM
hi, no . we only define ip address 192.168.1.3, the interface is up/up. then we define network command in BGP, how to correct?
ā04-10-2017 12:10 AM
Hi,
Even if you dont advertise network in BGP, still show ip route 192.168.1.0 shows output as connected network if interface is UP.
ā04-10-2017 03:59 AM
Hi
If the interface g0/0/3 is up you should see on the routing table the entry as directly connected. Now if the interface g0/0/3 (and is up) and the BGP process are on the same router you should be able to advertise the network to your neighbors using:
router bgp 65111
network 192.168.1.0 mask 255.255.255.0
or are you using any VRF? otherwise you should use:
show ip route vrf <VRF name> 192.168.1.0
:-)
ā04-09-2017 10:21 PM
Do you have this interface Up ?
Ajay
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide