[riot-devel] gnrc_border_router in native

Baptiste Clenet bapclenet at gmail.com
Thu Aug 24 14:42:53 CEST 2017


Hi,
I try to compile and run gnrc_border_router in native so I can have this setup:
- LINUX
- tap0: gnrc_border_router
- tap1: gnrc_networking
- tapbr0 linking tap0 and tap1

Then instead of using ping6 fe80:<ADDR>%tap1, I could use ping6 2001:db8:<ADDR>.
Ouput:
RIOT/examples/gnrc_border_router$ make BOARD=native term
make -C ethos
make[2]: rien à faire pour « all ».
make -C uhcpd
make[2]: rien à faire pour « all ».
sudo sh RIOT/dist/tools/ethos/start_network.sh tap0 tap0 tap0 2001:db8::/64
net.ipv6.conf.tap0.forwarding = 1
net.ipv6.conf.tap0.accept_ra = 0
Error: ??? prefix is expected rather than "tap0".
Cleaning up...
RIOT/dist/tools/ethos/start_network.sh: 23: kill: Usage: kill [-s
sigspec | -signum | -sigspec] [pid | job]... or
kill -l [exitstatus]
RIOT/examples/gnrc_border_router/../../Makefile.include:380 : la
recette pour la cible « term » a échouée
make: *** [term] Erreur 1

First thing: A third tap0 appears I don't know how. If I replace :
TERMFLAGS ?= $(PORT) $(TAP) $(IPV6_PREFIX)
By
TERMFLAGS ?= $(TAP) $(IPV6_PREFIX)

Output:
RIOT/examples/gnrc_border_router$ make BOARD=native term
make -C ethos
make[2]: rien à faire pour « all ».
make -C uhcpd
make[2]: rien à faire pour « all ».
sudo sh RIOT/dist/tools/ethos/start_network.sh tap0 tap0 2001:db8::/64
net.ipv6.conf.tap0.forwarding = 1
net.ipv6.conf.tap0.accept_ra = 0
Error opening serial device tap0
Error opening serial device tap0
Cleaning up...
RIOT/examples/gnrc_border_router/../../Makefile.include:380 : la
recette pour la cible « term » a échouée
make: *** [term] Erreur 1

Of course, tap0 is not serial port so how to make border_router work in native?

Cheers,

-- 
Baptiste


More information about the devel mailing list