[AusNOG] Issue with Route-Maps on VYOS

Luke Iggleden luke+ausnog at sisgroup.com.au
Mon Nov 24 09:49:21 EST 2014


You should refer to yourself (132839) as ^$ (already on line 1)

So for your customer, I would use:
^(59256_)+$



On 21/11/2014 8:33 pm, daniel at glovine.com.au wrote:
> Gday Guys
>
> Im having an issue on our peering router where we are using route-map
> and a few other bits to take prefixes from our downstream customers and
> advertise them over to MegaPort IX,
>
> However it seems only our prefixes are going over to the IX and none of
> around 9 customer prefixes are,
>
> Please find attached a copy of the policys from the current running config,
>
> If you do spot anything ive misplaced, please let me know :D
>
> policy {
>
>      as-path-list peering-export {
>
>          rule 1 {
>
>              action permit
>
>              regex ^$
>
>          }
>
>          rule 2 {
>
>              action permit
>
>              regex ^132839$
>
>          }
>
>          rule 3 {
>
>              action permit
>
>              regex "^132839 132869$"
>
>          }
>
>          rule 4 {
>
>              action permit
>
>              regex "^132839 59256$"
>
>          }
>
>          rule 5 {
>
>              action permit
>
>              regex "^132839 133196$"
>
>          }
>
>      }
>
>      community-list 10 {
>
>          rule 1 {
>
>              action permit
>
>              regex 132839:58941
>
>          }
>
>          rule 2 {
>
>              action permit
>
>              regex 132869:58941
>
>          }
>
>      }
>
>      community-list 20 {
>
>          rule 1 {
>
>              action permit
>
>              regex 132839:17559
>
>          }
>
>          rule 2 {
>
>              action permit
>
>              regex 132869:17559
>
>          }
>
>      }
>
>      community-list 30 {
>
>          rule 1 {
>
>              action permit
>
>              regex 132839:133547
>
>          }
>
>          rule 2 {
>
>              action permit
>
>              regex 132869:133547
>
>          }
>
>      }
>
>      community-list 40 {        rule 1 {
>
>              action permit
>
>              regex 132839:13335
>
>          }
>
>          rule 2 {
>
>              action permit
>
>              regex 132869:13335
>
>          }
>
>      }    prefix-list MegaPort {
>
>          rule 1 {
>
>              action permit
>
>              le 24
>
>              prefix 0.0.0.0/0
>
>          }
>
>      }    route-map MegaPort {
>
>          rule 1 {
>
>              action permit
>
>              match {
>
>                  ip {
>
>                      address {
>
>                          prefix-list MegaPort
>
>                      }
>
>                  }
>
>              }
>
>              set {
>
>                  community 132839:58941
>
>              }
>
>          }
>
>          rule 2 {
>
>              action permit
>
>              match {
>
>                  ipv6 {
>
>                      address {
>
>                          prefix-list MegaPort-V6
>
>                      }
>
>                  }
>
>              }
>
>          }
>
>      }
>
>      route-map internal-out {
>
>          rule 1 {
>
>              action permit
>
>              match {
>
>                  community {
>
>                      community-list 10
>
>                  }
>
>              }
>
>          }
>
>          rule 2 {
>
>              action permit
>
>              match {
>
>                  community {
>
>                      community-list 20
>
>                  }
>
>              }
>
>          }
>
>          rule 3 {
>
>              action permit
>
>              match {
>
>                  community {
>
>                      community-list 30
>
>                  }
>
>              }
>
>          }
>
>          rule 4 {
>
>              action permit
>
>              match {
>
>                  community {
>
>                      community-list 40
>
>                  }
>
>              }
>
>          }
>
>          rule 999 {
>
>              action deny
>
>          }
>
>      }
>
>      route-map peering-out {
>
>          rule 1 {
>
>              action permit
>
>              match {
>
>                  as-path peering-export
>
>              }
>
>          }
>
>      }
>
> }
>
> protocols {
>
>      bgp 132839 {
>
>          neighbor 103.26.68.1 {
>
>              remote-as 58941
>
>              route-map {
>
>                  export peering-out
>
>                  import MegaPort
>
>              }
>
>              soft-reconfiguration {
>
>                  inbound
>
>              }
>
>          }
>
>          neighbor 103.26.68.2 {
>
>              remote-as 58941
>
>              route-map {
>
>                  export peering-out
>
>                  import MegaPort
>
>              }
>
>              soft-reconfiguration {
>
>                  inbound
>
>              }
>
>          }
>
> Appreciate any assistance with this that can be given
>
> Daniel
>
>
>
> _______________________________________________
> AusNOG mailing list
> AusNOG at lists.ausnog.net
> http://lists.ausnog.net/mailman/listinfo/ausnog
>



More information about the AusNOG mailing list