<div dir="ltr">Hi,<div> I use ibgp to transport full tables in my network. iBGP delete my ASN but I use my ASN to identify my prefixes. </div><div> So I added this code to my ibgp import filter </div><div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";font-size:14px;line-height:19px;white-space:pre"><div> if bgp_path ~ [= =] then {</div><div> <span style="color:rgb(106,153,85)">#bgp_path.prepend(LOCAL_ASN);</span></div><div> if my_opt_prefix() then bgp_path.prepend(LOCAL_ASN)<span style="color:rgb(106,153,85)">; </span></div><div> }</div></div></div><div>It works when 2 servers connect, but when I have 3 servers, the third server can not import my first server's prefixed with my ASN.</div><div><br></div><div>At the first server </div><div><br></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">bird> show route export HOME_1_ARCH
</span><br>Table master6:
<br>2a0c:e640:1017::/48 unreachable [BGP_Prefix 22:12:23.507] * (200)
<br>2602:feda:ab9::/48 unreachable [BGP_Prefix 22:12:23.507] * (200)<br>
<br></span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">At the second server</span></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">bird> show route for 2a0c:e640:1017:: export Aperture_IX all </span><br>Table master6:
<br>2a0c:e640:1017::/48 unicast [ZHYZ_PC 14:53:29.056] * (100) [AS141011i]
<br> via 2a0c:e640:1017::1 on zhyz_pc
<br> Type: BGP univ
<br> BGP.origin: IGP
<br> BGP.as_path: 141011
<br> BGP.next_hop: 2a0c:e640:1017::1
<br> BGP.local_pref: 100<br>
</span><div><span style="font-family:monospace">At the </span>third<span style="font-family:monospace"> server</span></div></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">bird> show route for 2a0c:e640:1017::/48 protocol HOME_1_ARCH all
</span><br>Table master6:
<br>::/0 unicast [HOME_1_ARCH 06:10:14.802] * (100) [AS134835i]
<br> via 2602:feda:ab5::1 on home_1_arch
<br> Type: BGP univ
<br> BGP.origin: IGP
<br> BGP.as_path: 134835
<br> BGP.next_hop: 2602:feda:ab5::1
<br> BGP.local_pref: 100
<br> BGP.community: (65530,2000)<br></span></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">HOME_1_ARCH BGP --- up 06:10:14.802 Established </span><br> Description: HOME_1_ARCH BGP
<br> BGP state: Established
<br> Neighbor address: 2602:feda:ab5::1%home_1_arch
<br> Neighbor AS: 141011
<br> Local AS: 141011
<br> Neighbor ID: 192.168.117.52
<br> Local capabilities
<br> Multiprotocol
<br> AF announced: ipv6
<br> Route refresh
<br> Graceful restart
<br> Restart time: 120
<br> AF supported: ipv6
<br> AF preserved:
<br> 4-octet AS numbers
<br> Enhanced refresh
<br> Long-lived graceful restart
<br> Neighbor capabilities
<br> Multiprotocol
<br> AF announced: ipv6
<br> Route refresh
<br> Graceful restart
<br> Restart time: 120
<br> AF supported: ipv6
<br> AF preserved:
<br> 4-octet AS numbers
<br> Enhanced refresh
<br> Long-lived graceful restart
<br> Session: internal route-reflector AS4
<br> Source address: 2602:feda:ab7::1
<br> Hold timer: 183.267/240
<br> Keepalive timer: 63.087/80
<br> Channel ipv6
<br> State: UP
<br> Table: master6
<br> Preference: 100
<br> Input filter: (unnamed)
<br> Output filter: (unnamed)
<br> Routes: 2560 imported, 129220 exported, 2557 preferred
<br> Route change stats: received rejected filtered ignored accepted
<br> Import updates: 266057 0 0 5170 260887
<br> Import withdraws: 261009 0 --- 5382 255627
<br> Export updates: 681596 17838 129330 --- 534428
<br> Export withdraws: 3020 --- --- --- 131521
<br> BGP Next hop: 2602:feda:ab7::1
<br> <br></span></div><div><font face="monospace">You could see the third server cannot import </font><span style="color:rgb(0,0,0);font-family:monospace"> </span><span style="color:rgb(0,0,0);font-family:monospace">2a0c:e640:1017::/48</span></div><div><span style="color:rgb(0,0,0);font-family:monospace">But when I deleted this code on the second server.</span></div><div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";font-size:14px;line-height:19px;white-space:pre"><div> if bgp_path ~ [= =] then {</div><div> <span style="color:rgb(106,153,85)">#bgp_path.prepend(LOCAL_ASN);</span></div><div> if my_opt_prefix() then bgp_path.prepend(LOCAL_ASN)<span style="color:rgb(106,153,85)">; </span></div><div> }</div></div></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">it has been successful import</span></div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">bird> show route for 2a0c:e640:1017::/48 protocol HOME_1_ARCH all
</span><br>Table master6:
<br>2a0c:e640:1017::/48 unicast [HOME_1_ARCH 07:14:07.526] * (100) [AS141011i]
<br> via 2602:feda:ab5::1 on home_1_arch
<br> Type: BGP univ
<br> BGP.origin: IGP
<br> BGP.as_path: 141011
<br> BGP.next_hop: 2602:feda:ab5::1
<br> BGP.local_pref: 100
<br> BGP.originator_id: 172.16.229.1
<br> BGP.cluster_list: 192.168.117.52
<br><br>I know that maybe no one will use ibgp like this, but why it won't work?<br></span><div><span style="font-family:monospace"> </span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace"><br></span></div></div>