Skip to content

How to Export routes from one vrf to other vrf in same node #3022

@tanmay910

Description

@tanmay910
[global]
  [global.config]
    as = 100
    router-id = "1.1.1.1"

[[neighbors]]
  [[neighbors.afi-safis]]
    [neighbors.afi-safis.config]
      afi-safi-name = "l3vpn-ipv4-unicast"
  [neighbors.config]
    neighbor-address = "2.2.2.2"
    peer-as = 100
  [neighbors.transport]
    [neighbors.transport.config]
      local-address = "1.1.1.1"

[[vrfs]]
  [vrfs.config]
    name = "vrf1"
    rd = "100:1"
    import-rt-list = ["100:1"]
    export-rt-list = ["100:3"]

[[vrfs]]
  [vrfs.config]
    name = "vrf2"
    rd = "100:2"
    import-rt-list = ["100:2", ]
    export-rt-list = ["100:3"]

[[vrfs]]
  [vrfs.config]
    name = "vrf3"
    rd = "100:3"
    import-rt-list = ["100:3"]
    export-rt-list = ["100:1", "100:2", "100:3"]

I want to export all routes learned by vrf1 to vrf3, without modifying the existing import or export Route Targets (RTs).

Currently, if I add a static route in vrf1, it gets exported to vrf3 as expected (because it originates from vrf1).

However, routes learned by vrf1 from its BGP peers or other VRFs are not being exported to vrf3.

Can someone help me figure out how to export both local and learned routes from vrf1 to vrf3 without changing the RT configuration?

FYI i am using gobgpd version 3.37.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions