cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
778
Views
0
Helpful
2
Replies

Can't redistribute OSPF & BGP

StolenSkills
Level 1
Level 1

I have a topology here,

I connected almost everything via multi area OSPF, and saved a little part for bgp +NAT,

after doing a redistribution in R6 - R7 and R5 are able to ping R8, but he cant ping them back,

and any other router in other areas can't ping R8,

Is that normal? am I doing something wrong? Its my first time using redistribution and BGP in the same time and ill be glad for some explanations and solutions, i added a rar file of the packet tracer here.

Untitled.png

1 Accepted Solution

Accepted Solutions

pman
Spotlight
Spotlight

Hi,


When you send ping from R8 the source ip is 110.0.0.2 by default,

in your configuration you not advertise this subnet in BGP.

If you send a ping and also tell R8 the source ip 192.168.1.1 with which it will send the ping it should work,

This is because in your configuration R8 advertise in BGP the 192.168.1.0 network but not the 110.0.0.0/30 network.


In the following example I sent a ping from R8 to R7 and also told R8 to use the source IP R8 advertise in BGP (192.168.1.0/30)

R8 # ping
Protocol [ip]:
Target IP address: 10.17.45.253
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 192.168.1.1
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose [none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.17.45.253, timeout is 2 seconds:
Packet sent with a source address of 192.168.1.1
!!!!!

 

 

To be able to ping from 110.0.0.2 to R7 you can configure the following commands :


R8 (config) #router bgp 2
R8 (config-router) #network 110.0.0.0 mask 255.255.255.252


R8 # ping 10.17.45.253

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.17.45.253, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min / avg / max = 2/25/47 ms

 

 

View solution in original post

2 Replies 2

pman
Spotlight
Spotlight

Hi,


When you send ping from R8 the source ip is 110.0.0.2 by default,

in your configuration you not advertise this subnet in BGP.

If you send a ping and also tell R8 the source ip 192.168.1.1 with which it will send the ping it should work,

This is because in your configuration R8 advertise in BGP the 192.168.1.0 network but not the 110.0.0.0/30 network.


In the following example I sent a ping from R8 to R7 and also told R8 to use the source IP R8 advertise in BGP (192.168.1.0/30)

R8 # ping
Protocol [ip]:
Target IP address: 10.17.45.253
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 192.168.1.1
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose [none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.17.45.253, timeout is 2 seconds:
Packet sent with a source address of 192.168.1.1
!!!!!

 

 

To be able to ping from 110.0.0.2 to R7 you can configure the following commands :


R8 (config) #router bgp 2
R8 (config-router) #network 110.0.0.0 mask 255.255.255.252


R8 # ping 10.17.45.253

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.17.45.253, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min / avg / max = 2/25/47 ms

 

 

Hello,

 

you can also do the below on R6:

 

router ospf 10

--> no passive-interface Serial0/1/0

--> network 110.0.0.0 0.0.0.3 area 10

Review Cisco Networking for a $25 gift card