Routing

last person joined: 3 days ago 

Ask questions and share experiences about ACX Series, CTP Series, MX Series, PTX Series, SSR Series, JRR Series, and all things routing, including portfolios and protocols.
  • 1.  same communities can be used by ipv4 and ipv6 in same router?

    Posted 08-04-2016 18:04

    Hi, I have this question. The below command is creating communities value in one router. Do you think the communities can be used by ipv4 and ipv6 at the same router? That also means if the DOC can used in bgp export/import policy. Thank you

     

    set policy-options community DOC members 2122:10222



  • 2.  RE: same communities can be used by ipv4 and ipv6 in same router?
    Best Answer

     
    Posted 08-04-2016 19:40

    yes it can use the same community DOC for both ipv4 and ipv6 .

     

    You can define single policy for both ipv4 and ipv6 prefixes to use the community DOC with below configs:


    set policy-options policy-statement community term ipv6 from protocol bgp
    set policy-options policy-statement community term ipv6 from rib inet6.0
    set policy-options policy-statement community term ipv6 then community add DOC

    set policy-options policy-statement community term ipv6 then accept
    set policy-options policy-statement community term ipv4 from protocol bgp

    set policy-options policy-statement community term ipv4 then community add DOC

    set policy-options policy-statement community term ipv4 then accept
    set policy-options community DOC members 2122:10222

     

     

     

    set protocols bgp group x neigbor x.x.x.x import/export community 

     

    If you want seperate policy for ipv4 and ipv6 prefixes and for it to use community DOC the config goes like this:

     

    set policy-options policy-statement community-ipv6 term 1 from protocol bgp
    set policy-options policy-statement community-ipv6 term 1 from rib inet6.0
    set policy-options policy-statement community-ipv6 term 1 then community add DOC

    set policy-options policy-statement community-ipv6 term 1 then accept

     

    set policy-options policy-statement community-ipv4 term 1 from protocol bgp

    set policy-options policy-statement community-ipv4 term 1 then community add DOC

    set policy-options policy-statement community-ipv4  term 1 then accept

     

    set protocols bgp group x neigbor x.x.x.x import/export community-ipv4 

    set protocols bgp group x neigbor x.x.x.x import/export community-ipv6

     

     

     

    Please mark this as accepted solution, if you think it solves your problem



  • 3.  RE: same communities can be used by ipv4 and ipv6 in same router?

    Posted 08-05-2016 09:36

    Thank you