about summary refs log tree commit diff stats
path: root/tools/conf/etc/rc.d/blan
diff options
context:
space:
mode:
Diffstat (limited to 'tools/conf/etc/rc.d/blan')
-rwxr-xr-xtools/conf/etc/rc.d/blan14
1 files changed, 12 insertions, 2 deletions
diff --git a/tools/conf/etc/rc.d/blan b/tools/conf/etc/rc.d/blan
index f3ea322..56d1809 100755
--- a/tools/conf/etc/rc.d/blan
+++ b/tools/conf/etc/rc.d/blan
@@ -4,10 +4,10 @@
 #
 
 DEV="br0"
+PHY="enp8s0"
 
-ADDR=10.0.0.254
+ADDR=10.0.0.1
 NET=10.0.0.0
-GW=192.168.1.254
 MASK=24
 
 # one tap for each cpu core
@@ -20,6 +20,16 @@ case $1 in
         /sbin/ip link set dev ${DEV} up
         /bin/sleep 0.2s
 
+        /sbin/ip link set dev ${PHY} down
+        /bin/sleep 0.1s
+        /sbin/ip route flush dev ${PHY}
+        /sbin/ip addr flush dev ${PHY}
+        /sbin/ip link set dev ${PHY} up
+        /bin/sleep 0.2s
+
+        /sbin/ip link set dev ${PHY} master ${DEV}
+        #/sbin/ip route add default via ${GW}
+
         for i in `/usr/bin/seq $NTAPS`
         do
             TAP="tap$i"