Помогите разобратьсяrouter bgp 10
no synchronization
bgp log-neighbor-changes
network 192.168.1.0
neighbor 192.168.1.100 remote-as 10
neighbor 192.168.1.100 route-map filter out
no auto-summaryroute-map filter permit 10
set metric 4
set as-path prepend 10 10gw1#sh ip bgp neighbors 192.168.1.100 advertised-routes
BGP table version is 2289, local router ID is 192.168.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incompleteNetwork Next Hop Metric LocPrf Weight Path
*> 192.168.1.0 0.0.0.0 0 32768 iНа маршрутизаторе 192.168.1.100
gw#sh ip bgp neighbors 192.168.1.1 received-routes
BGP table version is 27, local router ID is 192.168.1.100
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incompleteNetwork Next Hop Metric LocPrf Weight Path
* i192.168.1.0 192.168.1.1 4 100 0 iTotal number of prefixes 1
Метрика и другие атрибуты устанавливаются с помощью route-map, а as-path нет
Почему так может быть?
>Помогите разобраться
>
>router bgp 10
> no synchronization
> bgp log-neighbor-changes
> network 192.168.1.0
> neighbor 192.168.1.100 remote-as 10
> neighbor 192.168.1.100 route-map filter out
> no auto-summary
>
>route-map filter permit 10
> set metric 4
> set as-path prepend 10 10
>
>gw1#sh ip bgp neighbors 192.168.1.100 advertised-routes
>BGP table version is 2289, local router ID is 192.168.1.1
>Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
>Origin codes: i - IGP, e - EGP, ? - incomplete
>
> Network
> Next Hop
> Metric LocPrf Weight Path
>*> 192.168.1.0 0.0.0.0 0 32768 i
>
>
>
>На маршрутизаторе 192.168.1.100
>
>gw#sh ip bgp neighbors 192.168.1.1 received-routes
>BGP table version is 27, local router ID is 192.168.1.100
>Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
>Origin codes: i - IGP, e - EGP, ? - incomplete
>
> Network
> Next Hop
> Metric LocPrf Weight Path
>* i192.168.1.0 192.168.1.1
> 4
> 100 0 i
>
>Total number of prefixes 1
>
>Метрика и другие атрибуты устанавливаются с помощью route-map, а as-path нет
>Почему так может быть?
у тебя iBGP откуда будет as-path ?
>у тебя iBGP откуда будет as-path ?Если я вас правильно понял в случае iBGP соседства нельзя
установить атрибут as-path c помощью route-map?
>>у тебя iBGP откуда будет as-path ?
>
>Если я вас правильно понял в случае iBGP соседства нельзя
>установить атрибут as-path c помощью route-map?Внутри одного нейбора маршруты внутренние, никаих as-path нету и обычно и не надо. Ну а если таки надо (и знаний хватает на то, чтобы понимать что в самом деле надо ;) ) то можно смотреть в сторону построения конфедерации.
>>Помогите разобраться
>>
>>router bgp 10
>> no synchronization
>> bgp log-neighbor-changes
>> network 192.168.1.0
>> neighbor 192.168.1.100 remote-as 10
>> neighbor 192.168.1.100 route-map filter out
>> no auto-summary
>>
>>route-map filter permit 10
>> set metric 4
>> set as-path prepend 10 10
>>
>>gw1#sh ip bgp neighbors 192.168.1.100 advertised-routes
>>BGP table version is 2289, local router ID is 192.168.1.1
>>Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
>>Origin codes: i - IGP, e - EGP, ? - incomplete
>>
>> Network
>> Next Hop
>> Metric LocPrf Weight Path
>>*> 192.168.1.0 0.0.0.0 0 32768 i
>>
>>
>>
>>На маршрутизаторе 192.168.1.100
>>
>>gw#sh ip bgp neighbors 192.168.1.1 received-routes
>>BGP table version is 27, local router ID is 192.168.1.100
>>Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
>>Origin codes: i - IGP, e - EGP, ? - incomplete
>>
>> Network
>> Next Hop
>> Metric LocPrf Weight Path
>>* i192.168.1.0 192.168.1.1
>> 4
>> 100 0 i
>>
>>Total number of prefixes 1
>>
>>Метрика и другие атрибуты устанавливаются с помощью route-map, а as-path нет
>>Почему так может быть?
>
>
>у тебя iBGP откуда будет as-path ?
iBGP в нутри одной AS
eBGP между различными ASты в рамках одной AS хочешь изменить путь, если ты просто эксперементируешь то поменяй на одном рутере номер AS
>>>Помогите разобраться
>>>
>>>router bgp 10
>>> no synchronization
>>> bgp log-neighbor-changes
>>> network 192.168.1.0
>>> neighbor 192.168.1.100 remote-as 10
>>> neighbor 192.168.1.100 route-map filter out
>>> no auto-summary
>>>
>>>route-map filter permit 10
>>> set metric 4
>>> set as-path prepend 10 10
>>>
>>>gw1#sh ip bgp neighbors 192.168.1.100 advertised-routes
>>>BGP table version is 2289, local router ID is 192.168.1.1
>>>Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
>>>Origin codes: i - IGP, e - EGP, ? - incomplete
>>>
>>> Network
>>> Next Hop
>>> Metric LocPrf Weight Path
>>>*> 192.168.1.0 0.0.0.0 0 32768 i
>>>
>>>
>>>
>>>На маршрутизаторе 192.168.1.100
>>>
>>>gw#sh ip bgp neighbors 192.168.1.1 received-routes
>>>BGP table version is 27, local router ID is 192.168.1.100
>>>Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
>>>Origin codes: i - IGP, e - EGP, ? - incomplete
>>>
>>> Network
>>> Next Hop
>>> Metric LocPrf Weight Path
>>>* i192.168.1.0 192.168.1.1
>>> 4
>>> 100 0 i
>>>
>>>Total number of prefixes 1
>>>
>>>Метрика и другие атрибуты устанавливаются с помощью route-map, а as-path нет
>>>Почему так может быть?
>>
>>
>>у тебя iBGP откуда будет as-path ?
>
>
>iBGP в нутри одной AS
>eBGP между различными AS
>
>ты в рамках одной AS хочешь изменить путь, если ты просто эксперементируешь
>то поменяй на одном рутере номер ASДа спасибо! Неудачно поставленный опыт
Меня сбило то что команда
sh ip bgp neighbors xx.xx.xx.xx advertised-routes
показывает состояние до применения route-map по этому на реальной сессии я не увидел мои припенды. А спросить что получает мой пир нет возможности да и режет похоже он мои
анонсы так что через looking-glass тоже ничего не увидел.
а network 192.168.1.0 не прописано повторно на 192.168.1.100 ?
>а network 192.168.1.0 не прописано повторно на 192.168.1.100 ?Нет, но это не должно ни на что влиять вроде
У меня на 192.168.1.100 стоит soft-reconfiguration inbound
и то что показывает
sh ip bgp neighbors 192.168.1.1 received-routes это всего лишь то что принято
от 192.168.1.1.bgw-utc-ix#sh ip bgp neighbors 192.168.1.1
BGP neighbor is 192.168.1.1, remote AS 10, internal link
[skip]For address family: IPv4 Unicast
BGP table version 28, neighbor version 28
Index 2, Offset 0, Mask 0x4
Inbound soft reconfiguration allowed
Incoming update prefix filter list is denyany
Outgoing update prefix filter list is denyany
0 accepted prefixes consume 0 bytes
Prefix advertised 0, suppressed 0, withdrawn 0
1 denied but saved prefixes consume 36 bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Number of NLRIs in the update sent: max 0, min 0
[skip]
попробуй для эксперемента
set as-path prepend 11 11