Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directly connected routes #96

Closed
taitov opened this issue Jan 22, 2024 · 1 comment
Closed

Directly connected routes #96

taitov opened this issue Jan 22, 2024 · 1 comment

Comments

@taitov
Copy link
Contributor

taitov commented Jan 22, 2024

Add support directly connected routes.
Lookup neighbor MAC address by destination IP address (instead nexthop address).

@taitov
Copy link
Contributor Author

taitov commented Jan 30, 2024

Example config: https://github.com/yanet-platform/yanet/blob/main/autotest/units/001_one_port/071_route_directly_connected/controlplane.conf

{
  "modules": {
    "route0": {
      "type": "route",
      "interfaces": {
        "kni0.100": {
          "ipAddresses": [
            "10.10.0.1/24", ///< directly connected
            "2000:100::1/96" ///< directly connected
          ],
...

And check fib:

$ yanet-cli route lookup route0 10.10.0.100
ingress_physical_ports  prefix        nexthop  egress_interface  labels
----------------------  ------------  -------  ----------------  ------
kni0                    10.10.0.0/24           kni0.100          

$ yanet-cli route lookup route0 2000:100::100
ingress_physical_ports  prefix         nexthop  egress_interface  labels
----------------------  -------------  -------  ----------------  ------
kni0                    2000:100::/96           kni0.100          

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant