gnrc_border_router in native

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,

Hi, I assume you want to use it with the xbee (otherwise it does make little sense, since this is the only non-Ethernet device we support for native, AFAIK)? If so, please don’t use ethos as the second interface, but just netdev_tap (which is pulled in by default). If you want to be experimental you try to use socket_zep instead of xbee with native [1].

Cheers, Martine

[1] https://github.com/RIOT-OS/RIOT/pull/6121

My goal is to simulate in native a setup with a border router and a node (so without any hardware board)

No, what I want is to run gnrc_border_router in native and instead of communicating with a serial port, I want to use tap0 (or something else). When we do make term, we open a connection between a node and linux and we can send command. Why can't I use the connection to make ethos communicate with gnrc_border_router?

Is it clearer?

Cheers,

Hi,

Ok thanks Martine Could I mount a virtual SERIAL port (ptyp5 or with socat) so I can simulate a serial communication. I see that there is a UART periph in native. What do you think about this?