01-26-2022 08:47 AM - last edited on 01-27-2022 09:42 AM by Translator
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?
Solved! Go to Solution.
01-26-2022 08:59 AM - last edited on 01-27-2022 09:46 AM by Translator
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
01-26-2022 08:59 AM - last edited on 01-27-2022 09:46 AM by Translator
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
01-26-2022 09:25 AM
correct the AS number.
01-26-2022 09:37 AM - last edited on 01-27-2022 09:47 AM by Translator
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).
01-26-2022 09:01 AM - last edited on 01-27-2022 09:56 AM by Translator
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
01-26-2022 09:15 AM - last edited on 01-27-2022 09:58 AM by Translator
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"
01-26-2022 09:23 AM
Before you try the multi hop command you need to define the remote AS for the peer
neighbor R3 remote-as 3
01-26-2022 09:28 AM - last edited on 01-27-2022 10:05 AM by Translator
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
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