cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
796
Views
0
Helpful
1
Replies

bgp allowas-in

sachin30720041
Level 1
Level 1

Hello,

I have following setup. CE3 and CE4 are running bgp as a PC-CE protocol. CE3 and CE4 are configured in AS 34. routes are not exchanged between CE3 and CE4. Although I have configured 'allowas-in' on both CE3 and CE4.  VPNV4 routes are exchanged between PE1 and PE2.

CE3-------PE1----PE2----CE4

Configuration:-

ios3
-------------------
int gi0/0
ip address 100.10.30.3 255.255.255.0
no sh

int lo0
ip address 3.3.3.3 255.255.255.255

router bgp 34
bgp router-id 3.3.3.3
template peer-session session12
remote-as 12
exit
neighbor 100.10.30.1 inherit peer-session session12
address-family ipv4 unicast
network 3.3.3.3 mask 255.255.255.255
neighbor 100.10.30.1 activate
neighbor 100.10.30.1 allowas-in
exit


XRV1
-------------------
vrf vrf1
address-family ipv4 unicast
export route-target 1:1
import route-target 2:2
exit

int gi0/0/0/0
vrf vrf1
ip address 100.10.30.1 255.255.255.0
no sh

int gi0/0/0/1
ip address 100.10.20.1 255.255.255.0
no sh


int lo0
ipv4 address 1.1.1.1 255.255.255.255

router isis 1
net 49.0001.1111.1111.1111.00
is-type level-2
address-family ipv4 unicast
metric-style wide
mpls ldp auto-config
exit
int gi0/0/0/1
address-family ipv4 unicast
exit
int lo0
address-family ipv4 unicast
exit
exit

route-policy pass
pass
exit

mpls ldp
exit

router bgp 12
address-family ipv4 unicast
exit
address-family vpnv4 unicast
exit
neighbor-group group12
remote-as 12
update-source lo0
address-family vpnv4 unicast
exit
neighbor-group group34
remote-as 34
address-family ipv4 unicast
route-policy pass in
route-policy pass out
exit
neighbor 2.2.2.2
use neighbor-group group12
vrf vrf1
rd 1:1
address-family ipv4 unicast
exit
neighbor 100.10.30.3
use neighbor-group group34

XRV2
-------------------
vrf vrf1
address-family ipv4 unicast
export route-target 2:2
import route-target 1:1
exit

int gi0/0/0/0
vrf vrf1
ip address 100.20.40.2 255.255.255.0
no sh

int gi0/0/0/1
ip address 100.10.20.2 255.255.255.0
no sh


int lo0
ipv4 address 2.2.2.2 255.255.255.255

mpls ldp
exit

router isis 1
net 49.0002.2222.2222.2222.00
is-type level-2
address-family ipv4 unicast
metric-style wide
mpls ldp auto-config
exit
int gi0/0/0/1
address-family ipv4 unicast
exit
int lo0
address-family ipv4 unicast
exit
exit

route-policy pass
pass
exit

router bgp 12
bgp router-id 2.2.2.2
address-family ipv4 unicast
exit
address-family vpnv4 unicast
exit
neighbor-group group12
remote-as 12
update-source lo0
address-family vpnv4 unicast
exit
neighbor-group group34
remote-as 34
address-family ipv4 unicast
route-policy pass in
route-policy pass out
exit
neighbor 1.1.1.1
use neighbor-group group12
vrf vrf1
rd 1:1
address-family ipv4 unicast
exit
neighbor 100.20.40.4
use neighbor-group group34

ios4
-----------------
int gi0/0
ip address 100.20.40.4 255.255.255.0
no sh

int lo0
ip address 4.4.4.4 255.255.255.255

router bgp 34
template peer-session session12
remote-as 12
exit
neighbor 100.20.40.2 inherit peer-session session12
address-family ipv4 unicast
network 4.4.4.4 mask 255.255.255.255
neighbor 100.20.40.2 activate
neighbor 100.20.40.2 allowas-in
exit

 

1 Accepted Solution

Accepted Solutions

Harold Ritter
Level 12
Level 12

Hi @sachin30720041 ,

IOS-XR does the outbound AS path loop check by default. You can configure the following command to disable it.

router bgp 12

 vrf vrf1

  address-family ipv4 unicast

   as-path-loopcheck out disable

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

View solution in original post

1 Reply 1

Harold Ritter
Level 12
Level 12

Hi @sachin30720041 ,

IOS-XR does the outbound AS path loop check by default. You can configure the following command to disable it.

router bgp 12

 vrf vrf1

  address-family ipv4 unicast

   as-path-loopcheck out disable

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México