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

Issue adding IPv6 to namespace node when default IPv6 GW already learnt from network generated RA #1145

Open
haklat43 opened this issue Aug 22, 2024 · 0 comments

Comments

@haklat43
Copy link

ip -6 route add does not work if there is already default IPv6 GW in the namespace. It might happen occasionally, in the process of adding IPv6 to a TRex namespace node, that we receive a Router Advertisement from the network. When this RA is taken as default route in the namespace. A little later when TRex code adds IPv6 default for the namespace by "ip -6 route add default" this will fail because there is already ipv6 default configured by the network generated (and by TRex received) RA message.

Better option is to use replace rather than add. I.e. change:
ip -6 route add default

to:

ip -6 route replace default

With replace instead of add the process of creating namespaces with IPv6 is more robust.
File to patch:

src/stx/common/trex_stack_linux_based.cpp

haklat43 added a commit to haklat43/trex-core that referenced this issue Aug 22, 2024
Signed-off-by: Hakan Latth <haklat43@gmail.com>
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