-
Notifications
You must be signed in to change notification settings - Fork 2k
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
dist/tools/{ethos,zep_dispatch,dose,sliptty,usb-cdc-ecm}: allow setting host ip #20192
base: master
Are you sure you want to change the base?
Conversation
Revisiting the README of the gnrc_border_router example, it turns out a ULA address is already automatically added by the respective scripts, although not the same one. I will have a look again and probably change the PR to make those addresses consistent per default and configurable. |
40be58d
to
fff1922
Compare
I've changed the PR to allow setting the host IP address consistently for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. But maybe the other integrations could benefit from this treatment as well:
dist/tools/dose/start_network.sh
dist/tools/sliptty/start_network.sh
dist/tools/usb-cdc-ecm/start_network.sh
fff1922
to
2b441c7
Compare
Added similar changes to the other integrations now. Successfully tested |
Now this has been updated to support all five integrations, and I've successfully tested |
For both `ethos` and `zep_dispatch`, this adds an optional cmd option to `start_network.sh` which allows to automatically set an IP address for the host device (usually the development PC) when creating the tap interface.
Contribution description
This adds an optional cmd option to
start_network.sh
for bothethos
andzep_dispatch
which allows to set the IP address automatically added on the host device (usually the development PC) when creating the tap interface. Additionally, the host address set now defaults to the samefd00:dead:beef::1
.examples/gnrc_border_router
is adapted to showcase the usage.Testing procedure
make -C examples/gnrc_border_router all term
andip a l tap0
in a separate shell to see the (new) default host addressfd00:dead:beef::1
.IPV6_HOST_ADDR=2001:db8:1::1
to see the given host ip address is used.ping 2001:db8:1::1
in the RIOT shell to see it is reachable.BOARD=nrf52840dk
) to testethos
.Issues/PRs references
This has been discussed with @miri64 previously.