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

Simulate bridge fdb append #1000

Open
kazimsarikaya opened this issue Aug 1, 2024 · 0 comments
Open

Simulate bridge fdb append #1000

kazimsarikaya opened this issue Aug 1, 2024 · 0 comments

Comments

@kazimsarikaya
Copy link

Hello i am writing a program to simulate this commands (ip addresses and ids are arbitrary):

ip link add vxlan0 type vxlan id 42 dev eth1 dstport 0 
bridge fdb append to 00:00:00:00:00:00 dst 192.168.123.12 dev vxlan0
ip a a dev vxlan0 10.47.252.1/22 
ip l set dev vxlan0 up
ip r add 10.32.4.0/22 via 10.47.252.2

The second line

bridge fdb append to 00:00:00:00:00:00 dst 192.168.123.12 dev vxlan0

is completed by

https://gist.github.com/kazimsarikaya/0a1878bcfa2697d041cf003d3c926864

The main append is at line 67. inside if (disabled by false) I am using netlink.NeighAppend method. At else part I am using bridge command.

Else part works as expected. However if part cannot for. If I enable (I dont know it is correct) AF_BRIDGE it gives Operation not supported.

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