Hi, 2017-08-24 19:08 GMT+02:00 Baptiste Clenet <[email protected]>:
> My goal is to simulate in native a setup with a border router and a > node (so without any hardware board) > Then try socket_zep. It simulates IEEE 802.15.4 networks for native. > 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? > ethos (Ethernet over Serial) requires a serial port, which is not provided in the default config of native. You need something like socket_zep (for the non-ethernet interface), to have the normal 6LoWPAN configuration for the border router. Native usually uses netdev_tap in master, which is Ethernet-based. > > Is it clearer? > > Cheers, > > 2017-08-24 16:56 GMT+02:00 Martine Lenders <[email protected]>: > > 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 > > > > 2017-08-24 14:42 GMT+02:00 Baptiste Clenet <[email protected]>: > >> > >> 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 > >> _______________________________________________ > >> devel mailing list > >> [email protected] > >> https://lists.riot-os.org/mailman/listinfo/devel > > > > > > > > _______________________________________________ > > devel mailing list > > [email protected] > > https://lists.riot-os.org/mailman/listinfo/devel > > > > > > -- > Baptiste > _______________________________________________ > devel mailing list > [email protected] > https://lists.riot-os.org/mailman/listinfo/devel >
_______________________________________________ devel mailing list [email protected] https://lists.riot-os.org/mailman/listinfo/devel
