show ip bgp nei xyz advertised-routes and AS-path prepending

Started by wintermute000, March 15, 2015, 07:53:09 PM

Previous topic - Next topic

wintermute000

Does anyone know how to actively see your AS-path prepend or make it come up in show ip bgp nei advertised-routes?


I'm a bit confused by this behaviour as the above show command doesn't seem to show the prepending, despite being supposed to show what you send your neighbor AFTER policy is applied.


Not a problem per se but would be useful if you don't have management of the far end

srg

OTOH it can't be done in vanilla IOS. advertised-routes does not take in account changed parameters like next-hop, as-path etc. There's also no way at all to see advertised communities per prefix.

This is all fixed in IOS XR.
som om sinnet hade svartnat för evigt.


srg

RP/0/RSP0/CPU0:XR1#sh bgp ipv4 unicast advertised
192.168.0.0/22 is advertised to 4.4.4.4
  Path info:
    neighbor: Local           neighbor router id: 4.4.4.4
    valid  redistributed  best  import-candidate
Received Path ID 0, Local Path ID 1, version 1862381
  Attributes after inbound policy was applied:
    next hop: 1.2.3.4
    MET ORG AS COMM
    origin: IGP  metric: 0
    aspath:
    community: 65000:123 65534:1337
  Attributes after outbound policy was applied:
    next hop: 4.3.2.1
    MET ORG AS COMM
    origin: IGP  metric: 0
    aspath:
    community: 65000:123


Quite good improvement from vanilla :)
som om sinnet hade svartnat för evigt.

LynK

Quote from: srg on March 16, 2015, 02:59:37 AM
RP/0/RSP0/CPU0:XR1#sh bgp ipv4 unicast advertised
192.168.0.0/22 is advertised to 4.4.4.4
  Path info:
    neighbor: Local           neighbor router id: 4.4.4.4
    valid  redistributed  best  import-candidate
Received Path ID 0, Local Path ID 1, version 1862381
  Attributes after inbound policy was applied:
    next hop: 1.2.3.4
    MET ORG AS COMM
    origin: IGP  metric: 0
    aspath:
    community: 65000:123 65534:1337
  Attributes after outbound policy was applied:
    next hop: 4.3.2.1
    MET ORG AS COMM
    origin: IGP  metric: 0
    aspath:
    community: 65000:123


Quite good improvement from vanilla :)


:wub: :wub: :wub:
Sys Admin: "You have a stuck route"
            Me: "You have an incorrect Default Gateway"

NetworkGroover

Engineer by day, DJ by night, family first always

wintermute000

Jun OS does this already....
everything stupid/bad/lacking on IOS CLI it seems they thought of.... :p