summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-09-25 09:54:59 +0200
committerMiguel <m.i@gmx.at>2018-09-25 09:54:59 +0200
commit2ba77c01a33c3454aeed42d5394dd5ccede10851 (patch)
treea16d0a06262e842f0fe195e1c22f4ab529a571c5 /Makefile
parent90c3c74107e9a1e15ea8524057c1e1c48d401da9 (diff)
tap interface via makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 5 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index efea7ce..7b7e233 100644
--- a/Makefile
+++ b/Makefile
@@ -259,17 +259,15 @@ doxygen: clean
list_headers:
find asm/ driver/ fs/ kernel/ lib/ -iname *.h -exec basename {} \; | sort | uniq -c
-
+#tap interface#
+create_tap:
+ sudo tunctl -t tap0 -u miguel
+ sudo ip link set tap0 up
+ sudo route add -host 192.168.0.20 dev tap0
#qemu-system-i386 -netdev tap,id=mynet0,ifname=tap0,script=no,downscript=no -enable-kvm fool-os-i386.iso -smp 4 -serial stdio
-#sudo tunctl -t tap0 -u miguel
-
# tunctl -u <username>
-
#-net user,hostfwd=tcp::10022-:22\
#echo 1 > /proc/sys/net/ipv4/ip_forward
#echo 1 > /proc/sys/net/ipv4/conf/wlan0/proxy_arp
#echo 1 > /proc/sys/net/ipv4/conf/tap0/proxy_arp
-
-#ip link set tap0 up
-#route add -host 192.168.0.20 dev tap0 <-- to be changed by you.