cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1011
Views
5
Helpful
7
Replies

Basic BGP neighborship question

Hello guys,

 

I  am new to BGP and i would appreciate if someone can give me a hint on what is wrong with my config
Here is the topology

 

R1(BGP Router AS1)    -----   R2  ------ R3(BGP Router AS2)

 

i wanted to make R1 and R3  BGP neighbors. All routers are connected with Ethernet links
According to the topology they are not directly connected since they have R2 between them (R2 does not have any routing protocols activated).
R1 has a static route to R3 network via R2  and R3 has a static route to R1 network via R2. 
Ping is working between R1 and R3.
After going through the most basic config for BGP , when typing the neighbor command in both routers they fail to become neighbors ,actually they dont even try. I took a packet capture  on R3 and R1 and i do not see any of them initiating   BGP sessions.

 

The config  on

R1: 

router bgp 1

address-family ipv4 unicast

bgp router-id  (R1's router id)

neighbor  (R3's ip address)







R3:

router bgp 3

address-family ipv4 unicast

bgp router-id  (R3's router id)

neighbor  (R1's ip address)


Can someone explain what am i doing wrong?

1 Accepted Solution

Accepted Solutions

R1

router bgp 1
neighbor R2 remote-as 3
neighbors R2 ebgp-multihop


ip route R2 serial or ethernet <-need this static route 

R2

router bgp 3
neighbor R1 remote-as 1
neighbor R1 ebgp--multihop


ip route R1 serial or thereat <-need this static route 

View solution in original post

7 Replies 7

R1

router bgp 1
neighbor R2 remote-as 3
neighbors R2 ebgp-multihop


ip route R2 serial or ethernet <-need this static route 

R2

router bgp 3
neighbor R1 remote-as 1
neighbor R1 ebgp--multihop


ip route R1 serial or thereat <-need this static route 

correct the AS number.

Hello,

 

does this actually work ?

 


R1
router bgp 1
neighbor R2 remote-as 3
neighbors R2 ebgp-multihop

ip route R2 serial or ethernet <-need this static route

 

R2
router bgp 3
neighbor R1 remote-as 1
neighbor R1 ebgp--multihop

ip route R1 serial or thereat <-need this static route

 

I was under the impression that there was no BGP configured on R2:

 

--> (R2 does not have any routing protocols activated).

Hello,

 

you need to add ebgp multihop:

 

R1:

router bgp 1

address-family ipv4 unicast

bgp router-id (R1's router id)

neighbor (R3's ip address) ebgp-multihop 3

 

 

R3:

router bgp 3

address-family ipv4 unicast

bgp router-id (R3's router id)

neighbor (R1's ip address) ebgp-multihop 3

When i get to type  this command

neighbor (R3's ip address) ebgp-multihop 3

this is the console message  "% Specify remote-as or peer-group commands first"

 

so i tried to do it like this

 

neighbor R3-ipaddress  R3-AS ebgp-multihop 3  and  then it give  me  an "Invalid input detected at '^' marker  where the  ebgp starts
valid"

Before you try the multi hop command you need to define the remote AS for the peer

neighbor R3 remote-as 3

HTH

Rick

Hello,

 

R1:

router bgp 1
address-family ipv4 unicast
bgp router-id (R1's router id)
neighbor (R3's ip address) remote-as 3
neighbor (R3's ip address) ebgp-multihop 3

 

R3:

router bgp 3
address-family ipv4 unicast
bgp router-id (R3's router id)
neighbor (R1's ip address) remote-as 1
neighbor (R1's ip address) ebgp-multihop 3
Review Cisco Networking for a $25 gift card