cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
711
Views
0
Helpful
3
Replies

redistribution-routes

ShamsDim
Level 1
Level 1

hi

can anybody help me with this issue

I am trying to redistribute the 192.168.1.1/32 into ospf

BGP in enabled on R1 and R2 only

all the settings are as default

I can see the route in R2's BGP table, but I can't see it in OSPF after redistribution

 

R1#show ip interface brief
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0 10.123.1.1 YES manual up up
GigabitEthernet0/1 unassigned YES unset up up
GigabitEthernet0/2 unassigned YES unset up up
GigabitEthernet0/3 unassigned YES unset up up
Loopback0 192.168.1.1 YES manual up up

 

R1#show running-config | section router
router bgp 100
bgp log-neighbor-changes
network 192.168.1.1 mask 255.255.255.255
neighbor 10.123.1.2 remote-as 200

 

R2#show ip route bgp | begin Gateway
Gateway of last resort is not set

192.168.1.0/32 is subnetted, 1 subnets
B 192.168.1.1 [20/0] via 10.123.1.1, 00:13:01

 

 

R2#show ip interface brief
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0 10.123.1.2 YES manual up up
GigabitEthernet0/1 10.24.1.2 YES manual up up
GigabitEthernet0/2 unassigned YES unset up up
GigabitEthernet0/3 unassigned YES unset up up
Loopback0 192.168.2.2 YES manual up up

 

R2#show running-config | section router
router ospf 1
redistribute bgp 200 subnets
network 10.24.1.2 0.0.0.0 area 0
router bgp 200
bgp log-neighbor-changes
network 192.168.2.2 mask 255.255.255.255
neighbor 10.123.1.1 remote-as 100

 

R2#show ip route ospf | begin Gateway
Gateway of last resort is not set

10.0.0.0/8 is variably subnetted, 6 subnets, 2 masks
O 10.35.1.0/24 [110/3] via 10.24.1.4, 00:11:33, GigabitEthernet0/1
O 10.45.1.0/24 [110/2] via 10.24.1.4, 00:11:33, GigabitEthernet0/1

 

2 Accepted Solutions

Accepted Solutions

Jon Marshall
Hall of Fame
Hall of Fame

 

You won't see it in R2's routing table because R2 is using the BGP route for 192.168.1.1/32 which it redistributes into OSPF. 

 

To see if the redistribution is working check the routing table on R4, for example, and you should see it there. 

 

Jon

View solution in original post

after recheck and see the topology, 

R1-R2, 
R2 will be select this prefix as best path and install it into routing table, 
R2 will redistribute it into OSPF which will resend it to other routers, so check in other router not R2 routing table.  

View solution in original post

3 Replies 3

Jon Marshall
Hall of Fame
Hall of Fame

 

You won't see it in R2's routing table because R2 is using the BGP route for 192.168.1.1/32 which it redistributes into OSPF. 

 

To see if the redistribution is working check the routing table on R4, for example, and you should see it there. 

 

Jon

after recheck and see the topology, 

R1-R2, 
R2 will be select this prefix as best path and install it into routing table, 
R2 will redistribute it into OSPF which will resend it to other routers, so check in other router not R2 routing table.  

ShamsDim
Level 1
Level 1

yes it's really as you said

 

R4#show ip route ospf | begin Gateway
Gateway of last resort is not set

10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
O 10.35.1.0/24 [110/2] via 10.45.1.5, 09:11:03, GigabitEthernet0/0
192.168.1.0/32 is subnetted, 1 subnets
O E2 192.168.1.1 [110/1] via 10.24.1.2, 09:03:51, GigabitEthernet0/1
192.168.2.0/32 is subnetted, 1 subnets
O E2 192.168.2.2 [110/1] via 10.24.1.2, 09:00:40, GigabitEthernet0/1

 

Thanks for your help

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card