Use experimental AS values to play the test.
Add BGP peering on CEs, and use the default-originate functionality on
each PE facing CPEs.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
ip forwarding
ipv6 forwarding
!
-ipv6 route ::/0 2001:1::1
+router bgp 65500
+ bgp router-id 1.1.2.1
+ neighbor 2001:1::1 remote-as 65500
+ address-family ipv6 unicast
+ neighbor 2001:1::1 activate
+ exit-address-family
+exit
+
"::/0": [
{
"prefix": "::/0",
- "protocol": "static",
+ "protocol": "bgp",
"vrfId": 0,
"vrfName": "default",
"selected": true,
"destSelected": true,
- "distance": 1,
+ "distance": 200,
"metric": 0,
"installed": true,
"table": 254,
"internalStatus": 16,
- "internalFlags": 73,
+ "internalFlags": 13,
"internalNextHopNum": 1,
"internalNextHopActiveNum": 1,
"nexthops": [
{
"flags": 3,
"fib": true,
- "ip": "2001:1::1",
"afi": "ipv6",
"interfaceName": "eth0",
"active": true,
ip forwarding
ipv6 forwarding
!
-ipv6 route ::/0 2001:2::1
+router bgp 65501
+ bgp router-id 1.1.20.1
+ neighbor 2001:2::1 remote-as 65501
+ address-family ipv6 unicast
+ neighbor 2001:2::1 activate
+ exit-address-family
+exit
+
+
"::/0": [
{
"prefix": "::/0",
- "protocol": "static",
+ "protocol": "bgp",
"vrfId": 0,
"vrfName": "default",
"selected": true,
"destSelected": true,
- "distance": 1,
+ "distance": 200,
"metric": 0,
"installed": true,
"table": 254,
"internalStatus": 16,
- "internalFlags": 73,
+ "internalFlags": 13,
"internalNextHopNum": 1,
"internalNextHopActiveNum": 1,
"nexthops": [
{
"flags": 3,
"fib": true,
- "ip": "2001:2::1",
"afi": "ipv6",
"interfaceName": "eth0",
"active": true,
ip forwarding
ipv6 forwarding
!
-ipv6 route ::/0 2001:3::1
+router bgp 65500
+ bgp router-id 1.1.3.1
+ neighbor 2001:3::1 remote-as 65500
+ address-family ipv6 unicast
+ neighbor 2001:3::1 activate
+ exit-address-family
+exit
+
"::/0": [
{
"prefix": "::/0",
- "protocol": "static",
+ "protocol": "bgp",
"vrfId": 0,
"vrfName": "default",
"selected": true,
"destSelected": true,
- "distance": 1,
+ "distance": 200,
"metric": 0,
"installed": true,
"table": 254,
"internalStatus": 16,
- "internalFlags": 73,
+ "internalFlags": 13,
"internalNextHopNum": 1,
"internalNextHopActiveNum": 1,
"nexthops": [
{
"flags": 3,
"fib": true,
- "ip": "2001:3::1",
"afi": "ipv6",
"interfaceName": "eth0",
"active": true,
ip forwarding
ipv6 forwarding
!
-ipv6 route ::/0 2001:4::1
+router bgp 65501
+ bgp router-id 1.1.4.1
+ neighbor 2001:4::1 remote-as 65501
+ address-family ipv6 unicast
+ neighbor 2001:4::1 activate
+ exit-address-family
+exit
+
"::/0": [
{
"prefix": "::/0",
- "protocol": "static",
+ "protocol": "bgp",
"vrfId": 0,
"vrfName": "default",
"selected": true,
"destSelected": true,
- "distance": 1,
+ "distance": 200,
"metric": 0,
"installed": true,
"table": 254,
"internalStatus": 16,
- "internalFlags": 73,
+ "internalFlags": 13,
"internalNextHopNum": 1,
"internalNextHopActiveNum": 1,
"nexthops": [
{
"flags": 3,
"fib": true,
- "ip": "2001:4::1",
"afi": "ipv6",
"interfaceName": "eth0",
"active": true,
ip forwarding
ipv6 forwarding
!
-ipv6 route ::/0 2001:5::1
+router bgp 65500
+ bgp router-id 1.1.5.1
+ neighbor 2001:5::1 remote-as 65500
+ address-family ipv6 unicast
+ neighbor 2001:5::1 activate
+ exit-address-family
+exit
+
"::/0": [
{
"prefix": "::/0",
- "protocol": "static",
+ "protocol": "bgp",
"vrfId": 0,
"vrfName": "default",
"selected": true,
"destSelected": true,
- "distance": 1,
+ "distance": 200,
"metric": 0,
"installed": true,
"table": 254,
"internalStatus": 16,
- "internalFlags": 73,
+ "internalFlags": 13,
"internalNextHopNum": 1,
"internalNextHopActiveNum": 1,
"nexthops": [
{
"flags": 3,
"fib": true,
- "ip": "2001:5::1",
"afi": "ipv6",
"interfaceName": "eth0",
"active": true,
ip forwarding
ipv6 forwarding
!
-ipv6 route ::/0 2001:6::1
+router bgp 65501
+ bgp router-id 1.1.6.1
+ neighbor 2001:6::1 remote-as 65501
+ address-family ipv6 unicast
+ neighbor 2001:6::1 activate
+ exit-address-family
+exit
+
"::/0": [
{
"prefix": "::/0",
- "protocol": "static",
+ "protocol": "bgp",
"vrfId": 0,
"vrfName": "default",
"selected": true,
"destSelected": true,
- "distance": 1,
+ "distance": 200,
"metric": 0,
"installed": true,
"table": 254,
"internalStatus": 16,
- "internalFlags": 73,
+ "internalFlags": 13,
"internalNextHopNum": 1,
"internalNextHopActiveNum": 1,
"nexthops": [
{
"flags": 3,
"fib": true,
- "ip": "2001:6::1",
"afi": "ipv6",
"interfaceName": "eth0",
"active": true,
line vty
!
no bgp send-extra-data-zebra
-router bgp 1
+router bgp 65500
bgp router-id 1.1.1.1
no bgp ebgp-requires-policy
no bgp default ipv4-unicast
- neighbor 2001::2 remote-as 2
+ neighbor 2001::2 remote-as 65501
neighbor 2001::2 timers 3 10
neighbor 2001::2 timers connect 1
!
locator loc1
!
!
-router bgp 1 vrf vrf10
+router bgp 65500 vrf vrf10
bgp router-id 1.1.1.1
no bgp ebgp-requires-policy
no bgp default ipv4-unicast
!
+ neighbor 2001:1::2 remote-as 65500
+ neighbor 2001:3::2 remote-as 65500
address-family ipv6 unicast
+ neighbor 2001:1::2 activate
+ neighbor 2001:1::2 default-originate
+ neighbor 2001:3::2 activate
+ neighbor 2001:3::2 default-originate
sid vpn export auto
rd vpn export 1:10
rt vpn both 99:99
redistribute connected
exit-address-family
!
-router bgp 1 vrf vrf20
+router bgp 65500 vrf vrf20
bgp router-id 1.1.1.1
no bgp ebgp-requires-policy
no bgp default ipv4-unicast
+ neighbor 2001:5::2 remote-as 65500
!
address-family ipv6 unicast
+ neighbor 2001:5::2 activate
+ neighbor 2001:5::2 default-originate
sid vpn export auto
rd vpn export 1:20
rt vpn both 88:88
"vrfName": "default",
"routerId": "1.1.1.1",
"defaultLocPrf": 100,
- "localAS": 1,
+ "localAS": 65500,
"routes": {
"routeDistinguishers": {
"1:10": {
"metric": 0,
"weight": 0,
"peerId": "2001::2",
- "path": "2",
+ "path": "65501",
"origin": "incomplete",
"nexthops": [
{
"metric": 0,
"weight": 0,
"peerId": "2001::2",
- "path": "2",
+ "path": "65501",
"origin": "incomplete",
"nexthops": [
{
"metric": 0,
"weight": 0,
"peerId": "2001::2",
- "path": "2",
+ "path": "65501",
"origin": "incomplete",
"nexthops": [
{
"vrfName": "default",
"routerId": "1.1.1.1",
"defaultLocPrf": 100,
- "localAS": 1,
+ "localAS": 65500,
"routes": {
"routeDistinguishers": {
"1:10": {
"metric": 0,
"weight": 0,
"peerId": "2001::2",
- "path": "2",
+ "path": "65501",
"origin": "incomplete",
"nexthops": [
{
"metric": 0,
"weight": 0,
"peerId": "2001::2",
- "path": "2",
+ "path": "65501",
"origin": "incomplete",
"nexthops": [
{
"metric": 0,
"weight": 0,
"peerId": "2001::2",
- "path": "2",
+ "path": "65501",
"origin": "incomplete",
"nexthops": [
{
"vrfName": "default",
"routerId": "1.1.1.1",
"defaultLocPrf": 100,
- "localAS": 1,
+ "localAS": 65500,
"routes": {
"routeDistinguishers": {
"1:10": {
"metric": 0,
"weight": 0,
"peerId": "2001::2",
- "path": "2",
+ "path": "65501",
"origin": "incomplete",
"nexthops": [
{
"metric": 0,
"weight": 0,
"peerId": "2001::2",
- "path": "2",
+ "path": "65501",
"origin": "incomplete",
"nexthops": [
{
"metric": 0,
"weight": 0,
"peerId": "2001::2",
- "path": "2",
+ "path": "65501",
"origin": "incomplete",
"nexthops": [
{
line vty
!
no bgp send-extra-data-zebra
-router bgp 2
+router bgp 65501
bgp router-id 2.2.2.2
no bgp ebgp-requires-policy
no bgp default ipv4-unicast
- neighbor 2001::1 remote-as 1
+ neighbor 2001::1 remote-as 65500
neighbor 2001::1 timers 3 10
neighbor 2001::1 timers connect 1
!
locator loc1
!
!
-router bgp 2 vrf vrf10
+router bgp 65501 vrf vrf10
bgp router-id 2.2.2.2
no bgp ebgp-requires-policy
no bgp default ipv4-unicast
!
+ neighbor 2001:2::2 remote-as 65501
address-family ipv6 unicast
+ neighbor 2001:2::2 activate
+ neighbor 2001:2::2 default-originate
sid vpn export auto
rd vpn export 2:10
rt vpn both 99:99
redistribute connected
exit-address-family
!
-router bgp 2 vrf vrf20
+router bgp 65501 vrf vrf20
bgp router-id 2.2.2.2
no bgp ebgp-requires-policy
no bgp default ipv4-unicast
+ neighbor 2001:4::2 remote-as 65501
+ neighbor 2001:6::2 remote-as 65501
!
address-family ipv6 unicast
+ neighbor 2001:4::2 activate
+ neighbor 2001:4::2 default-originate
+ neighbor 2001:6::2 activate
+ neighbor 2001:6::2 default-originate
sid vpn export auto
rd vpn export 2:20
rt vpn both 88:88
"vrfName": "default",
"routerId": "2.2.2.2",
"defaultLocPrf": 100,
- "localAS": 2,
+ "localAS": 65501,
"routes": {
"routeDistinguishers": {
"1:10": {
"metric": 0,
"weight": 0,
"peerId": "2001::1",
- "path": "1",
+ "path": "65500",
"origin": "incomplete",
"nexthops": [
{
"metric": 0,
"weight": 0,
"peerId": "2001::1",
- "path": "1",
+ "path": "65500",
"origin": "incomplete",
"nexthops": [
{
"metric": 0,
"weight": 0,
"peerId": "2001::1",
- "path": "1",
+ "path": "65500",
"origin": "incomplete",
"nexthops": [
{
"vrfName": "default",
"routerId": "2.2.2.2",
"defaultLocPrf": 100,
- "localAS": 2,
+ "localAS": 65501,
"routes": {
"routeDistinguishers": {
"2:10": {
"vrfName": "default",
"routerId": "2.2.2.2",
"defaultLocPrf": 100,
- "localAS": 2,
+ "localAS": 65501,
"routes": {
"routeDistinguishers": {
"1:10": {
"metric": 0,
"weight": 0,
"peerId": "2001::1",
- "path": "1",
+ "path": "65500",
"origin": "incomplete",
"nexthops": [
{
"metric": 0,
"weight": 0,
"peerId": "2001::1",
- "path": "1",
+ "path": "65500",
"origin": "incomplete",
"nexthops": [
{
"metric": 0,
"weight": 0,
"peerId": "2001::1",
- "path": "1",
+ "path": "65500",
"origin": "incomplete",
"nexthops": [
{
get_topogen().gears["r1"].vtysh_cmd(
"""
configure terminal
- router bgp 1
+ router bgp 65500
segment-routing srv6
no locator loc1
"""
get_topogen().gears["r1"].vtysh_cmd(
"""
configure terminal
- router bgp 1
+ router bgp 65500
segment-routing srv6
locator loc1
"""
get_topogen().gears["r1"].vtysh_cmd(
"""
configure terminal
- router bgp 1
+ router bgp 65500
no segment-routing srv6
"""
)
get_topogen().gears["r1"].vtysh_cmd(
"""
configure terminal
- router bgp 1
+ router bgp 65500
segment-routing srv6
locator loc1
"""