Playtime with Brocade Vyatta

Had a quick play with the Brocade Vyatta 5415 vRouter today. There is also a community fork of Vyata (VyOS), but I found that out only after getting the 60 days trial from Brocade. Anyway, I followed this guide and got the router up and running in a few minutes.

The 5415 vRouter offers features like basic routing, stateful firewalling, IPsec and more. Since the router doesn’t understand MPLS or VRF, I had a little look into the cli and configuration of the router. I went on and tried a little OSPFv3 and BGP:



The configuration I ended up with:

play@Vyatta-01:~$ show configuration
interfaces {
    ethernet eth0 {
        description Tiberius-PE
        hw-id 00:50:56:97:77:f6
        vif 998 {
            address 2001:1:1::2/64
            ipv6 {
                ospfv3 {
                    process play {
                        instance-id 0 {
                            area 0.0.0.0
                            network point-to-point
                        }
                    }
                }
            }
        }
    }
    loopback lo {
        address 2001::2/128
        ipv6 {
            ospfv3 {
                process play {
                    instance-id 0 {
                        area 0.0.0.0
                    }
                }
            }
        }
    }
}
policy {
    community-list 1 {
        rule 1 {
            action permit
            regex 1:1
        }
    }
    route-map bgp-import {
        rule 10 {
            action permit
            match {
                community {
                    community-list 1
                }
            }
        }
        rule 20 {
            action deny
        }
    }
}
protocols {
    bgp 1 {
        address-family {
            ipv6-unicast {
            }
        }
        neighbor 2001::1 {
            address-family {
                ipv6-unicast {
                    default-originate {
                    }
                    maximum-prefix 1000
                    route-map {
                        import bgp-import
                    }
                    soft-reconfiguration {
                        inbound
                    }
                }
            }
            password ****************
            remote-as 1
            update-source 2001::2
        }
        parameters {
            default {
                no-ipv4-unicast
            }
            extended-asn-capability
            log-neighbor-changes
            router-id 10.0.0.2
        }
    }
    ospfv3 {
        process play {
            router-id 10.0.0.2
        }
    }
}
service {
    ssh {
        allow-root
        listen-address 2001::2
    }
}
system {
    config-management {
        commit-revisions 49
    }
    host-name Vyatta-01
    login {
        user play {
            authentication {
                encrypted-password ****************
            }
            level admin
        }
    }
    syslog {
        global {
            facility all {
                level notice
            }
            facility protocols {
                level debug
            }
        }
        user all {
            facility all {
                level emerg
            }
        }
    }
}

The above configuration basically gets OSPFv3 going, setup a BGP session, advertise a default route to the neighbor and only accept BGP routes with a community set to 1:1. It did not take me that long to figure out how to get things going. The information you can obtain via the cli is not bad either, few examples:

play@Vyatta-01:~$ show ipv6 ospf neighbor
OSPFv3 Process (play)
Neighbor ID     Pri   State           Dead Time   Interface  Instance ID
10.0.0.1        128   Full/ -         00:00:37    eth0.998   0

play@Vyatta-01:~$ show ipv6 bgp neighbors 2001::1 received-routes
BGP table version is 4, local router ID is 10.0.0.2
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
*>i2001:4:12::/64   2001::1                        100      0 i
*>i2001:4:16::/64   2001::1                        100      0 i
*>i2001:4:20::/64   2001::1                        100      0 i
xxx
*>i2001:4:96::/64   2001::1                        100      0 i

Total number of prefixes 22

play@Vyatta-01:~$ show ipv6 bgp neighbors 2001::1 advertised-routes
BGP table version is 4, local router ID is 10.0.0.2
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
*>i::/0             2001::2                        100  32768 i

Total number of prefixes 1

Doesn’t look bad.

Ps, commit does not save your configuration:

configure
commit			< activate the configuration
save config.boot	< store the configuration
exit

29-7-2015