fredrikjj wrote: » A topology diagram would help, but the most basic BGP configuration (eBGP peerings only) require no particular configuration for one AS to act as transit for another.
Here is the config: R1#show run | s bgp|interface interface Loopback0 ip address 1.1.1.1 255.255.255.255 interface FastEthernet0/0 no ip address shutdown duplex auto speed auto interface FastEthernet0/1 ip address 192.168.1.1 255.255.255.0 duplex auto speed auto router bgp 2 bgp log-neighbor-changes network 1.1.1.1 mask 255.255.255.255 neighbor 192.168.1.2 remote-as 1 R2#show run | s bgp|interface interface Loopback0 ip address 2.2.2.2 255.255.255.255 interface FastEthernet0/0 ip address 192.168.2.1 255.255.255.0 duplex auto speed auto interface FastEthernet0/1 no ip address shutdown duplex auto speed auto router bgp 2 bgp log-neighbor-changes network 2.2.2.2 mask 255.255.255.255 neighbor 192.168.2.2 remote-as 1 R3#show run | s bgp|interface interface Loopback3 ip address 3.3.3.3 255.255.255.255 interface FastEthernet0/0 ip address 192.168.2.2 255.255.255.0 duplex auto speed auto interface FastEthernet0/1 ip address 192.168.1.2 255.255.255.0 duplex auto speed auto router bgp 1 bgp log-neighbor-changes network 3.3.3.3 mask 255.255.255.255 neighbor 192.168.1.1 remote-as 2 neighbor 192.168.2.1 remote-as 2
R1#show ip bgp BGP table version is 23, local router ID is 1.1.1.1 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale, m multipath, b backup-path, x best-external, f RT-Filter Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 1.1.1.1/32 0.0.0.0 0 32768 i *> 3.3.3.3/32 192.168.1.2 0 0 1 i R2#show ip bgp BGP table version is 5, local router ID is 2.2.2.2 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale, m multipath, b backup-path, x best-external, f RT-Filter Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 2.2.2.2/32 0.0.0.0 0 32768 i *> 3.3.3.3/32 192.168.2.2 0 0 1 i R3#show ip bgp BGP table version is 22, local router ID is 3.3.3.3 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale, m multipath, b backup-path, x best-external, f RT-Filter Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 1.1.1.1/32 192.168.1.1 0 0 2 i *> 2.2.2.2/32 192.168.2.1 0 0 2 i *> 3.3.3.3/32 0.0.0.0 0 32768 i
fredrikjj wrote: » Yes, the routers in AS 2 will see their own AS number in the AS_PATH sequence and drop the updates for loop prevention purposes. The command you are looking for to fix that topology is neighbor allowAs-in PS. Alternatively you could use something called as override on the provider router to strip AS 2 from the AS_PATH.