Added make targets that help to setup the SLIP IPv6 bridge
This commit is contained in:
parent
1dba4d40ca
commit
2b54d1f1b4
@ -18,4 +18,27 @@ PROJECT_SOURCEFILES = fakeuip.c sicslow_ethernet.c
|
||||
|
||||
all: uip6-bridge-tap.sky
|
||||
|
||||
upload: uip6-bridge-tap.ihex
|
||||
cp $< $(IHEXFILE)
|
||||
$(MAKE) sky-u.$(subst /,-,$(word 1, $(MOTES)))
|
||||
|
||||
include $(CONTIKI)/Makefile.include
|
||||
|
||||
../../tapslip6: ../../tapslip6.c
|
||||
(cd ../../; $(MAKE) tapslip6)
|
||||
|
||||
ifndef MOTE
|
||||
MOTE=1
|
||||
endif
|
||||
|
||||
connect: ../../tapslip6
|
||||
sudo ../../tapslip6 -t tap0 -s $(USBDEVPREFIX)$(word $(MOTE), $(CMOTES)) 127.0.0.1 255.0.0.0
|
||||
|
||||
bridge:
|
||||
sudo sysctl net.ipv6.conf.all.forwarding=1
|
||||
sudo ifconfig tap0 down
|
||||
sudo ifconfig tap0 hw ether $(MAC)
|
||||
sudo ifconfig tap0 up
|
||||
sudo service radvd restart
|
||||
sudo route add -6 aaaa::/64 tap0
|
||||
sudo ip -6 address add aaaa::1/64 dev tap0
|
||||
|
Loading…
Reference in New Issue
Block a user