[AusNOG] VyOS Command Run through for Peering on MegaPort

daniel at glovine.com.au daniel at glovine.com.au
Tue Nov 11 15:06:16 EST 2014


Gday Guys,

 

As most of you already previously know, im new to the whole vyatta scene,
and ive been working on my config for peering over MegaPort and Bilateral
peering with other providers and ISP's over the past few days,

 

Below ill supply a copy of my running config, I know there are a few issues
with this config, such as not much IPv6 support, and also my downstream
customers routes are not being pushed outbound to the peers only my own
prefixes seem to be,

 

If anybody could spare a few minutes looking through the config, and outline
any issues you may see, I would be forever greatful,

 

Thanks in advance

 

Daniel

 

 

 

 

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 CloudFlare {

        rule 1 {

            action permit

            le 24

            prefix 0.0.0.0/0

        }

    }

    prefix-list MegaPort {

        rule 1 {

            action permit

            le 24

            prefix 0.0.0.0/0

        }

    }

    prefix-list Rendrag {

        rule 1 {

            action permit

            le 24

            prefix 0.0.0.0/0

        }

    }

    prefix-list Spectrum {

        rule 1 {

            action permit

            le 24

            prefix 0.0.0.0/0

        }

    }

    prefix-list6 CloudFlare-V6 {

        rule 1 {

            action permit

            prefix ::/0

        }

    }

    prefix-list6 MegaPort-V6 {

        rule 1 {

            action permit

            prefix ::0/0

        }

    }

    prefix-list6 Rendrag-V6 {

        rule 1 {

            action permit

            prefix ::0/0

        }

    }

    prefix-list6 Spectrum-V6 {

        rule 1 {

            action permit

            prefix ::0/0

        }

    }

    route-map CloudFlare {

        rule 1 {

            action permit

            match {

                ip {

                    address {

                        prefix-list CloudFlare

                    }

                }

            }

            set {

                community 132839:13335

            }

        }

        rule 2 {

            action permit

           match {

                ipv6 {

                    address {

                        prefix-list CloudFlare-V6

                    }

                }

            }

        }

    }

    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 Rendrag {

        rule 1 {

            action permit

            match {

                ip {

                    address {

                        prefix-list Rendrag

                    }

                }

            }

            set {

                community 132839:133547

            }

        }

        rule 2 {

            action permit

            match {

                ipv6 {

                    address {

                        prefix-list Rendrag-V6

                    }

                }

            }

        }

    }

    route-map Spectrum {

        rule 1 {

            action permit

            match {

                ip {

                    address {

                        prefix-list Spectrum

                    }

                }

            }

            set {

                community 132839:17559

            }

        }

        rule 2 {

            action permit

            match {

                ipv6 {

                    address {

                        prefix-list Spectrum-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 27.50.65.211 {

            ebgp-multihop 255

            remote-as 133547

            route-map {

                export peering-out

                import Rendrag

            }

            soft-reconfiguration {

                inbound

            }

        }

        neighbor 103.18.205.241 {

            remote-as 132869

            route-map {

                export customers

            }

            soft-reconfiguration {

                inbound

            }

        }

        neighbor 103.18.205.254 {

            remote-as 132839

            route-map {

                export internal-out

            }

            soft-reconfiguration {

                inbound

            }

        }

        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

            }

        }

        neighbor 103.26.68.29 {

            remote-as 17559

            route-map {

                export peering-out

                import Spectrum

            }

            soft-reconfiguration {

                inbound

            }

        }

        neighbor 103.26.68.78 {

            remote-as 13335

            route-map {

                export peering-out

                import CloudFlare

            }

            soft-reconfiguration {

                inbound

            }

        }

        neighbor 2001:DEA:0:10::1D {

            address-family {

                ipv6-unicast {

                    route-map {

                        export Spectrum

                    }

                    soft-reconfiguration {

                        inbound

                    }

                }

            }

            remote-as 17559

            soft-reconfiguration {

                inbound

            }

        }

        neighbor 2001:dea:0:10::1 {

            address-family {

                ipv6-unicast {

                    route-map {

                        export MegaPort

                    }

                    soft-reconfiguration {

                        inbound

                    }

                }

            }

            remote-as 58941

            soft-reconfiguration {

                inbound

            }

        }

        neighbor 2001:dea:0:10::2 {

            address-family {

                ipv6-unicast {

                    route-map {

                        export MegaPort

                    }

                    soft-reconfiguration {

                        inbound

                    }

                }

            }

            remote-as 58941

            soft-reconfiguration {

                inbound

            }

        }

        neighbor 2001:dea:0:10::4e {

            address-family {

                ipv6-unicast {

                    route-map {

                        export CloudFlare

                    }

                    soft-reconfiguration {

                        inbound

                    }

                }

            }

            remote-as 13335

            soft-reconfiguration {

                inbound

            }

        }

        neighbor 2400:d400:1:ffff:ffff::1 {

            address-family {

                ipv6-unicast {

                    route-map {

                        export peering-out

                        import Rendrag

                    }

                    soft-reconfiguration {

                        inbound

                    }

                }

            }

            ebgp-multihop 255

            remote-as 133547

            soft-reconfiguration {

                inbound

            }

        }

        neighbor 2406:8900:0010::1 {

            address-family {

                ipv6-unicast {

                    route-map {

                        export internal-out

                    }

                    soft-reconfiguration {

                        inbound

                    }

                }

            }

            remote-as 132839

            soft-reconfiguration {

                inbound

            }

        }

    }

}

 
<http://t.signauxtrois.com/e1t/o/5/f18dQhb0S7ks8dDMPbW2n0x6l2B9gXrN7sKj6v4dY
_WW8p_btW8qC9y4W8qCnPv1pctGFVX0kJF1k1H6H0?si=4827875764076544&pi=ff3369b2457
24e9a84037ae9fa5f93a2> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ausnog.net/pipermail/ausnog/attachments/20141111/fea1fc7d/attachment.html>


More information about the AusNOG mailing list